C# 클래스 Examples.Tutorial.T10_GLSL_Cube

상속: OpenTK.GameWindow
파일 보기 프로젝트 열기: tpb3d/TPB3D 1 사용 예제들

공개 메소드들

메소드 설명
T10_GLSL_Cube ( ) : System

보호된 메소드들

메소드 설명
OnLoad ( EventArgs e ) : void

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 ( EventArgs e ) : void

Called when the user resizes the window.

You want the OpenGL viewport to match the window. This is the place to do it!

OnUnload ( EventArgs e ) : void
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.

비공개 메소드들

메소드 설명
CreateShaders ( string vs, string fs, int &vertexObject, int &fragmentObject, int &program ) : void
CreateVBO ( ) : void
Main ( ) : void

메소드 상세

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.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Not used.
리턴 void

OnRenderFrame() 보호된 메소드

Place your rendering code here.
protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
리턴 void

OnResize() 보호된 메소드

Called when the user resizes the window.
You want the OpenGL viewport to match the window. This is the place to do it!
protected OnResize ( EventArgs e ) : void
e System.EventArgs Contains the new width/height of the window.
리턴 void

OnUnload() 보호된 메소드

protected OnUnload ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnUpdateFrame() 보호된 메소드

Prepares the next frame for rendering.
Place your control logic here. This is the place to respond to user input, update object positions etc.
protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
리턴 void

T10_GLSL_Cube() 공개 메소드

public T10_GLSL_Cube ( ) : System
리턴 System