Commit Graph
8933 Commits
Author SHA1 Message Date
Andrea Boscarino f37489dd80 AUDIO/BACKENDS: Store output audio buffer size in Mixer 2021-12-09 22:03:40 +01:00
Cameron Cawley 424d76f0e7 OPENGL: Log more information about the GL context 2021-12-05 21:53:07 +01:00
Cameron Cawley 35e12e2491 OPENGL: Lower the minimum GLSL version to 1.10 2021-12-05 21:53:07 +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
Eugene Sandulenko fa685f83ac CLOUD: Fix overridden methods 2021-12-01 00:30:47 +01:00
Le Philousophe e7b6cff4dd ANDROID: The virtual controls now generate fake joystick events
This allows to use the keymapper and not have hardcoded keyboard events
2021-11-29 00:04:45 +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 3cb81ff31c ANDROID: Don't use unsigned int 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
Le Philousophe 7145b3c2f2 ANDROID: Add support for kSupportsArbitraryResolutions in 3D 2021-11-29 00:04:45 +01:00
Le Philousophe 20df3369b4 ANDROID: Rework 3D screen setup
All the setupScreen functions were useless as there is only one place
where it's called.
_opengl was always true.
_game_pbuf was never initialized.
2021-11-29 00:04:45 +01:00
Le Philousophe d4e9c0eca4 ANDROID: Always enable blending when drawing all the layers 2021-11-29 00:04:45 +01:00
Le Philousophe faa8986fc8 ANDROID: Display the game below the overlay menu 2021-11-29 00:04:45 +01:00
Le Philousophe e4390abd86 ANDROID: Introduce back the touch controls for 3D 2021-11-29 00:04:45 +01:00
Le Philousophe ebeb731ad7 ANDROID: Disable depth test as we don't use it in final rendering 2021-11-29 00:04:45 +01:00
Le Philousophe f0aef09021 ANDROID: Make sure glDrawArrays succeeds 2021-11-29 00:04:45 +01:00
Le Philousophe 0988f3d6d8 ANDROID: Fix OpenGL debug in 3D backend 2021-11-29 00:04:45 +01:00
Le Philousophe 9ce3b692c6 ANDROID: Reinitialize some state before stopping 3D manager
This avoids breaking the 2D graphics manager
2021-11-29 00:04:45 +01:00
Le Philousophe 881f48b24d ANDROID: Set up scissor box when resizing
We enable the scissor test when the overlay is hidden so the box must be
correctly defined
2021-11-29 00:04:45 +01:00
Le Philousophe 2a444f981e ANDROID: Fix indentation 2021-11-29 00:04:45 +01:00
Le Philousophe 7352207555 ANDROID: Free frame buffer when it's unused 2021-11-29 00:04:45 +01:00
Le Philousophe 74c12b5e5a ANDROID: Use 5551 format for overlay instead of 4444
This allows for more color (but only 1 bit of alpha)
2021-11-29 00:04:45 +01:00
Le Philousophe bb2871cd63 ANDROID: Implement modes completely to allow switching between 3D and 2D 2021-11-29 00:04:45 +01:00
Le Philousophe 5248999c95 ANDROID: Better debug of which graphic backend is used 2021-11-29 00:04:45 +01:00
Le Philousophe 5d56c1cdf0 ANDROID: Merge 3D graphics backend
Move each graphic part in backends/graphics and backends/graphics3d
2021-11-29 00:04:45 +01:00
Le Philousophe 706de81bb0 ANDROID: Switch to GLES2 2021-11-29 00:04:45 +01:00
Le Philousophe dd038d72e8 OPENGL: Fix compilation with USE_BUILTIN_OPENGL
GL_FUNC2_DEF doesn't have the same arguments as GL_FUNC_DEF
2021-11-29 00:04:45 +01:00
Paweł Kołodziejski 606294d039 BACKENDS: Restore reference PixelSurface in Android3D 2021-11-28 09:45:40 +01:00
Paweł Kołodziejski 2a7aa00c85 BACKENDS: Remove PixelBuffer leftovers 2021-11-27 21:22:09 +01:00
Cameron Cawley c0ea8e26c7 OPENGL: Fix crash when scaling small areas 2021-11-23 23:18:12 +00:00
Cameron Cawley 3bd4e8c6a4 OPENGL: Restore cursor scaling 2021-11-23 23:17:30 +00:00
Cameron Cawley a21961516a GRAPHICS: Split ScalerPluginObject into two classes 2021-11-23 23:32:58 +01:00
Eugene Sandulenko 254db11419 BACKENDS: MACOS: Trigger GMM on the touchbar icon tap 2021-11-22 23:32:13 +01:00
Torbjörn Andersson 4c11b57ca0 BACKEND: Make it possible to check for other audio track numbers than 1 2021-11-22 19:38:40 +02:00
Cameron Cawley 35adc961be Revert "OPENGL: Implement cursor scaling" (#3555)
This reverts commit 2db20b702e.
2021-11-21 12:40:28 +01:00
Cameron Cawley 2db20b702e OPENGL: Implement cursor scaling 2021-11-20 01:06:23 +01:00
Cameron Cawley fe5b87d0f1 OPENGL: Implement scaler support 2021-11-20 01:06:23 +01:00
Cameron Cawley 30c093bbd9 OPENGL: Combine TextureCLUT8 and FakeTexture 2021-11-20 01:06:23 +01:00
Eugene Sandulenko 92ec44b6ab BACKENDS: NETWORKING: Preparations for aborting the request
Looks like we need API for removing DumpFile, but that must be done
in a safe way.
2021-11-20 00:55:44 +01:00