From 1b7c3c349c7d55b04235b27f3c13adecc08a3d31 Mon Sep 17 00:00:00 2001 From: "Mike C. Fletcher" Date: Fri, 3 Jan 2020 15:13:47 -0500 Subject: [PATCH] In ctypes arrays allow for numpy style short-string type specifiers --- OpenGL/arrays/ctypesarrays.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OpenGL/arrays/ctypesarrays.py b/OpenGL/arrays/ctypesarrays.py index 2ae50aa4..99c7cb7c 100644 --- a/OpenGL/arrays/ctypesarrays.py +++ b/OpenGL/arrays/ctypesarrays.py @@ -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, }