Commit Graph
104 Commits
Author SHA1 Message Date
Cameron Cawley 138a983d80 COMMON: Refactor VSync handling to match the other options 2023-01-16 18:09:53 +01:00
Cameron Cawley 7f2d9fd0fd GRAPHICS: Split conversion.cpp into multiple files 2022-12-22 23:45:14 +01:00
Paweł Kołodziejski 18f75444b2 BACKENDS3D: Revert my changes to Framebuffer viewport state.
It's useless for backend code flow.
Instead move into UpdateScreen() as short time solution.
2022-11-15 23:23:50 +01:00
Le Philousophe 87bad2cc7d COMMON: Allow games to use overlay for something else than GUI
This can be used for subtitles without changing the mouse coordinates.
2022-11-12 19:12:05 +01:00
Cameron Cawley 252d9f20e3 OPENGL: Fix crash in forced GLES2 mode 2022-09-24 09:14:08 +02:00
Cameron Cawley 350e21ba58 SDL: Better workaround for enabling the system cursor 2022-08-26 21:47:49 +01:00
Cameron Cawley 4f8962bff9 OPENGL3D: Restore support for aspect ratio correction 2022-08-26 21:47:11 +01:00
Le Philousophe a13d0879f2 ANDROID: Convert mouse coordinates between screen ones and virtual ones
In 2D graphical backend it's handled in the WindowedGraphicsManager
which we inherit from through OpenGLGraphicsManager
2022-08-15 20:19:08 +02:00
Le Philousophe 98c306376f OPENGL: Merge both OpenGL shaders objects 2022-06-26 18:32:10 +02:00
Le Philousophe 4ab044a254 OPENGL: Merge both OpenGL contexts 2022-06-26 18:32:10 +02:00
Paweł Kołodziejski e9dc4afe89 BACKENDS: SDL3D: Put debug messages to specified level 2022-06-19 08:08:32 +02:00
Cameron Cawley 60c7372198 OPENGL3D: Make use of the active rect provided by WindowedGraphicsManager 2022-06-18 19:33:27 +01:00
Le Philousophe 57e27dcf12 ANDROID: Let user customize its preferred touch modes
There are 3 settings: in menus, in 2D games, in 3D games
2022-06-14 00:08:04 +03:00
Le Philousophe 31caab89e1 SDL: Make sure a context exists when calling SDL_GL_GetAttribute 2022-05-28 15:49:54 +02:00
Le Philousophe c9b4949746 AMIGAOS: Improve shader compatibility
OGLES2 doesn't support uniform booleans so we use macros to make it use
integers in this case. For other platforms, this change should be a
noop.
OGLES2 doesn't like float suffix for constants, remove it as well.
2022-04-17 12:34:38 +02:00
Le Philousophe 7061b4109e AMIGAOS: Remove outdated ifdefs
We now link with OpenGL dynamically so symbols are provided by GLAD.
If it's not supported pointer will be null.
OGLES2 should support these functions so they must be removed
2022-04-17 12:34:38 +02:00
Le Philousophe 1c18c269dc ANDROID: Add GLAD support 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
Cameron Cawley a14c5a4a53 SDL: Replace gfx_mode with scale_factor in initSizeHint() 2022-01-16 13:22:37 +02: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 27773309b7 BACKENDS: Corrected include paths for Android 2022-01-10 02:23:17 +01:00
Paweł Kołodziejski f24bffc8cf BACKENDS: Drop glBegin/glEnd 2022-01-10 02:13:40 +01:00
Paweł Kołodziejski d1d77f887e BACKENDS3D: Moved Surfaces and Texture specific backend code to backends 2022-01-10 01:21:49 +01:00
Paweł Kołodziejski d054f7785c GRAPHICS3D: MorphOS special code case is no longer needed 2022-01-03 14:29:32 +01:00
Le Philousophe 92dd9c0911 ANDROID: Keep last touch mode when displaying overlay 2022-01-02 17:45:32 +01:00
Le Philousophe b6c0a1c6c8 ANDROID: Refactor touch controls to be graphics backend agnostic 2022-01-02 17:45:32 +01:00
Le Philousophe 7b36b56925 ANDROID: Rework Android 3D texture interfaces 2022-01-02 17:45:32 +01:00
Cameron Cawley 21b0d6ded1 BACKENDS: Replace GLEW with GLAD, part of PR #3463 2021-12-30 14:53:48 +01:00
Cameron Cawley 43d87cb029 BACKENDS: Support detecting OpenGL ES 2 at runtime for 3D games 2021-12-30 13:57:50 +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
Le Philousophe 6aea08860f ANDROID: Chooose the best surface formats offered by the system 2021-12-16 00:09:25 +01:00
Le Philousophe 24565a5bd8 ANDROID: Rework 3D GLES textures
The abstraction added will allow the backend to allow surface
customization
2021-12-16 00:09:25 +01:00
Le Philousophe 35fff1ab79 ANDROID: Add cursor scaling to 3D backend 2021-12-16 00:09:25 +01:00
Le Philousophe 8094b77d21 ANDROID: Simplify 3D backend 2021-12-16 00:09:25 +01:00
Le Philousophe 04e05e7a5f ANDROID: Sync 3D backend HiDPI with 2D one 2021-12-05 16:43:30 +01:00
Le Philousophe f12409d321 ANDROID: Simplify texture setup in 3D
There is no specific format for the game texture, use 16-bit one
2021-12-05 16:43:30 +01:00
Le Philousophe 30baf0e599 ANDROID: Unbind everything to ensure engine don't use our stuff 2021-12-05 16:43:30 +01:00
Le Philousophe 05e5e10dec ANDROID: Rework 3D backend to not mangle game GL state
We don't need scissor test in 3D, it was a leftover from 2D.
Don't split code in multiple functions when it's not needed.
2021-12-05 16:43:30 +01:00
Le Philousophe 91cf76aa64 ANDROID: Reset the framebuffer when initializing back the surfaces
It's needed when application is paused and resumed
2021-12-05 16:43:30 +01:00
Paweł Kołodziejski 948923c62c GRAPHICS3D: Move viewport change to save/restore surface, framebuffer 2021-12-05 10:36:10 +01:00
Le Philousophe d6f37a161b ANDROID: Remove again updateEventScale
It was removed in android in #1695 but not in android3d in ResidualVM.
2021-11-29 00:04:45 +01:00
Le Philousophe 5b62141b8f ANDROID: Fix code style 2021-11-29 00:04:45 +01:00
Le Philousophe 2bb9d5f3df ANDROID: Remove outdated piece of code 2021-11-29 00:04:45 +01:00
Le Philousophe afcb0c54e7 ANDROID: Use real size instead of magical constant 2021-11-29 00:04:45 +01:00
Le Philousophe 40a036ac0b ANDROID: Use nullptr where appropriate 2021-11-29 00:04:45 +01:00
Le Philousophe 8321056107 ANDROID: Remove superfluous asserts
new never returns nullptr, it throws exception or aborts
2021-11-29 00:04:45 +01:00
Le Philousophe 8a6f74b5a1 ANDROID: Remove global variables 2021-11-29 00:04:45 +01:00
Le Philousophe 2792b474e1 ANDROID: Remove superfluous ifdefs 2021-11-29 00:04:45 +01:00