Commit Graph
570 Commits
Author SHA1 Message Date
Filippos Karapetis 5990753271 OPENGL: Fixed flawed include file logic in gltexture.h, when USE_GLES is defined (a regression from r54704)
svn-id: r54732
2010-12-02 09:09:53 +00:00
Filippos Karapetis e5f2c235d3 BACKENDS: Simplify the inclusion of gl.h. SDL has already simplified it for us :)
svn-id: r54704
2010-12-01 15:15:42 +00:00
Filippos Karapetis 1a2b512ff0 BACKENDS: Use SDL_opengl.h instead of the nonstandard glext.h to ensure OpenGL 1.2 compatibility in Windows systems
svn-id: r54700
2010-12-01 14:54:13 +00:00
Travis Howell e2282e4816 Fix mingw compile.
svn-id: r54696
2010-12-01 11:29:26 +00:00
Joost Peters 084ea7fc4a OpenGL: remove unnecessary glext.h include
svn-id: r54695
2010-12-01 09:53:43 +00:00
Johannes Schickel ff7357cfc5 NULL: Remove extra semicolons in null-graphics.h
svn-id: r54587
2010-11-29 19:28:19 +00:00
Johannes Schickel f199761756 SDL: Slight formatting fix.
svn-id: r54583
2010-11-29 18:33:46 +00:00
David Turner 0e90a2a808 BACKENDS: Close Memory Leak of Mouse Surfaces in SDL Graphics Backend
svn-id: r54579
2010-11-29 18:16:11 +00:00
Max Horn 4bed2b3ff5 SDL: Trying to cleanup the FORBIDDEN_SYMBOL situation
svn-id: r54575
2010-11-29 16:35:29 +00:00
Max Horn df05ed1a46 BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefs
svn-id: r54573
2010-11-29 16:18:43 +00:00
Max Horn 4e0e406181 SDL: Move #include <SDL.h> into a special wrapper file
svn-id: r54572
2010-11-29 16:16:50 +00:00
Max Horn 1ef8d5e38a GP2X: More compilation fixes
svn-id: r54569
2010-11-29 10:43:14 +00:00
Max Horn a162ff18bc SDL: Various more SdlEventSource related fixes
svn-id: r54553
2010-11-28 22:04:39 +00:00
Max Horn ce119b9540 OPENGL: Fix OpenGL on Mac OS X
svn-id: r54545
2010-11-28 18:57:36 +00:00
Max Horn ee4510aed4 OPENGL: Modify source files to force recompilation
svn-id: r54542
2010-11-28 18:10:40 +00:00
Max Horn 8399232a43 DINGUX: More compilation fixes
svn-id: r54541
2010-11-28 18:10:12 +00:00
Max Horn 1c3ba8bc40 LINUXMOTO: More compilation fixes
svn-id: r54540
2010-11-28 18:09:43 +00:00
Max Horn bed8c34a87 DINGUX: Compilation fixes
svn-id: r54533
2010-11-28 17:18:08 +00:00
Max Horn 69092836bd LINUXMOTO: Compilation fixes
svn-id: r54532
2010-11-28 17:17:41 +00:00
Willem Jan Palenstijn 66cb595f22 SDL: re-enable unicode after graphics init
svn-id: r54531
2010-11-28 17:12:43 +00:00
Max Horn d5840b72f9 DINGUX: Attempt to fix the new code for this backend
It seems in the gsoc2010-opengl branch, the dingux port was not anymore
updated at some point, so some changes that were made in general did not
make it till here. This is my attempt to fix at least the most obvious
problems, but without being able to compile it, all these changes should
be very carefully reviewed.

