C# Class Glare.Graphics.Shader

Inheritance: GraphicsResource
Show file Open project: Burton-Radons/Alexandria

Public Methods

Method Description
Compile ( ) : bool

Compiles the source code strings that have been stored in the shader object through Source, and return whether it compiles (which can also be checked through CompileStatus).

Compile ( string source ) : bool

Set the Source, then attempt to Compile() it.

MustCompile ( ) : void
MustCompile ( string source ) : void

Protected Methods

Method Description
DisposeBase ( ) : void

Private Methods

Method Description
AllocateId ( ShaderType shaderType ) : int
GetInt ( ShaderParameter pname ) : int
Shader ( ShaderType shaderType ) : System

Method Details

Compile() public method

Compiles the source code strings that have been stored in the shader object through Source, and return whether it compiles (which can also be checked through CompileStatus).
public Compile ( ) : bool
return bool

Compile() public method

Set the Source, then attempt to Compile() it.
public Compile ( string source ) : bool
source string
return bool

DisposeBase() protected method

protected DisposeBase ( ) : void
return void

MustCompile() public method

public MustCompile ( ) : void
return void

MustCompile() public method

public MustCompile ( string source ) : void
source string
return void