Commit Graph

8 Commits

Author SHA1 Message Date
martinfouilleul 20e425494f Use a custom GL loader to allow different versions of GL/GLES APIs to co-exist. The loader fills an api struct with GL functions pointers.
We have a per-thread pointer to select which api struct is used, and GL functions are pound-defined to call the versions in that struct.
GL/GLES surfaces can use one of the loader function to load their api, and the prepare proc of the surface sets its api as the current one
before gl calls are issued.
2023-02-16 19:35:01 +01:00
martinfouilleul 80ea8db687 [surface/canvas cleanup]
- Make build-time and runtime backend selection a bit easier
- Reorganized backend-specific files with slightly more coherent naming scheme
2023-02-10 16:56:10 +01:00
martinfouilleul 5788cdbcda Desktop opengl 4.3 canvas 2023-02-07 13:24:14 +01:00
martinfouilleul e59f2b152b simple gles tiled renderer 2023-02-03 18:44:28 +01:00
martinfouilleul e0300e9e3c Fixed indexing in gles_canvas_fragment shaders and fixed native keys buffer 2023-02-01 16:23:51 +01:00
martinfouilleul c5ae556f22 [wip] win32 gles surface using angle 2023-01-29 01:04:24 +01:00
martinfouilleul 30bd704af2 win32 opengl loader nonsense 2022-12-22 18:24:43 +01:00
Martin Fouilleul 39cfa35bfd initial commit 2022-08-14 18:19:40 +02:00