aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/texture.h
diff options
context:
space:
mode:
authorAlyssa Milburn2014-01-23 22:46:34 +0100
committerAlyssa Milburn2014-01-23 23:00:00 +0100
commit6927e570bbbd69886b5fe2c2ce484ae236af61db (patch)
treebba1040586e3451ed05c966559a0451392100778 /backends/platform/android/texture.h
parentaa87af50b21a7ce03433e108b690322d44dbbb45 (diff)
downloadscummvm-rg350-6927e570bbbd69886b5fe2c2ce484ae236af61db.tar.gz
scummvm-rg350-6927e570bbbd69886b5fe2c2ce484ae236af61db.tar.bz2
scummvm-rg350-6927e570bbbd69886b5fe2c2ce484ae236af61db.zip
ANDROID: Add 32bpp support.
We still prefer 16bpp for performance reasons.
Diffstat (limited to 'backends/platform/android/texture.h')
-rw-r--r--backends/platform/android/texture.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/backends/platform/android/texture.h b/backends/platform/android/texture.h
index 4307b5a1bc..67f7343c98 100644
--- a/backends/platform/android/texture.h
+++ b/backends/platform/android/texture.h
@@ -224,6 +224,18 @@ public:
}
};
+// RGBA8888 texture
+class GLES8888Texture : public GLESTexture {
+public:
+ GLES8888Texture();
+ virtual ~GLES8888Texture();
+
+ static inline Graphics::PixelFormat pixelFormat() {
+ // We assume LE since all Android platforms are LE.
+ return Graphics::PixelFormat(4, 8, 8, 8, 8, 0, 8, 16, 24);
+ }
+};
+
class GLESFakePaletteTexture : public GLESBaseTexture {
protected:
GLESFakePaletteTexture(GLenum glFormat, GLenum glType,