aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/Texture.h
diff options
context:
space:
mode:
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