Package com.jogamp.opencl
Enum CLMemory.GLObjectType
- java.lang.Object
-
- java.lang.Enum<CLMemory.GLObjectType>
-
- com.jogamp.opencl.CLMemory.GLObjectType
-
- All Implemented Interfaces:
Serializable
,Comparable<CLMemory.GLObjectType>
public static enum CLMemory.GLObjectType extends Enum<CLMemory.GLObjectType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GL_OBJECT_BUFFER
GL_OBJECT_RENDERBUFFER
GL_OBJECT_TEXTURE2D
GL_OBJECT_TEXTURE3D
-
Field Summary
Fields Modifier and Type Field Description int
TYPE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CLMemory.GLObjectType
valueOf(int type)
Returns the enum constant of this type with the specified name.static CLMemory.GLObjectType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CLMemory.GLObjectType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GL_OBJECT_BUFFER
public static final CLMemory.GLObjectType GL_OBJECT_BUFFER
-
GL_OBJECT_TEXTURE2D
public static final CLMemory.GLObjectType GL_OBJECT_TEXTURE2D
-
GL_OBJECT_TEXTURE3D
public static final CLMemory.GLObjectType GL_OBJECT_TEXTURE3D
-
GL_OBJECT_RENDERBUFFER
public static final CLMemory.GLObjectType GL_OBJECT_RENDERBUFFER
-
-
Method Detail
-
values
public static CLMemory.GLObjectType[] 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 (CLMemory.GLObjectType c : CLMemory.GLObjectType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CLMemory.GLObjectType 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
-
valueOf
public static CLMemory.GLObjectType valueOf(int type)
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:
type
- 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
-
-