Commit graph

19 commits

Author SHA1 Message Date
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
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
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
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
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