Skip to content

Commit

Permalink
In ctypes arrays allow for numpy style short-string type specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Jan 3, 2020
1 parent eb9a6b4 commit 1b7c3c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OpenGL/arrays/ctypesarrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,13 @@ def dimensions( cls, value, typeCode=None ):
GL_1_1.GL_CHAR: _types.GLchar,
GL_1_1.GL_BYTE: _types.GLbyte,
GL_1_1.GL_UNSIGNED_BYTE: _types.GLubyte,
'f': _types.GLfloat,
'd': _types.GLdouble,
'i': _types.GLint,
'I': _types.GLuint,
'h': _types.GLshort,
'H': _types.GLushort,
'b': _types.GLbyte,
'B': _types.GLubyte,
's': _types.GLchar,
}

0 comments on commit 1b7c3c3

Please sign in to comment.