Skip to content

scoopr/gltypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation


 const char *gltypes_typeName(GLenum type)
   Converts GL_FLOAT -> "GL_FLOAT"

 GLenum gltypes_typeBase(GLenum type)
   Converts GL_FLOAT_MAT4x3 to GL_FLOAT

 int gltypes_typeElements(GLenum type)
   Converts GL_FLOAT_MAT4x3 to 4*3 (=12)
   
 int gltypes_sizeof(GLenum type)
   Gives the bytes that type needs

About

Helpers for deriving info from OpenGL type enums

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages