summaryrefslogtreecommitdiffstats
path: root/client/gui/softtexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/gui/softtexture.h')
-rw-r--r--client/gui/softtexture.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/client/gui/softtexture.h b/client/gui/softtexture.h
new file mode 100644
index 00000000..37617f29
--- /dev/null
+++ b/client/gui/softtexture.h
@@ -0,0 +1,40 @@
+
+#ifndef _softtexture_h_
+#define _softtexture_h_
+
+#include <stdint.h>
+#include "CEGUIBase.h"
+#include "CEGUITexture.h"
+
+namespace CEGUI
+{
+ class SoftTexture : public Texture
+ {
+ public:
+ SoftTexture(Renderer* owner);
+ SoftTexture(Renderer* owner, uint size);
+ SoftTexture(Renderer* owner, const String& filename,
+ const String& resourceGroup);
+ virtual ~SoftTexture();
+
+ virtual ushort getWidth(void) const { return _width;}
+ virtual ushort getHeight(void) const { return _height;}
+
+ virtual void loadFromFile(const String& filename, const String& resourceGroup);
+ virtual void loadFromMemory(const void* buffPtr, uint buffWidth, uint buffHeight,
+ PixelFormat pixelFormat);
+
+ private:
+ void freeSurf();
+
+ private:
+ uint32_t* _surf;
+ ushort _width;
+ ushort _height;
+
+ friend class SoftRenderer;
+ };
+}
+
+#endif
+