Johannes Schickel
0063568484
OPENGL: Rename notifyContextChange to notifyContextCreate.
2014-02-11 11:10:49 +01:00
Johannes Schickel
b5ca9f5f10
OPENGLSDL: Notify OpenGL manager about context destruction.
2014-02-11 11:10:49 +01:00
Johannes Schickel
8be41e4f2c
OPENGL: Add notification function about context destruction.
2014-02-11 11:10:48 +01:00
Johannes Schickel
602d3034a9
OPENGL: Release old texture name before creating a new one.
...
This prevents any texture name leaks (and thus memory leaks) on
recreateInternalTexture calls.
2014-02-11 11:10:48 +01:00
Johannes Schickel
2fe303ce3f
Merge pull request #409 from lordhoto/rtti
...
Enable RTTI and clean up the code by exploiting the availability of dynamic_cast.
2014-01-23 15:23:12 -08:00
Johannes Schickel
0f36a56b81
OPENGL: Properly query for OpenGL errors.
...
There might be various error flags and we need to clear all of them to get
precise error results. Thus, we need to call glGetError in a loop to achieve
that.
2014-01-21 23:52:20 +01:00
Einar Johan Trøan Sømåen
6677a973c2
SDL: Avoid having SDL_SRCALPHA set even if we have alpha in the pixelformat.
2014-01-11 16:36:04 +01:00
Johannes Schickel
0c7f795c5b
SDL: Silence unused variable warning when scalers are disabled.
2014-01-07 01:47:43 +01:00
Johannes Schickel
97953ff40d
SDL: Fix return value of getDefaultGraphicsMode when scalers are disabled.
2014-01-07 01:46:28 +01:00
Willem Jan Palenstijn
fb05395ded
OPENGL: Fix texture re-allocation check
...
This fixes a crash when opening the menu in the SCI Laura Bow 2 intro.
2013-11-20 21:49:07 +01:00
Johannes Schickel
2094bd31ec
OPENGL: Fix >1Bpp mouse cursors which do not require format conversion.
2013-11-17 20:28:16 +01:00
Johannes Schickel
cfa6b1b4ae
SDL: Further small cleanup related to manager switching.
2013-10-24 00:09:17 +02:00
Johannes Schickel
ea6d38d5f3
SDL: Make activateManager/deactivateManager SdlGraphicsManager specific.
...
We can do this now that we can use virtual inheritance and dynamic_cast
because we enabled RTTI.
2013-10-24 00:06:32 +02:00
Johannes Schickel
281672e171
SDL: Let SdlGraphicsManager inherit from GraphicsManager.
2013-10-24 00:03:09 +02:00
Johannes Schickel
d34c9d5bcb
SDL: Do not require a static graphics mode list in OpenGL and SurfaceSDL.
2013-10-23 22:59:06 +02:00
Johannes Schickel
1a56b521b5
SDL: Always initialize video subsystem in initSDL.
2013-10-23 22:58:38 +02:00
Johannes Schickel
6e46e9dfaf
SDL: Clean up graphics manager switching slighty.
...
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-23 22:58:34 +02:00
Johannes Schickel
05c347fc8a
OPENGL/SDL: Add screenshot support.
2013-10-19 22:18:22 +02:00
Johannes Schickel
bb1d49ba9c
OPENGL: Limit maximum Surface size to maximum texture size.
...
This is mostly aimed at old graphics chips. For example, wjp's old laptop
only supports 1024x1024 textures but has a 1280x800 screen. Switching to
fullscreen would create a bigger overlay than supported. Now it will get
limited to an smaller resolution and then scaled too.
Alternatively we could think of tiling surfaces into textures. But then
handling scaling would be more complicated since it might result in
artifacts on texture tile borders.
2013-10-19 22:18:15 +02:00
Johannes Schickel
20e4a7f0ce
TIZEN: Adapt to new OpenGL code.
...
Thanks to Chris Warren-Smith for testing this a bit.
2013-10-19 22:17:42 +02:00
Johannes Schickel
decc013e53
OPENGL: Implement dirty rect handling.
2013-10-19 22:17:42 +02:00
Johannes Schickel
50a86463c1
SDL: Use OSD in OpenGL SDL backend.
2013-10-19 22:17:42 +02:00
Johannes Schickel
cc9c991d77
OPENGL: Add OSD support.
2013-10-19 22:17:39 +02:00
Johannes Schickel
5ce830b976
SDL: Add a OpenGL SDL backend and hook it into the SDL backend.
...
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-19 22:14:24 +02:00
Johannes Schickel
46323074e7
OPENGL: Add new generic OpenGL (ES) backend.
...
This backend is based on ideas of the old OpenGL backend, of the Android GL
backend and of the iPhone GL backend.
2013-10-19 22:12:01 +02:00
Johannes Schickel
8a6e57cba1
BACKENDS: Remove OpenGL and OpenGL SDL backend.
...
This breaks our Tizen port.
2013-10-05 00:20:02 +02:00
Johannes Schickel
9a80fa88e0
SDL: Do not set Surface::pixels directly anymore.
2013-08-03 04:14:08 +02:00
Johannes Schickel
f386e15b6f
SDL: Take advantage of Surface::getPixels.
2013-08-03 04:02:54 +02:00
Johannes Schickel
79c124842b
OPENGL: Take advantage of Surface::getPixels.
2013-08-03 04:02:53 +02:00
Johannes Schickel
b7706acb41
SDL: Prefer getBasePtr over direct Surface::pixels access.
2013-08-03 04:02:49 +02:00
Johannes Schickel
3169e07013
OPENGL: Prefer getBasePtr over direct Surface::pixels access.
2013-08-03 04:02:49 +02:00
Sven Hesse
989ea7cb56
JANITORIAL: Remove trailing whitespace
2013-07-14 19:01:47 +02:00
Johannes Schickel
be61cb669a
Merge pull request #350 from chrisws/tizen_port_1_6_0a
...
TIZEN: bada port updated to tizen
Conflicts:
backends/platform/tizen/system.cpp
2013-07-04 23:33:02 +02:00
Johannes Schickel
8d6aa77769
GUI: Cleanup EventRecorder::getSurface.
...
Formerly the function created a SDL_Surface by hand. Instead now it uses
SDL_CreateRGBSurface (which is used in the SDL backend anyway and yields
the same results).
This should fix PS3 port compilation.
2013-07-04 15:43:17 +02:00
Eugene Sandulenko
b286a6d033
RECORDER: Fix guard ifdef
2013-07-04 14:54:56 +03:00
Chris Warren-Smith
be399188c4
TIZEN: bada port updated to tizen
2013-07-03 07:04:11 +10:00
Eugene Sandulenko
f59512c47e
RECORDER: Implement Events Recorder
2013-05-17 00:18:09 +03:00
Johannes Schickel
59dde54519
Merge pull request #301 from lordhoto/c++11-playground
...
RFC: Allow use of override and nullptr. Also allow C++11 compilation.
2013-01-26 05:25:14 -08:00
Matthew Hoops
fa9dd0f6c0
OPENGL: Fix linear filtering when the texture size doesn't match the real size
2013-01-24 12:49:21 -05:00
Johannes Schickel
9f22d60adf
SDL: Silence C++ narrowing warnings.
2013-01-09 07:24:37 +01:00
Johannes Schickel
0a495f7faa
OPENGL: Silence C++11 narrowing warning.
2013-01-09 07:24:37 +01:00
Johannes Schickel
d2a536ff89
Revert "OPENGLSDL: Remove HACK in fullscreen toggle mode."
...
This reverts commit b6f7d69709 . This actually
breaks fullscreen mode cycling.
2012-12-10 19:26:13 +01:00
Johannes Schickel
89abab97e3
JANITORIAL: Remove trailing whitespaces.
...
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
8aa8cb4dd6
DINGUX: Fix "if" formatting.
2012-08-09 03:25:55 +02:00
Johannes Schickel
5521261fde
OPENGL: Fix RGBA8888 mode setup.
2012-08-09 03:09:01 +02:00
David-John Willis
4cd34733a3
OPENGL: GL_BGRA does not exist in every GLES implementation.
...
* It definately does not exist in the GLES implementations I can test with.
* Don't configure if USE_GLES is set.
2012-08-08 13:37:32 +01:00
David-John Willis
4b4ce9dc6b
GPH: Add extra call to SDL_ShowCursor(SDL_DISABLE).
...
* This is needed on the hacked SDL on the GP2X after any
call to SDL_SetVideoMode. It does not impact other GPH devices.
2012-07-31 18:59:36 +01:00
David-John Willis
d83764f055
GPH: Fix accidental commit.
...
* I did not mean to commit any of the GPH backend with the OP stuff. Cleanup of this backend will follow later.
2012-07-24 10:12:54 +01:00
David-John Willis
6f978ee78b
OPENPANDORA: Free hiddenCursor on unloadGFXMode and cleanup screen setup.
...
* Also remove some old cruft in the form of commented code.
2012-07-24 10:08:58 +01:00
David-John Willis
45354676eb
OPENPANDORA: Move SDL_CreateCursor hacklet from init to loadGFXMode.
...
* Fixes a bug that can occur on load.
2012-07-24 10:08:58 +01:00