|
Methods
|
|
Display
GetWorldCoords
InitDisplay
SetupProjection
Start
|
|
|
Display
|
Display ( self )
A default display. Which clears the color buffer and depth buffer.
|
|
|
GetWorldCoords
|
GetWorldCoords (
self,
x,
y,
camera_z,
)
returns (x,y,z) given x,y pygame screen coords.
NOTE: try and get the model view matrix back to the camera
position when using.
|
|
|
InitDisplay
|
InitDisplay (
self,
width,
height,
first_time=0,
)
A default InitDisplay.
|
Exceptions
|
|
ValueError( "error initializing display, can not get mode" )
|
|
|
|
SetupProjection
|
SetupProjection (
self,
width=640,
height=480,
zNear=5.,
zFar=300.,
)
Sets up the projection matrix for opengl.
|
|
|
Start
|
Start ( self )
|
|