7 static unsigned int sdr_foo;
8 static unsigned int tex_logo;
12 if(init_opengl() == -1) {
16 if(!(sdr_foo = get_sdrprog("sdr/foo.v.glsl", "sdr/foo.p.glsl"))) {
19 if(!(tex_logo = get_tex2d("data/ml_logo_old.png"))) {
25 void demo_cleanup(void)
29 void demo_display(void)
31 glClear(GL_COLOR_BUFFER_BIT);
33 glUseProgram(sdr_foo);
46 void demo_reshape(int x, int y)
48 glViewport(0, 0, x, y);
51 void demo_keyboard(int key, int pressed)
55 void demo_mouse(int bn, int pressed, int x, int y)
59 void demo_motion(int x, int y)