aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
AgeCommit message (Collapse)Author
2011-03-01OPENGL(SDL): Use the whole window/screen size for the overlay.Johannes Schickel
This makes the overlay looking nicer in fullscreen mode.
2011-02-26OPENGL: Fix 16bit cursorsdhewg
2011-02-25OPENGL: Reset the scale on mode changesdhewg
Resets defaultTo1XScaler when going back to the launcher
2011-02-25OPENGL: Cleanup cursor refresh code a bit.Johannes Schickel
2011-02-25OPENGL: Implement support for non CLUT8 cursor.Johannes Schickel
Currently all the cursor data is converted to RGBA8888 to allow for easy colorkeying.
2011-02-25OPENGL: Add support for RGB555 output format.Johannes Schickel
2011-02-24OPENGL: Set _gameTexture to 0 after deleting it.Johannes Schickel
This fixes a segfault when trying to use the OpenGL backend with 16bpp games, however this does not make Last Express nor Loom PC-Engine Japanese work for me. They now fail with a "Pixel format not supported" error.
2011-02-24OPENGL: Prefer single operation texture updates.Johannes Schickel
When doing glTexSubImage2D we do not need to assure that the source data has the same width as the texture when we want to update the data, we just need to assure that the width * Bpp cound matches the pitch.
2011-02-24OPENGL: Properly setup pixel data alignment.Johannes Schickel
If we do not do this, we might end up with a default alignment of 4, which will fail (as in the graphics will be messed up) in case the screen resolution is not divisible by 4. Thanks to digitall for noticing this problem and finding out about GL_UNPACK_ALIGNMENT.
2011-02-19Merge branch 'osystem-palette' of https://github.com/lordhoto/scummvm into ↵Johannes Schickel
master Conflicts: backends/platform/android/android.cpp engines/sci/graphics/screen.cpp engines/sci/graphics/transitions.cpp
2011-02-19OPENGL: Get rid of adjustMouseEvent.Johannes Schickel
Rather than that I introduced a function which converts hardware screen coordinates to overlay / game screen coordinates. The logic which converts mouse movement events with hardware screen coordinates to overlay / game screen coordinates is now inside notifyEvent. This is still broken design, since one should not abuse an observer for that.
2011-02-19OPENGL: Fix documentation of OpenGLGraphicsManager::MousePos.Johannes Schickel
2011-02-14OPENGL: Adapt the OpenGL module to the setPalette/grabPalette RGBA->RGB change.Johannes Schickel
2011-02-07COMMON: OSystem now has a PaletteManagerMax Horn
svn-id: r55806
2011-01-08OPENGL: Skip empty texture updates.Jordi Vilalta Prat
This fixes some hangs when calling the GMM while running Fascination. svn-id: r55166
2010-12-08OPENGL: Fix OSD support by only updating the OSD texture in internUpdateScreen.Johannes Schickel
This actually still has the drawback that if one calls OSystem::updateScreen from the sound thread that it might crash. Hopefully no code does this though... svn-id: r54830
2010-12-08OPENGL: Disable OSD support for now.Johannes Schickel
I added an comment explaining why OSD is broken currently. The basic problem is that OpenGL is not thread safe, thus in case we try to display any message on the OSD from the sound thread for example it will result in crashes. svn-id: r54829
2010-12-03OPENGLES: Fix the projection matrix and the includes.Jordi Vilalta Prat
svn-id: r54756
2010-12-03OPENGL: Some slight formatting fixes.Jordi Vilalta Prat
svn-id: r54755
2010-12-02OPENGL: Fix compilation when OpenGL error checks are enabled.Jordi Vilalta Prat
svn-id: r54734
2010-12-02OPENGL: Fixed flawed include file logic in gltexture.h, when USE_GLES is ↵Filippos Karapetis
defined (a regression from r54704) svn-id: r54732
2010-12-01BACKENDS: Simplify the inclusion of gl.h. SDL has already simplified it for ↵Filippos Karapetis
us :) svn-id: r54704
2010-12-01BACKENDS: Use SDL_opengl.h instead of the nonstandard glext.h to ensure ↵Filippos Karapetis
OpenGL 1.2 compatibility in Windows systems svn-id: r54700
2010-12-01Fix mingw compile.Travis Howell
svn-id: r54696
2010-12-01OpenGL: remove unnecessary glext.h includeJoost Peters
svn-id: r54695
2010-11-29BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefsMax Horn
svn-id: r54573
2010-11-28OPENGL: Fix OpenGL on Mac OS XMax Horn
svn-id: r54545
2010-11-28OPENGL: Modify source files to force recompilationMax Horn
svn-id: r54542
2010-11-28OPENGL: cleanupMax Horn
svn-id: r54520
2010-09-03SDL/OPENGL: Fix backend initialization when building with ENABLE_VKEYBD.Alejandro Marzini
svn-id: r52503
2010-09-03OPENGL: Fix enable aspect ratio feature.Alejandro Marzini
svn-id: r52502
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-13OPENGL: Remove unnecessary aspect ratio corrections, and add "Original Size" ↵Alejandro Marzini
correction. Rename _transactionDetails.needHotswap to _transactionDetails.needRefresh. svn-id: r52054
2010-08-12OPENGL: Fix problem when switching between SDL and OpenGL Graphics Managers.Alejandro Marzini
svn-id: r52025
2010-08-06OPENGL: Add 5/3 and 5/4 aspect ratio corrections.Alejandro Marzini
svn-id: r51806
2010-08-05OPENGL: Improve aspect ratio correction mode selection.Alejandro Marzini
svn-id: r51752
2010-08-03OPENGL: Refresh OpenGL textures on all loadGFX() calls.Alejandro Marzini
OpenGL context may be destroyed after calling SDL_SetVideoMode, so it is better to always recreate the textures. svn-id: r51675
2010-08-02OPENGL: Save last fullscreen mode size to config file.Alejandro Marzini
svn-id: r51604
2010-08-01OPENGL: By default only enable None, Conserve and 4/3 aspect ratio corrections.Alejandro Marzini
svn-id: r51599
2010-08-01Fix warnings.Alejandro Marzini
svn-id: r51592
2010-08-01OPENGL: Remove use of floats for aspect ratio correction. Improved ↵Alejandro Marzini
fullscreen toggling default mode selection. Floats can lead to calculation errors because, now uints are used and aspect ratio values are handled with a x 10000 scale. When entering fullscreen, it will be looked for the fullscreen mode with the smallest metric that mantains the game screen aspect ratio. svn-id: r51563
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-31OPENGL: For GLES, add glOrthox and do not use GL_BGR.Alejandro Marzini
svn-id: r51552
2010-07-31Add OpenGL dependencies to MinGW configure.Alejandro Marzini
svn-id: r51551
2010-07-31OPENGL: Fix texture updating.Alejandro Marzini
svn-id: r51549
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