JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
EGLClientPixmapHI.java
Go to the documentation of this file.
1/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/opengl/GLEmitter.java on Sun Jul 06 17:48:29 CEST 2025 ----! */
2/* !---- Java-Unit: [pkg com.jogamp.opengl.egl, cls EGLClientPixmapHI], ../build/jogl/gensrc/classes/com/jogamp/opengl/egl/EGLClientPixmapHI.java ----! */
3
4
5package com.jogamp.opengl.egl;
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 java.util.*;
17import com.jogamp.opengl.*;
18import com.jogamp.opengl.fixedfunc.*;
19import jogamp.opengl.*;
20import com.jogamp.opengl.egl.EGLExt;
21import com.jogamp.opengl.egl.EGLClientPixmapHI;
22
23public class EGLClientPixmapHI {
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[] EGLClientPixmapHI_size = new int[] { 16 /* ARM_MIPS_32 */, 16 /* X86_32_UNIX */, 16 /* X86_32_ANDROID */, 16 /* X86_32_MACOS */, 16 /* PPC_32_UNIX */, 16 /* SPARC_32_SUNOS */, 16 /* X86_32_WINDOWS */, 24 /* LP64_UNIX */, 24 /* X86_64_WINDOWS */, 24 /* ARM64_IOS */ };
31 private static final int[] pData_offset = 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 */ };
32//private static final int[] pData_size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_ANDROID */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 8 /* LP64_UNIX */, 8 /* X86_64_WINDOWS */, 8 /* ARM64_IOS */ };
33 private static final int[] iWidth_offset = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_ANDROID */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 8 /* LP64_UNIX */, 8 /* X86_64_WINDOWS */, 8 /* ARM64_IOS */ };
34//private static final int[] iWidth_size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_ANDROID */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */, 4 /* ARM64_IOS */ };
35 private static final int[] iHeight_offset = new int[] { 8 /* ARM_MIPS_32 */, 8 /* X86_32_UNIX */, 8 /* X86_32_ANDROID */, 8 /* X86_32_MACOS */, 8 /* PPC_32_UNIX */, 8 /* SPARC_32_SUNOS */, 8 /* X86_32_WINDOWS */, 12 /* LP64_UNIX */, 12 /* X86_64_WINDOWS */, 12 /* ARM64_IOS */ };
36//private static final int[] iHeight_size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_ANDROID */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */, 4 /* ARM64_IOS */ };
37 private static final int[] iStride_offset = new int[] { 12 /* ARM_MIPS_32 */, 12 /* X86_32_UNIX */, 12 /* X86_32_ANDROID */, 12 /* X86_32_MACOS */, 12 /* PPC_32_UNIX */, 12 /* SPARC_32_SUNOS */, 12 /* X86_32_WINDOWS */, 16 /* LP64_UNIX */, 16 /* X86_64_WINDOWS */, 16 /* ARM64_IOS */ };
38//private static final int[] iStride_size = new int[] { 4 /* ARM_MIPS_32 */, 4 /* X86_32_UNIX */, 4 /* X86_32_ANDROID */, 4 /* X86_32_MACOS */, 4 /* PPC_32_UNIX */, 4 /* SPARC_32_SUNOS */, 4 /* X86_32_WINDOWS */, 4 /* LP64_UNIX */, 4 /* X86_64_WINDOWS */, 4 /* ARM64_IOS */ };
39
40 /** Returns true if this generated implementation uses native code, otherwise false. */
41 public static boolean usesNativeCode() {
42 return false;
43 }
44
45 /** Returns the aligned total size of a native instance. */
46 public static int size() {
47 return EGLClientPixmapHI_size[mdIdx];
48 }
49
50 /** Returns a new instance with all bytes set to zero. */
51 public static EGLClientPixmapHI create() {
52 return create(Buffers.newDirectByteBuffer(size()));
53 }
54
55 /** 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. */
56 public static EGLClientPixmapHI create(java.nio.ByteBuffer buf) {
57 return new EGLClientPixmapHI(buf);
58 }
59
60 /** Returns new instance dereferencing ByteBuffer at given native address `addr` with size {@link #size()}. */
61 public static EGLClientPixmapHI derefPointer(final long addr) {
62 return create( ElementBuffer.derefPointer(size(), addr, 1).getByteBuffer() );
63 }
64
65 EGLClientPixmapHI(java.nio.ByteBuffer buf) {
66 md = MachineDataInfo.StaticConfig.values()[mdIdx].md;
67 accessor = new StructAccessor(buf);
68 }
69
70 /** Return the underlying native direct ByteBuffer */
71 public final java.nio.ByteBuffer getBuffer() {
72 return accessor.getBuffer();
73 }
74
75 /** Returns the native address of the underlying native ByteBuffer {@link #getBuffer()} */
76 public final long getDirectBufferAddress() {
77 return accessor.getDirectBufferAddress();
78 }
79
80
81 /** SKIP setter for immutable native field <code>pData</code>, referencing a <i>struct</i> owned array with fixed element count of <code>1</code> elements. Maximum element count is <code>1</code>. NativeSig <code>(PointerType) 'void *' -> (void) * , size[fixed false, lnx64 8], const[false], is[pointer*1]</code> */
82
83 /**
84 * Getter for native field <code>pData</code>, referencing a <i>struct</i> owned array with fixed element count of <code>1</code> elements.
85 * <p>
86 * Maximum element count is <code>1</code>.
87 * </p>
88 * <p>
89 * Native Signature:
90 * <ul>
91 * <li>field-type <code>(PointerType) 'void *' -> (void) * , size[fixed false, lnx64 8], const[false], is[pointer*1]</code></li>
92 * <li>referenced <code>(VoidType) 'void', size ZERO, const[false], is[void]</code></li>
93 * </ul>
94 * </p>
95 * @return element value of the corresponding field-array
96 */
97 public final long getPData() {
98 return PointerBuffer.wrap(getBuffer(), pData_offset[mdIdx], 1).get(0);
99 }
100
101 /**
102 * Getter for native field <code>iWidth</code>, being a <i>struct</i> owned IntType.
103 * <p>
104 * Native Field Signature <code>(IntType) typedef 'EGLint', size[fixed true, lnx64 4], const[false], is[primitive, int]</code>
105 * </p>
106 */
107 public final int getIWidth() {
108 return accessor.getIntAt(iWidth_offset[mdIdx]);
109 }
110
111 /**
112 * Getter for native field <code>iHeight</code>, being a <i>struct</i> owned IntType.
113 * <p>
114 * Native Field Signature <code>(IntType) typedef 'EGLint', size[fixed true, lnx64 4], const[false], is[primitive, int]</code>
115 * </p>
116 */
117 public final int getIHeight() {
118 return accessor.getIntAt(iHeight_offset[mdIdx]);
119 }
120
121 /**
122 * Getter for native field <code>iStride</code>, being a <i>struct</i> owned IntType.
123 * <p>
124 * Native Field Signature <code>(IntType) typedef 'EGLint', size[fixed true, lnx64 4], const[false], is[primitive, int]</code>
125 * </p>
126 */
127 public final int getIStride() {
128 return accessor.getIntAt(iStride_offset[mdIdx]);
129 }
130
131}
static EGLClientPixmapHI create()
Returns a new instance with all bytes set to zero.
final int getIWidth()
Getter for native field iWidth, being a struct owned IntType.
final int getIStride()
Getter for native field iStride, being a struct owned IntType.
static EGLClientPixmapHI 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 getPData()
SKIP setter for immutable native field pData, referencing a struct owned array with fixed element cou...
final int getIHeight()
Getter for native field iHeight, being a struct owned IntType.
final long getDirectBufferAddress()
Returns the native address of the underlying native ByteBuffer getBuffer().
static EGLClientPixmapHI 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 boolean usesNativeCode()
Returns true if this generated implementation uses native code, otherwise false.