JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.cg.CGcontext Class Reference
Collaboration diagram for com.jogamp.opengl.cg.CGcontext:

Public Member Functions

final java.nio.ByteBuffer getBuffer ()
 Return the underlying native direct ByteBuffer. More...
 
final long getDirectBufferAddress ()
 Returns the native address of the underlying native ByteBuffer getBuffer(). More...
 

Static Public Member Functions

static boolean usesNativeCode ()
 Returns true if this generated implementation uses native code, otherwise false. More...
 
static int size ()
 Returns the aligned total size of a native instance. More...
 
static CGcontext create ()
 Returns a new instance with all bytes set to zero. More...
 
static CGcontext create (java.nio.ByteBuffer buf)
 Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity. More...
 
static CGcontext derefPointer (final long addr)
 Returns new instance dereferencing ByteBuffer at given native address addr with size size(). More...
 

Detailed Description

Definition at line 23 of file CGcontext.java.

Member Function Documentation

◆ create() [1/2]

static CGcontext com.jogamp.opengl.cg.CGcontext.create ( )
static

Returns a new instance with all bytes set to zero.

Definition at line 43 of file CGcontext.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create() [2/2]

static CGcontext com.jogamp.opengl.cg.CGcontext.create ( java.nio.ByteBuffer  buf)
static

Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.

The ByteBuffer will be ByteBuffer#rewind() and native-order set.

Definition at line 48 of file CGcontext.java.

◆ derefPointer()

static CGcontext com.jogamp.opengl.cg.CGcontext.derefPointer ( final long  addr)
static

Returns new instance dereferencing ByteBuffer at given native address addr with size size().

Definition at line 53 of file CGcontext.java.

Here is the call graph for this function:

◆ getBuffer()

final java.nio.ByteBuffer com.jogamp.opengl.cg.CGcontext.getBuffer ( )

Return the underlying native direct ByteBuffer.

Definition at line 63 of file CGcontext.java.

Here is the caller graph for this function:

◆ getDirectBufferAddress()

final long com.jogamp.opengl.cg.CGcontext.getDirectBufferAddress ( )

Returns the native address of the underlying native ByteBuffer getBuffer().

Definition at line 68 of file CGcontext.java.

◆ size()

static int com.jogamp.opengl.cg.CGcontext.size ( )
static

Returns the aligned total size of a native instance.

Definition at line 38 of file CGcontext.java.

Here is the caller graph for this function:

◆ usesNativeCode()

static boolean com.jogamp.opengl.cg.CGcontext.usesNativeCode ( )
static

Returns true if this generated implementation uses native code, otherwise false.

Definition at line 33 of file CGcontext.java.


The documentation for this class was generated from the following file: