projects
/
andemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
android assets loading done
[andemo]
/
src
/
demo.c
diff --git
a/src/demo.c
b/src/demo.c
index
6555b28
..
1614426
100644
(file)
--- a/
src/demo.c
+++ b/
src/demo.c
@@
-1,5
+1,7
@@
+#include <stdio.h>
#include "demo.h"
#include "opengl.h"
#include "demo.h"
#include "opengl.h"
+#include "sanegl.h"
#include "assman.h"
static unsigned int sdr_foo;
#include "assman.h"
static unsigned int sdr_foo;
@@
-28,6
+30,17
@@
void demo_display(void)
{
glClear(GL_COLOR_BUFFER_BIT);
{
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)
}
void demo_reshape(int x, int y)