com.neovisionaries.android.opengl
Enum DrawingMode

java.lang.Object
  extended by java.lang.Enum<DrawingMode>
      extended by com.neovisionaries.android.opengl.DrawingMode
All Implemented Interfaces:
Serializable, Comparable<DrawingMode>

public enum DrawingMode
extends Enum<DrawingMode>

Drawing mode for ArrayDrawer (glDrawArrays()) and ElementDrawer (glDrawElements()).

Author:
Takahiko Kawasaki
See Also:
ArrayDrawer, ElementDrawer, glDrawArrays, glDrawElements

Enum Constant Summary
LINE_LOOP
          GL_LINE_LOOP.
LINE_STRIP
          GL_LINE_STRIP.
LINES
          GL_LINES.
POINTS
          GL_POINTS.
TRIANGLE_FAN
          GL_TRIANGLE_FAN.
TRIANGLE_STRIP
          GL_TRIANGLE_STRIP.
TRIANGLES
          GL_TRIANGLES.
 
Method Summary
 int getMode()
          Get the integer representing this drawing mode.
static DrawingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DrawingMode[] 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

POINTS

public static final DrawingMode POINTS
GL_POINTS.


LINES

public static final DrawingMode LINES
GL_LINES.


LINE_STRIP

public static final DrawingMode LINE_STRIP
GL_LINE_STRIP.


LINE_LOOP

public static final DrawingMode LINE_LOOP
GL_LINE_LOOP.


TRIANGLES

public static final DrawingMode TRIANGLES
GL_TRIANGLES.


TRIANGLE_STRIP

public static final DrawingMode TRIANGLE_STRIP
GL_TRIANGLE_STRIP.


TRIANGLE_FAN

public static final DrawingMode TRIANGLE_FAN
GL_TRIANGLE_FAN.

Method Detail

values

public static DrawingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DrawingMode c : DrawingMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DrawingMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

getMode

public int getMode()
Get the integer representing this drawing mode.

Returns:
The integer representing this drawing mode.