aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl/openglsdl-graphics.cpp
AgeCommit message (Collapse)Author
2016-03-16OPENGL: Simplify context type setting.Johannes Schickel
2016-03-16OPENGLSDL: Try to use GL(ES) context SDL2 defaults to.Johannes Schickel
2016-03-16OPENGL: Support RGB555 for OpenGL ES output.Johannes Schickel
This mode should *not* be used by any new engines/code. If someone is going to use it and says it works with the OpenGL output, please make them wear a red uniform and beam them onto a remote planet.
2016-03-16OPENGL: Allow runtime specification of OpenGL mode.Johannes Schickel
Formerly, we required that the OpenGL mode was fixed at compile time. Now we allow the code to work with whatever it is given at runtime. It is still possible to force a context type on compile time.
2016-03-16OPENGL: Remove support for ARGB8888.Johannes Schickel
This used to be used by Sword25. Since it is not supported by GLES and no engine code uses it we drop support. Hopefully, this helps people to realize they should not use that format in their engine.
2016-03-16OPENGL: Add functionality to query OpenGL functions on runtime.Johannes Schickel
This can and will be used for future extension usage support. Tizen changes have been untested.
2015-12-13OPENGLSDL: Set proper mouse emulation dimensions.Johannes Schickel
Formerly we did not initialize the mouse emulation from SdlEventSource properly. Now hopefully joysticks etc. should work fine with the SDL OpenGL output too.
2015-12-12OPENGL: Refactor screen refresh handling.Johannes Schickel
Subclasses of OpenGLGraphicsManager are now supposed to supply a refreshScreen function which handles actual screen updating (for example, buffer swapping).
2015-12-08OPENGLSDL: Request GLES1.1 context with SDL2 for GLES targets.vanfanel
2015-05-16SDL: Add TODO about fullscreen modes to OpenGL SDL code.Johannes Schickel
2015-05-15SDL: Check for NULL when listing available modes via SDL_ListModesLittleboy
It can be returned when there are no dimensions available for the currently selected pixel format
2015-02-16SDL: Add basic abstraction class for the SDL window.Johannes Schickel
2015-01-25SDL: Add experimental support for SDL2.Johannes Schickel
This is based upon skristiansson's change set to make ScummVM work with SDL2.
2015-01-25SDL: Refactor WM specific functionality into SdlGraphicsManager.Johannes Schickel
2014-10-28BACKENDS: Remove trailing whitespaceFilippos Karapetis
2014-07-04OPENGLSDL: Don't ignore events after user-initiated resizes.Alyssa Milburn
2014-06-17OPENGLSDL: Move time stamp for last video mode set after fallback mode setup.Johannes Schickel
2014-06-17OPENGLSDL: Make workaround for fast resolution changes actually work for WME.Johannes Schickel
Thanks to fuzzie for noticing this.
2014-06-10OPENGLSDL: Always ignore bad resolution changes.Alyssa Milburn
Otherwise we can end up with the wrong resolution when we make multiple resizes in quick succession.
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-11OPENGL: Rename notifyContextChange to notifyContextCreate.Johannes Schickel
2014-02-11OPENGLSDL: Notify OpenGL manager about context destruction.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-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-19SDL: Use OSD in OpenGL SDL backend.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-05BACKENDS: Remove OpenGL and OpenGL SDL backend.Johannes Schickel
This breaks our Tizen port.
2012-12-10Revert "OPENGLSDL: Remove HACK in fullscreen toggle mode."Johannes Schickel
This reverts commit b6f7d697090ca6f90d20f0f2d5661cc4c8b71bf2. This actually breaks fullscreen mode cycling.
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-05-31ALL: Correct spelling of "Mac OS X" in various placesMax Horn
2012-02-15OPENGLSDL: Remove HACK in fullscreen toggle mode.Johannes Schickel
Altering the fullscreen state will automatically force a refresh now.
2012-02-15OPENGL: Prevent access to a few more members in the SDL OpenGL code.Johannes Schickel
2012-02-15OPENGLSDL: Don't cast EventType into int for switch.Johannes Schickel
2011-12-15OPENGLSDL: Simplify the code a bit.Johannes Schickel
2011-12-15OPENGLSDL: Fix video mode initialization for 640x400 games with AR enabled.Johannes Schickel
Formerly they always used a height of 240 * scaleFactor, which would for exmaple make the games requesting a 1x scaler use a height of 240 if AR is enabled. This was a regression from b8dcd9a25eb27ef40aa5535fc83879d20db7e10c.
2011-09-23OPENGLSDL: Make fullscreen mode switching work again.Johannes Schickel
2011-08-12OPENGL: Fix aspect ratio correction behavior.Johannes Schickel
Now only 320x200 and 640x400 will result in aspect ratio correction to be used if the user requested it. This should fix some strechting in Myst/Riven.
2011-08-12OPENGLSDL: Do not change requested window size on resize.Johannes Schickel
This should help fix a lock up on window managers, which will try to force the ScummVM window to a certain size, by just requesting the same size over and over again. Now we get black borders even in windowed mode when the aspect of the window does not match the aspect of the game screen (and we are not in "normal" mode), but that is usually the same in video players too, so shouldn't be too bad.
2011-08-09SDL: Take advantage of SdlGraphicsManager.Johannes Schickel
This gets rid of the hacks, where SdlEventSource added events with custom type numbers to pass SDL_VIDEOEXPOSE and SDL_VIDEORESIZE to the graphics manager. Furthermore it get rids of the uninituitive and hard to trace way of assigning the proper mouse coordinates to mouse related events. Formerly it passed the real screen coordinates through the even dispatching api to the graphics manager (at least hopefully ;-) and let that handle creating a new event with the proper coordinates. Now instead SdlEventSource handles the proper coordinate setup itself. Since this is a behavior change and I can not test all the SDL based small devices ports this commit might break compilation for them and more serve it might also break mouse position behavior. If any of that occurs I am sorry about it.
2011-08-09SDL: Let SDL based graphics managers inherit from SdlGraphicsManager.Johannes Schickel
This also adapts port I can not test (not even the compilation). So if this breaks anything I am sorry about it.
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-19OPENGLSDL: Add FIXME about desktop resolution retrieving.Johannes Schickel
2011-06-19OPENGLSDL: Use String::format instead of sprintf.Johannes Schickel
2011-06-19OPENGLSDL: Formatting fixes.Johannes Schickel
2011-06-06I18N: Make some OSD messages translatableThierry Crozat
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-02ALL: Mark printf and various other symbols as forbiddenMax Horn
Right now, a few places in the frontend code still use printf and consorts. We mark the affected files with a FIXME for now, and add a dedicated exception for each. To be fixed! Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always enforce a compiler error