Mercurial > sdl-ios-xcode
comparison test/testdyngl.c @ 3323:8d0889509afb
Added renderer information for dynamic OpenGL test
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 28 Sep 2009 15:32:19 +0000 |
parents | 204be4fc2726 |
children |
comparison
equal
deleted
inserted
replaced
3322:d9dd6cbba4c0 | 3323:8d0889509afb |
---|---|
66 void (APIENTRY * glOrtho) (GLdouble, GLdouble, GLdouble, GLdouble, | 66 void (APIENTRY * glOrtho) (GLdouble, GLdouble, GLdouble, GLdouble, |
67 GLdouble, GLdouble); | 67 GLdouble, GLdouble); |
68 void (APIENTRY * glRotatef) (GLfloat, GLfloat, GLfloat, GLfloat); | 68 void (APIENTRY * glRotatef) (GLfloat, GLfloat, GLfloat, GLfloat); |
69 void (APIENTRY * glViewport) (GLint, GLint, GLsizei, GLsizei); | 69 void (APIENTRY * glViewport) (GLint, GLint, GLsizei, GLsizei); |
70 void (APIENTRY * glFogf) (GLenum, GLfloat); | 70 void (APIENTRY * glFogf) (GLenum, GLfloat); |
71 const GLubyte* (APIENTRY * glGetString) (GLenum); | |
71 } | 72 } |
72 glfuncs; | 73 glfuncs; |
73 | 74 |
74 void | 75 void |
75 init_glfuncs(glfuncs * f) | 76 init_glfuncs(glfuncs * f) |
89 f->glLoadIdentity = get_funcaddr("glLoadIdentity"); | 90 f->glLoadIdentity = get_funcaddr("glLoadIdentity"); |
90 f->glOrtho = get_funcaddr("glOrtho"); | 91 f->glOrtho = get_funcaddr("glOrtho"); |
91 f->glRotatef = get_funcaddr("glRotatef"); | 92 f->glRotatef = get_funcaddr("glRotatef"); |
92 f->glViewport = get_funcaddr("glViewport"); | 93 f->glViewport = get_funcaddr("glViewport"); |
93 f->glFogf = get_funcaddr("glFogf"); | 94 f->glFogf = get_funcaddr("glFogf"); |
95 f->glGetString = get_funcaddr("glGetString"); | |
96 | |
97 printf("Vendor : %s\n", f->glGetString(GL_VENDOR)); | |
98 printf("Renderer : %s\n", f->glGetString(GL_RENDERER)); | |
99 printf("Version : %s\n", f->glGetString(GL_VERSION)); | |
100 printf("Extensions : %s\n", f->glGetString(GL_EXTENSIONS)); | |
94 } | 101 } |
95 | 102 |
96 #define NB_PIXELS 1000 | 103 #define NB_PIXELS 1000 |
97 | 104 |
98 int | 105 int |