2021-11-30 21:29:18 -06:00
|
|
|
#ifndef SHADER_H
|
|
|
|
#define SHADER_H
|
|
|
|
|
2023-05-04 17:07:00 -05:00
|
|
|
#include "sokol/sokol_gfx.h"
|
2021-11-30 21:29:18 -06:00
|
|
|
|
2022-11-19 17:13:57 -06:00
|
|
|
struct shader {
|
2023-05-12 13:22:05 -05:00
|
|
|
sg_shader shd;
|
|
|
|
const char *vertpath;
|
|
|
|
const char *fragpath;
|
2021-11-30 21:29:18 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
void shader_compile_all();
|
2022-11-19 17:13:57 -06:00
|
|
|
struct shader *MakeShader(const char *vertpath, const char *fragpath);
|
|
|
|
void shader_compile(struct shader *shader);
|
2021-11-30 21:29:18 -06:00
|
|
|
#endif
|