|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Capability>
com.neovisionaries.android.opengl.Capability
public enum Capability
OpenGL ES capability.
This list matches the set of values that glEnable() accepts.
All capabilities except DITHER
are disabled by default.
// E X A M P L E // Enable depth test. // This is equivalent to glEnable(GL_DEPTH_TEST). Capability.DEPTH_TEST
.enable()
;
Enum Constant Summary | |
---|---|
BLEND
GL_BLEND. |
|
CULL_FACE
GL_CULL_FACE. |
|
DEPTH_TEST
GL_DEPTH_TEST. |
|
DITHER
GL_DITHER. |
|
POLYGON_OFFSET_FILL
GL_POLYGON_OFFSET_FILL. |
|
SAMPLE_ALPHA_TO_COVERAGE
GL_SAMPLE_ALPHA_TO_COVERAGE. |
|
SAMPLE_COVERAGE
GL_SAMPLE_COVERAGE. |
|
SCISSOR_TEST
GL_SCISSOR_TEST. |
|
STENCIL_TEST
GL_STENCIL_TEST. |
Method Summary | |
---|---|
void |
disable()
Disable this capability using glDisable(). |
void |
enable()
Enable this capability using glEnable(). |
int |
getCapability()
Get the integer representing this capability. |
boolean |
isEnabled()
Check if this capability is enabled using glIsEnabled(). |
static Capability |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Capability[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Capability BLEND
public static final Capability CULL_FACE
public static final Capability DEPTH_TEST
public static final Capability DITHER
public static final Capability POLYGON_OFFSET_FILL
public static final Capability SAMPLE_ALPHA_TO_COVERAGE
public static final Capability SAMPLE_COVERAGE
public static final Capability SCISSOR_TEST
public static final Capability STENCIL_TEST
Method Detail |
---|
public static Capability[] values()
for (Capability c : Capability.values()) System.out.println(c);
public static Capability valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getCapability()
public void enable()
public void disable()
public boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |