Commit Graph
46 Commits
Author SHA1 Message Date
Le Philousophe 1e4696f6d0 OPENGL: Rework renderer selection code
Add a class to group all renderer related (static) functions.
This allows to have getBestMatchingAvailableType inline in all engines.

The matching code is now shared between all engines but allows
customization for engines needing it (Grim, WME3D).

The new code takes runtime availability of features to select the
best renderer.
It avoid crashes when user choosed OpenGL but GLES2 is used.
2022-04-03 22:17:19 +02: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
Cameron Cawley f01c5321c4 STARK: Don't exit immediately if modded assets are enabled but not supported 2021-12-20 23:18:36 +01:00
Paweł Kołodziejski 9e72366b5f ENGINES: Allow to build without TINYGL enabled 2021-12-05 00:08:53 +01:00
Paweł Kołodziejski bd72851697 STARK: Preliminary support for software renderer 2021-11-20 17:33:57 +01:00
Cameron Cawley 4d206e5286 GRAPHICS: Clean up OpenGL defines (#3551) 2021-11-18 00:56:21 +01:00
Paweł Kołodziejski 2606eb5a33 STARK: Improve messages while creating renderer. 2021-10-28 11:06:55 +02:00
Paweł Kołodziejski 565cb7c7cb STARK: Added initial TinyGL renderer 2021-10-20 22:26:49 +02:00
Max Horn b7e6d61669 JANITORIAL: Fix compiler warnings about unused code 2021-08-07 10:46:14 +02:00
Cameron Cawley bb16fae4b4 STARK: Provide a more descriptive error when TinyGL is selected 2021-07-08 15:00:41 +02:00
Cameron Cawley 2b5d75f830 STARK: Allow using the OpenGL 1.x renderer when shaders are unavailable 2021-07-08 15:00:41 +02:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Paweł Kołodziejski 045918c38c STARK: Added initial non-shader OpenGL renderer. Lights needs to be fixed. 2021-04-04 01:00:30 +02:00
Paweł Kołodziejski d7500078ff STARK: Attempt to fix non shader target 2020-10-19 11:40:27 +02:00
Paweł Kołodziejski 749c3ec9e1 ENGINES: If backend is not capable support opengl in game do not try create opengl renderer 2020-10-19 06:52:31 +02:00
Paweł Kołodziejski a37173807f CONFIGURE: More work on opengl flags 2020-10-14 18:37:17 +02:00
Cameron Cawley 03e8f0ed2d ENGINES: Remove code for toggling fullscreen mode (#2523)
* GRIM: Remove code for toggling fullscreen mode

* MYST3: Remove code for toggling fullscreen mode

* STARK: Remove code for toggling fullscreen mode

* ENGINES: Remove the fullscreen argument from initGraphics3d()
2020-10-14 07:49:28 +02:00
Paweł Kołodziejski 42d55b2436 ENGINES: Drop accel3d param for initGraphics3d() 2020-10-13 22:49:07 +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
Pawel Kolodziejski d8f2040dba ALL: Drop setupScreen API, use new initGraphics3d from engine API.
Enabled system API for begin/end gfx transactions, initSize, setGraphicsMode.
Function setGraphicsMode will use optional params to trigger 3d rendering
and switch to proper SDL Gfx manager.
2020-10-02 19:14:19 +02:00
Bastien Bouclet b28d8de2ff STARK: Handle window resizes happening while the engine is paused 2018-10-13 18:33:01 +02:00
mj0331 764ab3abda STARK: Change the cursor to appear over the pillarboxing borders
Fixes #1401.
2018-04-01 16:20:22 +02:00
Bastien Bouclet 9f95f702e6 STARK: Fix the action menu not being placed correctly at the right edge 2018-02-12 20:33:29 +01:00
Snejp 904e224581 STARK: remove VisualText::getTexture, fix Button and Cursor render() 2018-02-05 19:30:10 +01:00
Bastien Bouclet b6c7abfded STARK: Set the VisualText width the the effective text width 2018-02-02 12:01:15 +01:00
Bastien Bouclet 13ff072254 STARK: Implement fullscreen toggling 2017-09-01 09:26:57 +02:00
Bastien Bouclet abd8c585f7 STARK: Change surface data to always be in the RGBA byte order
This eases uploading the textures to OpenGL, and will hopefully fix
endianness issues.
2017-08-20 16:06:36 +02:00
Bastien Bouclet 86eec523ba STARK: Store ResidualVM specific metadata and a thumbnail in saves 2017-06-14 21:46:29 +02:00
Bastien Bouclet 6c5df1ca35 STARK: Check at runtime that shaders are available 2016-02-06 08:53:42 +01:00
Pawel Kolodziejski f9e78dc731 STARK: formating code - whitespaces 2016-01-01 07:30:11 +01:00
Bastien Bouclet 9ed9efb443 STARK: Draw text at the native resolution 2016-01-01 07:30:10 +01:00
Bastien Bouclet 0d62f7a400 STARK: Move text rendering to a separate class 2016-01-01 07:29:51 +01:00
Einar Johan Trøan Sømåen d09f658057 STARK: Expose the preferred PixelFormat from Gfx::Driver 2016-01-01 07:29:46 +01:00
Einar Johan Trøan Sømåen 416db6d969 STARK: Allow a clickable Text interface for dialogs (Currently crashes if we chose anything beyond index 0) 2016-01-01 07:29:43 +01:00
Einar Johan Trøan Sømåen 7da9ddb6d0 STARK: Bound the cursor inside the viewport, to make it a tad easier to work in pillar box mode. 2016-01-01 07:29:41 +01:00
Einar Johan Trøan Sømåen a778c444cf STARK: Move the responsibility of coordinate scaling into GFX-driver, and fix resolution scaling for the cursor mouse over. 2016-01-01 07:29:41 +01:00
Einar Johan Trøan Sømåen c66fa727fc STARK: Add functionality for scaling screen coordinates to the original 640x480-coordinates. 2016-01-01 07:29:40 +01:00
Bastien Bouclet 3438afcd42 STARK: Add support for arbitrary resolutions 2016-01-01 07:29:40 +01:00
Bastien Bouclet 4950d2b755 STARK: Use a shader to render 2D surfaces 2016-01-01 07:29:39 +01:00
Pawel Kolodziejski 793c2f0e69 STARK: corrected old Residual headers 2016-01-01 07:29:38 +01:00
Einar Johan Trøan Sømåen 01cc1cbc8a STARK: Add subtitles to the speech, just using kGUIBigFont for now. 2015-02-19 23:39:03 +01:00
Bastien Bouclet 72d2286911 STARK: Shorten Gfx class names to comensate for the added namespace 2015-02-13 20:35:52 +01:00
Bastien Bouclet a120d1c8ea STARK: Move Gfx classes to the Gfx namespace 2015-02-13 20:33:47 +01:00
Bastien Bouclet 2f58ccf6c6 STARK: Remove the tinygl driver for now
It's not working and the stark renderer API is not stable
2015-02-08 16:55:12 +01:00
Bastien Bouclet d148c772c2 Add 'engines/stark/' from commit '7a9712c959ef0053e64b0a9d02a58a5c71f882fb'
git-subtree-dir: engines/stark
git-subtree-mainline: 8e51ec52ec
git-subtree-split: 7a9712c959
2014-09-21 13:13:46 +02:00