diff options
author | kitty piapiac <kcp@bsd.computer> | 2023-04-17 22:15:31 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2023-04-17 22:15:31 -0700 |
commit | f92b613698b5c4066068bb937b5993b1c5a3bd24 (patch) | |
tree | 23ef82f444f08a1a6fe97ae525b458f6b61a2a1e /include | |
parent | 28e849b3c5d683a5cdb56047189b4d73e523bbf4 (diff) |
separate shader stuff from graph.c
Diffstat (limited to 'include')
-rw-r--r-- | include/graph.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/graph.h b/include/graph.h index d3bbbcf..61951f5 100644 --- a/include/graph.h +++ b/include/graph.h @@ -1,13 +1,17 @@ #ifndef MINO_GRAPH_H #define MINO_GRAPH_H +#define GRAPH_GLSL(...)"#version 330 core\n"#__VA_ARGS__ X V graph_init(V); X V graph_deinit(V); X V graph_events(V); X V graph_before(V); X V graph_after(V); -X V graph_quad(U32); +X V graph_quad(V); X U32 graph_shader_create(IM C*,IM C*); X U32 graph_shader_tex; +X V graph_shader_use(U32); +X V graph_shader_seti(IM C*,I); X U32 graph_tex_create(IM C*); +X V graph_tex_use(U32,U8); #endif |