|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ShaderEnum> org.proteinshader.graphics.enums.ShaderEnum
public enum ShaderEnum
Specifies the types of vertex and fragment shader pairs used in
the ProteinShader program, and provides a place to specify the
names of the shader files.
The shader files are expected to be in the ProteinShader/shaders directory.
The files should follow the convention that vertex shaders end with ".vert",
and fragment shaders end with ".frag".
Enum Constant Summary | |
---|---|
FPS
The fps vertex and fragment shader filenames will begin with 'fps'. |
|
GRAY_SCALE
The gray scale vertex and fragment shader filenames will begin with 'grayscale'. |
|
PATTERNS
The patterns vertex and fragment shader filenames will begin with 'patterns'. |
|
PHONG
The Phong vertex and fragment shader filenames will begin with 'phong'. |
|
RIBBON_HALFTONING
The ribbon halftoning vertex and fragment shader filenames will begin with 'ribbonhalftoning'. |
|
SILHOUETTE
The silhouette vertex and fragment shader filenames will begin with 'patterns'. |
|
TEXT_LABEL
The text label vertex and fragment shader filenames will begin with 'textlabel'. |
|
TUBE_CAP_HALFTONING
The tube cap halftoning vertex and fragment shader filenames will begin with 'tubecaphalftoning'. |
|
TUBE_CAP_WIREFRAME
The tube cap wireframe vertex and fragment shader filenames will begin with 'tubecapwireframe'. |
|
TUBE_HALFTONING
The tube halftoning vertex and fragment shader filenames will begin with 'tubehalftoning'. |
|
WIREFRAME
The wireframe vertex and fragment shader filenames will begin with 'wireframe'. |
Method Summary | |
---|---|
String |
getFragFile()
Returns the name of the file the fragment shader is stored in. |
String |
getVertFile()
Returns the name of the file the vertex shader is stored in. |
static ShaderEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ShaderEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ShaderEnum PHONG
public static final ShaderEnum WIREFRAME
public static final ShaderEnum TUBE_CAP_WIREFRAME
public static final ShaderEnum TEXT_LABEL
public static final ShaderEnum PATTERNS
public static final ShaderEnum SILHOUETTE
public static final ShaderEnum TUBE_HALFTONING
public static final ShaderEnum TUBE_CAP_HALFTONING
public static final ShaderEnum RIBBON_HALFTONING
public static final ShaderEnum GRAY_SCALE
public static final ShaderEnum FPS
Method Detail |
---|
public static final ShaderEnum[] values()
for(ShaderEnum c : ShaderEnum.values()) System.out.println(c);
public static ShaderEnum valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic String getVertFile()
public String getFragFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |