aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Texture.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-06 19:57:40 +0800
committerchai <chaifix@163.com>2018-09-06 19:57:40 +0800
commit50084b0b3451328a4dfe6db65c78a225e9c8f288 (patch)
tree020e5b6c834b792aada4cd23cd2551a6b81c22dc /src/libjin/Graphics/Texture.h
parent7281a70b1e38fc2bdfb2d4b6d8f7daf7ceedbd1a (diff)
+bitmap
Diffstat (limited to 'src/libjin/Graphics/Texture.h')
-rw-r--r--src/libjin/Graphics/Texture.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/libjin/Graphics/Texture.h b/src/libjin/Graphics/Texture.h
index 947021a..2586d63 100644
--- a/src/libjin/Graphics/Texture.h
+++ b/src/libjin/Graphics/Texture.h
@@ -4,8 +4,9 @@
#if JIN_MODULES_RENDER
#include "../3rdparty/GLee/GLee.h"
-#include "color.h"
-#include "drawable.h"
+#include "Color.h"
+#include "Drawable.h"
+#include "Bitmap.h"
namespace jin
{
namespace graphics
@@ -13,22 +14,14 @@ namespace graphics
class Texture: public Drawable
{
-
public:
- static Texture* createTexture(const char* file);
- static Texture* createTexture(const void* mem, size_t size);
+ static Texture* createTexture(Bitmap* bitmap);
~Texture();
- color getPixel(int x, int y);
-
private:
Texture();
- bool loadb(const void* buffer, size_t size);
-
- color* pixels;
-
};
} // graphics