C# Класс Examples.Tutorial.SimpleWindow

Demonstrates the GameWindow class.
Наследование: OpenTK.GameWindow
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Keyboard_KeyDown ( object sender, KeyboardKeyEventArgs e ) : void

Occurs when a key is pressed.

SimpleWindow ( ) : System

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

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

Приватные методы

Метод Описание
Main ( ) : void

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

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

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

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

Setup OpenGL and load resources here.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Not used.
Результат void

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

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

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

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

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

Add your game logic here.
There is no need to call the base implementation.
protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs Contains timing information.
Результат void

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

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