
GL types vs dotNET types
Posted Tuesday, 13 November, 2007 - 18:11 by darxus inI just implement some OpenGL tutorials in OpenTK for the moment. I see that most of these tutorials use custom types that exist in OpenGL (or C++). For example: GLfloat, GLuint...
Are there any use of these types in OpenTK? Or they are compatible with dotNET in sake of simplicity?
Thanks!


Comments
The only reason these types
The only reason these types exist, is because C doesn't guarantee how many bits an 'int' is (in OpenGL 'GLint' is guaranteed to be 32bits wide). Since C# defines its types exactly, there's no use for the GLxxx types:
you get the idea (the file 'csharp.tm' contains the complete typemap - found in Source/Bind/Specifications)
Cheers!
Cool, thanks again Fiddler.
Cool, thanks again Fiddler.