major gfx refactor
This commit is contained in:
parent
0c0aa792c1
commit
3c3e961995
58 changed files with 3681 additions and 2982 deletions
15
src/gfx/pxl8_shader_registry.c
Normal file
15
src/gfx/pxl8_shader_registry.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "pxl8_shader_registry.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
extern u8 pxl8_shader_lit(pxl8_shader_ctx* ctx, const pxl8_shader_bindings* bindings, const pxl8_shader_uniforms* uniforms);
|
||||
extern u8 pxl8_shader_unlit(pxl8_shader_ctx* ctx, const pxl8_shader_bindings* bindings, const pxl8_shader_uniforms* uniforms);
|
||||
|
||||
void pxl8_shader_registry_init(void) {}
|
||||
void pxl8_shader_registry_reload(void) {}
|
||||
|
||||
pxl8_shader_fn pxl8_shader_registry_get(const char* name) {
|
||||
if (strcmp(name, "lit") == 0) return (pxl8_shader_fn)pxl8_shader_lit;
|
||||
if (strcmp(name, "unlit") == 0) return (pxl8_shader_fn)pxl8_shader_unlit;
|
||||
return NULL;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue