Méthode | Description | |
---|---|---|
T10_GLSL_Cube ( ) : System |
Méthode | 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. |
Méthode | Description | |
---|---|---|
CreateShaders ( string vs, string fs, int &vertexObject, int &fragmentObject, int &program ) : void | ||
CreateVBO ( ) : void | ||
Main ( ) : void |
protected OnLoad ( |
||
e | Not used. | |
Résultat | void |
protected OnRenderFrame ( FrameEventArgs e ) : void | ||
e | FrameEventArgs | |
Résultat | void |
protected OnResize ( |
||
e | Contains the new width/height of the window. | |
Résultat | void |
protected OnUnload ( |
||
e | ||
Résultat | void |
protected OnUpdateFrame ( FrameEventArgs e ) : void | ||
e | FrameEventArgs | |
Résultat | void |