Package ch.bailu.gtk.gsk
Klasse ShaderArgsBuilder
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gsk.ShaderArgsBuilder
- Alle implementierten Schnittstellen:
PointerInterface
Builds the uniforms data for a `GskGLShader`.
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungShaderArgsBuilder
(GLShader shader, Bytes initial_values) Veraltet.ShaderArgsBuilder
(PointerContainer pointer) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungVeraltet.static ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
ref()
Veraltet.void
setBool
(int idx, boolean value) Veraltet.void
setFloat
(int idx, float value) Sets the value of the uniform @idx.void
setInt
(int idx, int value) Veraltet.void
setUint
(int idx, int value) Veraltet.void
Veraltet.void
Veraltet.void
Veraltet.toArgs()
Veraltet.void
unref()
Veraltet.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
Methodendetails
-
getClassHandler
-
freeToArgs
Veraltet.Creates a new `GBytes` args from the current state of the
given @builder, and frees the @builder instance.
Any uniforms of the shader that have not been explicitly set
on the @builder are zero-initialized.- Gibt zurück:
- the newly allocated buffer with all the args added to @builder
-
ref
Veraltet.Increases the reference count of a `GskShaderArgsBuilder` by one.- Gibt zurück:
- the passed in `GskShaderArgsBuilder`
-
setBool
Veraltet.Sets the value of the uniform @idx.
The uniform must be of bool type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform to
-
setFloat
public void setFloat(int idx, float value) Sets the value of the uniform @idx.
The uniform must be of float type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform to
-
setInt
Veraltet.Sets the value of the uniform @idx.
The uniform must be of int type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform to
-
setUint
Veraltet.Sets the value of the uniform @idx.
The uniform must be of uint type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform to
-
setVec2
Veraltet.Sets the value of the uniform @idx.
The uniform must be of vec2 type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform too
-
setVec3
Veraltet.Sets the value of the uniform @idx.
The uniform must be of vec3 type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform too
-
setVec4
Veraltet.Sets the value of the uniform @idx.
The uniform must be of vec4 type.- Parameter:
idx
- index of the uniformvalue
- value to set the uniform too
-
toArgs
Veraltet.Creates a new `GBytes` args from the current state of the
given @builder.
Any uniforms of the shader that have not been explicitly set on
the @builder are zero-initialized.
The given `GskShaderArgsBuilder` is reset once this function returns;
you cannot call this function multiple times on the same @builder instance.
This function is intended primarily for bindings. C code should use
[method@Gsk.ShaderArgsBuilder.free_to_args].- Gibt zurück:
- the newly allocated buffer with all the args added to @builder
-
unref
Veraltet.Decreases the reference count of a `GskShaderArgBuilder` by one.
If the resulting reference count is zero, frees the builder. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-