aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/minimalvbo
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2013-09-17 13:15:10 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2013-09-17 13:15:10 +0200
commit9410ac0867d560bbe0a475c44e2522dbcb2ac4db (patch)
treeb87d0cb9c0cba8434d50213836dccafbb6766787 /samples/OpenGL/minimalvbo
parent62c3c51d080c96fe526c84b9ceb80f0292a95561 (diff)
downloadcodesamples-9410ac0867d560bbe0a475c44e2522dbcb2ac4db.tar.gz
codesamples-9410ac0867d560bbe0a475c44e2522dbcb2ac4db.tar.bz2
a bit more comment on func pointer typecasting in minimalvbo
Diffstat (limited to 'samples/OpenGL/minimalvbo')
-rw-r--r--samples/OpenGL/minimalvbo/minimalvbo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/OpenGL/minimalvbo/minimalvbo.c b/samples/OpenGL/minimalvbo/minimalvbo.c
index 5ad253b..5be8f31 100644
--- a/samples/OpenGL/minimalvbo/minimalvbo.c
+++ b/samples/OpenGL/minimalvbo/minimalvbo.c
@@ -34,9 +34,9 @@ void display();
* L-values type signature so that the compiler doesn't warn and/or error
* out. In C there's this nice property that a void pointer (`void*`) R-value
* can be legally assigned to any pointer type L-value. So because of lazyness
- * and because this is messing with type signatures I simply cast to a `void*`
- * which perfectly well assigned to the function pointer signatures instead
- * of writing `= (void(*)(bla bla bla))...` (or doing a lot of typedefs).
+ * and because this is messing with type signatures anyway we simply cast to
+ * a `void*` which perfectly well assignes to the function pointer signatures
+ * instead of writing `= (void(*)(bla bla bla))...` (or doing a lot of typedefs).
*/
void (*glfixVertexOffset)(GLint, GLenum, GLsizei, uintptr_t const) = (void*)glVertexPointer;
void (*glfixTexCoordOffset)(GLint, GLenum, GLsizei, uintptr_t const) = (void*)glTexCoordPointer;