Package pixelTeleporter.library
Enum RenderMethod
- java.lang.Object
-
- java.lang.Enum<RenderMethod>
-
- pixelTeleporter.library.RenderMethod
-
- All Implemented Interfaces:
Serializable,Comparable<RenderMethod>,java.lang.constant.Constable
public enum RenderMethod extends Enum<RenderMethod>
Methods used to draw LED objects to the screen. Available methods are:- DEFAULT - renders ScreenObj lists in 2D and ScreenShape lists in 3D. Fast and simple.
- DRAW3D - renders all objects in 3D space using Processing graphics API calls
- REALISTIC2D - uses Processing API calls to render realistic video-quality LED objects. Looks great, but performance will vary depending on your computer and GPU.
- FILE - records incoming LED data to a JSON file for later playback. Useful for making movies and debugging.
- SHADER3D - NOT YET IMPLEMENTED - does nothing at the moment. (Uses OpenGL and GLSL to render highly detailed objects in 3D space. Performance may vary greatly depending on your GPU.)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULTDRAW3DFILEREALISTIC2DSHADER3D
-
Method Summary
Modifier and Type Method Description static RenderMethodvalueOf(String name)Returns the enum constant of this type with the specified name.static RenderMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
-
-
-
Enum Constant Detail
-
DEFAULT
public static final RenderMethod DEFAULT
-
DRAW3D
public static final RenderMethod DRAW3D
-
REALISTIC2D
public static final RenderMethod REALISTIC2D
-
FILE
public static final RenderMethod FILE
-
SHADER3D
public static final RenderMethod SHADER3D
-
-
Method Detail
-
values
public static RenderMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RenderMethod 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 nameNullPointerException- if the argument is null
-
-