ShaderArgsBuilder

An object to build the uniforms data for a gsk.glshader.GLShader.

Constructors

this
this(gsk.glshader.GLShader shader, glib.bytes.Bytes initialValues)

Allocates a builder that can be used to construct a new uniform data chunk.

Members

Functions

setBool
void setBool(int idx, bool value)

Sets the value of the uniform idx.

setFloat
void setFloat(int idx, float value)

Sets the value of the uniform idx.

setInt
void setInt(int idx, int value)

Sets the value of the uniform idx.

setUint
void setUint(int idx, uint value)

Sets the value of the uniform idx.

setVec2
void setVec2(int idx, graphene.vec2.Vec2 value)

Sets the value of the uniform idx.

setVec3
void setVec3(int idx, graphene.vec3.Vec3 value)

Sets the value of the uniform idx.

setVec4
void setVec4(int idx, graphene.vec4.Vec4 value)

Sets the value of the uniform idx.

toArgs
glib.bytes.Bytes toArgs()

Creates a new glib.bytes.Bytes args from the current state of the given builder.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.