Package com.jogamp.opengl.cg
Class CGpass
- java.lang.Object
-
- com.jogamp.opengl.cg.CGpass
-
public class CGpass extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CGpass
create()
Returns a new instance with all bytes set to zero.static CGpass
create(ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.static CGpass
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 CGpass create()
Returns a new instance with all bytes set to zero.
-
create
public static CGpass 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 CGpass 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()
-
-