Shader

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

attr
Shader attr(string name, Args v)

Set as an attribute.

attr
Shader attr(string name, Args v)

Set as an attribute.

attr
Shader attr(string name)

Set current selected buffer as an attribute.

attr
Shader attr(string name, V v)

Set vector as an attribute.

attrLocation
int attrLocation(string name)
attribNames
string[] attribNames()
Undocumented in source. Be warned that the author may not have intended to support it.
begin
Shader begin()

Begin adapted process

clearLog
Shader clearLog()
Undocumented in source. Be warned that the author may not have intended to support it.
disableAttrib
Shader disableAttrib(string name)
disableAttribs
Shader disableAttribs()
enableAttrib
Shader enableAttrib(string name)
enableAttribs
Shader enableAttribs()
end
Shader end()

End adapted process

geometryInput
Shader geometryInput(PrimitiveMode p)
geometryInput
PrimitiveMode geometryInput()
geometryOutput
PrimitiveMode geometryOutput()
geometryOutput
Shader geometryOutput(PrimitiveMode p)
id
int id()

Return gl program id.

isLoaded
bool isLoaded()
load
Shader load(string shaderName, string[] paths)

Load the shader from shaderName

loadFiles
Shader loadFiles(string vertexShaderSourcePath, string geometryShaderSourcePath, string fragmentShaderSourcePath, string[] paths)

Load the shader from path

loadSources
Shader loadSources(string vertexShaderSourceText, string geometryShaderSourceText, string fragmentShaderSourceText, string[] paths)
loadSources
Shader loadSources(Source vertexShaderSource, Source geometryShaderSource, Source fragmentShaderSource, string[] paths)

Load the shader from sources

log
string log()
Undocumented in source. Be warned that the author may not have intended to support it.
maxGeometryOutputVertices
size_t maxGeometryOutputVertices()
maxGeometryOutputVertices
Shader maxGeometryOutputVertices(size_t vertices)
maximizeMaxGeometryOutputVertices
Shader maximizeMaxGeometryOutputVertices()
uniform
Shader uniform(string name, V v)

Set vector to uniform.

uniform
Shader uniform(string name, M m)

Set matrix to uniform.

uniform
Shader uniform(string name, Args v)

Set bool as int to uniform.

uniform
Shader uniform(string name, Args v)

Set as an uniform.

uniformArray
Shader uniformArray(string name, T[] v)
uniformArray
Shader uniformArray(string name, T[] v)
uniformLocation
int uniformLocation(string name)
uniformTexture
Shader uniformTexture(string name, Texture texture, int textureLocation)

Meta