public enum ShaderType extends java.lang.Enum<ShaderType>
| Enum Constant and Description |
|---|
Float |
Int |
LightMaterial |
mat3 |
mat4 |
sampler2D |
sampler3D |
samplerCube |
vec2 |
vec3 |
vec4 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStruct() |
boolean |
isTextureUnit() |
int |
sizeInFloats() |
java.lang.String |
toString() |
static ShaderType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShaderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShaderType Int
public static final ShaderType Float
public static final ShaderType vec2
public static final ShaderType vec3
public static final ShaderType vec4
public static final ShaderType mat3
public static final ShaderType mat4
public static final ShaderType sampler2D
public static final ShaderType sampler3D
public static final ShaderType samplerCube
public static final ShaderType LightMaterial
public static ShaderType[] values()
for (ShaderType c : ShaderType.values()) System.out.println(c);
public static ShaderType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic final int sizeInFloats()
public final boolean isTextureUnit()
public final boolean isStruct()
public java.lang.String toString()
toString in class java.lang.Enum<ShaderType>Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com