Files
cpp3ds/include/cpp3ds/Drawable.h
T

17 lines
313 B
C++

#ifndef DRAWABLE_H
#define DRAWABLE_H
namespace cpp3ds {
class Screen; // Forward-declaration for cyclic reference
class Drawable {
public:
float depth3d;
Drawable(float depth3d): depth3d(depth3d) {}
virtual void draw(Screen& screen, float x, float y, bool use3D, bool isLeftside) = 0;
};
}
#endif