aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
AgeCommit message (Collapse)Author
2010-07-30SDL/OPENGL: Add ability to switch between SDL and OpenGL graphics managers.Alejandro Marzini
OSystem_SDL will create a merged list of all graphics modes from SDL and OpenGL. When the user changes the graphics mode in options and restarts ScummVM should switch to that graphics mode in the corresponding graphics manager. svn-id: r51493
2010-07-30OSYSTEM: Add resetGraphicsScale() method.Alejandro Marzini
This fixes a hack for resetting the graphics scale to x1 when starting games that have a large screen size. The SDL graphics manager should now scale back to x1 without changing the current scaler in use, as well as the OpenGL graphics manager. svn-id: r51492
2010-07-30OPENGL: Fix crash on Broken Sword 2 when refreshing screen.Alejandro Marzini
I must admit that I do not know why it does crash, but it seems that updating row by row is safer and does not makes problems. svn-id: r51491
2010-07-27Fix warnings about cast removing constness, and about implict conversion ↵Max Horn
from float to int svn-id: r51352
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-27OPENGL: Add shake effect.Alejandro Marzini
svn-id: r51344
2010-07-27OPENGL: Fix cursor scaling in overlay.Alejandro Marzini
svn-id: r51339
2010-07-27OPENGL: Commenting.Alejandro Marzini
svn-id: r51338
2010-07-26Formatted spaces.Alejandro Marzini
svn-id: r51300
2010-07-26OPENGL: Implement saveScreenshot().Alejandro Marzini
svn-id: r51299
2010-07-26OPENGL: Add OSD message.Alejandro Marzini
svn-id: r51295
2010-07-26OPENGL: Do not allow changing to a not supported scale while on fullscreen.Alejandro Marzini
svn-id: r51292
2010-07-26OPENGL: Add cursor scaling.Alejandro Marzini
svn-id: r51291
2010-07-26OPENGL: Fixed alpha problem with overlay RGBA5551 format.Alejandro Marzini
svn-id: r51290
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-23OPENGL: Add basic game screen drawing. Changed Overlay PixelFormat to RGBA5551. Alejandro Marzini
svn-id: r51193
2010-07-22OPENGL: Add antialiasing, hotkey: ctrl+alt+f. Fixed minor bugs.Alejandro Marzini
svn-id: r51146
2010-07-20Fix warning about float->int conversionMax Horn
svn-id: r51051
2010-07-20Change CHECK_GL_ERROR to not take a 'call statement' as parameterMax Horn
Passing a 'call statement' to CHECK_GL_ERROR has various issues. For once, it confuses code parsers in many editors and other tools that work with C++ source directly. Moreover, this can lead to subtle bugs if a mistake is made with the definition of CHECK_GL_ERROR. It also causes incorrect warnings if CHECK_GL_ERROR is used with an "empty" call statement. svn-id: r51050
2010-07-20OPENGL: Implement fullscreen mode.Alejandro Marzini
svn-id: r51049
2010-07-19OPENGL: Fix adjustment of mouse coordinates when screen is resized and scaled.Alejandro Marzini
svn-id: r51046
2010-07-19OPENGL: Add basic scaler handle.Alejandro Marzini
svn-id: r51016
2010-07-19OPENGL: Fix issue when GFX changes.Alejandro Marzini
svn-id: r51013
2010-07-19OPENGL: Fix palette issues.Alejandro Marzini
svn-id: r51012
2010-07-18Fixed rect size when drawing npot textures. Added OpenGL attr for SDL.Alejandro Marzini
svn-id: r50979
2010-07-18Improved cursor drawing.Alejandro Marzini
svn-id: r50976
2010-07-16Added basic cursor drawing.Alejandro Marzini
svn-id: r50954
2010-07-16change post-increment to pre-increment in return value of nextHighest2(), as ↵Joost Peters
some compilers will not return the incremented value otherwise svn-id: r50946
2010-07-16Added basic screen drawing (only overlay working).Alejandro Marzini
svn-id: r50930
2010-07-15Fixed header for OS X, and added OpenGL feature to configure script. (Patch ↵Alejandro Marzini
by clone2727) svn-id: r50908
2010-07-15Optimized nextHigher2.Alejandro Marzini
svn-id: r50907
2010-07-15Fixed problem with OpenGL headers and windows.Alejandro Marzini
svn-id: r50906
2010-07-15Fixed doing OpenGL calls before a graphical context was created.Alejandro Marzini
svn-id: r50905
2010-07-15Replaced nextHigher2, so CHAR_BIT define is not needed.Alejandro Marzini
svn-id: r50904
2010-07-13Check if USE_OPENGL is defined for compiling OpenGL code.Alejandro Marzini
svn-id: r50842
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-11Fix compile on Mac OS X.Matthew Hoops
svn-id: r50801
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-07Implemented CHECK_GL_ERROR macro for debugging OpenGL calls.Alejandro Marzini
svn-id: r50731
2010-07-05Base class for OpenGL graphics manager.Alejandro Marzini
svn-id: r50668