diff options
author | chai <chaifix@163.com> | 2018-09-06 19:57:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-09-06 19:57:40 +0800 |
commit | 50084b0b3451328a4dfe6db65c78a225e9c8f288 (patch) | |
tree | 020e5b6c834b792aada4cd23cd2551a6b81c22dc /src/libjin/Graphics/Drawable.h | |
parent | 7281a70b1e38fc2bdfb2d4b6d8f7daf7ceedbd1a (diff) |
+bitmap
Diffstat (limited to 'src/libjin/Graphics/Drawable.h')
-rw-r--r-- | src/libjin/Graphics/Drawable.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libjin/Graphics/Drawable.h b/src/libjin/Graphics/Drawable.h index 86cc919..b3fc565 100644 --- a/src/libjin/Graphics/Drawable.h +++ b/src/libjin/Graphics/Drawable.h @@ -3,7 +3,7 @@ #include "../modules.h" #if JIN_MODULES_RENDER -#include "../math/Vector.h" +#include "../math/Vector2.h" #include "../3rdparty/GLee/GLee.h" namespace jin @@ -27,9 +27,10 @@ namespace graphics static const int DRAWABLE_V_SIZE = 8; GLuint texture; + /* TODO: vertex buffer object */ GLuint vbo; - jin::math::Vector2 size; - jin::math::Vector2 anchor; + jin::math::Vector2<unsigned int> size; + jin::math::Vector2<int> anchor; float vertCoord[DRAWABLE_V_SIZE]; float textCoord[DRAWABLE_V_SIZE]; |