Commit Graph
43 Commits
Author SHA1 Message Date
Laurent Merckx 373f872dfa GRAPHICS: Fix no shader error on Raspberry PI 2020-11-09 17:41:26 +01:00
Paweł Kołodziejski 51d25636bc GRAPHICS: Missed one opengl ifdef 2020-10-14 08:57:23 +02:00
Paweł Kołodziejski 9abb3f5111 BACKENDS: Another attempt to fix opengl flags 2020-10-14 07:45:56 +02:00
Paweł Kołodziejski e3cd0da0df BACKENDS: Attempt to fix buildbot targets 2020-10-14 07:06:18 +02:00
BeWorld cab7cd49c4 MORPHOS : Fixed for int vs int32 types for AmigaOS/MorphOS (#2510)
MORPHOS : Fixed int to int32 and some functions not available on AmigaOS/MorphOS
2020-10-11 18:24:36 +02:00
Paweł Kołodziejski 7bcce1fb7a GRAPHICS: Add missing OpenGL ifdef guard 2020-10-11 09:01:45 +02:00
Paweł Kołodziejski 264f6f037b ALL: Separate USE_OPENGL and USE_OPENG_GAME. Exclude WME3D for GLES2 for now. 2020-10-10 14:12:07 +02:00
Paweł Kołodziejski 35b9cccbde ALL: Merge ResidualVM 2020-10-09 19:44:13 +02:00
Pawel Kolodziejski a8b53f8f21 ALL: Avoid class names clashing with ScummVM classes 2020-09-28 18:47:10 +02:00
Gunnar Birke 36af129eaa WINTERMUTE: Add wintermute shader directory to search manager 2020-08-10 11:24:28 +02:00
Dries Harnie dbe9763af3 GRAPHICS: Define a ROUND macro instead of overriding round
Modern OpenGL implementations emit
>  "0:4(15): error: A shader cannot redefine built-in function `round'
>  in GLSL ES 1.00"

This commit uses a ROUND macro instead, which should not trigger this
error.
2019-12-17 10:18:17 +01:00
Bastien Bouclet ef0155a50c OPENGL: Allow the window to be resized
Fixes #1500.
2018-10-13 18:33:01 +02:00
Laurent Merckx 8b015b65bd SDL: Support fullscreen on RPI (#1398)
Uses 24 a depth buffer if possible on OpenGL ES
2018-02-20 06:31:46 +01:00
Bastien Bouclet 6a34e5553d GRAPHICS: Fix legacy OpenGL surface renderer incorrect y coordinates
Fixes #1360.
2017-09-19 06:11:09 +02:00
Bastien Bouclet d645bbcefd OPENGL: Clean up the overlay pixel format code 2017-08-28 21:46:02 +02:00
Bastien Bouclet 08fd76686d Merge pull request #1256 from bgK/sdl-split
SDL: Split the OpenGL code to a separate GraphicsManager
2016-07-14 12:06:30 +02:00
Bastien Bouclet 7a52f226e7 OPENGL: Modify SurfaceRenderer to allow alpha blending 2016-07-14 12:02:55 +02:00
Bastien Bouclet b718d86a6f OPENGL: Add TiledSurface to be used for drawing large 2D surfaces 2016-07-14 12:02:55 +02:00
Bastien Bouclet 6b266a9179 OPENGL: Unbind the active program when destroying the active shader
Fixes switching renderers from Shaders to OpenGL in Grim with SDL2
2016-07-12 06:29:32 +02:00
Bastien Bouclet d7b7bad1dc ALL: Fix warnings when building with Apple's CLang 2016-06-14 08:24:02 +02:00
Bastien Bouclet 9c0950f76c SDL: Fix build for platforms with incomplete OpenGL headers 2016-06-12 20:08:05 +02:00
Bastien Bouclet fe4aac9ada Merge pull request #1250 from bgK/wip-multisampling
Multisampling for framebuffers
2016-06-12 19:53:14 +02:00
Bastien Bouclet 5ae1e3a01c OPENGL: Honor the configured MSAA samples for FBOs 2016-06-11 13:12:37 +02:00
Dries Harnie dc3e371dc0 OPENGL: Grab pointers for glBlitFramebuffers and
glRenderbufferStorageMultisample.
2016-06-11 13:12:37 +02:00
Dries Harnie be5202d11d OPENGL: Multisampling for framebuffers (SDL) 2016-06-11 13:12:37 +02:00
Bastien Bouclet 8f20218a2b OPENGL: Detect FBO multisample support 2016-06-11 13:12:37 +02:00
Bastien Bouclet 5419e37196 GRAPHICS: Fix the GLSL compat shaders when using GLES2 with SDL 2016-06-11 10:33:35 +02:00
Pawel Kolodziejski 4e47c03a64 OPENGL: add checks for case when glGetString return NULL 2016-03-10 05:55:32 +01:00
Pawel Kolodziejski fcc19fa389 OPENGL: attempt to fix compilation 2016-02-21 21:19:16 +01:00
Bastien Bouclet ee1784b2f2 OPENGL: Add a SurfaceRenderer class
To be used to draw textures as 2D surfaces in the current viewport
2016-02-06 08:53:41 +01:00
Bastien Bouclet d8743a49bb OPENGL: Add 16bits pixel format support to the Texture class 2016-02-06 08:53:41 +01:00
Bastien Bouclet 22006859f9 OPENGL: Fix building the SDL backend with USE_GLES2 2016-02-06 08:53:41 +01:00
Bastien Bouclet b5dcf5d4bc OPENGL: Select the shader version string at runtime 2016-02-06 08:02:50 +01:00
Bastien Bouclet 1a4b1d5dec OPENGL: Always use GLSL 120 when using desktop GL 2016-02-06 08:02:50 +01:00
Bastien Bouclet d0eea3b008 OPENGL: Make include gards consistent 2016-02-06 08:02:50 +01:00
Bastien Bouclet ed38c20cce OPENGL: Add a Context class used to describe the active OpenGL context 2016-02-06 08:02:50 +01:00
Bastien Bouclet 482255032e OPENGL: Make the FrameBuffer and Texture classes destructors virtual 2016-02-06 08:02:50 +01:00
Bastien Bouclet 6c78bcebe4 GRAPHICS: Move opengles2 files to the opengl folder 2016-02-06 08:02:49 +01:00
Bastien Bouclet 4c2c1b4d36 GRAPHICS: Set the namespace for OpenGL classes to OpenGL 2016-02-06 08:02:27 +01:00
Dries Harnie 12d38bdfac GRAPHICS: Change default wrapping behavior for textures
to GL_CLAMP_TO_EDGE.
2015-08-18 14:21:03 +02:00
Dries Harnie e6ba906656 GRAPHICS: Use NPoT textures if supported 2015-08-18 14:21:03 +02:00
Dries Harnie f843190f69 GRAPHICS: Convert images to RGBA in Graphics::Texture 2015-06-05 09:56:41 +02:00
Dries Harnie 36c8b3d2d5 GRAPHICS: Move common OpenGL files into graphics/opengl 2015-05-27 10:08:25 +02:00