C# 클래스 Duality.Resources.ShaderProgram

상속: Resource
파일 보기 프로젝트 열기: BraveSirAndrew/duality 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
None ContentRef

Private Properties

프로퍼티 타입 설명
InitDefaultContent void

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnCopyTo ( Resource r, Duality provider ) : void
OnDisposing ( bool manually ) : void
OnLoaded ( ) : void

비공개 메소드들

메소드 설명
InitDefaultContent ( ) : void

메소드 상세

AttachShaders() 공개 메소드

Re-Attaches the currently used VertexShader">Vertex- and
public AttachShaders ( ) : void
리턴 void

AttachShaders() 공개 메소드

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

Bind() 공개 정적인 메소드

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

Compile() 공개 메소드

Compiles the ShaderProgram. This is done automatically when loading the ShaderProgram or when binding it.
public Compile ( ) : void
리턴 void

DetachShaders() 공개 메소드

Detaches VertexShader">Vertex- and
public DetachShaders ( ) : void
리턴 void

OnCopyTo() 보호된 메소드

protected OnCopyTo ( Resource r, Duality provider ) : void
r Resource
provider Duality
리턴 void

OnDisposing() 보호된 메소드

protected OnDisposing ( bool manually ) : void
manually bool
리턴 void

OnLoaded() 보호된 메소드

protected OnLoaded ( ) : void
리턴 void

ShaderProgram() 공개 메소드

Creates a new, empty ShaderProgram.
public ShaderProgram ( ) : System
리턴 System

ShaderProgram() 공개 메소드

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

프로퍼티 상세

None 공개적으로 정적으로 프로퍼티

Refers to a null reference ShaderProgram.
public static ContentRef None
리턴 ContentRef