X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdemo.c;h=1614426c30df98c9ef85443afcb770acc549a7c5;hb=72349449317fefb87372608ea3b81332e1ce0cd3;hp=6555b281d0cd1d4a5c872f49a64f722d7b223737;hpb=6c206da1b97ad86e095d383f4ebd3d8f332ad416;p=andemo diff --git a/src/demo.c b/src/demo.c index 6555b28..1614426 100644 --- a/src/demo.c +++ b/src/demo.c @@ -1,5 +1,7 @@ +#include #include "demo.h" #include "opengl.h" +#include "sanegl.h" #include "assman.h" static unsigned int sdr_foo; @@ -28,6 +30,17 @@ void demo_display(void) { glClear(GL_COLOR_BUFFER_BIT); + glUseProgram(sdr_foo); + gl_begin(GL_QUADS); + gl_texcoord2f(0, 1); + gl_vertex2f(-1, -1); + gl_texcoord2f(1, 1); + gl_vertex2f(1, -1); + gl_texcoord2f(1, 0); + gl_vertex2f(1, 1); + gl_texcoord2f(0, 0); + gl_vertex2f(-1, 1); + gl_end(); } void demo_reshape(int x, int y)