aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/android.h
diff options
context:
space:
mode:
authordhewg2011-03-05 18:21:35 +0100
committerdhewg2011-03-05 18:47:05 +0100
commit94db3403a3fbe228aa25cdde310e2a8daa5c33eb (patch)
tree3872223dcf94d33fdd28dce21f3fe6f6a1f300a5 /backends/platform/android/android.h
parent7d506ef853a66cc35816926fe739785c2fd1f2d1 (diff)
downloadscummvm-rg350-94db3403a3fbe228aa25cdde310e2a8daa5c33eb.tar.gz
scummvm-rg350-94db3403a3fbe228aa25cdde310e2a8daa5c33eb.tar.bz2
scummvm-rg350-94db3403a3fbe228aa25cdde310e2a8daa5c33eb.zip
ANDROID: Add initial 16bit gfx support
Supported pixel formats: 565, 5551, 4444 Missing: 555 (doesn't exist on GLES)
Diffstat (limited to 'backends/platform/android/android.h')
-rw-r--r--backends/platform/android/android.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/backends/platform/android/android.h b/backends/platform/android/android.h
index 3ccc84bc7e..2c0641f789 100644
--- a/backends/platform/android/android.h
+++ b/backends/platform/android/android.h
@@ -103,7 +103,7 @@ private:
bool _force_redraw;
// Game layer
- GLESPalette888Texture *_game_texture;
+ GLESTexture *_game_texture;
int _shake_offset;
Common::Rect _focus_rect;
@@ -112,7 +112,9 @@ private:
bool _show_overlay;
// Mouse layer
- GLESPalette8888Texture *_mouse_texture;
+ GLESTexture *_mouse_texture;
+ GLESPaletteTexture *_mouse_texture_palette;
+ GLESTexture *_mouse_texture_rgb;
Common::Point _mouse_hotspot;
int _mouse_targetscale;
bool _show_mouse;
@@ -144,6 +146,12 @@ private:
void deinitSurface();
void initViewport();
+#ifdef USE_RGB_COLOR
+ Common::String getPixelFormatName(const Graphics::PixelFormat &format) const;
+ void initTexture(GLESTexture **texture, uint width, uint height,
+ const Graphics::PixelFormat *format, bool alphaPalette);
+#endif
+
void setupKeymapper();
void _setCursorPalette(const byte *colors, uint start, uint num);
@@ -158,11 +166,18 @@ public:
virtual bool hasFeature(Feature f);
virtual void setFeatureState(Feature f, bool enable);
virtual bool getFeatureState(Feature f);
+
virtual const GraphicsMode *getSupportedGraphicsModes() const;
virtual int getDefaultGraphicsMode() const;
bool setGraphicsMode(const char *name);
virtual bool setGraphicsMode(int mode);
virtual int getGraphicsMode() const;
+
+#ifdef USE_RGB_COLOR
+ virtual Graphics::PixelFormat getScreenFormat() const;
+ virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;
+#endif
+
virtual void initSize(uint width, uint height,
const Graphics::PixelFormat *format);
virtual int getScreenChangeID() const;