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() --- mino.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mino.c') 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;} -- cgit v1.2.3