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() {
glBegin(GL_TRIANGLES);
glVertex3f(0, 1, 2);
glVertex3f(3, 4, 5);
glVertex3f(6, 7, 8);
glEnd();
test_glEnableClientState(GL_VERTEX_ARRAY);
GLfloat verts[] = {
0, 1, 2,
3, 4, 5,
6, 7, 8,
};
test_glVertexPointer(3, GL_FLOAT, 0, verts);
test_glDrawArrays(GL_TRIANGLES, 0, 3);
test_glDisableClientState(GL_VERTEX_ARRAY);
mock_return;
}