public enum JCGLScalarType extends Enum<JCGLScalarType>
| Enum Constant and Description |
|---|
TYPE_BYTE
A signed 8-bit integer.
|
TYPE_FLOAT
A 32-bit floating-point value.
|
TYPE_HALF_FLOAT
A 16-bit floating-point value.
|
TYPE_INT
A signed 32-bit integer.
|
TYPE_SHORT
A signed 16-bit integer.
|
TYPE_UNSIGNED_BYTE
An unsigned 8-bit integer.
|
TYPE_UNSIGNED_INT
An unsigned 32-bit integer.
|
TYPE_UNSIGNED_SHORT
An unsigned 16-bit integer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shaderTypeConvertible(int elements,
JCGLType type) |
static JCGLScalarType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JCGLScalarType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JCGLScalarType TYPE_BYTE
public static final JCGLScalarType TYPE_HALF_FLOAT
public static final JCGLScalarType TYPE_FLOAT
public static final JCGLScalarType TYPE_INT
public static final JCGLScalarType TYPE_SHORT
public static final JCGLScalarType TYPE_UNSIGNED_BYTE
public static final JCGLScalarType TYPE_UNSIGNED_INT
public static final JCGLScalarType TYPE_UNSIGNED_SHORT
public static JCGLScalarType[] values()
for (JCGLScalarType c : JCGLScalarType.values()) System.out.println(c);
public static JCGLScalarType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean shaderTypeConvertible(int elements,
JCGLType type)
elements - The number of elements.type - The GLSL type.true iff the type described by elements elements of
this type are convertible to the GLSL type type. As an example,
4 elements of type float are convertible to the GLSL type
vec4, or TYPE_FLOAT_VECTOR_4. Most combinations are not
convertible to any GLSL type.Copyright © 2015 <code@io7m.com> http://io7m.com