C# Class Axiom.RenderSystems.OpenGL.GLSL.GLSLGpuProgram

GLSL low level compiled shader object - this class is used to get at the linked program object and provide an interface for GLRenderSystem calls. GLSL does not provide access to the low level code of the shader so this class is really just a dummy place holder. GLSL uses a program object to represent the active vertex and fragment programs used but Axiom materials maintain seperate instances of the active vertex and fragment programs which creates a small problem for GLSL integration. The GLSLGpuProgram class provides the interface between the GLSLLinkProgramManager , GLRenderSystem, and the active GLSLProgram instances.
Inheritance: GLGpuProgram
Afficher le fichier Open project: mono-soc-2011/axiom Class Usage Examples

Protected Properties

Свойство Type Description
fragmentShaderCount int
geometryShaderCount int
glslProgram GLSLProgram
vertexShaderCount int

Méthodes publiques

Méthode Description
Bind ( ) : void
BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
GLSLGpuProgram ( GLSLProgram parent ) : System
Unbind ( ) : void

Méthodes protégées

Méthode Description
LoadFromSource ( ) : void
load ( ) : void
unload ( ) : void

Private Methods

Méthode Description
AttributeIndex ( VertexElementSemantic semantic, uint index ) : uint
IsAttributeValid ( VertexElementSemantic semantic, uint index ) : bool

Method Details

Bind() public méthode

public Bind ( ) : void
Résultat void

BindProgramParameters() public méthode

public BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
parms Axiom.Graphics.GpuProgramParameters
mask Axiom.Graphics.GpuProgramParameters
Résultat void

BindProgramPassIterationParameters() public méthode

public BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
parms Axiom.Graphics.GpuProgramParameters
Résultat void

GLSLGpuProgram() public méthode

public GLSLGpuProgram ( GLSLProgram parent ) : System
parent GLSLProgram
Résultat System

LoadFromSource() protected méthode

protected LoadFromSource ( ) : void
Résultat void

Unbind() public méthode

public Unbind ( ) : void
Résultat void

load() protected méthode

protected load ( ) : void
Résultat void

unload() protected méthode

protected unload ( ) : void
Résultat void

Property Details

fragmentShaderCount protected_oe static_oe property

Keep track of the number of fragment shaders created.
protected static int fragmentShaderCount
Résultat int

geometryShaderCount protected_oe static_oe property

Keep track of the number of geometry shaders created.
protected static int geometryShaderCount
Résultat int

glslProgram protected_oe property

GL Handle for the shader object.
protected GLSLProgram,Axiom.RenderSystems.OpenGL.GLSL glslProgram
Résultat GLSLProgram

vertexShaderCount protected_oe static_oe property

Keep track of the number of vertex shaders created.
protected static int vertexShaderCount
Résultat int