Package com.jogamp.opengl.cg
Class CGtechnique
- java.lang.Object
-
- com.jogamp.opengl.cg.CGtechnique
-
public class CGtechnique extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CGtechnique
create()
Returns a new instance with all bytes set to zero.static CGtechnique
create(ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.static CGtechnique
derefPointer(long addr)
Returns new instance dereferencing ByteBuffer at given native address `addr` with sizesize()
.ByteBuffer
getBuffer()
Return the underlying native direct ByteBufferlong
getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffergetBuffer()
static int
size()
Returns the aligned total size of a native instance.static boolean
usesNativeCode()
Returns true if this generated implementation uses native code, otherwise false.
-
-
-
Method Detail
-
usesNativeCode
public static boolean usesNativeCode()
Returns true if this generated implementation uses native code, otherwise false.
-
size
public static int size()
Returns the aligned total size of a native instance.
-
create
public static CGtechnique create()
Returns a new instance with all bytes set to zero.
-
create
public static CGtechnique create(ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity. The ByteBuffer will beByteBuffer.rewind()
and native-order set.
-
derefPointer
public static CGtechnique derefPointer(long addr)
Returns new instance dereferencing ByteBuffer at given native address `addr` with sizesize()
.
-
getBuffer
public final ByteBuffer getBuffer()
Return the underlying native direct ByteBuffer
-
getDirectBufferAddress
public final long getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffergetBuffer()
-
-