Commit Graph

71 Commits

Author SHA1 Message Date
Cameron Cawley
460bc32cd9 OPENGL: Fix OpenGL ES v1 builds without GLAD 2022-03-07 17:40:01 +01:00
Paweł Kołodziejski
ee11c85f85 IOS: Added support for GLAD 2022-03-06 21:44:19 +01:00
Paweł Kołodziejski
710dac8029
OPENGL: Improve error handling for GL compiler by using dynamic allocated buffers. 2022-03-06 09:03:36 +01:00
Paweł Kołodziejski
786800e831
OPENGL: Skip adding suffix 'shaders' for iOS app, it has flatten tree. 2022-03-06 09:00:21 +01:00
Thunderforge
fd129ebc0c JANITORIAL: "Mac OS X" and "OS X" to "macOS" in comments
Apple's desktop operating system was formerly called "Mac OS X" and "OS X", but since 2016 it has been called "macOS" (starting with version 10.12).

Changing across all comments and documentation to use this current terminology, except in cases where the historical versions are explicitly referenced. No code changes are made; we should consider changing those in future PRs.
2022-01-29 14:15:05 +01:00
Le Philousophe
1c18c269dc ANDROID: Add GLAD support 2022-01-18 16:49:03 +01:00
Le Philousophe
a9418f8f63 GRAPHICS: Rework OpenGL detection
With GLAD it's not needed anymore to link against OpenGL libraries.
As configure knows better whether a platform supports GLAD, detection is
moved here.
To allow platforms where OpenGL should be linked at build time, the
tests are kept. Android uses them for now.
The OpenGL for Games was completely decoupled from the OpenGL for 2D
engines. This not the case anymore.
2022-01-18 16:49:03 +01:00
Le Philousophe
d9b4e457e8 ALL: Remove USE_GLES2 define
Replace it with USE_FORCED_GLES2
2022-01-18 16:49:03 +01:00
Paweł Kołodziejski
4f0e5ed3c0 GRAPHICS: Moved shader code where it's actually used 2022-01-10 03:34:48 +01:00
Paweł Kołodziejski
3dd3e76bc2 BACKENDS3D: Shader code files shouldn't be moved 2022-01-10 02:38:44 +01:00
Paweł Kołodziejski
d1d77f887e BACKENDS3D: Moved Surfaces and Texture specific backend code to backends 2022-01-10 01:21:49 +01:00
Cameron Cawley
010dfbff18 GRAPHICS: Remove manual OpenGL function loading 2021-12-30 14:57:11 +01:00
Cameron Cawley
21b0d6ded1 BACKENDS: Replace GLEW with GLAD, part of PR #3463 2021-12-30 14:53:48 +01:00
Paweł Kołodziejski
20cb0ae228
ALL: Cleanup ResidualVM -> ScummVM 2021-12-26 21:19:38 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paweł Kołodziejski
df0cf4bf44
GFX: Properly save/restore states for viewport, blending, depth, alpha 2021-12-05 10:33:06 +01:00
Paweł Kołodziejski
a63f7abcd5
GRAPHICS: Corrected subdir depth for wintermute shaders 2021-11-21 20:49:09 +01:00
Paweł Kołodziejski
400ba4017f
GRAPHICS: Allow load engine shaders from extra path 2021-11-21 20:28:20 +01:00
Cameron Cawley
4d206e5286
GRAPHICS: Clean up OpenGL defines (#3551) 2021-11-18 00:56:21 +01:00
Paweł Kołodziejski
2776f7cb79 PLAYGROUND3D: Introduce testing and playground environment for 3d renderers 2021-10-26 13:43:16 +02:00
Paweł Kołodziejski
51edb55851
GRAPHICS: Do not clear frame buffer. Let engine only do that. Fixes #12936 2021-10-01 22:31:13 +02:00
Eugene Sandulenko
797ca3568d
JANITORIAL: Fix code formatting 2021-08-20 21:17:19 +02:00
Christian Kündig
a7196e347e OPENGL EMSCRIPTEN: Add ifndef go WebGL constants not defined by emscripten 2021-08-20 21:13:49 +02:00
Christian Kündig
8af8ac2e08 OPENGL EMSCRIPTEN: clean up ifdefs, fix opengl in main menu, remove 10ms delay in GRIM main loop 2021-08-20 21:13:49 +02:00
Christian Kündig
501c7ba7aa DISTS EMSCRIPTEN: set correct datadir (fixed issue with shader loading) 2021-08-20 21:13:49 +02:00
Christian Kündig
3a323d6899 OPENGL: Replace ifdef for runtime check of GL_VERSION 2021-08-20 21:13:49 +02:00
Christian Kündig
b7a2e22b0a DISTS: New Emscripten/WebAssembly dists target
This is an initial version of the emscripten build/dist target.
Many things are still missing, see dists/emscripten/README.md for
a detailed summary of what this provides and still misses
2021-08-20 21:13:49 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
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