com.jogamp.opencl
Enum CLMemory.GLObjectType

java.lang.Object
  extended by java.lang.Enum<CLMemory.GLObjectType>
      extended by com.jogamp.opencl.CLMemory.GLObjectType
All Implemented Interfaces:
Serializable, Comparable<CLMemory.GLObjectType>
Enclosing class:
CLMemory<B extends Buffer>

public static enum CLMemory.GLObjectType
extends Enum<CLMemory.GLObjectType>


Enum Constant Summary
GL_OBJECT_BUFFER
           
GL_OBJECT_RENDERBUFFER
           
GL_OBJECT_TEXTURE2D
           
GL_OBJECT_TEXTURE3D
           
 
Field Summary
 int TYPE
           
 
Method Summary
static CLMemory.GLObjectType valueOf(int type)
           
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.
 
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

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
Field Detail

TYPE

public final int TYPE
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 name
NullPointerException - if the argument is null

valueOf

public static CLMemory.GLObjectType valueOf(int type)