From 99c0d825418de549c42f26532eb444cdfa82e507 Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 12 Mar 2011 09:15:27 +0100 Subject: ANDROID: Cleanup paletted textures --- backends/platform/android/texture.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'backends/platform/android/texture.h') diff --git a/backends/platform/android/texture.h b/backends/platform/android/texture.h index 1ed16cb390..91ec9ff857 100644 --- a/backends/platform/android/texture.h +++ b/backends/platform/android/texture.h @@ -42,7 +42,7 @@ public: protected: GLESTexture(byte bytesPerPixel, GLenum glFormat, GLenum glType, - size_t paletteSize, Graphics::PixelFormat pixelFormat); + Graphics::PixelFormat pixelFormat); public: virtual ~GLESTexture(); @@ -92,6 +92,10 @@ public: return 0; }; + inline bool hasPalette() const { + return palette_const() != 0; + } + inline bool dirty() const { return _all_dirty || !_dirty_rect.isEmpty(); } @@ -125,7 +129,6 @@ protected: byte _bytesPerPixel; GLenum _glFormat; GLenum _glType; - size_t _paletteSize; GLuint _texture_name; Graphics::Surface _surface; @@ -202,6 +205,7 @@ public: protected: byte *_texture; + size_t _paletteSize; }; // RGB888 256-entry paletted texture -- cgit v1.2.3