C# Class NewTOAPIA.GL.GLModel

Mostrar archivo Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Methods

Method Description
Draw ( ) : void
GLModel ( ) : System
InitializeLighting ( ) : void
OnKeyboardActivity ( object sender, KeyboardActivityArgs kbde ) : IntPtr
OnMouseActivity ( Object sender, MouseActivityArgs mea ) : void
OnSetViewport ( int width, int height ) : void
ReleaseContext ( ) : void
RotateCamera ( Vector2i rotation ) : void
SetCamera ( float3 pos, float3 target ) : void
SetContext ( GLContext glContext ) : void
SetMouseLeft ( bool flag ) : void
SetMousePosition ( int x, int y ) : void
SetMouseRight ( bool flag ) : void
ZoomCamera ( float distance ) : void

Protected Methods

Method Description
DrawBegin ( ) : void
DrawContent ( ) : void
DrawEnd ( ) : void
OnReleaseContext ( ) : void

This routine is called just before the context is released. A subclasser should override this and perform any actions to shutdown before the context is released.

OnSetContext ( ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

DrawBegin() protected method

protected DrawBegin ( ) : void
return void

DrawContent() protected method

protected DrawContent ( ) : void
return void

DrawEnd() protected method

protected DrawEnd ( ) : void
return void

GLModel() public method

public GLModel ( ) : System
return System

InitializeLighting() public method

public InitializeLighting ( ) : void
return void

OnKeyboardActivity() public method

public OnKeyboardActivity ( object sender, KeyboardActivityArgs kbde ) : IntPtr
sender object
kbde NewTOAPIA.UI.KeyboardActivityArgs
return System.IntPtr

OnMouseActivity() public method

public OnMouseActivity ( Object sender, MouseActivityArgs mea ) : void
sender Object
mea NewTOAPIA.UI.MouseActivityArgs
return void

OnReleaseContext() protected method

This routine is called just before the context is released. A subclasser should override this and perform any actions to shutdown before the context is released.
protected OnReleaseContext ( ) : void
return void

OnSetContext() protected method

protected OnSetContext ( ) : void
return void

OnSetViewport() public method

public OnSetViewport ( int width, int height ) : void
width int
height int
return void

ReleaseContext() public method

public ReleaseContext ( ) : void
return void

RotateCamera() public method

public RotateCamera ( Vector2i rotation ) : void
rotation Vector2i
return void

SetCamera() public method

public SetCamera ( float3 pos, float3 target ) : void
pos float3
target float3
return void

SetContext() public method

public SetContext ( GLContext glContext ) : void
glContext GLContext
return void

SetMouseLeft() public method

public SetMouseLeft ( bool flag ) : void
flag bool
return void

SetMousePosition() public method

public SetMousePosition ( int x, int y ) : void
x int
y int
return void

SetMouseRight() public method

public SetMouseRight ( bool flag ) : void
flag bool
return void

ZoomCamera() public method

public ZoomCamera ( float distance ) : void
distance float
return void