Shift
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Shift.Graphics.GL.Shader Class Reference
Inheritance diagram for Shift.Graphics.GL.Shader:

Public Member Functions

 Shader (ShaderType type, string source)
 Compiles a shader, which can be either vertex, fragment or geometry. More...
 
void Dispose ()
 

Properties

uint ShaderID [get, set]
 Specifies the OpenGL ShaderID. More...
 
ShaderType ShaderType [get, set]
 Specifies the type of shader. More...
 
ProgramParam[] ShaderParams [get, set]
 Contains all of the attributes and uniforms parsed from this shader source. More...
 
string ShaderLog [get]
 Returns Gl.GetShaderInfoLog(ShaderID), which contains any compilation errors. More...
 

Detailed Description

Definition at line 154 of file Shader.cs.

Constructor & Destructor Documentation

Shift.Graphics.GL.Shader.Shader ( ShaderType  type,
string  source 
)
inline

Compiles a shader, which can be either vertex, fragment or geometry.

Parameters
sourceSpecifies the source code of the shader object.
typeSpecifies the type of shader to create (either vertex, fragment or geometry).

Definition at line 187 of file Shader.cs.

Member Function Documentation

void Shift.Graphics.GL.Shader.Dispose ( )
inline

Definition at line 262 of file Shader.cs.

Property Documentation

uint Shift.Graphics.GL.Shader.ShaderID
getset

Specifies the OpenGL ShaderID.

Definition at line 159 of file Shader.cs.

string Shift.Graphics.GL.Shader.ShaderLog
get

Returns Gl.GetShaderInfoLog(ShaderID), which contains any compilation errors.

Definition at line 175 of file Shader.cs.

ProgramParam [] Shift.Graphics.GL.Shader.ShaderParams
getset

Contains all of the attributes and uniforms parsed from this shader source.

Definition at line 169 of file Shader.cs.

ShaderType Shift.Graphics.GL.Shader.ShaderType
getset

Specifies the type of shader.

Definition at line 164 of file Shader.cs.


The documentation for this class was generated from the following file: