aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl/openglsdl-graphics.h
AgeCommit message (Collapse)Author
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-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-03-17OPENGL: Move setFullscreenMode to OpenGLGraphicsManager.Johannes Schickel
2011-03-17OPENGLSDL: Handle active fullscreen mode OPENGLSDL internal.Johannes Schickel
2011-03-17OPENGL: Refactor warpMouse.Johannes Schickel
Now subclasses will not need to worry about the scaling logic themselves, but just need to implement setInternalMousePosition, which should handles setting the system's mouse coordinates.
2010-12-03OPENGLES: Fix the projection matrix and the includes.Jordi Vilalta Prat
svn-id: r54756
2010-11-29SDL: Move #include <SDL.h> into a special wrapper fileMax Horn
svn-id: r54572
2010-09-03OPENGL: Improve scaling, aspect ratio correction and display(GFX) modes.Alejandro Marzini
Now the previous aspect ratio modes are handled as GFX modes. The previous GFX modes were for scaling, but are removed now. A new 4/3 display mode added. Added Ctrl-Shift-A for backward switching through display modes, and Ctrl-Alt-<number key> for switching to a specific GFX mode. Window resizing now is available for all display modes, and will automatically change the scale factor as well as maintain the aspect ratio when needed. svn-id: r52501
2010-08-23OPENGL: Add Ctrl-Shift-Enter hotkey for backward switching fullscreen modes.Alejandro Marzini
svn-id: r52310
2010-08-20OPENGL: Fix issue with resize events generated after going out of fullscreen ↵Alejandro Marzini
mode. svn-id: r52248
2010-08-13OPENGL: Remove unnecessary best fullscreen mode detection code.Alejandro Marzini
svn-id: r52056
2010-08-03OPENGL: Prioritize desktop resolution as default fullscreen mode.Alejandro Marzini
svn-id: r51674
2010-08-02OPENGL: Improve fullscreen mode selection. Add warpMouse adjusting.Alejandro Marzini
svn-id: r51603
2010-07-31OPENGL: Switch to native resolution fullscreen as default.Alejandro Marzini
svn-id: r51560
2010-07-31OPENGL: Add support for BGR and rgb(a) reversed formats (Not available for ↵Alejandro Marzini
GLES). General cleanup and commenting. svn-id: r51559
2010-07-27OPENGL: Implement aspect ratio support and toggling. Improve fullscreen ↵Alejandro Marzini
switching. Fix cursor scaling bug. Now the hotkey Ctrl-Alt-Enter will switch between all available fullscreen modes. Alt-Enter will only switch to the best mode available, and exit fullscreen mode if already on it. The different aspect ratios can be switched with Ctrl-Alt-A. The normal mode will stretch the contents to the screen, while other modes will stretch only one dimension to the screen size, and maintain the aspect ratio for the other dimension. svn-id: r51346
2010-07-24OPENGL: Redesign blitting system. Add basics for aspect correction.Alejandro Marzini
Removed the extra surface in GLTexture. Now there are copies of the texture data in their original format (so engine can get the original data when lockScreen or grabOverlay is called). This copies will be updated when the engine calls a function that modifies the game screen/overlay, and the textures will be marked as dirty. When updating screen, the textures will be updated from the copies data if they are dirty. svn-id: r51234
2010-07-20OPENGL: Implement fullscreen mode.Alejandro Marzini
svn-id: r51049
2010-07-20OPENGL: Fix SDL OpenGL context not resizing well on Linux.Alejandro Marzini
svn-id: r51047
2010-07-19OPENGL: Add basic scaler handle.Alejandro Marzini
svn-id: r51016
2010-07-15Fixed doing OpenGL calls before a graphical context was created.Alejandro Marzini
svn-id: r50905
2010-07-15Replaced the extra SDL functions added to GraphicsManager with an ↵Alejandro Marzini
EventObserver in SdlGraphicsManager. svn-id: r50900
2010-07-13Merged from trunk, from Rev 49499 to HEADAlejandro Marzini
svn-id: r50840
2010-07-12OpenGL manager: Implemented PixelFormat functions. Implemented GFX methods. ↵Alejandro Marzini
Changed how GLTexture determines its format. svn-id: r50811
2010-07-11Moved getGraphicsManager() from OSystem_SDL to ModularBackend. Moved public ↵Alejandro Marzini
SDL graphics manager functions to graphics manager (Allowing OpenGLSdlGraphicsMaanger to be used with other SDL managers easily). Removed BaseSdlGraphicsManager. Implemented in the opengl manager basic screen functions. svn-id: r50796
2010-07-10Added BaseSdlGraphicsManager. Added GLTexture. Alejandro Marzini
svn-id: r50795
2010-07-09Added OpenGLSDLGraphicsManager.Alejandro Marzini
svn-id: r50768