C# Class Examples.Tutorial.SimpleGeometryShader2

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

Public Methods

Method Description
Keyboard_KeyDown ( object sender, KeyboardKeyEventArgs e ) : void
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

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnUnload ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

Private Methods

Method Description
CalculateSphereElements ( float radius, float height, byte segments, byte rings ) : ushort[]
CalculateSphereVertices ( float radius, float height, byte segments, byte rings ) : VertexPositionNormalTexture[]
Main ( ) : void

Method Details

Keyboard_KeyDown() public method

public Keyboard_KeyDown ( object sender, KeyboardKeyEventArgs e ) : void
sender object
e OpenTK.Input.KeyboardKeyEventArgs
return void

OnLoad() protected method

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

OnRenderFrame() protected method

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OnResize() protected method

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

OnUnload() protected method

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

OnUpdateFrame() protected method

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

SimpleGeometryShader2() public method

public SimpleGeometryShader2 ( ) : System
return System

compileShader() public method

Helper method to avoid code duplication. Compiles a shader and prints results using Debug.WriteLine.
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

drawCubemapCross() public method

public drawCubemapCross ( ) : void
return void

initShaderProgramBox() public method

public initShaderProgramBox ( ) : void
return void

initShaderProgramCubemap() public method

public initShaderProgramCubemap ( ) : void
return void

initShaderProgramSphere() public method

public initShaderProgramSphere ( ) : void
return void

initTextureCube() public method

public initTextureCube ( ) : void
return void

initVBOCube() public method

public initVBOCube ( ) : void
return void

initVBOSpere() public method

public initVBOSpere ( ) : void
return void

renderCubeVBO() public method

public renderCubeVBO ( ) : void
return void

renderCubemap() public method

public renderCubemap ( ) : void
return void

renderScene() public method

public renderScene ( ) : void
return void

renderSphereVBO() public method

public renderSphereVBO ( ) : void
return void

setOrtho() public method

public setOrtho ( ) : void
return void

setPerspective() public method

public setPerspective ( ) : void
return void

switchToMode() public method

public switchToMode ( ViewMode m ) : void
m ViewMode
return void