public static enum SoShaderObject.SourceTypes extends java.lang.Enum<SoShaderObject.SourceTypes> implements IntegerValuedEnum
Enum Constant and Description |
---|
ARB_PROGRAM
Deprecated.
As of Open Inventor 10000 ARB Support has been removed in OIV 10. This enum is kept for compatibility with previously serialized files.
|
CG_PROGRAM
Deprecated.
As of Open Inventor 10000 CG Support has been removed in OIV 10. This enum is kept for compatibility with previously serialized files.
|
FILENAME
Only the name of the file containing the source is given (default).
|
GLSL_PROGRAM
The source is an OpenGL Shading Language program.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of the enum constant.
|
static SoShaderObject.SourceTypes |
valueOf(int val)
Returns the enum constant of this type with the specified integer value
|
static SoShaderObject.SourceTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoShaderObject.SourceTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoShaderObject.SourceTypes ARB_PROGRAM
public static final SoShaderObject.SourceTypes CG_PROGRAM
public static final SoShaderObject.SourceTypes GLSL_PROGRAM
public static final SoShaderObject.SourceTypes FILENAME
public static SoShaderObject.SourceTypes[] values()
for (SoShaderObject.SourceTypes c : SoShaderObject.SourceTypes.values()) System.out.println(c);
public static SoShaderObject.SourceTypes 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 static SoShaderObject.SourceTypes valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com