Cethric
Aug 15, 2015 - 08:14
I am working on OpenGLES bindings for pythonista and I keep having argument errors appear.
Here is the function raising the error
glShaderSource(GLuint(shader), GLsizei(1), str(source), GLint(0))
How it is setup
GLint = ctypes.c_int32
GLuint = ctypes.c_uint32
GLsizei = ctypes.c_int32
glShaderSource = c.glShaderSource
glShaderSource.restype = None
glShaderSource.argtypes = [GLuint, GLsizei, ctypes.c_char_p, GLint]
Which throws ArgumentError: argument 3: <'type.exceptions.TypeError'>: wrong type
Where am I going wrong?