glGetUniformBlockIndex

Walter White <[email protected]> Tue, 1 Apr 2014 07:46:04 +0200
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAG+hEfnhSQ8FzMghrOakgGYncikg4A4udCGWqvgodQwP5Ajj2Q@mail.gmail.com>
Hello,

I am not sure if this is an expected behaviour or not yet ported to
Python 3.x , but when using glGetUniformBlockIndex

with  uniformBlockName = "mymat" it throws an error:

baseplatform.py", line 385, in __call__
    return self( *args, **named )
ctypes.ArgumentError: argument 2: <class 'TypeError'>: from_param() takes 2
positional arguments but 3 were given

I have to use uniformBlockName = b"mymat" instead.

I guess it it is the same with

window = glutCreateWindow(b"myWindow")

Kind regards,
Walter

------------------------------------------------------------------------------

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users