5 static unsigned int sdr_foo;
6 static unsigned int tex_logo;
10 if(init_opengl() == -1) {
14 if(!(sdr_foo = get_sdrprog("sdr/foo.v.glsl", "sdr/foo.p.glsl"))) {
17 if(!(tex_logo = get_tex2d("data/ml_logo_old.png"))) {
23 void demo_cleanup(void)
27 void demo_display(void)
29 glClear(GL_COLOR_BUFFER_BIT);
33 void demo_reshape(int x, int y)
35 glViewport(0, 0, x, y);
38 void demo_keyboard(int key, int pressed)
42 void demo_mouse(int bn, int pressed, int x, int y)
46 void demo_motion(int x, int y)