From 28e849b3c5d683a5cdb56047189b4d73e523bbf4 Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Mon, 17 Apr 2023 14:12:51 -0700 Subject: texture loading tex.c -- load textures graph.c -- graph_shader_tex && graph_tex_create() --- include/graph.h | 5 ++++- include/stb | 1 + include/tex.h | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 160000 include/stb create mode 100644 include/tex.h (limited to 'include') diff --git a/include/graph.h b/include/graph.h index 9780714..d3bbbcf 100644 --- a/include/graph.h +++ b/include/graph.h @@ -5,6 +5,9 @@ X V graph_deinit(V); X V graph_events(V); X V graph_before(V); X V graph_after(V); -X V graph_quad(V); +X V graph_quad(U32); X U32 graph_shader_create(IM C*,IM C*); +X U32 graph_shader_tex; + +X U32 graph_tex_create(IM C*); #endif diff --git a/include/stb b/include/stb new file mode 160000 index 0000000..5736b15 --- /dev/null +++ b/include/stb @@ -0,0 +1 @@ +Subproject commit 5736b15f7ea0ffb08dd38af21067c314d6a3aae9 diff --git a/include/tex.h b/include/tex.h new file mode 100644 index 0000000..8b5b3ff --- /dev/null +++ b/include/tex.h @@ -0,0 +1,6 @@ +#ifndef MINO_TEX_H +#define MINO_TEX_H +typedef struct{U32 w,h;U8*d;}Tex; +X Tex tex_load(IM C*); +X V tex_free(Tex); +#endif -- cgit v1.2.3