C# 클래스 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.
상속: GLGpuProgram
파일 보기 프로젝트 열기: mono-soc-2011/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
fragmentShaderCount int
geometryShaderCount int
glslProgram GLSLProgram
vertexShaderCount int

공개 메소드들

메소드 설명
Bind ( ) : void
BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
GLSLGpuProgram ( GLSLProgram parent ) : System
Unbind ( ) : void

보호된 메소드들

메소드 설명
LoadFromSource ( ) : void
load ( ) : void
unload ( ) : void

비공개 메소드들

메소드 설명
AttributeIndex ( VertexElementSemantic semantic, uint index ) : uint
IsAttributeValid ( VertexElementSemantic semantic, uint index ) : bool

메소드 상세

Bind() 공개 메소드

public Bind ( ) : void
리턴 void

BindProgramParameters() 공개 메소드

public BindProgramParameters ( GpuProgramParameters parms, GpuProgramParameters mask ) : void
parms Axiom.Graphics.GpuProgramParameters
mask Axiom.Graphics.GpuProgramParameters
리턴 void

BindProgramPassIterationParameters() 공개 메소드

public BindProgramPassIterationParameters ( GpuProgramParameters parms ) : void
parms Axiom.Graphics.GpuProgramParameters
리턴 void

GLSLGpuProgram() 공개 메소드

public GLSLGpuProgram ( GLSLProgram parent ) : System
parent GLSLProgram
리턴 System

LoadFromSource() 보호된 메소드

protected LoadFromSource ( ) : void
리턴 void

Unbind() 공개 메소드

public Unbind ( ) : void
리턴 void

load() 보호된 메소드

protected load ( ) : void
리턴 void

unload() 보호된 메소드

protected unload ( ) : void
리턴 void

프로퍼티 상세

fragmentShaderCount 보호되어 있는 정적으로 프로퍼티

Keep track of the number of fragment shaders created.
protected static int fragmentShaderCount
리턴 int

geometryShaderCount 보호되어 있는 정적으로 프로퍼티

Keep track of the number of geometry shaders created.
protected static int geometryShaderCount
리턴 int

glslProgram 보호되어 있는 프로퍼티

GL Handle for the shader object.
protected GLSLProgram,Axiom.RenderSystems.OpenGL.GLSL glslProgram
리턴 GLSLProgram

vertexShaderCount 보호되어 있는 정적으로 프로퍼티

Keep track of the number of vertex shaders created.
protected static int vertexShaderCount
리턴 int