C# Класс NewTOAPIA.GL.GLModel

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

Draw() публичный Метод

public Draw ( ) : void
Результат void

DrawBegin() защищенный Метод

protected DrawBegin ( ) : void
Результат void

DrawContent() защищенный Метод

protected DrawContent ( ) : void
Результат void

DrawEnd() защищенный Метод

protected DrawEnd ( ) : void
Результат void

GLModel() публичный Метод

public GLModel ( ) : System
Результат System

InitializeLighting() публичный Метод

public InitializeLighting ( ) : void
Результат void

OnKeyboardActivity() публичный Метод

public OnKeyboardActivity ( object sender, KeyboardActivityArgs kbde ) : IntPtr
sender object
kbde NewTOAPIA.UI.KeyboardActivityArgs
Результат System.IntPtr

OnMouseActivity() публичный Метод

public OnMouseActivity ( Object sender, MouseActivityArgs mea ) : void
sender Object
mea NewTOAPIA.UI.MouseActivityArgs
Результат void

OnReleaseContext() защищенный Метод

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
Результат void

OnSetContext() защищенный Метод

protected OnSetContext ( ) : void
Результат void

OnSetViewport() публичный Метод

public OnSetViewport ( int width, int height ) : void
width int
height int
Результат void

ReleaseContext() публичный Метод

public ReleaseContext ( ) : void
Результат void

RotateCamera() публичный Метод

public RotateCamera ( Vector2i rotation ) : void
rotation Vector2i
Результат void

SetCamera() публичный Метод

public SetCamera ( float3 pos, float3 target ) : void
pos float3
target float3
Результат void

SetContext() публичный Метод

public SetContext ( GLContext glContext ) : void
glContext GLContext
Результат void

SetMouseLeft() публичный Метод

public SetMouseLeft ( bool flag ) : void
flag bool
Результат void

SetMousePosition() публичный Метод

public SetMousePosition ( int x, int y ) : void
x int
y int
Результат void

SetMouseRight() публичный Метод

public SetMouseRight ( bool flag ) : void
flag bool
Результат void

ZoomCamera() публичный Метод

public ZoomCamera ( float distance ) : void
distance float
Результат void