You can “pip install pyopengl” to get those constants (they will be in the OpenGL.GL module). I’ve never tried shader programming through Python, so I’m interested to see what results you get.
Thanks @dgobbi. But I want to avoid inject new dependency in the project.
I just want to control my opengl state in vtk. For example, depth_test it’s always enabled in vtk. I need to disable that. Currently, I’ve just created a python dictionary with the most important gl_numbers