For example
Your python in C:\python27
Then put build/*.pyd in C:\python27\DLL
For example
Your python in C:\python27
Then put build/*.pyd in C:\python27\DLL
http://www.lfd.uci.edu/~gohlke/pythonlibs/
pip install PyOpenGL.*.whl
Here is the test code:
import OpenGL
from OpenGL.GL import *
from OpenGL.GLUT import *
import sys
delta = 0.0
def display():
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
glLoadIdentity()
glRotatef(delta, 0.0, 1.0, 0.0)
glutWireTeapot(0.5)
glutSwapBuffers()
def reshape(width, height):
glViewport(0, 0, width, height)
def keyboard(key, x, y):
print(key)
# press space key to exit
if key == b' ':
sys.exit( )
def idle():
global delta
delta += 0.5
glutPostRedisplay()
if __name__ == '__main__':
glutInit()
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA)
glutCreateWindow('Hello world!')
glutReshapeWindow(512, 512)
glutReshapeFunc(reshape)
glutDisplayFunc(display)
glutIdleFunc(idle)
glutKeyboardFunc(keyboard)
glutMainLoop()