added glshim library

This commit is contained in:
lubomyr
2015-02-09 20:25:03 +00:00
parent e5e9109652
commit 967c18296e
143 changed files with 231962 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
int main() {
for (int i = 0; i < 3; i++) {
glRectf(0, 0, 1, 1);
test_glEnableClientState(GL_VERTEX_ARRAY);
// TODO: pointers are skipped in verification
GLfloat verts[] = {
0, 0, 0,
1, 0, 0,
1, 1, 0,
0, 1, 0,
};
test_glVertexPointer(3, GL_FLOAT, 0, verts);
test_glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
test_glDisableClientState(GL_VERTEX_ARRAY);
}
mock_return;
}