C# Class Examples.Tutorial.SimpleGeometryShader2

Inheritance: OpenTK.GameWindow
Afficher le fichier Open project: tpb3d/TPB3D Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnUnload ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

Private Methods

Méthode 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 méthode

public Keyboard_KeyDown ( object sender, KeyboardKeyEventArgs e ) : void
sender object
e OpenTK.Input.KeyboardKeyEventArgs
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnRenderFrame() protected méthode

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnUnload() protected méthode

protected OnUnload ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnUpdateFrame() protected méthode

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

SimpleGeometryShader2() public méthode

public SimpleGeometryShader2 ( ) : System
Résultat System

compileShader() public méthode

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.
Résultat void

drawCubemapCross() public méthode

public drawCubemapCross ( ) : void
Résultat void

initShaderProgramBox() public méthode

public initShaderProgramBox ( ) : void
Résultat void

initShaderProgramCubemap() public méthode

public initShaderProgramCubemap ( ) : void
Résultat void

initShaderProgramSphere() public méthode

public initShaderProgramSphere ( ) : void
Résultat void

initTextureCube() public méthode

public initTextureCube ( ) : void
Résultat void

initVBOCube() public méthode

public initVBOCube ( ) : void
Résultat void

initVBOSpere() public méthode

public initVBOSpere ( ) : void
Résultat void

renderCubeVBO() public méthode

public renderCubeVBO ( ) : void
Résultat void

renderCubemap() public méthode

public renderCubemap ( ) : void
Résultat void

renderScene() public méthode

public renderScene ( ) : void
Résultat void

renderSphereVBO() public méthode

public renderSphereVBO ( ) : void
Résultat void

setOrtho() public méthode

public setOrtho ( ) : void
Résultat void

setPerspective() public méthode

public setPerspective ( ) : void
Résultat void

switchToMode() public méthode

public switchToMode ( ViewMode m ) : void
m ViewMode
Résultat void