#include "demo.h"
#include "opengl.h"
+#include "assman.h"
+
+static unsigned int sdr_foo;
+static unsigned int tex_logo;
int demo_init(void)
{
- glClearColor(1, 0, 0, 1);
+ if(init_opengl() == -1) {
+ return -1;
+ }
+
+ if(!(sdr_foo = get_sdrprog("sdr/foo.v.glsl", "sdr/foo.p.glsl"))) {
+ return -1;
+ }
+ if(!(tex_logo = get_tex2d("data/ml_logo_old.png"))) {
+ return -1;
+ }
return 0;
}
void demo_display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
+
}
void demo_reshape(int x, int y)