C# Class Axiom.RenderSystems.OpenGL.GLGpuProgram

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

Protected Properties

Property Type Description
programId int
programType int
tempProgramFloats float[]

Public Methods

Method Description
Bind ( ) : void

Called when a program needs to be bound.

Unbind ( ) : void

Called when a program needs to be unbound.

Protected Methods

Method Description
LoadFromSource ( ) : void

Called to create the program from source.

Private Methods

Method 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 method

Called when a program needs to be bound.
public Bind ( ) : void
return void

LoadFromSource() protected method

Called to create the program from source.
protected LoadFromSource ( ) : void
return void

Unbind() public method

Called when a program needs to be unbound.
public Unbind ( ) : void
return void

Property Details

programId protected_oe property

Internal OpenGL id assigned to this program.
protected int programId
return int

programType protected_oe property

Type of this program (vertex or fragment).
protected int programType
return int

tempProgramFloats protected_oe property

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