C# Class Duality.Resources.ShaderProgram

Inheritance: Resource
Datei anzeigen Open project: BraveSirAndrew/duality Class Usage Examples

Public Properties

Property Type Description
None ContentRef

Private Properties

Property Type Description
InitDefaultContent void

Public Methods

Method Description
AttachShaders ( ) : void

Re-Attaches the currently used VertexShader">Vertex- and

AttachShaders ( ContentRef v, ContentRef f, ContentRef g = newContentRef<GeometryShader>() ) : void

Attaches the specified VertexShader">Vertex- and

Bind ( ContentRef prog ) : void

Binds a ShaderProgram in order to use it.

Compile ( ) : void

Compiles the ShaderProgram. This is done automatically when loading the ShaderProgram or when binding it.

DetachShaders ( ) : void

Detaches VertexShader">Vertex- and

ShaderProgram ( ) : System

Creates a new, empty ShaderProgram.

ShaderProgram ( ContentRef v, ContentRef f ) : System

Creates a new ShaderProgram based on a VertexShader">Vertex- and a

Protected Methods

Method Description
OnCopyTo ( Resource r, Duality provider ) : void
OnDisposing ( bool manually ) : void
OnLoaded ( ) : void

Private Methods

Method Description
InitDefaultContent ( ) : void

Method Details

AttachShaders() public method

Re-Attaches the currently used VertexShader">Vertex- and
public AttachShaders ( ) : void
return void

AttachShaders() public method

Attaches the specified VertexShader">Vertex- and
public AttachShaders ( ContentRef v, ContentRef f, ContentRef g = newContentRef<GeometryShader>() ) : void
v ContentRef
f ContentRef
g ContentRef
return void

Bind() public static method

Binds a ShaderProgram in order to use it.
public static Bind ( ContentRef prog ) : void
prog ContentRef The ShaderProgram to be bound.
return void

Compile() public method

Compiles the ShaderProgram. This is done automatically when loading the ShaderProgram or when binding it.
public Compile ( ) : void
return void

DetachShaders() public method

Detaches VertexShader">Vertex- and
public DetachShaders ( ) : void
return void

OnCopyTo() protected method

protected OnCopyTo ( Resource r, Duality provider ) : void
r Resource
provider Duality
return void

OnDisposing() protected method

protected OnDisposing ( bool manually ) : void
manually bool
return void

OnLoaded() protected method

protected OnLoaded ( ) : void
return void

ShaderProgram() public method

Creates a new, empty ShaderProgram.
public ShaderProgram ( ) : System
return System

ShaderProgram() public method

Creates a new ShaderProgram based on a VertexShader">Vertex- and a
public ShaderProgram ( ContentRef v, ContentRef f ) : System
v ContentRef
f ContentRef
return System

Property Details

None public_oe static_oe property

Refers to a null reference ShaderProgram.
public static ContentRef None
return ContentRef