FlorianRhiem / pyGLFW

Python bindings for GLFW
MIT License
232 stars 36 forks source link

Lacking support for glViewport() #22

Closed bendgk closed 6 years ago

bendgk commented 6 years ago

I don't see the wrapper for this in any of the branches and when I tried glfw.gl_viewport(0, 0, 640, 480) my program crashes to an AttributeError: module 'glfw' has no attribute 'gl_viewport'

FlorianRhiem commented 6 years ago

Hello Benjamin,

glViewport and all other OpenGL functions are not part of GLFW and therefore not provided by this Python wrapper for GLFW. You will want to use an OpenGL wrapper like PyOpenGL for that. Also, see What is GLFW not? in the GLFW FAQ.

By the way, thanks for your pull request, I'll look into it later today. :)