Package org.gnome.gsk
Enum Class GLUniformType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<GLUniformType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum GLUniformType
extends Enum<GLUniformType>
implements Enumeration
This defines the types of the uniforms that
GskGLShaders
declare.
It defines both what the type is called in the GLSL shader code, and what the corresponding C type is on the Gtk side.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA GLSL bool / gboolean uniformA float uniformA GLSL int / gint32 uniformNo type, used for uninitialized or unspecified values.A GLSL uint / guint32 uniformA GLSL vec2 / graphene_vec2_t uniformA GLSL vec3 / graphene_vec3_t uniformA GLSL vec4 / graphene_vec4_t uniform -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the GLUniformType classint
getValue()
Get the numeric value of this enumstatic GLUniformType
of
(int value) Create a new GLUniformType for the provided valuestatic GLUniformType
Returns the enum constant of this class with the specified name.static GLUniformType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No type, used for uninitialized or unspecified values. -
FLOAT
A float uniform -
INT
A GLSL int / gint32 uniform -
UINT
A GLSL uint / guint32 uniform -
BOOL
A GLSL bool / gboolean uniform -
VEC2
A GLSL vec2 / graphene_vec2_t uniform -
VEC3
A GLSL vec3 / graphene_vec3_t uniform -
VEC4
A GLSL vec4 / graphene_vec4_t uniform
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new GLUniformType for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-