diff options
Diffstat (limited to 'src/libjin/render/drawable.h')
-rw-r--r-- | src/libjin/render/drawable.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/libjin/render/drawable.h b/src/libjin/render/drawable.h index 5eaf705..baf6c97 100644 --- a/src/libjin/render/drawable.h +++ b/src/libjin/render/drawable.h @@ -12,18 +12,26 @@ namespace render Drawable(); virtual ~Drawable(); - /* pseudo constructor*/ void init(int w = 0, int h = 0); - /* set anchor of texture, (0, 0) by default */ void setAnchor(int x, int y); void draw(int x, int y, float sx, float sy, float r); - - int getWidth(); - int getHeight(); - - inline GLuint getTexture() const { return texture; }; + + inline int Drawable::getWidth() const + { + return width; + } + + inline int Drawable::getHeight() const + { + return height; + } + + inline GLuint getTexture() const + { + return texture; + }; protected: #define DRAWABLE_V_SIZE 8 |