C# Class Duality.Resources.ShaderProgram

Inheritance: Resource
Afficher le fichier Open project: BraveSirAndrew/duality Class Usage Examples

Méthodes publiques

Свойство Type Description
None ContentRef

Private Properties

Свойство Type Description
InitDefaultContent void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnCopyTo ( Resource r, Duality provider ) : void
OnDisposing ( bool manually ) : void
OnLoaded ( ) : void

Private Methods

Méthode Description
InitDefaultContent ( ) : void

Method Details

AttachShaders() public méthode

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

AttachShaders() public méthode

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

Bind() public static méthode

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

Compile() public méthode

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

DetachShaders() public méthode

Detaches VertexShader">Vertex- and
public DetachShaders ( ) : void
Résultat void

OnCopyTo() protected méthode

protected OnCopyTo ( Resource r, Duality provider ) : void
r Resource
provider Duality
Résultat void

OnDisposing() protected méthode

protected OnDisposing ( bool manually ) : void
manually bool
Résultat void

OnLoaded() protected méthode

protected OnLoaded ( ) : void
Résultat void

ShaderProgram() public méthode

Creates a new, empty ShaderProgram.
public ShaderProgram ( ) : System
Résultat System

ShaderProgram() public méthode

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

Property Details

None public_oe static_oe property

Refers to a null reference ShaderProgram.
public static ContentRef None
Résultat ContentRef