Method | Description | |
---|---|---|
Keyboard_KeyDown ( object sender, |
||
SimpleGeometryShader2 ( ) : System | ||
compileShader ( int shader, string source ) : void |
Helper method to avoid code duplication. Compiles a shader and prints results using Debug.WriteLine.
|
|
drawCubemapCross ( ) : void | ||
initShaderProgramBox ( ) : void | ||
initShaderProgramCubemap ( ) : void | ||
initShaderProgramSphere ( ) : void | ||
initTextureCube ( ) : void | ||
initVBOCube ( ) : void | ||
initVBOSpere ( ) : void | ||
renderCubeVBO ( ) : void | ||
renderCubemap ( ) : void | ||
renderScene ( ) : void | ||
renderSphereVBO ( ) : void | ||
setOrtho ( ) : void | ||
setPerspective ( ) : void | ||
switchToMode ( ViewMode m ) : void |
Method | Description | |
---|---|---|
OnLoad ( |
||
OnRenderFrame ( FrameEventArgs e ) : void | ||
OnResize ( |
||
OnUnload ( |
||
OnUpdateFrame ( FrameEventArgs e ) : void |
Method | Description | |
---|---|---|
CalculateSphereElements ( float radius, float height, byte segments, byte rings ) : ushort[] | ||
CalculateSphereVertices ( float radius, float height, byte segments, byte rings ) : VertexPositionNormalTexture[] | ||
Main ( ) : void |
public Keyboard_KeyDown ( object sender, |
||
sender | object | |
e | ||
return | void |
protected OnRenderFrame ( FrameEventArgs e ) : void | ||
e | FrameEventArgs | |
return | void |
protected OnResize ( |
||
e | ||
return | void |
protected OnUnload ( |
||
e | ||
return | void |
protected OnUpdateFrame ( FrameEventArgs e ) : void | ||
e | FrameEventArgs | |
return | void |
public compileShader ( int shader, string source ) : void | ||
shader | int | A shader object, gotten from GL.CreateShader. |
source | string | The GLSL source to compile. |
return | void |