From 768feb8bf10807142ff1f21d29f7492509362a18 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 28 Mar 2018 00:17:30 +0100 Subject: Move to using bie for assets Shaders are now stored in a bie flat archive and indexed via assets.c and assets.h. --- gltest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gltest.c') diff --git a/gltest.c b/gltest.c index 5b1d4fc..335b4af 100644 --- a/gltest.c +++ b/gltest.c @@ -5,12 +5,12 @@ #include #include +#include "assets.h" #include "eprintf.h" #include "gldefs.h" #include "glprog.h" #include "linmath.h" #include "loadgl.h" -#include "shaders.h" #include "nelem.h" enum { @@ -90,8 +90,8 @@ int main(int argc, char **argv) gl_va_enable(2); prog = glprog_load(2, (struct shdrdat []){ - { GL_VERTEX_SHADER, shader_vert_data, shader_vert_size }, - { GL_FRAGMENT_SHADER, shader_frag_data, shader_frag_size }, + { GL_VERTEX_SHADER, vert_glsl.data, vert_glsl.size }, + { GL_FRAGMENT_SHADER, frag_glsl.data, frag_glsl.size }, }, 1, &(struct unidat){ "ucolor", &ucolor }); -- cgit v1.2.3-54-g00ecf