C# Class Axiom.RenderSystems.OpenGL.GLGpuProgram

Specialization of vertex/fragment programs for OpenGL.
Inheritance: Axiom.Graphics.GpuProgram
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство Type Description
programId int
programType int
tempProgramFloats float[]

Méthodes publiques

Méthode Description
Bind ( ) : void

Called when a program needs to be bound.

Unbind ( ) : void

Called when a program needs to be unbound.

Méthodes protégées

Méthode Description
LoadFromSource ( ) : void

Called to create the program from source.

Private Methods

Méthode Description
AttributeIndex ( VertexElementSemantic semantic, uint index ) : uint
BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
FixedAttributeIndex ( VertexElementSemantic semantic, uint index ) : uint
GLGpuProgram ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader ) : System

Constructor.

IsAttributeValid ( VertexElementSemantic semantic, uint index ) : bool

Method Details

Bind() public méthode

Called when a program needs to be bound.
public Bind ( ) : void
Résultat void

LoadFromSource() protected méthode

Called to create the program from source.
protected LoadFromSource ( ) : void
Résultat void

Unbind() public méthode

Called when a program needs to be unbound.
public Unbind ( ) : void
Résultat void

Property Details

programId protected_oe property

Internal OpenGL id assigned to this program.
protected int programId
Résultat int

programType protected_oe property

Type of this program (vertex or fragment).
protected int programType
Résultat int

tempProgramFloats protected_oe property

For use internally to store temp values for passing constants, etc.
protected float[] tempProgramFloats
Résultat float[]