aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/texture.h
diff options
context:
space:
mode:
authordhewg2011-03-12 09:15:27 +0100
committerdhewg2011-03-12 09:36:22 +0100
commit99c0d825418de549c42f26532eb444cdfa82e507 (patch)
treead50e163970a94b429de4c1bfa7758d55ed30010 /backends/platform/android/texture.h
parent4afa2c62b979251cb4d8ff7e5a97f5385a6287fe (diff)
downloadscummvm-rg350-99c0d825418de549c42f26532eb444cdfa82e507.tar.gz
scummvm-rg350-99c0d825418de549c42f26532eb444cdfa82e507.tar.bz2
scummvm-rg350-99c0d825418de549c42f26532eb444cdfa82e507.zip
ANDROID: Cleanup paletted textures
Diffstat (limited to 'backends/platform/android/texture.h')
-rw-r--r--backends/platform/android/texture.h8
1 files changed, 6 insertions, 2 deletions
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