This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Takes a symbolic type constant and returns its size | |
/// Probably missing a few types but those were the most important | |
size_t get_sizeof_type(GLenum type) | |
{ | |
switch(type) | |
{ | |
case GL_BYTE: | |
case GL_UNSIGNED_BYTE: | |
return sizeof(GLbyte); | |
case GL_SHORT: |