svn-id: r54522
2010-11-28 14:57:59 +00:00
Max Horn a5ffdcf6cf OPENGL: cleanup
svn-id: r54520
2010-11-28 14:57:26 +00:00
Max Horn 7760077cf5 Merging the gsoc2010-opengl branch
svn-id: r54518
2010-11-28 14:56:31 +00:00
Fabio Battaglia 74a53df11b DINGUX: fix compilation for the opengl branch
Moved events related code to backends/events/dinguxsdl/*
and move graphics related code to backends/graphics/dinguxsdl/*
Subclass OSystem_POSIX instead of OSystem_SDL

svn-id: r53730
2010-10-23 09:30:26 +00:00
Johannes Schickel 34302765ca OPENGL: Get rid of one ugly cast.
svn-id: r53435
2010-10-13 15:42:53 +00:00
Johannes Schickel a2b96a2516 OPENGL: Replace SdlEventManager by SdlEventSource.
Formerly SdlEventManager was a subclass of DefaultEventManager but did not
really have anything in common with the idea of our EventManager interface.
Now I made a new object SdlEventSource which only subclasses EventSource
and which is responsible for obtaining events from SDL (and processing them).

svn-id: r53433
2010-10-13 15:42:16 +00:00
Johannes Schickel 75e8452b6e OPENGL: Merged from trunk, from rev 52105 to 53396.
This includes an rather hacky attempt to merge all the recent gp2x backend
changes into the branch. I suppose the gp2x backend and probably all new
backends, i.e. gph, dingux etc., might not compile anymore.

Since I have no way of testing those it would be nice if porters could look
into getting those up to speed in this branch.

svn-id: r53399
2010-10-13 03:57:44 +00:00
Alejandro Marzini 9136724110 SDL/OPENGL: Fix backend initialization when building with ENABLE_VKEYBD.
svn-id: r52503
2010-09-03 04:23:01 +00:00
Alejandro Marzini 30cbd35e74 OPENGL: Fix enable aspect ratio feature.
svn-id: r52502
2010-09-03 03:47:05 +00:00
Alejandro Marzini 19bf2b9eb6 OPENGL: Improve scaling, aspect ratio correction and display(GFX) modes.
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-09-03 03:23:46 +00:00
Alejandro Marzini 27beca0e8c OPENGL: Add Ctrl-Shift-Enter hotkey for backward switching fullscreen modes.
svn-id: r52310
2010-08-23 20:28:04 +00:00
Alejandro Marzini 942e104e33 OPENGL: Fix issue with resize events generated after going out of fullscreen mode.
svn-id: r52248
2010-08-20 22:56:13 +00:00
Alejandro Marzini 503578ac10 OPENGL: Restrict window scaling if current desktop resolution is not big enough.
svn-id: r52057
2010-08-13 05:26:23 +00:00
Alejandro Marzini 610f041930 OPENGL: Remove unnecessary best fullscreen mode detection code.
svn-id: r52056
2010-08-13 05:16:42 +00:00
Alejandro Marzini d84428e678 OPENGL: Disable resizable window when not using an aspect ratio correction.
svn-id: r52055
2010-08-13 05:00:38 +00:00
Alejandro Marzini a3711160ef OPENGL: Remove unnecessary aspect ratio corrections, and add "Original Size" correction. Rename _transactionDetails.needHotswap to _transactionDetails.needRefresh.
svn-id: r52054
2010-08-13 04:48:58 +00:00
Alejandro Marzini 58d256c15e SDL: Make use of SDL_BACKEND instead of platform specific defines.
svn-id: r52029
2010-08-12 06:30:26 +00:00
Alejandro Marzini a16ca00113 OPENGL: Fix problem when switching between SDL and OpenGL Graphics Managers.
svn-id: r52025
2010-08-12 04:12:37 +00:00
Alejandro Marzini 7b898648bc OPENGL: Add 5/3 and 5/4 aspect ratio corrections.
svn-id: r51806
2010-08-06 21:39:54 +00:00
Alejandro Marzini f97809a9a6 OPENGL: Improve aspect ratio correction mode selection.
svn-id: r51752
2010-08-05 06:20:44 +00:00
Alejandro Marzini 7968374e27 OPENGL: Fix compiling for GLES.
svn-id: r51721
2010-08-04 04:23:00 +00:00
Alejandro Marzini 498c17655d OPENGL: Refresh OpenGL textures on all loadGFX() calls.
OpenGL context may be destroyed after calling SDL_SetVideoMode, so it is better to always recreate the textures.

svn-id: r51675
2010-08-03 02:30:36 +00:00
Alejandro Marzini 5439b173b3 OPENGL: Prioritize desktop resolution as default fullscreen mode.
svn-id: r51674
2010-08-03 02:10:55 +00:00
Alejandro Marzini d542648a89 OPENGL: Add missing header.
svn-id: r51605
2010-08-02 03:38:35 +00:00
Alejandro Marzini 905ec1104e OPENGL: Save last fullscreen mode size to config file.
svn-id: r51604
2010-08-02 03:17:12 +00:00
Alejandro Marzini 4d8f8195b8 OPENGL: Improve fullscreen mode selection. Add warpMouse adjusting.
svn-id: r51603
2010-08-02 03:03:28 +00:00
Alejandro Marzini 41204282ec OPENGL: By default only enable None, Conserve and 4/3 aspect ratio corrections.
svn-id: r51599
2010-08-01 22:53:18 +00:00
Alejandro Marzini b816849c78 Fix warnings.
svn-id: r51592
2010-08-01 20:49:13 +00:00
Lars Persson 2e55bcf383 SYMBIAN platform. Correct building of SDL refacturing for Symbian.
svn-id: r51587
2010-08-01 19:40:46 +00:00
Alejandro Marzini 7f8e7fc29d OPENGL: Remove use of floats for aspect ratio correction. Improved 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-08-01 02:26:20 +00:00