C# Класс Duality.Resources.ShaderProgram

Наследование: Resource
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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