Table of Contents

Class: TheAppGL rdpyg/app/the_app_gl.py
Base Classes   
the_app.TheApp
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 )


Table of Contents

This document was automatically generated on Sat Jul 30 12:45:41 2005 by HappyDoc version 2.1