aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
AgeCommit message (Collapse)Author
2014-02-12OPENGL/SDL: Default to RGBA8888 (memory layout).Johannes Schickel
This makes sure the default mode also works for OpenGL ES contexts.
2014-02-12OPENGL: Always support RGBA8888 (memory layout).Johannes Schickel
2014-02-12OPENGL: Move RGBA8888 (logical layout) to OpenGL specific formats.Johannes Schickel
The reason here is that GL_UNSIGNED_INT_8_8_8_8 is not supported by the GLES standard. Thus we cannot use it outside OpenGL specific code paths.
2014-02-12OPENGL: Use frac_t for cursor scaling.Johannes Schickel
2014-02-12OPENGL: Simplify shake offset application.Johannes Schickel
2014-02-12OPENGL: Use GLfloat for draw cooridnates in Texture.Johannes Schickel
2014-02-12OPENGL: Use signed types for mouse coordinates.Johannes Schickel
This adjusts for the fact that our event handling also uses signed coordinates.
2014-02-12OPENGL: Properly use signed types for cursor hotspot.Johannes Schickel
2014-02-11OPENGL: Fix cursor regression when defaultFormat doesn't have an alpha channel.Johannes Schickel
2014-02-11OPENGL: Properly setup full game palette on video mode change if required.Johannes Schickel
2014-02-11OPENGL: Refactor texture instantiation.Johannes Schickel
2014-02-11OPENGL: Rename notifyContextChange to notifyContextCreate.Johannes Schickel
2014-02-11OPENGLSDL: Notify OpenGL manager about context destruction.Johannes Schickel
2014-02-11OPENGL: Add notification function about context destruction.Johannes Schickel
2014-02-11OPENGL: Release old texture name before creating a new one.Johannes Schickel
This prevents any texture name leaks (and thus memory leaks) on recreateInternalTexture calls.
2014-01-23Merge pull request #409 from lordhoto/rttiJohannes Schickel
Enable RTTI and clean up the code by exploiting the availability of dynamic_cast.
2014-01-21OPENGL: Properly query for OpenGL errors.Johannes Schickel
There might be various error flags and we need to clear all of them to get precise error results. Thus, we need to call glGetError in a loop to achieve that.
2014-01-11SDL: Avoid having SDL_SRCALPHA set even if we have alpha in the pixelformat.Einar Johan Trøan Sømåen
2014-01-07SDL: Silence unused variable warning when scalers are disabled.Johannes Schickel
2014-01-07SDL: Fix return value of getDefaultGraphicsMode when scalers are disabled.Johannes Schickel
2013-11-20OPENGL: Fix texture re-allocation checkWillem Jan Palenstijn
This fixes a crash when opening the menu in the SCI Laura Bow 2 intro.
2013-11-17OPENGL: Fix >1Bpp mouse cursors which do not require format conversion.Johannes Schickel
2013-10-24SDL: Further small cleanup related to manager switching.Johannes Schickel
2013-10-24SDL: Make activateManager/deactivateManager SdlGraphicsManager specific.Johannes Schickel
We can do this now that we can use virtual inheritance and dynamic_cast because we enabled RTTI.
2013-10-24SDL: Let SdlGraphicsManager inherit from GraphicsManager.Johannes Schickel
2013-10-23SDL: Do not require a static graphics mode list in OpenGL and SurfaceSDL.Johannes Schickel
2013-10-23SDL: Always initialize video subsystem in initSDL.Johannes Schickel
2013-10-23SDL: Clean up graphics manager switching slighty.Johannes Schickel
Sadly this also requires us to extend GraphicsManager for this SDL specific feature. However, since that's only used in the SDL backend and Tizen it should be fine for now...
2013-10-19OPENGL/SDL: Add screenshot support.Johannes Schickel
2013-10-19OPENGL: Limit maximum Surface size to maximum texture size.Johannes Schickel
This is mostly aimed at old graphics chips. For example, wjp's old laptop only supports 1024x1024 textures but has a 1280x800 screen. Switching to fullscreen would create a bigger overlay than supported. Now it will get limited to an smaller resolution and then scaled too. Alternatively we could think of tiling surfaces into textures. But then handling scaling would be more complicated since it might result in artifacts on texture tile borders.
2013-10-19TIZEN: Adapt to new OpenGL code.Johannes Schickel
Thanks to Chris Warren-Smith for testing this a bit.
2013-10-19OPENGL: Implement dirty rect handling.Johannes Schickel
2013-10-19SDL: Use OSD in OpenGL SDL backend.Johannes Schickel
2013-10-19OPENGL: Add OSD support.Johannes Schickel
2013-10-19SDL: Add a OpenGL SDL backend and hook it into the SDL backend.Johannes Schickel
The hooking code is nearly exactly the old hooking code. Only the OpenGL SDL creation has been adapted since it uses a different constructor now.
2013-10-19OPENGL: Add new generic OpenGL (ES) backend.Johannes Schickel
This backend is based on ideas of the old OpenGL backend, of the Android GL backend and of the iPhone GL backend.
2013-10-05BACKENDS: Remove OpenGL and OpenGL SDL backend.Johannes Schickel
This breaks our Tizen port.
2013-08-03SDL: Do not set Surface::pixels directly anymore.Johannes Schickel
2013-08-03SDL: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03OPENGL: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03SDL: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2013-08-03OPENGL: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2013-07-14JANITORIAL: Remove trailing whitespaceSven Hesse
2013-07-04Merge pull request #350 from chrisws/tizen_port_1_6_0aJohannes Schickel
TIZEN: bada port updated to tizen Conflicts: backends/platform/tizen/system.cpp
2013-07-04GUI: Cleanup EventRecorder::getSurface.Johannes Schickel
Formerly the function created a SDL_Surface by hand. Instead now it uses SDL_CreateRGBSurface (which is used in the SDL backend anyway and yields the same results). This should fix PS3 port compilation.
2013-07-04RECORDER: Fix guard ifdefEugene Sandulenko
2013-07-03TIZEN: bada port updated to tizenChris Warren-Smith
2013-05-17RECORDER: Implement Events RecorderEugene Sandulenko
2013-01-26Merge pull request #301 from lordhoto/c++11-playgroundJohannes Schickel
RFC: Allow use of override and nullptr. Also allow C++11 compilation.
2013-01-24OPENGL: Fix linear filtering when the texture size doesn't match the real sizeMatthew Hoops