C# Class NewTOAPIA.GL.GLSLShader

Inheritance: IDisposable
Mostrar archivo Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
Compile ( ) : bool
CreateFromFile ( string filename ) : GLSLShader
Dispose ( ) : void
GLSLShader ( GLSLShaderProgram prg, int shaderID ) : System

This constructor is used when you're trying to put a wrapper around an already existing shader object. You have the context, and you have the shaderID. This is enough information to do useful things with the shader.

GLSLShader ( GraphicsInterface gi, string shaderSourceCode, ShaderType sType ) : System

Method Details

Compile() public method

public Compile ( ) : bool
return bool

CreateFromFile() public static method

public static CreateFromFile ( string filename ) : GLSLShader
filename string
return GLSLShader

Dispose() public method

public Dispose ( ) : void
return void

GLSLShader() public method

This constructor is used when you're trying to put a wrapper around an already existing shader object. You have the context, and you have the shaderID. This is enough information to do useful things with the shader.
public GLSLShader ( GLSLShaderProgram prg, int shaderID ) : System
prg GLSLShaderProgram
shaderID int
return System

GLSLShader() public method

public GLSLShader ( GraphicsInterface gi, string shaderSourceCode, ShaderType sType ) : System
gi GraphicsInterface
shaderSourceCode string
sType ShaderType
return System