C# Класс Examples.Tutorial.T10_GLSL_Cube

Наследование: OpenTK.GameWindow
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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