ANDROID: Use a faked paletted texture for CLUT cursors
Same change as for the game screen, reduces CPU usage a little
This commit is contained in:
parent
1c8fc05388
commit
ea253ff26d
4 changed files with 16 additions and 2 deletions
|
@ -359,7 +359,7 @@ void OSystem_Android::initBackend() {
|
||||||
|
|
||||||
_game_texture = new GLESFakePalette565Texture();
|
_game_texture = new GLESFakePalette565Texture();
|
||||||
_overlay_texture = new GLES4444Texture();
|
_overlay_texture = new GLES4444Texture();
|
||||||
_mouse_texture_palette = new GLESPalette5551Texture();
|
_mouse_texture_palette = new GLESFakePalette5551Texture();
|
||||||
_mouse_texture = _mouse_texture_palette;
|
_mouse_texture = _mouse_texture_palette;
|
||||||
|
|
||||||
initOverlay();
|
initOverlay();
|
||||||
|
|
|
@ -129,7 +129,7 @@ private:
|
||||||
|
|
||||||
// Mouse layer
|
// Mouse layer
|
||||||
GLESBaseTexture *_mouse_texture;
|
GLESBaseTexture *_mouse_texture;
|
||||||
GLESPaletteTexture *_mouse_texture_palette;
|
GLESBaseTexture *_mouse_texture_palette;
|
||||||
GLES5551Texture *_mouse_texture_rgb;
|
GLES5551Texture *_mouse_texture_rgb;
|
||||||
Common::Point _mouse_hotspot;
|
Common::Point _mouse_hotspot;
|
||||||
uint32 _mouse_keycolor;
|
uint32 _mouse_keycolor;
|
||||||
|
|
|
@ -584,5 +584,13 @@ GLESFakePalette565Texture::GLESFakePalette565Texture() :
|
||||||
GLESFakePalette565Texture::~GLESFakePalette565Texture() {
|
GLESFakePalette565Texture::~GLESFakePalette565Texture() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLESFakePalette5551Texture::GLESFakePalette5551Texture() :
|
||||||
|
GLESFakePaletteTexture(GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1,
|
||||||
|
GLES5551Texture::pixelFormat()) {
|
||||||
|
}
|
||||||
|
|
||||||
|
GLESFakePalette5551Texture::~GLESFakePalette5551Texture() {
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -330,6 +330,12 @@ public:
|
||||||
virtual ~GLESFakePalette565Texture();
|
virtual ~GLESFakePalette565Texture();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class GLESFakePalette5551Texture : public GLESFakePaletteTexture {
|
||||||
|
public:
|
||||||
|
GLESFakePalette5551Texture();
|
||||||
|
virtual ~GLESFakePalette5551Texture();
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue