C# Class Examples.Tutorial.SimpleWindow

Demonstrates the GameWindow class.
Inheritance: OpenTK.GameWindow
Afficher le fichier Open project: tpb3d/TPB3D Class Usage Examples

Méthodes publiques

Méthode Description
Keyboard_KeyDown ( object sender, KeyboardKeyEventArgs e ) : void

Occurs when a key is pressed.

SimpleWindow ( ) : System

Méthodes protégées

Méthode Description
OnLoad ( EventArgs e ) : void

Setup OpenGL and load resources here.

OnRenderFrame ( FrameEventArgs e ) : void

Add your game rendering code here.

There is no need to call the base implementation.

OnResize ( EventArgs e ) : void

Respond to resize events here.

There is no need to call the base implementation.

OnUpdateFrame ( FrameEventArgs e ) : void

Add your game logic here.

There is no need to call the base implementation.

Private Methods

Méthode Description
Main ( ) : void

Method Details

Keyboard_KeyDown() public méthode

Occurs when a key is pressed.
public Keyboard_KeyDown ( object sender, KeyboardKeyEventArgs e ) : void
sender object The KeyboardDevice which generated this event.
e OpenTK.Input.KeyboardKeyEventArgs The key that was pressed.
Résultat void

OnLoad() protected méthode

Setup OpenGL and load resources here.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Not used.
Résultat void

OnRenderFrame() protected méthode

Add your game rendering code here.
There is no need to call the base implementation.
protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs Contains timing information.
Résultat void

OnResize() protected méthode

Respond to resize events here.
There is no need to call the base implementation.
protected OnResize ( EventArgs e ) : void
e System.EventArgs Contains information on the new GameWindow size.
Résultat void

OnUpdateFrame() protected méthode

Add your game logic here.
There is no need to call the base implementation.
protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs Contains timing information.
Résultat void

SimpleWindow() public méthode

public SimpleWindow ( ) : System
Résultat System