diff options
author | kitty piapiac <kcp@bsd.computer> | 2023-04-17 14:12:51 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2023-04-17 14:12:51 -0700 |
commit | 28e849b3c5d683a5cdb56047189b4d73e523bbf4 (patch) | |
tree | 37168540deb94234749e3b1e4ffec868ea0b72b6 /include | |
parent | 8ad89fb13af5ffaec52e196f1874d18ec129031c (diff) |
texture loading
tex.c -- load textures
graph.c -- graph_shader_tex && graph_tex_create()
Diffstat (limited to 'include')
-rw-r--r-- | include/graph.h | 5 | ||||
m--------- | include/stb | 0 | ||||
-rw-r--r-- | include/tex.h | 6 |
3 files changed, 10 insertions, 1 deletions
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 +Subproject 5736b15f7ea0ffb08dd38af21067c314d6a3aae 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 |