6 static unsigned int sdr_foo;
7 static unsigned int tex_logo;
11 if(init_opengl() == -1) {
15 if(!(sdr_foo = get_sdrprog("sdr/foo.v.glsl", "sdr/foo.p.glsl"))) {
18 if(!(tex_logo = get_tex2d("data/ml_logo_old.png"))) {
24 void demo_cleanup(void)
28 void demo_display(void)
30 glClear(GL_COLOR_BUFFER_BIT);
32 glUseProgram(sdr_foo);
45 void demo_reshape(int x, int y)
47 glViewport(0, 0, x, y);
50 void demo_keyboard(int key, int pressed)
54 void demo_mouse(int bn, int pressed, int x, int y)
58 void demo_motion(int x, int y)