From f92b613698b5c4066068bb937b5993b1c5a3bd24 Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Mon, 17 Apr 2023 22:15:31 -0700 Subject: separate shader stuff from graph.c --- include/graph.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3