Python_2  1.0
Functions | Variables
NeHeGL Namespace Reference

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
 

Detailed Description

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.nosp@m.m_sa.nosp@m.ge@ya.nosp@m.hoo..nosp@m.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/

Note:

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

Function Documentation

◆ InitGL()

def NeHeGL.InitGL (   Width,
  Height 
)

◆ keyPressed()

def NeHeGL.keyPressed ( args)

◆ main()

def NeHeGL.main ( )

References Lesson48.Initialize().

◆ ReSizeGLScene()

def NeHeGL.ReSizeGLScene (   Width,
  Height 
)

Variable Documentation

◆ ESCAPE

string NeHeGL.ESCAPE = b'\033'

◆ window

int NeHeGL.window = 0