1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma once #include <gfx/core.h> #include "gl_util.h" #include <stdbool.h> typedef struct Shader { GLuint id; } Shader; /// Compile a new shader. bool gfx_compile_shader(Shader*, const ShaderDesc*); /// Destroy the shader. void gfx_del_shader(Shader*);