Commit graph

359 commits

Author SHA1 Message Date
Dries Harnie
d2756876b8 GRAPHICS: Implement side textures for TinyGL 2015-08-17 13:25:45 +02:00
Dries Harnie
6a85a3360f GRAPHICS: Factor out drawSideTexturesOpenGL 2015-08-17 13:25:45 +02:00
Dries Harnie
a07c8ce0ac GRAPHICS: Pass Graphics::Surface* to setSideTextures 2015-08-17 13:25:45 +02:00
Dries Harnie
b2b7a0c0cb GRAPHICS: Render side-textures with correct aspect 2015-08-14 15:24:56 +02:00
Dries Harnie
4a0738a811 GRAPHICS: Allow for flipping side textures 2015-08-14 15:24:56 +02:00
Dries Harnie
f394a6b2db GRAPHICS: Draw side textures if fullscreen 2015-08-14 15:24:56 +02:00
Dries Harnie
4c179a5584 GRAPHICS: Merge drawFrameBufferOpenGL{,Shaders} 2015-08-14 15:24:54 +02:00
Dries Harnie
36c8b3d2d5 GRAPHICS: Move common OpenGL files into graphics/opengl 2015-05-27 10:08:25 +02:00
Dries Harnie
bc80a12978 GRAPHICS: Inherit FrameBuffer from Texture 2015-05-27 10:06:16 +02:00
Johannes Schickel
ed698701d7 SDL: Fix compilation with SDL2. 2015-05-20 00:27:23 +02:00
Littleboy
40e019efd4 SDL: Restore the original video mode when unloading the Surface graphics manager
We set a custom video mode that might have a different BPP from the default. To ensure that other graphics managers will get the proper results when listing available video modes, we need to restore the initial BPP when unloading.

This fixes an issue when switching to OpenGL on Windows 8 and later. On those OSes, fullscreen OpenGL only has a 32bpp mode. It is correctly listed in the options but we call SLD_SetVideoMode later in the surface graphics manager. When we list the mode again after a switch, the internally selected BPP is still 16 and we fail to find any available fullscreen modes.
2015-05-16 01:29:15 -04:00
Dries Harnie
9e1b0f1516 BUILD: Promote GLEW to configure option
# Conflicts:
#	backends/graphics/surfacesdl/surfacesdl-graphics.cpp
2015-05-11 16:56:56 +02:00
Pawel Kolodziejski
4fe80cd669 ALL: synced with ScummVM 2015-04-19 07:43:34 +02:00
Johannes Schickel
627d766325 SDL: Add basic abstraction class for the SDL window. 2015-02-16 01:03:29 +01:00
Dries Harnie
5ab3f43b52 GRAPHICS: Disable alpha testing when drawing frame buffer to screen
Fixes #1165.
2015-02-06 10:12:18 +01:00
Johannes Schickel
8530997fff SDL: Add experimental support for SDL2.
This is based upon skristiansson's change set to make ScummVM work with SDL2.
2015-01-25 20:23:25 +01:00
Johannes Schickel
3a2db0135d SDL: Refactor WM specific functionality into SdlGraphicsManager. 2015-01-25 18:57:38 +01:00
Pawel Kolodziejski
ed6a7a067f SDL: For TinyGL only change resolution to desktop in fullscreen mode when aspect ratio is on 2014-12-30 12:57:40 +01:00
Bastien Bouclet
3973f8f539 GRAPHICS: Fix mouse scaling with fullscreen TinyGL 2014-12-04 20:27:11 +01:00
Pawel Kolodziejski
778618eacb SDL: no need additional 'if' 2014-12-04 19:08:52 +01:00
Dries Harnie
c79d49b537 GRAPHICS: Add 'fullscreen_res' option
This option allows users to specify the exact resolution to use for
full-screen games. This (hopefully) allows users with dual- or
triple-monitor setups to choose where there game goes.

This option is either:
- "desktop" (default): use the current desktop resolution
- "WWWxHHH": use the specified resolution.
2014-11-17 20:51:22 +01:00
Dries Harnie
d61102a136 GRAPHICS: Properly dispose of _frameBuffer/_subScreen 2014-11-17 20:05:07 +01:00
Dries Harnie
af46a7fe2b GRAPHICS: Fix compilation and mouse scaling without OpenGL 2014-11-17 20:05:02 +01:00
Dries Harnie
09106956f9 JANITORIAL: Silence warnings for SDL_putenv 2014-10-16 00:16:39 +02:00
Dries Harnie
86a8ea3229 GRAPHICS: Support framebuffer-esque rendering for TinyGL 2014-10-16 00:16:12 +02:00
Dries Harnie
7dda0ef439 JANITORIAL: Code style fixes 2014-10-16 00:12:08 +02:00
Dries Harnie
4695d965a0 GRAPHICS: Spawn OpenGL test window off-screen 2014-10-16 00:12:08 +02:00
Dries Harnie
44b6c63d36 GRAPHICS: Store _aspect_ratio setting as instance variable 2014-10-16 00:12:08 +02:00
Dries Harnie
f4d75d918a GRAPHICS: Probe system for GL_EXT_framebuffer_object
And disable the framebuffer functionality if it is not supported.
2014-10-16 00:12:08 +02:00
Bastien Bouclet
7a6d5fad0b SDL: Use the desktop resolution for fullscreen when the engine supports it
Conflicts:
	backends/graphics/surfacesdl/surfacesdl-graphics.cpp
2014-10-16 00:12:08 +02:00
Bastien Bouclet
ce5a954593 GRAPHICS: Scale the mouse coordinates when drawing to a framebuffer 2014-10-16 00:12:08 +02:00
Bastien Bouclet
61afd084ad GRAPHICS: Make sure the game only knows the size that's available for it to draw 2014-10-16 00:12:08 +02:00
Bastien Bouclet
bd714dbe74 GRAPHICS: Draw the overlay above the game 2014-10-16 00:12:08 +02:00
Dries Harnie
aa5f398b1d GRAPHICS: Do not use framebuffers in AmigaOS 2014-10-16 00:12:08 +02:00
Dries Harnie
2ca075c3dc GRAPHICS: Render to framebuffer [OpenGL] 2014-10-16 00:12:07 +02:00
Dries Harnie
b2bb6dc10d GRAPHICS: Render to framebuffer [OpenGLS] 2014-10-16 00:12:07 +02:00
Paweł Kołodziejski
93aaaf5a88 Merge pull request #931 from JoseJX/16Bit
OPENGL: Add another 16 bit mode.
2014-09-09 17:25:19 +02:00
Pawel Kolodziejski
6d8910ca4b SDL: added more safeguards for overlay functions to prevent crash between switching rendered after returning to launcher 2014-07-20 23:32:28 +02:00
Pawel Kolodziejski
9e4995e51f SDL: don't call error() inside setupScreen(), it will crash if debugger is used 2014-07-20 20:08:32 +02:00
Pawel Kolodziejski
c483e8f170 SDL: added safeguard for clearOverlay() if overlay is closed 2014-07-20 19:41:31 +02:00
Pawel Kolodziejski
c14d0ad8dc ALL: unify setupScreen() arguments type 2014-07-19 19:42:01 +02:00
Pawel Kolodziejski
35c2c3be77 SDL/OPENGL: added info about GLSL version 2014-07-15 13:26:44 +02:00
Pawel Kolodziejski
ed6de94106 SDL: un-hardcode some GL operations 2014-07-13 08:16:44 +02:00
Pawel Kolodziejski
d0e1f8dca5 SDL: make proper use of bytes per pixels in GFX operations 2014-07-13 07:59:24 +02:00
Pawel Kolodziejski
7dfd755d76 SDL: screen HW surface was never needed. it's disabled/ignored in some SDL ports: win/x11 and osx is emulated with very specific conditions 2014-07-13 07:49:12 +02:00
Bastien Bouclet
371faeeff1 SDL: Extract overlay rendering to different methods 2014-07-09 19:47:41 +02:00
Bastien Bouclet
7829d97ae5 SDL: Render the overlay when using OpenGL with shaders 2014-07-09 19:47:39 +02:00
Pawel Kolodziejski
9ee03adf79 OPENGL/SDL: add more debug info about OpenGL driver 2014-07-06 11:11:57 +02:00
Pawel Kolodziejski
6deec449cd SDL/OPENGL: replace warnings with debug message 2014-07-06 09:57:57 +02:00
Joseph Jezak
a4c4838d81 OPENGL: Add another 16 bit mode. 2014-06-16 08:57:10 -04:00