![]() |
Python_2
1.0
|
NeHe Tutorial Lesson: 48 - ArcBall Rotation. More...
Functions | |
def | InitGL (Width, Height) |
def | ReSizeGLScene (Width, Height) |
def | keyPressed (*args) |
def | main () |
Variables | |
string | ESCAPE = b'\033' |
int | window = 0 |
NeHe Tutorial Lesson: 48 - ArcBall Rotation.
/***********************************************
C version of tutorial by Terence J. Grant This code was created by Jeff Molofee 2000 Ported to PyOpenGL 2.0 by Brian Leair 2004
The port was based on the PyOpenGL tutorials and from PyOpenGLContext (tests/glprint.py)
If you've found this code useful, feel free to let me know at (Brian Leair telco). m_sa ge@ya hoo. com
See original source and C based tutorial at http://nehe.gamedev.net
http://pydoc.net/Python/PyOpenGL-Demo/3.0.1b1/PyOpenGL-Demo.NeHe.lesson48.NeHeGL/
This code is not an ideal example of Pythonic coding or use of OO techniques. It is a simple and direct exposition of how to use the Open GL API in Python via the PyOpenGL package. It also uses GLUT, a high quality platform independent library. Due to using these APIs, this code is more like a C program using procedural programming.
To run this example you will need: Python - www.python.org (v 2.3 as of 1/2004) PyOpenGL - pyopengl.sourceforge.net (v 2.0.1.07 as of 1/2004) Numeric Python - (v.22 of "numpy" as of 1/2004) numpy.sourceforge.net
def NeHeGL.InitGL | ( | Width, | |
Height | |||
) |
def NeHeGL.keyPressed | ( | * | args | ) |
def NeHeGL.main | ( | ) |
References Lesson48.Initialize().
def NeHeGL.ReSizeGLScene | ( | Width, | |
Height | |||
) |
string NeHeGL.ESCAPE = b'\033' |
int NeHeGL.window = 0 |