Cleanup a bunch of shader infrastructure

1) No longer us glScissor. It's an awful API and is not available in
   Vulkan. Instead the graphics drawing code ensures the graphic is
   drawn within the current viewport

2) Use generated code to automatically get the locations of uniforms
   from shaders. Greatly simplifies adding new uniforms to a shader.

3) Dont use a VAO for loading graphics vertices. Greatly simplifies
   a bunch of book keeping code.
This commit is contained in:
Kovid Goyal
2023-06-22 19:26:36 +05:30
parent 098a38a3a9
commit 248301f8b3
10 changed files with 254 additions and 221 deletions

View File

@@ -76,7 +76,7 @@ typedef struct {
} BackgroundImage;
typedef struct {
float vertices[16];
ImageRect src_rect, dest_rect;
uint32_t texture_id, group_count;
int z_index;
id_type image_id;