summaryrefslogtreecommitdiff
path: root/mino.c
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2023-04-17 14:12:51 -0700
committerkitty piapiac <kcp@bsd.computer>2023-04-17 14:12:51 -0700
commit28e849b3c5d683a5cdb56047189b4d73e523bbf4 (patch)
tree37168540deb94234749e3b1e4ffec868ea0b72b6 /mino.c
parent8ad89fb13af5ffaec52e196f1874d18ec129031c (diff)
texture loading
tex.c -- load textures graph.c -- graph_shader_tex && graph_tex_create()
Diffstat (limited to 'mino.c')
-rw-r--r--mino.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mino.c b/mino.c
index 03f3684..2da1700 100644
--- a/mino.c
+++ b/mino.c
@@ -8,8 +8,9 @@ V*make(Uz z){V*p;N(p=malloc(z), die("oom"))R p;}
V*remk(V*p,Uz z){N(p=realloc(p,z),die("oom"))R p;}
V del(V*p){free(p);}
-I main(I ac,C**av){(V)ac,(V)av;
+I main(I ac,C**av){(V)ac,(V)av;U32 cat;
graph_init();
atexit(graph_deinit);
- WH(1,graph_before(),graph_events(),graph_quad(),graph_after());
+ cat=graph_tex_create("res/tex/cat.jpg");
+ WH(1,graph_before(),graph_events(),graph_quad(cat),graph_after());
R 0;}