aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/gfx.cpp
AgeCommit message (Collapse)Author
2011-06-04BACKENDS: Replace OSystem::disableCursorPalette by setFeatureState callsMax Horn
2011-05-25ALL: initialise -> initializeMatthew Hoops
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-03ANDROID: Fix various forbidden symbol clashesMax Horn
2011-04-17BACKENDS: Adapt various backends code to set up Surface::format correctly.Johannes Schickel
Note that this change is not tested at all (not even compile wise!).
2011-04-06ANDROID: Allow linear texture filtering on the cursordhewg
2011-04-05ANDROID: Remove commented workarounds for Nexus 1dhewg
Reports suggest that its working and not required
2011-04-04ANDROID: Fix non-fullscreen corruption on HTC devices.Alyssa Milburn
HTC's drivers don't preserve the color buffer between frames (as allowed by the spec, apparently), so we have to force-clear it every frame when we're not rendering a texture over the whole screen.
2011-04-03ANDROID: Always use the surface size for the overlaydhewg
When coming back from standby, there might be an indermediate surface change
2011-04-02ANDROID: Attempt at working around some HTC faildhewg
2011-03-24ANDROID: Fix cursor's keycolordhewg
Don't wipe the RGB bits, fixes wrong colors on BASS cursors
2011-03-24ANDROID: Cleanupdhewg
2011-03-17ANDROID: Get rid of more gfx glitchesdhewg
2011-03-17ANDROID: Fix cursor visibilitydhewg
2011-03-17ANDROID: Plug RGB cursor memleakdhewg
2011-03-16ANDROID: Disable game/overlay blendingdhewg
Doesn't work on some drivers, need to do it differently
2011-03-16ANDROID: Input system overhauldhewg
Rewritten input system with many new feature. Fixed related bugs and shortcomings on the way.
2011-03-15ANDROID: Cleanupdhewg
2011-03-14ANDROID: Fade out the game screen when the overlay is visibledhewg
2011-03-14ANDROID: Remove clearBuffer()dhewg
Not required. Why did i add that again?
2011-03-14ANDROID: Implement grabOverlay()dhewg
2011-03-14ANDROID: Extend clearScreen to take care of all casesdhewg
Hopefully that'll help me to not forget about the double buffering. This fixes some gfx leftovers when not running games in fullscreen mode.
2011-03-14ANDROID: Update screen rects on surface changesdhewg
Fixes regression introduced with 4267011e
2011-03-13ANDROID: Center mouse on overlay visibility changesdhewg
2011-03-13ANDROID: Add graphics mode for linear filteringdhewg
2011-03-13ANDROID: Fix texture clear colordhewg
2011-03-13ANDROID: Add support for video feature flagsdhewg
kFeatureFullscreenMode and kFeatureAspectRatioCorrection are supported now. The former prevents scaling to the full display - it scales one axis and keeps the game AR.
2011-03-13ANDROID: Some texture convinience functionsdhewg
2011-03-13ANDROID: Buffer 16bit texture contentsdhewg
Same issue as in the last commit: glTexSubImage2D is slow, so cache all copyRect*() calls in a buffer, and update the dirty rect once when drawing. Reduces CPU usage on 16bit games significantly. Also, lockScreen() returns now pixel data for non-CLUT8 games instead of asserting.
2011-03-13ANDROID: Don't use compressed textures for the game screendhewg
Some GLES drivers suck so much that uploading data to the GPU takes ages. CLUT8 games now use a faked paletted texture, which internally uses a RGB565 hardware texture (Android's native pixel format). This seems to be the only way to efficiently implement constant changing textures with GLES1 - at the cost of extra buffers. Then again, we can now use glTexSubImage2D to only update the dirty rects, which wasn't possible before because glCompressedTexSubImage2D is only usable on GLES2. This commit does exactly that. Overall, the CPU usage is massively reduced for CLUT8 games.
2011-03-12ANDROID: Use 16bit pixel formats on CLUT8 texturesdhewg
This reduces the CPU usage on 640x480 games by ~5% on my droid when reuploading the textures to the GPU
2011-03-12ANDROID: Cleanupdhewg
2011-03-12ANDROID: Cleanup paletted texturesdhewg
2011-03-12ANDROID: Get rid of ugly castsdhewg
2011-03-07ANDROID: Move misplaced assertdhewg
Leftover from the recently introduced 16bit support
2011-03-07ANDROID: Move the overlay initializationdhewg
There's no point in doing that in initSize() every time
2011-03-05ANDROID: Fix 16bit cursorsdhewg
I hate this code
2011-03-05ANDROID: Proper fillBuffer() for non CLUT8 colorsdhewg
2011-03-05ANDROID: Rename function for less confusiondhewg
2011-03-05ANDROID: Clear screen on initSize()dhewg
2011-03-05ANDROID: Add initial 16bit gfx supportdhewg
Supported pixel formats: 565, 5551, 4444 Missing: 555 (doesn't exist on GLES)
2011-03-04ANDROID: Clear game texture on initSize()dhewg
Gets rid of leftovers
2011-03-04ANDROID: Cleanupdhewg
2011-03-04ANDROID: Fix slightly off while loopdhewg
CursorMan allows to push cursors with a width/height of zero. If such a cursor is restored, we don't need to call glTexSubImage2D() 0xffffffff times... This fixes delays of multiple minutes when closing GMM on groovie and sword. Also, I want that last hour of my life back.
2011-03-03ANDROID: Implement surface resizesdhewg
Split surface code into helper functions to avoid code duplication, and distinguish between screen resizes and surface recreation. The former happens when toggling the softkeyb, where we just have to reset the viewport. Fixes garbled textures in those cases.
2011-03-02ANDROID: Properly release texture resourcesdhewg
When calling glDeleteTextures() we need a valid surface.
2011-03-02ANDROID: Check for a surface in updateScreen()dhewg
2011-03-02ANDROID: Move swapBuffers to the native sidedhewg
2011-03-02ANDROID: cleanupdhewg
2011-03-02ANDROID: Untangle JNI interweavingdhewg
- make the startup sequence more linear - use SurfaceHolder events - get rid of the surface lock - remove unnecessary JNI calls - make the ScummVM class implement Runnable - cleanup