Method | Description | |
---|---|---|
T10_GLSL_Cube ( ) : System |
Method | Description | |
---|---|---|
OnLoad ( |
This is the place to load resources that change little during the lifetime of the GameWindow. In this case, we check for GLSL support, and load the shaders.
|
|
OnRenderFrame ( FrameEventArgs e ) : void |
Place your rendering code here.
|
|
OnResize ( |
Called when the user resizes the window. You want the OpenGL viewport to match the window. This is the place to do it! |
|
OnUnload ( |
||
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. |
Method | Description | |
---|---|---|
CreateShaders ( string vs, string fs, int &vertexObject, int &fragmentObject, int &program ) : void | ||
CreateVBO ( ) : void | ||
Main ( ) : void |
protected OnLoad ( |
||
e | Not used. | |
return | void |
protected OnRenderFrame ( FrameEventArgs e ) : void | ||
e | FrameEventArgs | |
return | void |
protected OnResize ( |
||
e | Contains the new width/height of the window. | |
return | void |
protected OnUnload ( |
||
e | ||
return | void |
protected OnUpdateFrame ( FrameEventArgs e ) : void | ||
e | FrameEventArgs | |
return | void |