C# Class Examples.Tutorial.SimpleES20Window

Inheritance: OpenTK.GameWindow
ファイルを表示 Open project: andykorth/opentk Class Usage Examples

Public Methods

Method Description
SimpleES20Window ( GraphicsContextFlags flags ) : System

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void

Place your rendering code here.

OnResize ( EventArgs e ) : void

Called when the user resizes the window.

You want the OpenGL viewport to match the window. This is the place to do it!

OnUpdateFrame ( FrameEventArgs e ) : void

Prepares the next frame for rendering.

Place your control logic here. This is the place to respond to user input, update object positions etc.

Private Methods

Method Description
DrawCube ( ) : void
Main ( ) : void

Method Details

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnRenderFrame() protected method

Place your rendering code here.
protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OnResize() protected method

Called when the user resizes the window.
You want the OpenGL viewport to match the window. This is the place to do it!
protected OnResize ( EventArgs e ) : void
e System.EventArgs Contains the new width/height of the window.
return void

OnUpdateFrame() protected method

Prepares the next frame for rendering.
Place your control logic here. This is the place to respond to user input, update object positions etc.
protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

SimpleES20Window() public method

public SimpleES20Window ( GraphicsContextFlags flags ) : System
flags GraphicsContextFlags
return System