aboutsummaryrefslogtreecommitdiffstats
path: root/faqe.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-10-22 01:41:32 +0300
committerTomasz Kramkowski <tk@the-tk.com>2018-10-22 01:41:32 +0300
commit0cd7f50e11d89311762ae062bb1cfa876a317353 (patch)
tree2d4fbf2ff330c5d150f660d1aefd145d3135ddd0 /faqe.c
parent3c7790062aa05653efa0f8ee230c07cb7ead91dd (diff)
downloadfaqe-0cd7f50e11d89311762ae062bb1cfa876a317353.tar.gz
faqe-0cd7f50e11d89311762ae062bb1cfa876a317353.tar.xz
faqe-0cd7f50e11d89311762ae062bb1cfa876a317353.zip
use shaders/data.h for the definition of vertices
Now that shaders/data.h is in place, it can be taken to the next extreme. The information stored in shaders/data.h is plentiful enough that vertex attribute location information can be standardised, the definition of vertices can be specified in only one place and the bindings for vertex information can be generated. It's around this point in time that I wish there was a better pre-processor for all this. It might make things a lot cleaner.
Diffstat (limited to 'faqe.c')
-rw-r--r--faqe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/faqe.c b/faqe.c
index f381273..ebc7542 100644
--- a/faqe.c
+++ b/faqe.c
@@ -81,10 +81,10 @@ int main(int argc, char **argv)
gl_load((gl_loadfunc *)SDL_GL_GetProcAddress);
- loadmodel(&mdl, "assets/utah.fmd");
-
glprog_init();
+ loadmodel(&mdl, "assets/utah.fmd");
+
gl_prog_use(prog.main.prog);
viewport(prog.main.uni.proj, WIDTH, HEIGHT);
gl_uni_set1i(prog.main.tex.tdiff, 0);