Commit Graph
35 Commits
Author SHA1 Message Date
Cameron Cawley 7f2d9fd0fd GRAPHICS: Split conversion.cpp into multiple files 2022-12-22 23:45:14 +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
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 4ab044a254 OPENGL: Merge both OpenGL contexts 2022-06-26 18:32:10 +02: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 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
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
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