C# Class NewTOAPIA.GL.GLPerspectiveCamera

Inheritance: GLProjectionCamera
Mostrar archivo Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
GLPerspectiveCamera ( GraphicsInterface gi ) : System
OnRealize ( ) : void
SetAspectRatio ( float ratio ) : void
SetFieldOfView ( float fov ) : void

Private Methods

Method Description
Perspective ( double fovY, double aspect, double zNear, double zFar ) : void

This routine replaces the Glu.Perspective call. It just calculates the viewing frustum directly, and then calls the glFrustum function. Why bother? So we don't need to rely on the glu parts of the library.

Method Details

GLPerspectiveCamera() public method

public GLPerspectiveCamera ( GraphicsInterface gi ) : System
gi GraphicsInterface
return System

OnRealize() public method

public OnRealize ( ) : void
return void

SetAspectRatio() public method

public SetAspectRatio ( float ratio ) : void
ratio float
return void

SetFieldOfView() public method

public SetFieldOfView ( float fov ) : void
fov float
return void