JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
CGstateassignment.java
Go to the documentation of this file.
1/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/procaddress/ProcAddressEmitter.java on Sun Jul 06 17:48:48 CEST 2025 ----! */
2/* !---- Java-Unit: [pkg com.jogamp.opengl.cg, cls CGstateassignment], ../build/jogl/gensrc/classes/com/jogamp/opengl/cg/CGstateassignment.java ----! */
3
4
5package com.jogamp.opengl.cg;
6
7import java.nio.*;
8import java.nio.charset.Charset;
9import java.nio.charset.StandardCharsets;
10
11import com.jogamp.gluegen.runtime.*;
12import com.jogamp.common.os.*;
13import com.jogamp.common.nio.*;
14import jogamp.common.os.MachineDataInfoRuntime;
15
16import jogamp.opengl.*;
17import com.jogamp.common.os.DynamicLookupHelper;
18import com.jogamp.common.os.DynamicLibraryBundle;
19import com.jogamp.common.util.SecurityUtil;
20import com.jogamp.opengl.cg.CgDynamicLibraryBundleInfo;
21import java.security.PrivilegedAction;
22
23public class CGstateassignment {
24
25 StructAccessor accessor;
26
27 private static final int mdIdx = MachineDataInfoRuntime.getStatic().ordinal();
28 private final MachineDataInfo md;
29
30 private static final int[] CGstateassignment_size = new int[] { 0 /* ARM_MIPS_32 */, 0 /* X86_32_UNIX */, 0 /* X86_32_ANDROID */, 0 /* X86_32_MACOS */, 0 /* PPC_32_UNIX */, 0 /* SPARC_32_SUNOS */, 0 /* X86_32_WINDOWS */, 0 /* LP64_UNIX */, 0 /* X86_64_WINDOWS */, 0 /* ARM64_IOS */ };
31
32 /** Returns true if this generated implementation uses native code, otherwise false. */
33 public static boolean usesNativeCode() {
34 return false;
35 }
36
37 /** Returns the aligned total size of a native instance. */
38 public static int size() {
39 return CGstateassignment_size[mdIdx];
40 }
41
42 /** Returns a new instance with all bytes set to zero. */
43 public static CGstateassignment create() {
44 return create(Buffers.newDirectByteBuffer(size()));
45 }
46
47 /** Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity. The ByteBuffer will be {@link ByteBuffer#rewind()} and native-order set. */
48 public static CGstateassignment create(java.nio.ByteBuffer buf) {
49 return new CGstateassignment(buf);
50 }
51
52 /** Returns new instance dereferencing ByteBuffer at given native address `addr` with size {@link #size()}. */
53 public static CGstateassignment derefPointer(final long addr) {
54 return create( ElementBuffer.derefPointer(size(), addr, 1).getByteBuffer() );
55 }
56
57 CGstateassignment(java.nio.ByteBuffer buf) {
58 md = MachineDataInfo.StaticConfig.values()[mdIdx].md;
59 accessor = new StructAccessor(buf);
60 }
61
62 /** Return the underlying native direct ByteBuffer */
63 public final java.nio.ByteBuffer getBuffer() {
64 return accessor.getBuffer();
65 }
66
67 /** Returns the native address of the underlying native ByteBuffer {@link #getBuffer()} */
68 public final long getDirectBufferAddress() {
69 return accessor.getDirectBufferAddress();
70 }
71
72}
static boolean usesNativeCode()
Returns true if this generated implementation uses native code, otherwise false.
static CGstateassignment create(java.nio.ByteBuffer buf)
Returns a new instance using the given ByteBuffer having at least {#link size()} bytes capacity.
final java.nio.ByteBuffer getBuffer()
Return the underlying native direct ByteBuffer.
static CGstateassignment derefPointer(final long addr)
Returns new instance dereferencing ByteBuffer at given native address addr with size size().
static int size()
Returns the aligned total size of a native instance.
final long getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffer getBuffer().
static CGstateassignment create()
Returns a new instance with all bytes set to zero.