diff --git a/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt b/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt index b73d69fc..74c01067 100644 --- a/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt +++ b/generators/opengl/src/main/kotlin/overrungl/opengl/InstanceDowncall.kt @@ -130,7 +130,7 @@ class InstanceDowncall( sb.append(m.params.joinToString(", ") { p -> "${p.type.carrierWithC()} ${p.name}" }) sb.appendLine(") {") - sb.appendLine(" try { if (!Unmarshal.isNullPointer(PFN_${m.entrypoint}))") + sb.appendLine(" if (!Unmarshal.isNullPointer(PFN_${m.entrypoint})) { try {") sb.append(" ") if (m.returnType.carrier != TypeName.VOID) { sb.append("return (${m.returnType.carrier}) ") @@ -140,11 +140,8 @@ class InstanceDowncall( sb.append(", ${it.name}") } sb.appendLine(");") - if (m.returnType.carrier != TypeName.VOID) { - sb.appendLine(" else return ${m.returnType.nullValue};") - } - sb.appendLine(" }") - sb.appendLine(""" catch (Throwable e) { throw new RuntimeException("error in ${m.entrypoint}", e); }""") + sb.appendLine(""" } catch (Throwable e) { throw new RuntimeException("error in ${m.entrypoint}", e); }""") + sb.appendLine(""" } else { throw new SymbolNotFoundError("Symbol not found: ${m.entrypoint}"); }""") sb.appendLine(" }") sb.appendLine() diff --git a/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt b/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt index 12b27e2b..854608c8 100644 --- a/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt +++ b/generators/src/main/kotlin/overrungl/gen/CustomTypeSpec.kt @@ -29,8 +29,7 @@ data class CustomTypeSpec( val processor: ValueProcessor = IdentityValueProcessor, val layout: String?, val cType: String? = null, - val allocatorRequirement: AllocatorRequirement = AllocatorRequirement.NO, - val nullValue: String? = null + val allocatorRequirement: AllocatorRequirement = AllocatorRequirement.NO ) { val array: CustomTypeSpec by lazy { CustomTypeSpec( @@ -60,23 +59,23 @@ val MemorySegment_: ClassName = ClassName.get(MemorySegment::class.java) val SegmentAllocator_: ClassName = ClassName.get(SegmentAllocator::class.java) val String_: ClassName = ClassName.get(String::class.java) -private fun javaPrimitive(typeName: TypeName, layoutName: String, nullValue: String?): CustomTypeSpec = - CustomTypeSpec(typeName, typeName, layout = "ValueLayout.$layoutName", nullValue = nullValue) +private fun javaPrimitive(typeName: TypeName, layoutName: String): CustomTypeSpec = + CustomTypeSpec(typeName, typeName, layout = "ValueLayout.$layoutName") val arena = CustomTypeSpec(Arena_, Arena_, layout = null) val allocator = CustomTypeSpec(SegmentAllocator_, SegmentAllocator_, layout = null) -val jboolean = javaPrimitive(TypeName.BOOLEAN, "JAVA_BOOLEAN", "false") -val jchar = javaPrimitive(TypeName.CHAR, "JAVA_CHAR", "0") -val jbyte = javaPrimitive(TypeName.BYTE, "JAVA_BYTE", "0") -val jshort = javaPrimitive(TypeName.SHORT, "JAVA_SHORT", "0") -val jint = javaPrimitive(TypeName.INT, "JAVA_INT", "0") -val jlong = javaPrimitive(TypeName.LONG, "JAVA_LONG", "0L") -val jfloat = javaPrimitive(TypeName.FLOAT, "JAVA_FLOAT", "0.0f") -val jdouble = javaPrimitive(TypeName.DOUBLE, "JAVA_DOUBLE", "0.0") +val jboolean = javaPrimitive(TypeName.BOOLEAN, "JAVA_BOOLEAN") +val jchar = javaPrimitive(TypeName.CHAR, "JAVA_CHAR") +val jbyte = javaPrimitive(TypeName.BYTE, "JAVA_BYTE") +val jshort = javaPrimitive(TypeName.SHORT, "JAVA_SHORT") +val jint = javaPrimitive(TypeName.INT, "JAVA_INT") +val jlong = javaPrimitive(TypeName.LONG, "JAVA_LONG") +val jfloat = javaPrimitive(TypeName.FLOAT, "JAVA_FLOAT") +val jdouble = javaPrimitive(TypeName.DOUBLE, "JAVA_DOUBLE") val void = CustomTypeSpec(TypeName.VOID, TypeName.VOID, layout = "No layout for void") -val address = javaPrimitive(MemorySegment_, "ADDRESS", "MemorySegment.NULL") +val address = javaPrimitive(MemorySegment_, "ADDRESS") val string_u8 = CustomTypeSpec( carrier = MemorySegment_, javaType = String_, @@ -85,14 +84,14 @@ val string_u8 = CustomTypeSpec( allocatorRequirement = AllocatorRequirement.STACK ) -val jchar_array = jchar.array.copy(processor = ArrayValueProcessor("Char"), layout = address.layout, nullValue = address.nullValue) -val jbyte_array = jbyte.array.copy(processor = ArrayValueProcessor("Byte"), layout = address.layout, nullValue = address.nullValue) -val jshort_array = jshort.array.copy(processor = ArrayValueProcessor("Short"), layout = address.layout, nullValue = address.nullValue) -val jint_array = jint.array.copy(processor = ArrayValueProcessor("Int"), layout = address.layout, nullValue = address.nullValue) -val jlong_array = jlong.array.copy(processor = ArrayValueProcessor("Long"), layout = address.layout, nullValue = address.nullValue) -val jfloat_array = jfloat.array.copy(processor = ArrayValueProcessor("Float"), layout = address.layout, nullValue = address.nullValue) -val jdouble_array = jdouble.array.copy(processor = ArrayValueProcessor("Double"), layout = address.layout, nullValue = address.nullValue) -val string_u8_array = string_u8.array.copy(processor = ArrayValueProcessor("String"), layout = address.layout, nullValue = address.nullValue) +val jchar_array = jchar.array.copy(processor = ArrayValueProcessor("Char"), layout = address.layout) +val jbyte_array = jbyte.array.copy(processor = ArrayValueProcessor("Byte"), layout = address.layout) +val jshort_array = jshort.array.copy(processor = ArrayValueProcessor("Short"), layout = address.layout) +val jint_array = jint.array.copy(processor = ArrayValueProcessor("Int"), layout = address.layout) +val jlong_array = jlong.array.copy(processor = ArrayValueProcessor("Long"), layout = address.layout) +val jfloat_array = jfloat.array.copy(processor = ArrayValueProcessor("Float"), layout = address.layout) +val jdouble_array = jdouble.array.copy(processor = ArrayValueProcessor("Double"), layout = address.layout) +val string_u8_array = string_u8.array.copy(processor = ArrayValueProcessor("String"), layout = address.layout) val bool = jboolean c "bool" val char = jbyte c "char" diff --git a/generators/src/main/kotlin/overrungl/gen/Upcall.kt b/generators/src/main/kotlin/overrungl/gen/Upcall.kt index f4f4a9c9..1638a3c9 100644 --- a/generators/src/main/kotlin/overrungl/gen/Upcall.kt +++ b/generators/src/main/kotlin/overrungl/gen/Upcall.kt @@ -27,8 +27,7 @@ fun generateUpcallType(packageName: String, name: String): CustomTypeSpec { javaType = typeName, processor = UpcallProcessor(typeName), layout = address.layout, - allocatorRequirement = AllocatorRequirement.ARENA, - nullValue = address.nullValue, + allocatorRequirement = AllocatorRequirement.ARENA ) } diff --git a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java index 162fb393..0d8cc8ec 100644 --- a/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java +++ b/modules/overrungl.glfw/src/main/java/overrungl/glfw/GLFWNative.java @@ -21,6 +21,7 @@ import overrungl.internal.RuntimeHelper; import overrungl.util.Marshal; import overrungl.util.MemoryStack; +import overrungl.util.SymbolNotFoundError; import overrungl.util.Unmarshal; import java.lang.foreign.FunctionDescriptor; @@ -118,9 +119,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWin32Adapter.invokeExact(monitor); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWin32Adapter", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWin32Adapter"); } } ///Returns the adapter device name of the specified monitor. @@ -139,9 +138,7 @@ private Handles() { } try { return Unmarshal.unmarshalAsString((java.lang.foreign.MemorySegment) Handles.MH_glfwGetWin32Adapter.invokeExact(monitor)); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWin32Adapter", e); } - } else { - return null; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWin32Adapter"); } } ///Returns the display device name of the specified monitor. @@ -160,9 +157,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWin32Monitor.invokeExact(monitor); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWin32Monitor", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWin32Monitor"); } } ///Returns the display device name of the specified monitor. @@ -181,9 +176,7 @@ private Handles() { } try { return Unmarshal.unmarshalAsString((java.lang.foreign.MemorySegment) Handles.MH_glfwGetWin32Monitor.invokeExact(monitor)); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWin32Monitor", e); } - } else { - return null; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWin32Monitor"); } } ///Returns the `HWND` of the specified window. @@ -208,9 +201,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWin32Window.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWin32Window", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWin32Window"); } } ///Returns the `HGLRC` of the specified window. @@ -236,9 +227,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWGLContext.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWGLContext", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWGLContext"); } } ///Returns the `CGDirectDisplayID` of the specified monitor. @@ -256,9 +245,7 @@ private Handles() { } try { return (int) Handles.MH_glfwGetCocoaMonitor.invokeExact(monitor); } catch (Throwable e) { throw new RuntimeException("error in glfwGetCocoaMonitor", e); } - } else { - return 0; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetCocoaMonitor"); } } ///Returns the `NSWindow` of the specified window. @@ -276,9 +263,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetCocoaWindow.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetCocoaWindow", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetCocoaWindow"); } } ///Returns the `NSView` of the specified window. @@ -296,9 +281,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetCocoaView.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetCocoaView", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetCocoaView"); } } ///Returns the `NSOpenGLContext` of the specified window. @@ -316,9 +299,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetNSGLContext.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetNSGLContext", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetNSGLContext"); } } ///Returns the `Display` used by GLFW. @@ -336,9 +317,7 @@ private Handles() { } try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetX11Display.invokeExact(); } catch (Throwable e) { throw new RuntimeException("error in glfwGetX11Display", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetX11Display"); } } ///Returns the `RRCrtc` of the specified monitor. @@ -356,9 +335,7 @@ private Handles() { } try { return (long) Handles.MH_glfwGetX11Adapter.invokeExact(monitor); } catch (Throwable e) { throw new RuntimeException("error in glfwGetX11Adapter", e); } - } else { - return 0L; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetX11Adapter"); } } ///Returns the `RROutput` of the specified monitor. @@ -376,9 +353,7 @@ private Handles() { } try { return (long) Handles.MH_glfwGetX11Monitor.invokeExact(monitor); } catch (Throwable e) { throw new RuntimeException("error in glfwGetX11Monitor", e); } - } else { - return 0L; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetX11Monitor"); } } ///Returns the `Window` of the specified window. @@ -396,9 +371,7 @@ private Handles() { } try { return (long) Handles.MH_glfwGetX11Window.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetX11Window", e); } - } else { - return 0L; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetX11Window"); } } ///Sets the current primary selection to the specified string. @@ -420,7 +393,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.for try { Handles.MH_glfwSetX11SelectionString.invokeExact(string); } catch (Throwable e) { throw new RuntimeException("error in glfwSetX11SelectionString", e); } - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwSetX11SelectionString"); } } ///Sets the current primary selection to the specified string. @@ -442,7 +415,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try (var __overrungl_stack = MemoryStack.pushLocal()) { Handles.MH_glfwSetX11SelectionString.invokeExact(Marshal.marshal(__overrungl_stack, string)); } catch (Throwable e) { throw new RuntimeException("error in glfwSetX11SelectionString", e); } - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwSetX11SelectionString"); } } ///Returns the contents of the current primary selection as a string. @@ -470,9 +443,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetX11SelectionString.invokeExact(); } catch (Throwable e) { throw new RuntimeException("error in glfwGetX11SelectionString", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetX11SelectionString"); } } ///Returns the contents of the current primary selection as a string. @@ -500,9 +471,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return Unmarshal.unmarshalAsString((java.lang.foreign.MemorySegment) Handles.MH_glfwGetX11SelectionString.invokeExact()); } catch (Throwable e) { throw new RuntimeException("error in glfwGetX11SelectionString", e); } - } else { - return null; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetX11SelectionString"); } } ///Returns the `GLXContext` of the specified window. @@ -520,9 +489,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetGLXContext.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetGLXContext", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetGLXContext"); } } ///Returns the `GLXWindow` of the specified window. @@ -540,9 +507,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (long) Handles.MH_glfwGetGLXWindow.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetGLXWindow", e); } - } else { - return 0L; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetGLXWindow"); } } ///Returns the `struct wl_display*` used by GLFW. @@ -560,9 +525,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWaylandDisplay.invokeExact(); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWaylandDisplay", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWaylandDisplay"); } } ///Returns the `struct wl_output*` of the specified monitor. @@ -580,9 +543,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWaylandMonitor.invokeExact(monitor); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWaylandMonitor", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWaylandMonitor"); } } ///Returns the main `struct wl_surface*` of the specified window. @@ -600,9 +561,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetWaylandWindow.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetWaylandWindow", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetWaylandWindow"); } } ///Returns the `EGLDisplay` used by GLFW. @@ -622,9 +581,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetEGLDisplay.invokeExact(); } catch (Throwable e) { throw new RuntimeException("error in glfwGetEGLDisplay", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetEGLDisplay"); } } ///Returns the `EGLContext` of the specified window. @@ -642,9 +599,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetEGLContext.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetEGLContext", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetEGLContext"); } } ///Returns the `EGLSurface` of the specified window. @@ -662,9 +617,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetEGLSurface.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetEGLSurface", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetEGLSurface"); } } ///Retrieves the color buffer associated with the specified window. @@ -689,9 +642,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (int) Handles.MH_glfwGetOSMesaColorBuffer.invokeExact(window, width, height, format, buffer) != GLFW.GLFW_FALSE; } catch (Throwable e) { throw new RuntimeException("error in glfwGetOSMesaColorBuffer", e); } - } else { - return false; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetOSMesaColorBuffer"); } } ///Retrieves the depth buffer associated with the specified window. @@ -716,9 +667,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (int) Handles.MH_glfwGetOSMesaDepthBuffer.invokeExact(window, width, height, bytesPerValue, buffer) != GLFW.GLFW_FALSE; } catch (Throwable e) { throw new RuntimeException("error in glfwGetOSMesaDepthBuffer", e); } - } else { - return false; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetOSMesaDepthBuffer"); } } ///Returns the `OSMesaContext` of the specified window. @@ -736,9 +685,7 @@ public static void glfwSetX11SelectionString(@CType("const char*") java.lang.Str try { return (java.lang.foreign.MemorySegment) Handles.MH_glfwGetOSMesaContext.invokeExact(window); } catch (Throwable e) { throw new RuntimeException("error in glfwGetOSMesaContext", e); } - } else { - return MemorySegment.NULL; - } + } else { throw new SymbolNotFoundError("Symbol not found: glfwGetOSMesaContext"); } } //@formatter:on diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java index 8c0d04b6..dc6f53ea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL10.java @@ -343,342 +343,339 @@ public GL10(GLLoadFunc func) { } public void CullFace(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glCullFace)) + if (!Unmarshal.isNullPointer(PFN_glCullFace)) { try { MH_glCullFace.invokeExact(PFN_glCullFace, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glCullFace", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCullFace", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCullFace"); } } public void FrontFace(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glFrontFace)) + if (!Unmarshal.isNullPointer(PFN_glFrontFace)) { try { MH_glFrontFace.invokeExact(PFN_glFrontFace, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glFrontFace", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFrontFace", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFrontFace"); } } public void Hint(@CType("GLenum") int target, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glHint)) + if (!Unmarshal.isNullPointer(PFN_glHint)) { try { MH_glHint.invokeExact(PFN_glHint, target, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glHint", e); } + } catch (Throwable e) { throw new RuntimeException("error in glHint", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glHint"); } } public void LineWidth(@CType("GLfloat") float width) { - try { if (!Unmarshal.isNullPointer(PFN_glLineWidth)) + if (!Unmarshal.isNullPointer(PFN_glLineWidth)) { try { MH_glLineWidth.invokeExact(PFN_glLineWidth, width); - } - catch (Throwable e) { throw new RuntimeException("error in glLineWidth", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLineWidth", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLineWidth"); } } public void PointSize(@CType("GLfloat") float size) { - try { if (!Unmarshal.isNullPointer(PFN_glPointSize)) + if (!Unmarshal.isNullPointer(PFN_glPointSize)) { try { MH_glPointSize.invokeExact(PFN_glPointSize, size); - } - catch (Throwable e) { throw new RuntimeException("error in glPointSize", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointSize", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointSize"); } } public void PolygonMode(@CType("GLenum") int face, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonMode)) + if (!Unmarshal.isNullPointer(PFN_glPolygonMode)) { try { MH_glPolygonMode.invokeExact(PFN_glPolygonMode, face, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonMode", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonMode", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonMode"); } } public void Scissor(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glScissor)) + if (!Unmarshal.isNullPointer(PFN_glScissor)) { try { MH_glScissor.invokeExact(PFN_glScissor, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glScissor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissor"); } } public void TexParameterf(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterf)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterf)) { try { MH_glTexParameterf.invokeExact(PFN_glTexParameterf, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterf"); } } public void TexParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterfv)) { try { MH_glTexParameterfv.invokeExact(PFN_glTexParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterfv"); } } public void TexParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameteri)) + if (!Unmarshal.isNullPointer(PFN_glTexParameteri)) { try { MH_glTexParameteri.invokeExact(PFN_glTexParameteri, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameteri"); } } public void TexParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glTexParameteriv)) { try { MH_glTexParameteriv.invokeExact(PFN_glTexParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameteriv"); } } public void TexImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage1D)) + if (!Unmarshal.isNullPointer(PFN_glTexImage1D)) { try { MH_glTexImage1D.invokeExact(PFN_glTexImage1D, target, level, internalformat, width, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage1D"); } } public void TexImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage2D)) + if (!Unmarshal.isNullPointer(PFN_glTexImage2D)) { try { MH_glTexImage2D.invokeExact(PFN_glTexImage2D, target, level, internalformat, width, height, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage2D"); } } public void DrawBuffer(@CType("GLenum") int buf) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffer)) + if (!Unmarshal.isNullPointer(PFN_glDrawBuffer)) { try { MH_glDrawBuffer.invokeExact(PFN_glDrawBuffer, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawBuffer"); } } public void Clear(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glClear)) + if (!Unmarshal.isNullPointer(PFN_glClear)) { try { MH_glClear.invokeExact(PFN_glClear, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glClear", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClear", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClear"); } } public void ClearColor(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glClearColor)) + if (!Unmarshal.isNullPointer(PFN_glClearColor)) { try { MH_glClearColor.invokeExact(PFN_glClearColor, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glClearColor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearColor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearColor"); } } public void ClearStencil(@CType("GLint") int s) { - try { if (!Unmarshal.isNullPointer(PFN_glClearStencil)) + if (!Unmarshal.isNullPointer(PFN_glClearStencil)) { try { MH_glClearStencil.invokeExact(PFN_glClearStencil, s); - } - catch (Throwable e) { throw new RuntimeException("error in glClearStencil", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearStencil", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearStencil"); } } public void ClearDepth(@CType("GLdouble") double depth) { - try { if (!Unmarshal.isNullPointer(PFN_glClearDepth)) + if (!Unmarshal.isNullPointer(PFN_glClearDepth)) { try { MH_glClearDepth.invokeExact(PFN_glClearDepth, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glClearDepth", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearDepth", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearDepth"); } } public void StencilMask(@CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilMask)) + if (!Unmarshal.isNullPointer(PFN_glStencilMask)) { try { MH_glStencilMask.invokeExact(PFN_glStencilMask, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilMask", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilMask", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilMask"); } } public void ColorMask(@CType("GLboolean") boolean red, @CType("GLboolean") boolean green, @CType("GLboolean") boolean blue, @CType("GLboolean") boolean alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glColorMask)) + if (!Unmarshal.isNullPointer(PFN_glColorMask)) { try { MH_glColorMask.invokeExact(PFN_glColorMask, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glColorMask", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorMask", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorMask"); } } public void DepthMask(@CType("GLboolean") boolean flag) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthMask)) + if (!Unmarshal.isNullPointer(PFN_glDepthMask)) { try { MH_glDepthMask.invokeExact(PFN_glDepthMask, flag); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthMask", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthMask", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthMask"); } } public void Disable(@CType("GLenum") int cap) { - try { if (!Unmarshal.isNullPointer(PFN_glDisable)) + if (!Unmarshal.isNullPointer(PFN_glDisable)) { try { MH_glDisable.invokeExact(PFN_glDisable, cap); - } - catch (Throwable e) { throw new RuntimeException("error in glDisable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisable"); } } public void Enable(@CType("GLenum") int cap) { - try { if (!Unmarshal.isNullPointer(PFN_glEnable)) + if (!Unmarshal.isNullPointer(PFN_glEnable)) { try { MH_glEnable.invokeExact(PFN_glEnable, cap); - } - catch (Throwable e) { throw new RuntimeException("error in glEnable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnable"); } } public void Finish() { - try { if (!Unmarshal.isNullPointer(PFN_glFinish)) + if (!Unmarshal.isNullPointer(PFN_glFinish)) { try { MH_glFinish.invokeExact(PFN_glFinish); - } - catch (Throwable e) { throw new RuntimeException("error in glFinish", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinish", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinish"); } } public void Flush() { - try { if (!Unmarshal.isNullPointer(PFN_glFlush)) + if (!Unmarshal.isNullPointer(PFN_glFlush)) { try { MH_glFlush.invokeExact(PFN_glFlush); - } - catch (Throwable e) { throw new RuntimeException("error in glFlush", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlush", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlush"); } } public void BlendFunc(@CType("GLenum") int sfactor, @CType("GLenum") int dfactor) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFunc)) + if (!Unmarshal.isNullPointer(PFN_glBlendFunc)) { try { MH_glBlendFunc.invokeExact(PFN_glBlendFunc, sfactor, dfactor); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFunc", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFunc", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFunc"); } } public void LogicOp(@CType("GLenum") int opcode) { - try { if (!Unmarshal.isNullPointer(PFN_glLogicOp)) + if (!Unmarshal.isNullPointer(PFN_glLogicOp)) { try { MH_glLogicOp.invokeExact(PFN_glLogicOp, opcode); - } - catch (Throwable e) { throw new RuntimeException("error in glLogicOp", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLogicOp", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLogicOp"); } } public void StencilFunc(@CType("GLenum") int func, @CType("GLint") int ref, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilFunc)) + if (!Unmarshal.isNullPointer(PFN_glStencilFunc)) { try { MH_glStencilFunc.invokeExact(PFN_glStencilFunc, func, ref, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilFunc", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilFunc", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilFunc"); } } public void StencilOp(@CType("GLenum") int fail, @CType("GLenum") int zfail, @CType("GLenum") int zpass) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilOp)) + if (!Unmarshal.isNullPointer(PFN_glStencilOp)) { try { MH_glStencilOp.invokeExact(PFN_glStencilOp, fail, zfail, zpass); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilOp", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilOp", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilOp"); } } public void DepthFunc(@CType("GLenum") int func) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthFunc)) + if (!Unmarshal.isNullPointer(PFN_glDepthFunc)) { try { MH_glDepthFunc.invokeExact(PFN_glDepthFunc, func); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthFunc", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthFunc", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthFunc"); } } public void PixelStoref(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelStoref)) + if (!Unmarshal.isNullPointer(PFN_glPixelStoref)) { try { MH_glPixelStoref.invokeExact(PFN_glPixelStoref, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelStoref", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelStoref", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelStoref"); } } public void PixelStorei(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelStorei)) + if (!Unmarshal.isNullPointer(PFN_glPixelStorei)) { try { MH_glPixelStorei.invokeExact(PFN_glPixelStorei, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelStorei", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelStorei", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelStorei"); } } public void ReadBuffer(@CType("GLenum") int src) { - try { if (!Unmarshal.isNullPointer(PFN_glReadBuffer)) + if (!Unmarshal.isNullPointer(PFN_glReadBuffer)) { try { MH_glReadBuffer.invokeExact(PFN_glReadBuffer, src); - } - catch (Throwable e) { throw new RuntimeException("error in glReadBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadBuffer"); } } public void ReadPixels(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glReadPixels)) + if (!Unmarshal.isNullPointer(PFN_glReadPixels)) { try { MH_glReadPixels.invokeExact(PFN_glReadPixels, x, y, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glReadPixels", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadPixels", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadPixels"); } } public void GetBooleanv(@CType("GLenum") int pname, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBooleanv)) + if (!Unmarshal.isNullPointer(PFN_glGetBooleanv)) { try { MH_glGetBooleanv.invokeExact(PFN_glGetBooleanv, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBooleanv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBooleanv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBooleanv"); } } public void GetDoublev(@CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDoublev)) + if (!Unmarshal.isNullPointer(PFN_glGetDoublev)) { try { MH_glGetDoublev.invokeExact(PFN_glGetDoublev, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetDoublev", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDoublev", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDoublev"); } } public @CType("GLenum") int GetError() { - try { if (!Unmarshal.isNullPointer(PFN_glGetError)) + if (!Unmarshal.isNullPointer(PFN_glGetError)) { try { return (int) MH_glGetError.invokeExact(PFN_glGetError); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetError", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetError", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetError"); } } public void GetFloatv(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFloatv)) + if (!Unmarshal.isNullPointer(PFN_glGetFloatv)) { try { MH_glGetFloatv.invokeExact(PFN_glGetFloatv, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFloatv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFloatv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFloatv"); } } public void GetIntegerv(@CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerv)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegerv)) { try { MH_glGetIntegerv.invokeExact(PFN_glGetIntegerv, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegerv"); } } public @CType("const GLubyte *") java.lang.foreign.MemorySegment GetString(@CType("GLenum") int name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetString)) + if (!Unmarshal.isNullPointer(PFN_glGetString)) { try { return (java.lang.foreign.MemorySegment) MH_glGetString.invokeExact(PFN_glGetString, name); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glGetString", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetString", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetString"); } } public void GetTexImage(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexImage)) + if (!Unmarshal.isNullPointer(PFN_glGetTexImage)) { try { MH_glGetTexImage.invokeExact(PFN_glGetTexImage, target, level, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexImage"); } } public void GetTexParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterfv)) { try { MH_glGetTexParameterfv.invokeExact(PFN_glGetTexParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterfv"); } } public void GetTexParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameteriv)) { try { MH_glGetTexParameteriv.invokeExact(PFN_glGetTexParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameteriv"); } } public void GetTexLevelParameterfv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameterfv)) { try { MH_glGetTexLevelParameterfv.invokeExact(PFN_glGetTexLevelParameterfv, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexLevelParameterfv"); } } public void GetTexLevelParameteriv(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameteriv)) { try { MH_glGetTexLevelParameteriv.invokeExact(PFN_glGetTexLevelParameteriv, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexLevelParameteriv"); } } public @CType("GLboolean") boolean IsEnabled(@CType("GLenum") int cap) { - try { if (!Unmarshal.isNullPointer(PFN_glIsEnabled)) + if (!Unmarshal.isNullPointer(PFN_glIsEnabled)) { try { return (boolean) MH_glIsEnabled.invokeExact(PFN_glIsEnabled, cap); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsEnabled", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsEnabled", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsEnabled"); } } public void DepthRange(@CType("GLdouble") double n, @CType("GLdouble") double f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRange)) + if (!Unmarshal.isNullPointer(PFN_glDepthRange)) { try { MH_glDepthRange.invokeExact(PFN_glDepthRange, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRange"); } } public void Viewport(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glViewport)) + if (!Unmarshal.isNullPointer(PFN_glViewport)) { try { MH_glViewport.invokeExact(PFN_glViewport, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glViewport", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewport", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewport"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java index 8d1f7d03..a3b1e91d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL11.java @@ -99,95 +99,94 @@ public GL11(GLLoadFunc func) { } public void DrawArrays(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArrays)) + if (!Unmarshal.isNullPointer(PFN_glDrawArrays)) { try { MH_glDrawArrays.invokeExact(PFN_glDrawArrays, mode, first, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArrays"); } } public void DrawElements(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElements)) + if (!Unmarshal.isNullPointer(PFN_glDrawElements)) { try { MH_glDrawElements.invokeExact(PFN_glDrawElements, mode, count, type, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElements", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElements", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElements"); } } public void PolygonOffset(@CType("GLfloat") float factor, @CType("GLfloat") float units) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffset)) + if (!Unmarshal.isNullPointer(PFN_glPolygonOffset)) { try { MH_glPolygonOffset.invokeExact(PFN_glPolygonOffset, factor, units); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonOffset", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonOffset", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonOffset"); } } public void CopyTexImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexImage1D)) { try { MH_glCopyTexImage1D.invokeExact(PFN_glCopyTexImage1D, target, level, internalformat, x, y, width, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexImage1D"); } } public void CopyTexImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexImage2D)) { try { MH_glCopyTexImage2D.invokeExact(PFN_glCopyTexImage2D, target, level, internalformat, x, y, width, height, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexImage2D"); } } public void CopyTexSubImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage1D)) { try { MH_glCopyTexSubImage1D.invokeExact(PFN_glCopyTexSubImage1D, target, level, xoffset, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexSubImage1D"); } } public void CopyTexSubImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage2D)) { try { MH_glCopyTexSubImage2D.invokeExact(PFN_glCopyTexSubImage2D, target, level, xoffset, yoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexSubImage2D"); } } public void TexSubImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage1D)) { try { MH_glTexSubImage1D.invokeExact(PFN_glTexSubImage1D, target, level, xoffset, width, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage1D"); } } public void TexSubImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage2D)) { try { MH_glTexSubImage2D.invokeExact(PFN_glTexSubImage2D, target, level, xoffset, yoffset, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage2D"); } } public void BindTexture(@CType("GLenum") int target, @CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTexture)) + if (!Unmarshal.isNullPointer(PFN_glBindTexture)) { try { MH_glBindTexture.invokeExact(PFN_glBindTexture, target, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTexture"); } } public void DeleteTextures(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteTextures)) + if (!Unmarshal.isNullPointer(PFN_glDeleteTextures)) { try { MH_glDeleteTextures.invokeExact(PFN_glDeleteTextures, n, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteTextures"); } } public void GenTextures(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glGenTextures)) + if (!Unmarshal.isNullPointer(PFN_glGenTextures)) { try { MH_glGenTextures.invokeExact(PFN_glGenTextures, n, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glGenTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenTextures"); } } public @CType("GLboolean") boolean IsTexture(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTexture)) + if (!Unmarshal.isNullPointer(PFN_glIsTexture)) { try { return (boolean) MH_glIsTexture.invokeExact(PFN_glIsTexture, texture); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTexture"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java index eda92c2a..a5b65409 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL12.java @@ -78,31 +78,31 @@ public GL12(GLLoadFunc func) { } public void DrawRangeElements(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElements)) + if (!Unmarshal.isNullPointer(PFN_glDrawRangeElements)) { try { MH_glDrawRangeElements.invokeExact(PFN_glDrawRangeElements, mode, start, end, count, type, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElements", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElements", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawRangeElements"); } } public void TexImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage3D)) + if (!Unmarshal.isNullPointer(PFN_glTexImage3D)) { try { MH_glTexImage3D.invokeExact(PFN_glTexImage3D, target, level, internalformat, width, height, depth, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage3D"); } } public void TexSubImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage3D)) { try { MH_glTexSubImage3D.invokeExact(PFN_glTexSubImage3D, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage3D"); } } public void CopyTexSubImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage3D)) { try { MH_glCopyTexSubImage3D.invokeExact(PFN_glCopyTexSubImage3D, target, level, xoffset, yoffset, zoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexSubImage3D"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java index 6f923e98..ce2d892f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL13.java @@ -116,66 +116,66 @@ public GL13(GLLoadFunc func) { } public void ActiveTexture(@CType("GLenum") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveTexture)) + if (!Unmarshal.isNullPointer(PFN_glActiveTexture)) { try { MH_glActiveTexture.invokeExact(PFN_glActiveTexture, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveTexture"); } } public void SampleCoverage(@CType("GLfloat") float value, @CType("GLboolean") boolean invert) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleCoverage)) + if (!Unmarshal.isNullPointer(PFN_glSampleCoverage)) { try { MH_glSampleCoverage.invokeExact(PFN_glSampleCoverage, value, invert); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleCoverage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleCoverage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleCoverage"); } } public void CompressedTexImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage3D)) { try { MH_glCompressedTexImage3D.invokeExact(PFN_glCompressedTexImage3D, target, level, internalformat, width, height, depth, border, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexImage3D"); } } public void CompressedTexImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage2D)) { try { MH_glCompressedTexImage2D.invokeExact(PFN_glCompressedTexImage2D, target, level, internalformat, width, height, border, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexImage2D"); } } public void CompressedTexImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage1D)) { try { MH_glCompressedTexImage1D.invokeExact(PFN_glCompressedTexImage1D, target, level, internalformat, width, border, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexImage1D"); } } public void CompressedTexSubImage3D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage3D)) { try { MH_glCompressedTexSubImage3D.invokeExact(PFN_glCompressedTexSubImage3D, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexSubImage3D"); } } public void CompressedTexSubImage2D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage2D)) { try { MH_glCompressedTexSubImage2D.invokeExact(PFN_glCompressedTexSubImage2D, target, level, xoffset, yoffset, width, height, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexSubImage2D"); } } public void CompressedTexSubImage1D(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage1D)) { try { MH_glCompressedTexSubImage1D.invokeExact(PFN_glCompressedTexSubImage1D, target, level, xoffset, width, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexSubImage1D"); } } public void GetCompressedTexImage(@CType("GLenum") int target, @CType("GLint") int level, @CType("void*") java.lang.foreign.MemorySegment img) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTexImage)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTexImage)) { try { MH_glGetCompressedTexImage.invokeExact(PFN_glGetCompressedTexImage, target, level, img); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTexImage"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java index 5a0a7e93..a8338756 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL14.java @@ -84,66 +84,66 @@ public GL14(GLLoadFunc func) { } public void BlendFuncSeparate(@CType("GLenum") int sfactorRGB, @CType("GLenum") int dfactorRGB, @CType("GLenum") int sfactorAlpha, @CType("GLenum") int dfactorAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparate)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparate)) { try { MH_glBlendFuncSeparate.invokeExact(PFN_glBlendFuncSeparate, sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparate", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparate", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncSeparate"); } } public void MultiDrawArrays(@CType("GLenum") int mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int drawcount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArrays)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArrays)) { try { MH_glMultiDrawArrays.invokeExact(PFN_glMultiDrawArrays, mode, first, count, drawcount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArrays"); } } public void MultiDrawElements(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int drawcount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElements)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElements)) { try { MH_glMultiDrawElements.invokeExact(PFN_glMultiDrawElements, mode, count, type, indices, drawcount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElements", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElements", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElements"); } } public void PointParameterf(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterf)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterf)) { try { MH_glPointParameterf.invokeExact(PFN_glPointParameterf, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterf"); } } public void PointParameterfv(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfv)) { try { MH_glPointParameterfv.invokeExact(PFN_glPointParameterfv, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfv"); } } public void PointParameteri(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameteri)) + if (!Unmarshal.isNullPointer(PFN_glPointParameteri)) { try { MH_glPointParameteri.invokeExact(PFN_glPointParameteri, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameteri"); } } public void PointParameteriv(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glPointParameteriv)) { try { MH_glPointParameteriv.invokeExact(PFN_glPointParameteriv, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameteriv"); } } public void BlendColor(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendColor)) + if (!Unmarshal.isNullPointer(PFN_glBlendColor)) { try { MH_glBlendColor.invokeExact(PFN_glBlendColor, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendColor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendColor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendColor"); } } public void BlendEquation(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquation)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquation)) { try { MH_glBlendEquation.invokeExact(PFN_glBlendEquation, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquation"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java index 71d9d3f6..3d314238 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL15.java @@ -115,140 +115,136 @@ public GL15(GLLoadFunc func) { } public void GenQueries(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glGenQueries)) + if (!Unmarshal.isNullPointer(PFN_glGenQueries)) { try { MH_glGenQueries.invokeExact(PFN_glGenQueries, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glGenQueries", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenQueries", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenQueries"); } } public void DeleteQueries(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteQueries)) + if (!Unmarshal.isNullPointer(PFN_glDeleteQueries)) { try { MH_glDeleteQueries.invokeExact(PFN_glDeleteQueries, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteQueries", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteQueries", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteQueries"); } } public @CType("GLboolean") boolean IsQuery(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsQuery)) + if (!Unmarshal.isNullPointer(PFN_glIsQuery)) { try { return (boolean) MH_glIsQuery.invokeExact(PFN_glIsQuery, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsQuery", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsQuery", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsQuery"); } } public void BeginQuery(@CType("GLenum") int target, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginQuery)) + if (!Unmarshal.isNullPointer(PFN_glBeginQuery)) { try { MH_glBeginQuery.invokeExact(PFN_glBeginQuery, target, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginQuery", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginQuery", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginQuery"); } } public void EndQuery(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glEndQuery)) + if (!Unmarshal.isNullPointer(PFN_glEndQuery)) { try { MH_glEndQuery.invokeExact(PFN_glEndQuery, target); - } - catch (Throwable e) { throw new RuntimeException("error in glEndQuery", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndQuery", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndQuery"); } } public void GetQueryiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryiv)) { try { MH_glGetQueryiv.invokeExact(PFN_glGetQueryiv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryiv"); } } public void GetQueryObjectiv(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectiv)) { try { MH_glGetQueryObjectiv.invokeExact(PFN_glGetQueryObjectiv, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectiv"); } } public void GetQueryObjectuiv(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectuiv)) { try { MH_glGetQueryObjectuiv.invokeExact(PFN_glGetQueryObjectuiv, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectuiv"); } } public void BindBuffer(@CType("GLenum") int target, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindBuffer)) { try { MH_glBindBuffer.invokeExact(PFN_glBindBuffer, target, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBuffer"); } } public void DeleteBuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteBuffers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteBuffers)) { try { MH_glDeleteBuffers.invokeExact(PFN_glDeleteBuffers, n, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteBuffers"); } } public void GenBuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenBuffers)) + if (!Unmarshal.isNullPointer(PFN_glGenBuffers)) { try { MH_glGenBuffers.invokeExact(PFN_glGenBuffers, n, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenBuffers"); } } public @CType("GLboolean") boolean IsBuffer(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsBuffer)) + if (!Unmarshal.isNullPointer(PFN_glIsBuffer)) { try { return (boolean) MH_glIsBuffer.invokeExact(PFN_glIsBuffer, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsBuffer"); } } public void BufferData(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferData)) + if (!Unmarshal.isNullPointer(PFN_glBufferData)) { try { MH_glBufferData.invokeExact(PFN_glBufferData, target, size, data, usage); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferData"); } } public void BufferSubData(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glBufferSubData)) { try { MH_glBufferSubData.invokeExact(PFN_glBufferSubData, target, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferSubData"); } } public void GetBufferSubData(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferSubData)) { try { MH_glGetBufferSubData.invokeExact(PFN_glGetBufferSubData, target, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferSubData"); } } public @CType("void*") java.lang.foreign.MemorySegment MapBuffer(@CType("GLenum") int target, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapBuffer)) + if (!Unmarshal.isNullPointer(PFN_glMapBuffer)) { try { return (java.lang.foreign.MemorySegment) MH_glMapBuffer.invokeExact(PFN_glMapBuffer, target, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapBuffer"); } } public @CType("GLboolean") boolean UnmapBuffer(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapBuffer)) + if (!Unmarshal.isNullPointer(PFN_glUnmapBuffer)) { try { return (boolean) MH_glUnmapBuffer.invokeExact(PFN_glUnmapBuffer, target); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapBuffer"); } } public void GetBufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferParameteriv)) { try { MH_glGetBufferParameteriv.invokeExact(PFN_glGetBufferParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferParameteriv"); } } public void GetBufferPointerv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferPointerv)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferPointerv)) { try { MH_glGetBufferPointerv.invokeExact(PFN_glGetBufferPointerv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferPointerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferPointerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferPointerv"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java index 1290c86c..43ca363d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL20.java @@ -389,660 +389,654 @@ public GL20(GLLoadFunc func) { } public void BlendEquationSeparate(@CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparate)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparate)) { try { MH_glBlendEquationSeparate.invokeExact(PFN_glBlendEquationSeparate, modeRGB, modeAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparate", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparate", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationSeparate"); } } public void DrawBuffers(@CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffers)) + if (!Unmarshal.isNullPointer(PFN_glDrawBuffers)) { try { MH_glDrawBuffers.invokeExact(PFN_glDrawBuffers, n, bufs); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawBuffers"); } } public void StencilOpSeparate(@CType("GLenum") int face, @CType("GLenum") int sfail, @CType("GLenum") int dpfail, @CType("GLenum") int dppass) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilOpSeparate)) + if (!Unmarshal.isNullPointer(PFN_glStencilOpSeparate)) { try { MH_glStencilOpSeparate.invokeExact(PFN_glStencilOpSeparate, face, sfail, dpfail, dppass); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilOpSeparate", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilOpSeparate", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilOpSeparate"); } } public void StencilFuncSeparate(@CType("GLenum") int face, @CType("GLenum") int func, @CType("GLint") int ref, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilFuncSeparate)) + if (!Unmarshal.isNullPointer(PFN_glStencilFuncSeparate)) { try { MH_glStencilFuncSeparate.invokeExact(PFN_glStencilFuncSeparate, face, func, ref, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilFuncSeparate", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilFuncSeparate", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilFuncSeparate"); } } public void StencilMaskSeparate(@CType("GLenum") int face, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilMaskSeparate)) + if (!Unmarshal.isNullPointer(PFN_glStencilMaskSeparate)) { try { MH_glStencilMaskSeparate.invokeExact(PFN_glStencilMaskSeparate, face, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilMaskSeparate", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilMaskSeparate", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilMaskSeparate"); } } public void AttachShader(@CType("GLuint") int program, @CType("GLuint") int shader) { - try { if (!Unmarshal.isNullPointer(PFN_glAttachShader)) + if (!Unmarshal.isNullPointer(PFN_glAttachShader)) { try { MH_glAttachShader.invokeExact(PFN_glAttachShader, program, shader); - } - catch (Throwable e) { throw new RuntimeException("error in glAttachShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAttachShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAttachShader"); } } public void BindAttribLocation(@CType("GLuint") int program, @CType("GLuint") int index, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glBindAttribLocation)) + if (!Unmarshal.isNullPointer(PFN_glBindAttribLocation)) { try { MH_glBindAttribLocation.invokeExact(PFN_glBindAttribLocation, program, index, name); - } - catch (Throwable e) { throw new RuntimeException("error in glBindAttribLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindAttribLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindAttribLocation"); } } public void CompileShader(@CType("GLuint") int shader) { - try { if (!Unmarshal.isNullPointer(PFN_glCompileShader)) + if (!Unmarshal.isNullPointer(PFN_glCompileShader)) { try { MH_glCompileShader.invokeExact(PFN_glCompileShader, shader); - } - catch (Throwable e) { throw new RuntimeException("error in glCompileShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompileShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompileShader"); } } public @CType("GLuint") int CreateProgram() { - try { if (!Unmarshal.isNullPointer(PFN_glCreateProgram)) + if (!Unmarshal.isNullPointer(PFN_glCreateProgram)) { try { return (int) MH_glCreateProgram.invokeExact(PFN_glCreateProgram); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateProgram"); } } public @CType("GLuint") int CreateShader(@CType("GLenum") int type) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateShader)) + if (!Unmarshal.isNullPointer(PFN_glCreateShader)) { try { return (int) MH_glCreateShader.invokeExact(PFN_glCreateShader, type); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateShader"); } } public void DeleteProgram(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgram)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgram)) { try { MH_glDeleteProgram.invokeExact(PFN_glDeleteProgram, program); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgram"); } } public void DeleteShader(@CType("GLuint") int shader) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteShader)) + if (!Unmarshal.isNullPointer(PFN_glDeleteShader)) { try { MH_glDeleteShader.invokeExact(PFN_glDeleteShader, shader); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteShader"); } } public void DetachShader(@CType("GLuint") int program, @CType("GLuint") int shader) { - try { if (!Unmarshal.isNullPointer(PFN_glDetachShader)) + if (!Unmarshal.isNullPointer(PFN_glDetachShader)) { try { MH_glDetachShader.invokeExact(PFN_glDetachShader, program, shader); - } - catch (Throwable e) { throw new RuntimeException("error in glDetachShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDetachShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDetachShader"); } } public void DisableVertexAttribArray(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArray)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArray)) { try { MH_glDisableVertexAttribArray.invokeExact(PFN_glDisableVertexAttribArray, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArray", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArray", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexAttribArray"); } } public void EnableVertexAttribArray(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArray)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArray)) { try { MH_glEnableVertexAttribArray.invokeExact(PFN_glEnableVertexAttribArray, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArray", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArray", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexAttribArray"); } } public void GetActiveAttrib(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAttrib)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveAttrib)) { try { MH_glGetActiveAttrib.invokeExact(PFN_glGetActiveAttrib, program, index, bufSize, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveAttrib", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveAttrib", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveAttrib"); } } public void GetActiveUniform(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniform)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniform)) { try { MH_glGetActiveUniform.invokeExact(PFN_glGetActiveUniform, program, index, bufSize, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniform", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniform", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniform"); } } public void GetAttachedShaders(@CType("GLuint") int program, @CType("GLsizei") int maxCount, @CType("GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLuint *") java.lang.foreign.MemorySegment shaders) { - try { if (!Unmarshal.isNullPointer(PFN_glGetAttachedShaders)) + if (!Unmarshal.isNullPointer(PFN_glGetAttachedShaders)) { try { MH_glGetAttachedShaders.invokeExact(PFN_glGetAttachedShaders, program, maxCount, count, shaders); - } - catch (Throwable e) { throw new RuntimeException("error in glGetAttachedShaders", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetAttachedShaders", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetAttachedShaders"); } } public @CType("GLint") int GetAttribLocation(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetAttribLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetAttribLocation)) { try { return (int) MH_glGetAttribLocation.invokeExact(PFN_glGetAttribLocation, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetAttribLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetAttribLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetAttribLocation"); } } public void GetProgramiv(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramiv)) { try { MH_glGetProgramiv.invokeExact(PFN_glGetProgramiv, program, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramiv"); } } public void GetProgramInfoLog(@CType("GLuint") int program, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramInfoLog)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramInfoLog)) { try { MH_glGetProgramInfoLog.invokeExact(PFN_glGetProgramInfoLog, program, bufSize, length, infoLog); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramInfoLog", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramInfoLog", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramInfoLog"); } } public void GetShaderiv(@CType("GLuint") int shader, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShaderiv)) + if (!Unmarshal.isNullPointer(PFN_glGetShaderiv)) { try { MH_glGetShaderiv.invokeExact(PFN_glGetShaderiv, shader, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShaderiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShaderiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShaderiv"); } } public void GetShaderInfoLog(@CType("GLuint") int shader, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShaderInfoLog)) + if (!Unmarshal.isNullPointer(PFN_glGetShaderInfoLog)) { try { MH_glGetShaderInfoLog.invokeExact(PFN_glGetShaderInfoLog, shader, bufSize, length, infoLog); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShaderInfoLog", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShaderInfoLog", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShaderInfoLog"); } } public void GetShaderSource(@CType("GLuint") int shader, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment source) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShaderSource)) + if (!Unmarshal.isNullPointer(PFN_glGetShaderSource)) { try { MH_glGetShaderSource.invokeExact(PFN_glGetShaderSource, shader, bufSize, length, source); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShaderSource", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShaderSource", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShaderSource"); } } public @CType("GLint") int GetUniformLocation(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformLocation)) { try { return (int) MH_glGetUniformLocation.invokeExact(PFN_glGetUniformLocation, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformLocation"); } } public void GetUniformfv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformfv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformfv)) { try { MH_glGetUniformfv.invokeExact(PFN_glGetUniformfv, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformfv"); } } public void GetUniformiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformiv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformiv)) { try { MH_glGetUniformiv.invokeExact(PFN_glGetUniformiv, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformiv"); } } public void GetVertexAttribdv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdv)) { try { MH_glGetVertexAttribdv.invokeExact(PFN_glGetVertexAttribdv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribdv"); } } public void GetVertexAttribfv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfv)) { try { MH_glGetVertexAttribfv.invokeExact(PFN_glGetVertexAttribfv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribfv"); } } public void GetVertexAttribiv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribiv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribiv)) { try { MH_glGetVertexAttribiv.invokeExact(PFN_glGetVertexAttribiv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribiv"); } } public void GetVertexAttribPointerv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointerv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointerv)) { try { MH_glGetVertexAttribPointerv.invokeExact(PFN_glGetVertexAttribPointerv, index, pname, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribPointerv"); } } public @CType("GLboolean") boolean IsProgram(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgram)) + if (!Unmarshal.isNullPointer(PFN_glIsProgram)) { try { return (boolean) MH_glIsProgram.invokeExact(PFN_glIsProgram, program); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgram"); } } public @CType("GLboolean") boolean IsShader(@CType("GLuint") int shader) { - try { if (!Unmarshal.isNullPointer(PFN_glIsShader)) + if (!Unmarshal.isNullPointer(PFN_glIsShader)) { try { return (boolean) MH_glIsShader.invokeExact(PFN_glIsShader, shader); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsShader"); } } public void LinkProgram(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glLinkProgram)) + if (!Unmarshal.isNullPointer(PFN_glLinkProgram)) { try { MH_glLinkProgram.invokeExact(PFN_glLinkProgram, program); - } - catch (Throwable e) { throw new RuntimeException("error in glLinkProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLinkProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLinkProgram"); } } public void ShaderSource(@CType("GLuint") int shader, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment string, @CType("const GLint *") java.lang.foreign.MemorySegment length) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderSource)) + if (!Unmarshal.isNullPointer(PFN_glShaderSource)) { try { MH_glShaderSource.invokeExact(PFN_glShaderSource, shader, count, string, length); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderSource", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderSource", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderSource"); } } public void UseProgram(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glUseProgram)) + if (!Unmarshal.isNullPointer(PFN_glUseProgram)) { try { MH_glUseProgram.invokeExact(PFN_glUseProgram, program); - } - catch (Throwable e) { throw new RuntimeException("error in glUseProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUseProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUseProgram"); } } public void Uniform1f(@CType("GLint") int location, @CType("GLfloat") float v0) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1f)) + if (!Unmarshal.isNullPointer(PFN_glUniform1f)) { try { MH_glUniform1f.invokeExact(PFN_glUniform1f, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1f"); } } public void Uniform2f(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2f)) + if (!Unmarshal.isNullPointer(PFN_glUniform2f)) { try { MH_glUniform2f.invokeExact(PFN_glUniform2f, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2f"); } } public void Uniform3f(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3f)) + if (!Unmarshal.isNullPointer(PFN_glUniform3f)) { try { MH_glUniform3f.invokeExact(PFN_glUniform3f, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3f"); } } public void Uniform4f(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4f)) + if (!Unmarshal.isNullPointer(PFN_glUniform4f)) { try { MH_glUniform4f.invokeExact(PFN_glUniform4f, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4f"); } } public void Uniform1i(@CType("GLint") int location, @CType("GLint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i)) { try { MH_glUniform1i.invokeExact(PFN_glUniform1i, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i"); } } public void Uniform2i(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i)) { try { MH_glUniform2i.invokeExact(PFN_glUniform2i, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i"); } } public void Uniform3i(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i)) { try { MH_glUniform3i.invokeExact(PFN_glUniform3i, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i"); } } public void Uniform4i(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i)) { try { MH_glUniform4i.invokeExact(PFN_glUniform4i, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i"); } } public void Uniform1fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1fv)) + if (!Unmarshal.isNullPointer(PFN_glUniform1fv)) { try { MH_glUniform1fv.invokeExact(PFN_glUniform1fv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1fv"); } } public void Uniform2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2fv)) + if (!Unmarshal.isNullPointer(PFN_glUniform2fv)) { try { MH_glUniform2fv.invokeExact(PFN_glUniform2fv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2fv"); } } public void Uniform3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3fv)) + if (!Unmarshal.isNullPointer(PFN_glUniform3fv)) { try { MH_glUniform3fv.invokeExact(PFN_glUniform3fv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3fv"); } } public void Uniform4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4fv)) + if (!Unmarshal.isNullPointer(PFN_glUniform4fv)) { try { MH_glUniform4fv.invokeExact(PFN_glUniform4fv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4fv"); } } public void Uniform1iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1iv)) + if (!Unmarshal.isNullPointer(PFN_glUniform1iv)) { try { MH_glUniform1iv.invokeExact(PFN_glUniform1iv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1iv"); } } public void Uniform2iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2iv)) + if (!Unmarshal.isNullPointer(PFN_glUniform2iv)) { try { MH_glUniform2iv.invokeExact(PFN_glUniform2iv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2iv"); } } public void Uniform3iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3iv)) + if (!Unmarshal.isNullPointer(PFN_glUniform3iv)) { try { MH_glUniform3iv.invokeExact(PFN_glUniform3iv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3iv"); } } public void Uniform4iv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4iv)) + if (!Unmarshal.isNullPointer(PFN_glUniform4iv)) { try { MH_glUniform4iv.invokeExact(PFN_glUniform4iv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4iv"); } } public void UniformMatrix2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2fv)) { try { MH_glUniformMatrix2fv.invokeExact(PFN_glUniformMatrix2fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2fv"); } } public void UniformMatrix3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3fv)) { try { MH_glUniformMatrix3fv.invokeExact(PFN_glUniformMatrix3fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3fv"); } } public void UniformMatrix4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4fv)) { try { MH_glUniformMatrix4fv.invokeExact(PFN_glUniformMatrix4fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4fv"); } } public void ValidateProgram(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glValidateProgram)) + if (!Unmarshal.isNullPointer(PFN_glValidateProgram)) { try { MH_glValidateProgram.invokeExact(PFN_glValidateProgram, program); - } - catch (Throwable e) { throw new RuntimeException("error in glValidateProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glValidateProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glValidateProgram"); } } public void VertexAttrib1d(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1d)) { try { MH_glVertexAttrib1d.invokeExact(PFN_glVertexAttrib1d, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1d"); } } public void VertexAttrib1dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dv)) { try { MH_glVertexAttrib1dv.invokeExact(PFN_glVertexAttrib1dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dv"); } } public void VertexAttrib1f(@CType("GLuint") int index, @CType("GLfloat") float x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1f)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1f)) { try { MH_glVertexAttrib1f.invokeExact(PFN_glVertexAttrib1f, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1f"); } } public void VertexAttrib1fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fv)) { try { MH_glVertexAttrib1fv.invokeExact(PFN_glVertexAttrib1fv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fv"); } } public void VertexAttrib1s(@CType("GLuint") int index, @CType("GLshort") short x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1s)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1s)) { try { MH_glVertexAttrib1s.invokeExact(PFN_glVertexAttrib1s, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1s", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1s", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1s"); } } public void VertexAttrib1sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sv)) { try { MH_glVertexAttrib1sv.invokeExact(PFN_glVertexAttrib1sv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1sv"); } } public void VertexAttrib2d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2d)) { try { MH_glVertexAttrib2d.invokeExact(PFN_glVertexAttrib2d, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2d"); } } public void VertexAttrib2dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dv)) { try { MH_glVertexAttrib2dv.invokeExact(PFN_glVertexAttrib2dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dv"); } } public void VertexAttrib2f(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2f)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2f)) { try { MH_glVertexAttrib2f.invokeExact(PFN_glVertexAttrib2f, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2f"); } } public void VertexAttrib2fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fv)) { try { MH_glVertexAttrib2fv.invokeExact(PFN_glVertexAttrib2fv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fv"); } } public void VertexAttrib2s(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2s)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2s)) { try { MH_glVertexAttrib2s.invokeExact(PFN_glVertexAttrib2s, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2s", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2s", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2s"); } } public void VertexAttrib2sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sv)) { try { MH_glVertexAttrib2sv.invokeExact(PFN_glVertexAttrib2sv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2sv"); } } public void VertexAttrib3d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3d)) { try { MH_glVertexAttrib3d.invokeExact(PFN_glVertexAttrib3d, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3d"); } } public void VertexAttrib3dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dv)) { try { MH_glVertexAttrib3dv.invokeExact(PFN_glVertexAttrib3dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dv"); } } public void VertexAttrib3f(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3f)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3f)) { try { MH_glVertexAttrib3f.invokeExact(PFN_glVertexAttrib3f, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3f"); } } public void VertexAttrib3fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fv)) { try { MH_glVertexAttrib3fv.invokeExact(PFN_glVertexAttrib3fv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fv"); } } public void VertexAttrib3s(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3s)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3s)) { try { MH_glVertexAttrib3s.invokeExact(PFN_glVertexAttrib3s, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3s", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3s", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3s"); } } public void VertexAttrib3sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sv)) { try { MH_glVertexAttrib3sv.invokeExact(PFN_glVertexAttrib3sv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3sv"); } } public void VertexAttrib4Nbv(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nbv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nbv)) { try { MH_glVertexAttrib4Nbv.invokeExact(PFN_glVertexAttrib4Nbv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nbv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nbv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Nbv"); } } public void VertexAttrib4Niv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Niv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Niv)) { try { MH_glVertexAttrib4Niv.invokeExact(PFN_glVertexAttrib4Niv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Niv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Niv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Niv"); } } public void VertexAttrib4Nsv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nsv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nsv)) { try { MH_glVertexAttrib4Nsv.invokeExact(PFN_glVertexAttrib4Nsv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nsv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nsv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Nsv"); } } public void VertexAttrib4Nub(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nub)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nub)) { try { MH_glVertexAttrib4Nub.invokeExact(PFN_glVertexAttrib4Nub, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nub", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nub", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Nub"); } } public void VertexAttrib4Nubv(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nubv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nubv)) { try { MH_glVertexAttrib4Nubv.invokeExact(PFN_glVertexAttrib4Nubv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nubv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nubv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Nubv"); } } public void VertexAttrib4Nuiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nuiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nuiv)) { try { MH_glVertexAttrib4Nuiv.invokeExact(PFN_glVertexAttrib4Nuiv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Nuiv"); } } public void VertexAttrib4Nusv(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nusv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4Nusv)) { try { MH_glVertexAttrib4Nusv.invokeExact(PFN_glVertexAttrib4Nusv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nusv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4Nusv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4Nusv"); } } public void VertexAttrib4bv(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bv)) { try { MH_glVertexAttrib4bv.invokeExact(PFN_glVertexAttrib4bv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4bv"); } } public void VertexAttrib4d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4d)) { try { MH_glVertexAttrib4d.invokeExact(PFN_glVertexAttrib4d, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4d"); } } public void VertexAttrib4dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dv)) { try { MH_glVertexAttrib4dv.invokeExact(PFN_glVertexAttrib4dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dv"); } } public void VertexAttrib4f(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4f)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4f)) { try { MH_glVertexAttrib4f.invokeExact(PFN_glVertexAttrib4f, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4f"); } } public void VertexAttrib4fv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fv)) { try { MH_glVertexAttrib4fv.invokeExact(PFN_glVertexAttrib4fv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fv"); } } public void VertexAttrib4iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4iv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4iv)) { try { MH_glVertexAttrib4iv.invokeExact(PFN_glVertexAttrib4iv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4iv"); } } public void VertexAttrib4s(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4s)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4s)) { try { MH_glVertexAttrib4s.invokeExact(PFN_glVertexAttrib4s, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4s", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4s", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4s"); } } public void VertexAttrib4sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sv)) { try { MH_glVertexAttrib4sv.invokeExact(PFN_glVertexAttrib4sv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4sv"); } } public void VertexAttrib4ubv(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubv)) { try { MH_glVertexAttrib4ubv.invokeExact(PFN_glVertexAttrib4ubv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ubv"); } } public void VertexAttrib4uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uiv)) { try { MH_glVertexAttrib4uiv.invokeExact(PFN_glVertexAttrib4uiv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4uiv"); } } public void VertexAttrib4usv(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usv)) { try { MH_glVertexAttrib4usv.invokeExact(PFN_glVertexAttrib4usv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4usv"); } } public void VertexAttribPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointer)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointer)) { try { MH_glVertexAttribPointer.invokeExact(PFN_glVertexAttribPointer, index, size, type, normalized, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribPointer"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java index 3392be91..39cd3f95 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL21.java @@ -64,45 +64,45 @@ public GL21(GLLoadFunc func) { } public void UniformMatrix2x3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3fv)) { try { MH_glUniformMatrix2x3fv.invokeExact(PFN_glUniformMatrix2x3fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2x3fv"); } } public void UniformMatrix3x2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2fv)) { try { MH_glUniformMatrix3x2fv.invokeExact(PFN_glUniformMatrix3x2fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3x2fv"); } } public void UniformMatrix2x4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4fv)) { try { MH_glUniformMatrix2x4fv.invokeExact(PFN_glUniformMatrix2x4fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2x4fv"); } } public void UniformMatrix4x2fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2fv)) { try { MH_glUniformMatrix4x2fv.invokeExact(PFN_glUniformMatrix4x2fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4x2fv"); } } public void UniformMatrix3x4fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4fv)) { try { MH_glUniformMatrix3x4fv.invokeExact(PFN_glUniformMatrix3x4fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3x4fv"); } } public void UniformMatrix4x3fv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3fv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3fv)) { try { MH_glUniformMatrix4x3fv.invokeExact(PFN_glUniformMatrix4x3fv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4x3fv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java index 08882b87..c044891b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL30.java @@ -513,599 +513,591 @@ public GL30(GLLoadFunc func) { } public void ColorMaski(@CType("GLuint") int index, @CType("GLboolean") boolean r, @CType("GLboolean") boolean g, @CType("GLboolean") boolean b, @CType("GLboolean") boolean a) { - try { if (!Unmarshal.isNullPointer(PFN_glColorMaski)) + if (!Unmarshal.isNullPointer(PFN_glColorMaski)) { try { MH_glColorMaski.invokeExact(PFN_glColorMaski, index, r, g, b, a); - } - catch (Throwable e) { throw new RuntimeException("error in glColorMaski", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorMaski", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorMaski"); } } public void GetBooleani_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBooleani_v)) + if (!Unmarshal.isNullPointer(PFN_glGetBooleani_v)) { try { MH_glGetBooleani_v.invokeExact(PFN_glGetBooleani_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBooleani_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBooleani_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBooleani_v"); } } public void GetIntegeri_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegeri_v)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegeri_v)) { try { MH_glGetIntegeri_v.invokeExact(PFN_glGetIntegeri_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegeri_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegeri_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegeri_v"); } } public void Enablei(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnablei)) + if (!Unmarshal.isNullPointer(PFN_glEnablei)) { try { MH_glEnablei.invokeExact(PFN_glEnablei, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnablei", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnablei", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnablei"); } } public void Disablei(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisablei)) + if (!Unmarshal.isNullPointer(PFN_glDisablei)) { try { MH_glDisablei.invokeExact(PFN_glDisablei, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisablei", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisablei", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisablei"); } } public @CType("GLboolean") boolean IsEnabledi(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glIsEnabledi)) + if (!Unmarshal.isNullPointer(PFN_glIsEnabledi)) { try { return (boolean) MH_glIsEnabledi.invokeExact(PFN_glIsEnabledi, target, index); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsEnabledi", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsEnabledi", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsEnabledi"); } } public void BeginTransformFeedback(@CType("GLenum") int primitiveMode) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedback)) { try { MH_glBeginTransformFeedback.invokeExact(PFN_glBeginTransformFeedback, primitiveMode); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginTransformFeedback"); } } public void EndTransformFeedback() { - try { if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedback)) { try { MH_glEndTransformFeedback.invokeExact(PFN_glEndTransformFeedback); - } - catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndTransformFeedback"); } } public void BindBufferRange(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferRange)) { try { MH_glBindBufferRange.invokeExact(PFN_glBindBufferRange, target, index, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferRange"); } } public void BindBufferBase(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBase)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferBase)) { try { MH_glBindBufferBase.invokeExact(PFN_glBindBufferBase, target, index, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferBase", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferBase", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferBase"); } } public void TransformFeedbackVaryings(@CType("GLuint") int program, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment varyings, @CType("GLenum") int bufferMode) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryings)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryings)) { try { MH_glTransformFeedbackVaryings.invokeExact(PFN_glTransformFeedbackVaryings, program, count, varyings, bufferMode); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryings", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryings", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackVaryings"); } } public void GetTransformFeedbackVarying(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLsizei *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVarying)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVarying)) { try { MH_glGetTransformFeedbackVarying.invokeExact(PFN_glGetTransformFeedbackVarying, program, index, bufSize, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVarying", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVarying", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbackVarying"); } } public void ClampColor(@CType("GLenum") int target, @CType("GLenum") int clamp) { - try { if (!Unmarshal.isNullPointer(PFN_glClampColor)) + if (!Unmarshal.isNullPointer(PFN_glClampColor)) { try { MH_glClampColor.invokeExact(PFN_glClampColor, target, clamp); - } - catch (Throwable e) { throw new RuntimeException("error in glClampColor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClampColor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClampColor"); } } public void BeginConditionalRender(@CType("GLuint") int id, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRender)) + if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRender)) { try { MH_glBeginConditionalRender.invokeExact(PFN_glBeginConditionalRender, id, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRender", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRender", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginConditionalRender"); } } public void EndConditionalRender() { - try { if (!Unmarshal.isNullPointer(PFN_glEndConditionalRender)) + if (!Unmarshal.isNullPointer(PFN_glEndConditionalRender)) { try { MH_glEndConditionalRender.invokeExact(PFN_glEndConditionalRender); - } - catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRender", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRender", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndConditionalRender"); } } public void VertexAttribIPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointer)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointer)) { try { MH_glVertexAttribIPointer.invokeExact(PFN_glVertexAttribIPointer, index, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribIPointer"); } } public void GetVertexAttribIiv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIiv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIiv)) { try { MH_glGetVertexAttribIiv.invokeExact(PFN_glGetVertexAttribIiv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribIiv"); } } public void GetVertexAttribIuiv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuiv)) { try { MH_glGetVertexAttribIuiv.invokeExact(PFN_glGetVertexAttribIuiv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribIuiv"); } } public void VertexAttribI1i(@CType("GLuint") int index, @CType("GLint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1i)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1i)) { try { MH_glVertexAttribI1i.invokeExact(PFN_glVertexAttribI1i, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1i"); } } public void VertexAttribI2i(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2i)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2i)) { try { MH_glVertexAttribI2i.invokeExact(PFN_glVertexAttribI2i, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2i"); } } public void VertexAttribI3i(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3i)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3i)) { try { MH_glVertexAttribI3i.invokeExact(PFN_glVertexAttribI3i, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3i"); } } public void VertexAttribI4i(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4i)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4i)) { try { MH_glVertexAttribI4i.invokeExact(PFN_glVertexAttribI4i, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4i"); } } public void VertexAttribI1ui(@CType("GLuint") int index, @CType("GLuint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ui)) { try { MH_glVertexAttribI1ui.invokeExact(PFN_glVertexAttribI1ui, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1ui"); } } public void VertexAttribI2ui(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ui)) { try { MH_glVertexAttribI2ui.invokeExact(PFN_glVertexAttribI2ui, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2ui"); } } public void VertexAttribI3ui(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ui)) { try { MH_glVertexAttribI3ui.invokeExact(PFN_glVertexAttribI3ui, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3ui"); } } public void VertexAttribI4ui(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ui)) { try { MH_glVertexAttribI4ui.invokeExact(PFN_glVertexAttribI4ui, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4ui"); } } public void VertexAttribI1iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iv)) { try { MH_glVertexAttribI1iv.invokeExact(PFN_glVertexAttribI1iv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1iv"); } } public void VertexAttribI2iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iv)) { try { MH_glVertexAttribI2iv.invokeExact(PFN_glVertexAttribI2iv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2iv"); } } public void VertexAttribI3iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iv)) { try { MH_glVertexAttribI3iv.invokeExact(PFN_glVertexAttribI3iv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3iv"); } } public void VertexAttribI4iv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iv)) { try { MH_glVertexAttribI4iv.invokeExact(PFN_glVertexAttribI4iv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4iv"); } } public void VertexAttribI1uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiv)) { try { MH_glVertexAttribI1uiv.invokeExact(PFN_glVertexAttribI1uiv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1uiv"); } } public void VertexAttribI2uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiv)) { try { MH_glVertexAttribI2uiv.invokeExact(PFN_glVertexAttribI2uiv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2uiv"); } } public void VertexAttribI3uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiv)) { try { MH_glVertexAttribI3uiv.invokeExact(PFN_glVertexAttribI3uiv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3uiv"); } } public void VertexAttribI4uiv(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiv)) { try { MH_glVertexAttribI4uiv.invokeExact(PFN_glVertexAttribI4uiv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4uiv"); } } public void VertexAttribI4bv(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bv)) { try { MH_glVertexAttribI4bv.invokeExact(PFN_glVertexAttribI4bv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4bv"); } } public void VertexAttribI4sv(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4sv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4sv)) { try { MH_glVertexAttribI4sv.invokeExact(PFN_glVertexAttribI4sv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4sv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4sv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4sv"); } } public void VertexAttribI4ubv(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubv)) { try { MH_glVertexAttribI4ubv.invokeExact(PFN_glVertexAttribI4ubv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4ubv"); } } public void VertexAttribI4usv(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usv)) { try { MH_glVertexAttribI4usv.invokeExact(PFN_glVertexAttribI4usv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4usv"); } } public void GetUniformuiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformuiv)) { try { MH_glGetUniformuiv.invokeExact(PFN_glGetUniformuiv, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformuiv"); } } public void BindFragDataLocation(@CType("GLuint") int program, @CType("GLuint") int color, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocation)) + if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocation)) { try { MH_glBindFragDataLocation.invokeExact(PFN_glBindFragDataLocation, program, color, name); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFragDataLocation"); } } public @CType("GLint") int GetFragDataLocation(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetFragDataLocation)) { try { return (int) MH_glGetFragDataLocation.invokeExact(PFN_glGetFragDataLocation, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragDataLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragDataLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragDataLocation"); } } public void Uniform1ui(@CType("GLint") int location, @CType("GLuint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui)) { try { MH_glUniform1ui.invokeExact(PFN_glUniform1ui, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui"); } } public void Uniform2ui(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui)) { try { MH_glUniform2ui.invokeExact(PFN_glUniform2ui, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui"); } } public void Uniform3ui(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui)) { try { MH_glUniform3ui.invokeExact(PFN_glUniform3ui, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui"); } } public void Uniform4ui(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui)) { try { MH_glUniform4ui.invokeExact(PFN_glUniform4ui, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui"); } } public void Uniform1uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1uiv)) + if (!Unmarshal.isNullPointer(PFN_glUniform1uiv)) { try { MH_glUniform1uiv.invokeExact(PFN_glUniform1uiv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1uiv"); } } public void Uniform2uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2uiv)) + if (!Unmarshal.isNullPointer(PFN_glUniform2uiv)) { try { MH_glUniform2uiv.invokeExact(PFN_glUniform2uiv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2uiv"); } } public void Uniform3uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3uiv)) + if (!Unmarshal.isNullPointer(PFN_glUniform3uiv)) { try { MH_glUniform3uiv.invokeExact(PFN_glUniform3uiv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3uiv"); } } public void Uniform4uiv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4uiv)) + if (!Unmarshal.isNullPointer(PFN_glUniform4uiv)) { try { MH_glUniform4uiv.invokeExact(PFN_glUniform4uiv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4uiv"); } } public void TexParameterIiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterIiv)) { try { MH_glTexParameterIiv.invokeExact(PFN_glTexParameterIiv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterIiv"); } } public void TexParameterIuiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterIuiv)) { try { MH_glTexParameterIuiv.invokeExact(PFN_glTexParameterIuiv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterIuiv"); } } public void GetTexParameterIiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIiv)) { try { MH_glGetTexParameterIiv.invokeExact(PFN_glGetTexParameterIiv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterIiv"); } } public void GetTexParameterIuiv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIuiv)) { try { MH_glGetTexParameterIuiv.invokeExact(PFN_glGetTexParameterIuiv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterIuiv"); } } public void ClearBufferiv(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferiv)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferiv)) { try { MH_glClearBufferiv.invokeExact(PFN_glClearBufferiv, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferiv"); } } public void ClearBufferuiv(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferuiv)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferuiv)) { try { MH_glClearBufferuiv.invokeExact(PFN_glClearBufferuiv, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferuiv"); } } public void ClearBufferfv(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferfv)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferfv)) { try { MH_glClearBufferfv.invokeExact(PFN_glClearBufferfv, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferfv"); } } public void ClearBufferfi(@CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("GLfloat") float depth, @CType("GLint") int stencil) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferfi)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferfi)) { try { MH_glClearBufferfi.invokeExact(PFN_glClearBufferfi, buffer, drawbuffer, depth, stencil); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferfi", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferfi", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferfi"); } } public @CType("const GLubyte *") java.lang.foreign.MemorySegment GetStringi(@CType("GLenum") int name, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glGetStringi)) + if (!Unmarshal.isNullPointer(PFN_glGetStringi)) { try { return (java.lang.foreign.MemorySegment) MH_glGetStringi.invokeExact(PFN_glGetStringi, name, index); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glGetStringi", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetStringi", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetStringi"); } } public @CType("GLboolean") boolean IsRenderbuffer(@CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glIsRenderbuffer)) { try { return (boolean) MH_glIsRenderbuffer.invokeExact(PFN_glIsRenderbuffer, renderbuffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsRenderbuffer"); } } public void BindRenderbuffer(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindRenderbuffer)) { try { MH_glBindRenderbuffer.invokeExact(PFN_glBindRenderbuffer, target, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindRenderbuffer"); } } public void DeleteRenderbuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffers)) { try { MH_glDeleteRenderbuffers.invokeExact(PFN_glDeleteRenderbuffers, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteRenderbuffers"); } } public void GenRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffers)) + if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffers)) { try { MH_glGenRenderbuffers.invokeExact(PFN_glGenRenderbuffers, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenRenderbuffers"); } } public void RenderbufferStorage(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorage)) { try { MH_glRenderbufferStorage.invokeExact(PFN_glRenderbufferStorage, target, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorage"); } } public void GetRenderbufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameteriv)) { try { MH_glGetRenderbufferParameteriv.invokeExact(PFN_glGetRenderbufferParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetRenderbufferParameteriv"); } } public @CType("GLboolean") boolean IsFramebuffer(@CType("GLuint") int framebuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glIsFramebuffer)) { try { return (boolean) MH_glIsFramebuffer.invokeExact(PFN_glIsFramebuffer, framebuffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsFramebuffer"); } } public void BindFramebuffer(@CType("GLenum") int target, @CType("GLuint") int framebuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindFramebuffer)) { try { MH_glBindFramebuffer.invokeExact(PFN_glBindFramebuffer, target, framebuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFramebuffer"); } } public void DeleteFramebuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffers)) { try { MH_glDeleteFramebuffers.invokeExact(PFN_glDeleteFramebuffers, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteFramebuffers"); } } public void GenFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenFramebuffers)) + if (!Unmarshal.isNullPointer(PFN_glGenFramebuffers)) { try { MH_glGenFramebuffers.invokeExact(PFN_glGenFramebuffers, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenFramebuffers"); } } public @CType("GLenum") int CheckFramebufferStatus(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatus)) + if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatus)) { try { return (int) MH_glCheckFramebufferStatus.invokeExact(PFN_glCheckFramebufferStatus, target); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatus", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatus", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCheckFramebufferStatus"); } } public void FramebufferTexture1D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1D)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1D)) { try { MH_glFramebufferTexture1D.invokeExact(PFN_glFramebufferTexture1D, target, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture1D"); } } public void FramebufferTexture2D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2D)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2D)) { try { MH_glFramebufferTexture2D.invokeExact(PFN_glFramebufferTexture2D, target, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture2D"); } } public void FramebufferTexture3D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3D)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3D)) { try { MH_glFramebufferTexture3D.invokeExact(PFN_glFramebufferTexture3D, target, attachment, textarget, texture, level, zoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture3D"); } } public void FramebufferRenderbuffer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbuffer)) { try { MH_glFramebufferRenderbuffer.invokeExact(PFN_glFramebufferRenderbuffer, target, attachment, renderbuffertarget, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferRenderbuffer"); } } public void GetFramebufferAttachmentParameteriv(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameteriv)) { try { MH_glGetFramebufferAttachmentParameteriv.invokeExact(PFN_glGetFramebufferAttachmentParameteriv, target, attachment, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferAttachmentParameteriv"); } } public void GenerateMipmap(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateMipmap)) + if (!Unmarshal.isNullPointer(PFN_glGenerateMipmap)) { try { MH_glGenerateMipmap.invokeExact(PFN_glGenerateMipmap, target); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmap", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmap", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateMipmap"); } } public void BlitFramebuffer(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glBlitFramebuffer)) { try { MH_glBlitFramebuffer.invokeExact(PFN_glBlitFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitFramebuffer"); } } public void RenderbufferStorageMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisample)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisample)) { try { MH_glRenderbufferStorageMultisample.invokeExact(PFN_glRenderbufferStorageMultisample, target, samples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorageMultisample"); } } public void FramebufferTextureLayer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayer)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayer)) { try { MH_glFramebufferTextureLayer.invokeExact(PFN_glFramebufferTextureLayer, target, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureLayer"); } } public @CType("void*") java.lang.foreign.MemorySegment MapBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glMapBufferRange)) { try { return (java.lang.foreign.MemorySegment) MH_glMapBufferRange.invokeExact(PFN_glMapBufferRange, target, offset, length, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapBufferRange"); } } public void FlushMappedBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRange)) { try { MH_glFlushMappedBufferRange.invokeExact(PFN_glFlushMappedBufferRange, target, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushMappedBufferRange"); } } public void BindVertexArray(@CType("GLuint") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexArray)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexArray)) { try { MH_glBindVertexArray.invokeExact(PFN_glBindVertexArray, array); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexArray", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexArray", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexArray"); } } public void DeleteVertexArrays(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArrays)) + if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArrays)) { try { MH_glDeleteVertexArrays.invokeExact(PFN_glDeleteVertexArrays, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteVertexArrays"); } } public void GenVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glGenVertexArrays)) + if (!Unmarshal.isNullPointer(PFN_glGenVertexArrays)) { try { MH_glGenVertexArrays.invokeExact(PFN_glGenVertexArrays, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glGenVertexArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenVertexArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenVertexArrays"); } } public @CType("GLboolean") boolean IsVertexArray(@CType("GLuint") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glIsVertexArray)) + if (!Unmarshal.isNullPointer(PFN_glIsVertexArray)) { try { return (boolean) MH_glIsVertexArray.invokeExact(PFN_glIsVertexArray, array); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsVertexArray", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsVertexArray", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsVertexArray"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java index 6952ce98..28fcccdc 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL31.java @@ -127,88 +127,87 @@ public GL31(GLLoadFunc func) { } public void DrawArraysInstanced(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int instancecount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstanced)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstanced)) { try { MH_glDrawArraysInstanced.invokeExact(PFN_glDrawArraysInstanced, mode, first, count, instancecount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstanced", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstanced", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysInstanced"); } } public void DrawElementsInstanced(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstanced)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstanced)) { try { MH_glDrawElementsInstanced.invokeExact(PFN_glDrawElementsInstanced, mode, count, type, indices, instancecount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstanced", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstanced", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstanced"); } } public void TexBuffer(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBuffer)) + if (!Unmarshal.isNullPointer(PFN_glTexBuffer)) { try { MH_glTexBuffer.invokeExact(PFN_glTexBuffer, target, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBuffer"); } } public void PrimitiveRestartIndex(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartIndex)) + if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartIndex)) { try { MH_glPrimitiveRestartIndex.invokeExact(PFN_glPrimitiveRestartIndex, index); - } - catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPrimitiveRestartIndex"); } } public void CopyBufferSubData(@CType("GLenum") int readTarget, @CType("GLenum") int writeTarget, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glCopyBufferSubData)) { try { MH_glCopyBufferSubData.invokeExact(PFN_glCopyBufferSubData, readTarget, writeTarget, readOffset, writeOffset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyBufferSubData"); } } public void GetUniformIndices(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLchar *const*") java.lang.foreign.MemorySegment uniformNames, @CType("GLuint *") java.lang.foreign.MemorySegment uniformIndices) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformIndices)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformIndices)) { try { MH_glGetUniformIndices.invokeExact(PFN_glGetUniformIndices, program, uniformCount, uniformNames, uniformIndices); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformIndices", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformIndices", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformIndices"); } } public void GetActiveUniformsiv(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLuint *") java.lang.foreign.MemorySegment uniformIndices, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformsiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformsiv)) { try { MH_glGetActiveUniformsiv.invokeExact(PFN_glGetActiveUniformsiv, program, uniformCount, uniformIndices, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformsiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformsiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformsiv"); } } public void GetActiveUniformName(@CType("GLuint") int program, @CType("GLuint") int uniformIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformName) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformName)) { try { MH_glGetActiveUniformName.invokeExact(PFN_glGetActiveUniformName, program, uniformIndex, bufSize, length, uniformName); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformName"); } } public @CType("GLuint") int GetUniformBlockIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformBlockIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformBlockIndex)) { try { return (int) MH_glGetUniformBlockIndex.invokeExact(PFN_glGetUniformBlockIndex, program, uniformBlockName); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformBlockIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformBlockIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformBlockIndex"); } } public void GetActiveUniformBlockiv(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockiv)) { try { MH_glGetActiveUniformBlockiv.invokeExact(PFN_glGetActiveUniformBlockiv, program, uniformBlockIndex, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformBlockiv"); } } public void GetActiveUniformBlockName(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockName)) { try { MH_glGetActiveUniformBlockName.invokeExact(PFN_glGetActiveUniformBlockName, program, uniformBlockIndex, bufSize, length, uniformBlockName); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformBlockName"); } } public void UniformBlockBinding(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLuint") int uniformBlockBinding) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformBlockBinding)) + if (!Unmarshal.isNullPointer(PFN_glUniformBlockBinding)) { try { MH_glUniformBlockBinding.invokeExact(PFN_glUniformBlockBinding, program, uniformBlockIndex, uniformBlockBinding); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformBlockBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformBlockBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformBlockBinding"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java index bc486ca6..0c50a680 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL32.java @@ -151,139 +151,136 @@ public GL32(GLLoadFunc func) { } public void DrawElementsBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsBaseVertex)) { try { MH_glDrawElementsBaseVertex.invokeExact(PFN_glDrawElementsBaseVertex, mode, count, type, indices, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsBaseVertex"); } } public void DrawRangeElementsBaseVertex(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsBaseVertex)) { try { MH_glDrawRangeElementsBaseVertex.invokeExact(PFN_glDrawRangeElementsBaseVertex, mode, start, end, count, type, indices, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawRangeElementsBaseVertex"); } } public void DrawElementsInstancedBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertex)) { try { MH_glDrawElementsInstancedBaseVertex.invokeExact(PFN_glDrawElementsInstancedBaseVertex, mode, count, type, indices, instancecount, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedBaseVertex"); } } public void MultiDrawElementsBaseVertex(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int drawcount, @CType("const GLint *") java.lang.foreign.MemorySegment basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsBaseVertex)) { try { MH_glMultiDrawElementsBaseVertex.invokeExact(PFN_glMultiDrawElementsBaseVertex, mode, count, type, indices, drawcount, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsBaseVertex"); } } public void ProvokingVertex(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glProvokingVertex)) + if (!Unmarshal.isNullPointer(PFN_glProvokingVertex)) { try { MH_glProvokingVertex.invokeExact(PFN_glProvokingVertex, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glProvokingVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProvokingVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProvokingVertex"); } } public @CType("GLsync") java.lang.foreign.MemorySegment FenceSync(@CType("GLenum") int condition, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glFenceSync)) + if (!Unmarshal.isNullPointer(PFN_glFenceSync)) { try { return (java.lang.foreign.MemorySegment) MH_glFenceSync.invokeExact(PFN_glFenceSync, condition, flags); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glFenceSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFenceSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFenceSync"); } } public @CType("GLboolean") boolean IsSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { - try { if (!Unmarshal.isNullPointer(PFN_glIsSync)) + if (!Unmarshal.isNullPointer(PFN_glIsSync)) { try { return (boolean) MH_glIsSync.invokeExact(PFN_glIsSync, sync); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsSync"); } } public void DeleteSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteSync)) + if (!Unmarshal.isNullPointer(PFN_glDeleteSync)) { try { MH_glDeleteSync.invokeExact(PFN_glDeleteSync, sync); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteSync"); } } public @CType("GLenum") int ClientWaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { - try { if (!Unmarshal.isNullPointer(PFN_glClientWaitSync)) + if (!Unmarshal.isNullPointer(PFN_glClientWaitSync)) { try { return (int) MH_glClientWaitSync.invokeExact(PFN_glClientWaitSync, sync, flags, timeout); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glClientWaitSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClientWaitSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClientWaitSync"); } } public void WaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { - try { if (!Unmarshal.isNullPointer(PFN_glWaitSync)) + if (!Unmarshal.isNullPointer(PFN_glWaitSync)) { try { MH_glWaitSync.invokeExact(PFN_glWaitSync, sync, flags, timeout); - } - catch (Throwable e) { throw new RuntimeException("error in glWaitSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWaitSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWaitSync"); } } public void GetInteger64v(@CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInteger64v)) + if (!Unmarshal.isNullPointer(PFN_glGetInteger64v)) { try { MH_glGetInteger64v.invokeExact(PFN_glGetInteger64v, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInteger64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInteger64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInteger64v"); } } public void GetSynciv(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSynciv)) + if (!Unmarshal.isNullPointer(PFN_glGetSynciv)) { try { MH_glGetSynciv.invokeExact(PFN_glGetSynciv, sync, pname, count, length, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSynciv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSynciv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSynciv"); } } public void GetInteger64i_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint64 *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInteger64i_v)) + if (!Unmarshal.isNullPointer(PFN_glGetInteger64i_v)) { try { MH_glGetInteger64i_v.invokeExact(PFN_glGetInteger64i_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInteger64i_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInteger64i_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInteger64i_v"); } } public void GetBufferParameteri64v(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameteri64v)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferParameteri64v)) { try { MH_glGetBufferParameteri64v.invokeExact(PFN_glGetBufferParameteri64v, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameteri64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameteri64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferParameteri64v"); } } public void FramebufferTexture(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture)) { try { MH_glFramebufferTexture.invokeExact(PFN_glFramebufferTexture, target, attachment, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture"); } } public void TexImage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisample)) { try { MH_glTexImage2DMultisample.invokeExact(PFN_glTexImage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage2DMultisample"); } } public void TexImage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisample)) { try { MH_glTexImage3DMultisample.invokeExact(PFN_glTexImage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage3DMultisample"); } } public void GetMultisamplefv(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment val) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefv)) + if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefv)) { try { MH_glGetMultisamplefv.invokeExact(PFN_glGetMultisamplefv, pname, index, val); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultisamplefv"); } } public void SampleMaski(@CType("GLuint") int maskNumber, @CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleMaski)) + if (!Unmarshal.isNullPointer(PFN_glSampleMaski)) { try { MH_glSampleMaski.invokeExact(PFN_glSampleMaski, maskNumber, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleMaski", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleMaski", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleMaski"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java index 222c20ac..c95401cb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL33.java @@ -130,201 +130,199 @@ public GL33(GLLoadFunc func) { } public void BindFragDataLocationIndexed(@CType("GLuint") int program, @CType("GLuint") int colorNumber, @CType("GLuint") int index, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationIndexed)) + if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationIndexed)) { try { MH_glBindFragDataLocationIndexed.invokeExact(PFN_glBindFragDataLocationIndexed, program, colorNumber, index, name); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFragDataLocationIndexed"); } } public @CType("GLint") int GetFragDataIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetFragDataIndex)) { try { return (int) MH_glGetFragDataIndex.invokeExact(PFN_glGetFragDataIndex, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragDataIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragDataIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragDataIndex"); } } public void GenSamplers(@CType("GLsizei") int count, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenSamplers)) + if (!Unmarshal.isNullPointer(PFN_glGenSamplers)) { try { MH_glGenSamplers.invokeExact(PFN_glGenSamplers, count, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenSamplers"); } } public void DeleteSamplers(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteSamplers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteSamplers)) { try { MH_glDeleteSamplers.invokeExact(PFN_glDeleteSamplers, count, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteSamplers"); } } public @CType("GLboolean") boolean IsSampler(@CType("GLuint") int sampler) { - try { if (!Unmarshal.isNullPointer(PFN_glIsSampler)) + if (!Unmarshal.isNullPointer(PFN_glIsSampler)) { try { return (boolean) MH_glIsSampler.invokeExact(PFN_glIsSampler, sampler); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsSampler", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsSampler", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsSampler"); } } public void BindSampler(@CType("GLuint") int unit, @CType("GLuint") int sampler) { - try { if (!Unmarshal.isNullPointer(PFN_glBindSampler)) + if (!Unmarshal.isNullPointer(PFN_glBindSampler)) { try { MH_glBindSampler.invokeExact(PFN_glBindSampler, unit, sampler); - } - catch (Throwable e) { throw new RuntimeException("error in glBindSampler", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindSampler", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindSampler"); } } public void SamplerParameteri(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteri)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameteri)) { try { MH_glSamplerParameteri.invokeExact(PFN_glSamplerParameteri, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameteri"); } } public void SamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameteriv)) { try { MH_glSamplerParameteriv.invokeExact(PFN_glSamplerParameteriv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameteriv"); } } public void SamplerParameterf(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterf)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterf)) { try { MH_glSamplerParameterf.invokeExact(PFN_glSamplerParameterf, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterf"); } } public void SamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterfv)) { try { MH_glSamplerParameterfv.invokeExact(PFN_glSamplerParameterfv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterfv"); } } public void SamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIiv)) { try { MH_glSamplerParameterIiv.invokeExact(PFN_glSamplerParameterIiv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterIiv"); } } public void SamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIuiv)) { try { MH_glSamplerParameterIuiv.invokeExact(PFN_glSamplerParameterIuiv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterIuiv"); } } public void GetSamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameteriv)) { try { MH_glGetSamplerParameteriv.invokeExact(PFN_glGetSamplerParameteriv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameteriv"); } } public void GetSamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIiv)) { try { MH_glGetSamplerParameterIiv.invokeExact(PFN_glGetSamplerParameterIiv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameterIiv"); } } public void GetSamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterfv)) { try { MH_glGetSamplerParameterfv.invokeExact(PFN_glGetSamplerParameterfv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameterfv"); } } public void GetSamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIuiv)) { try { MH_glGetSamplerParameterIuiv.invokeExact(PFN_glGetSamplerParameterIuiv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameterIuiv"); } } public void QueryCounter(@CType("GLuint") int id, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glQueryCounter)) + if (!Unmarshal.isNullPointer(PFN_glQueryCounter)) { try { MH_glQueryCounter.invokeExact(PFN_glQueryCounter, id, target); - } - catch (Throwable e) { throw new RuntimeException("error in glQueryCounter", e); } + } catch (Throwable e) { throw new RuntimeException("error in glQueryCounter", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glQueryCounter"); } } public void GetQueryObjecti64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64v)) { try { MH_glGetQueryObjecti64v.invokeExact(PFN_glGetQueryObjecti64v, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjecti64v"); } } public void GetQueryObjectui64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64v)) { try { MH_glGetQueryObjectui64v.invokeExact(PFN_glGetQueryObjectui64v, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectui64v"); } } public void VertexAttribDivisor(@CType("GLuint") int index, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribDivisor)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribDivisor)) { try { MH_glVertexAttribDivisor.invokeExact(PFN_glVertexAttribDivisor, index, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribDivisor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribDivisor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribDivisor"); } } public void VertexAttribP1ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1ui)) { try { MH_glVertexAttribP1ui.invokeExact(PFN_glVertexAttribP1ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP1ui"); } } public void VertexAttribP1uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1uiv)) { try { MH_glVertexAttribP1uiv.invokeExact(PFN_glVertexAttribP1uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP1uiv"); } } public void VertexAttribP2ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2ui)) { try { MH_glVertexAttribP2ui.invokeExact(PFN_glVertexAttribP2ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP2ui"); } } public void VertexAttribP2uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2uiv)) { try { MH_glVertexAttribP2uiv.invokeExact(PFN_glVertexAttribP2uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP2uiv"); } } public void VertexAttribP3ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3ui)) { try { MH_glVertexAttribP3ui.invokeExact(PFN_glVertexAttribP3ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP3ui"); } } public void VertexAttribP3uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3uiv)) { try { MH_glVertexAttribP3uiv.invokeExact(PFN_glVertexAttribP3uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP3uiv"); } } public void VertexAttribP4ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4ui)) { try { MH_glVertexAttribP4ui.invokeExact(PFN_glVertexAttribP4ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP4ui"); } } public void VertexAttribP4uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4uiv)) { try { MH_glVertexAttribP4uiv.invokeExact(PFN_glVertexAttribP4uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP4uiv"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java index a66e34cf..8212383a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL40.java @@ -246,328 +246,325 @@ public GL40(GLLoadFunc func) { } public void MinSampleShading(@CType("GLfloat") float value) { - try { if (!Unmarshal.isNullPointer(PFN_glMinSampleShading)) + if (!Unmarshal.isNullPointer(PFN_glMinSampleShading)) { try { MH_glMinSampleShading.invokeExact(PFN_glMinSampleShading, value); - } - catch (Throwable e) { throw new RuntimeException("error in glMinSampleShading", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMinSampleShading", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMinSampleShading"); } } public void BlendEquationi(@CType("GLuint") int buf, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationi)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationi)) { try { MH_glBlendEquationi.invokeExact(PFN_glBlendEquationi, buf, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationi", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationi", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationi"); } } public void BlendEquationSeparatei(@CType("GLuint") int buf, @CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparatei)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparatei)) { try { MH_glBlendEquationSeparatei.invokeExact(PFN_glBlendEquationSeparatei, buf, modeRGB, modeAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparatei", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparatei", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationSeparatei"); } } public void BlendFunci(@CType("GLuint") int buf, @CType("GLenum") int src, @CType("GLenum") int dst) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFunci)) + if (!Unmarshal.isNullPointer(PFN_glBlendFunci)) { try { MH_glBlendFunci.invokeExact(PFN_glBlendFunci, buf, src, dst); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFunci", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFunci", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFunci"); } } public void BlendFuncSeparatei(@CType("GLuint") int buf, @CType("GLenum") int srcRGB, @CType("GLenum") int dstRGB, @CType("GLenum") int srcAlpha, @CType("GLenum") int dstAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparatei)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparatei)) { try { MH_glBlendFuncSeparatei.invokeExact(PFN_glBlendFuncSeparatei, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparatei", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparatei", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncSeparatei"); } } public void DrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysIndirect)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysIndirect)) { try { MH_glDrawArraysIndirect.invokeExact(PFN_glDrawArraysIndirect, mode, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysIndirect"); } } public void DrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsIndirect)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsIndirect)) { try { MH_glDrawElementsIndirect.invokeExact(PFN_glDrawElementsIndirect, mode, type, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsIndirect"); } } public void Uniform1d(@CType("GLint") int location, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1d)) + if (!Unmarshal.isNullPointer(PFN_glUniform1d)) { try { MH_glUniform1d.invokeExact(PFN_glUniform1d, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1d"); } } public void Uniform2d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2d)) + if (!Unmarshal.isNullPointer(PFN_glUniform2d)) { try { MH_glUniform2d.invokeExact(PFN_glUniform2d, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2d"); } } public void Uniform3d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3d)) + if (!Unmarshal.isNullPointer(PFN_glUniform3d)) { try { MH_glUniform3d.invokeExact(PFN_glUniform3d, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3d"); } } public void Uniform4d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4d)) + if (!Unmarshal.isNullPointer(PFN_glUniform4d)) { try { MH_glUniform4d.invokeExact(PFN_glUniform4d, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4d"); } } public void Uniform1dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform1dv)) { try { MH_glUniform1dv.invokeExact(PFN_glUniform1dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1dv"); } } public void Uniform2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform2dv)) { try { MH_glUniform2dv.invokeExact(PFN_glUniform2dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2dv"); } } public void Uniform3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform3dv)) { try { MH_glUniform3dv.invokeExact(PFN_glUniform3dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3dv"); } } public void Uniform4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform4dv)) { try { MH_glUniform4dv.invokeExact(PFN_glUniform4dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4dv"); } } public void UniformMatrix2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2dv)) { try { MH_glUniformMatrix2dv.invokeExact(PFN_glUniformMatrix2dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2dv"); } } public void UniformMatrix3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3dv)) { try { MH_glUniformMatrix3dv.invokeExact(PFN_glUniformMatrix3dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3dv"); } } public void UniformMatrix4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4dv)) { try { MH_glUniformMatrix4dv.invokeExact(PFN_glUniformMatrix4dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4dv"); } } public void UniformMatrix2x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3dv)) { try { MH_glUniformMatrix2x3dv.invokeExact(PFN_glUniformMatrix2x3dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2x3dv"); } } public void UniformMatrix2x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4dv)) { try { MH_glUniformMatrix2x4dv.invokeExact(PFN_glUniformMatrix2x4dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2x4dv"); } } public void UniformMatrix3x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2dv)) { try { MH_glUniformMatrix3x2dv.invokeExact(PFN_glUniformMatrix3x2dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3x2dv"); } } public void UniformMatrix3x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4dv)) { try { MH_glUniformMatrix3x4dv.invokeExact(PFN_glUniformMatrix3x4dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3x4dv"); } } public void UniformMatrix4x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2dv)) { try { MH_glUniformMatrix4x2dv.invokeExact(PFN_glUniformMatrix4x2dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4x2dv"); } } public void UniformMatrix4x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3dv)) { try { MH_glUniformMatrix4x3dv.invokeExact(PFN_glUniformMatrix4x3dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4x3dv"); } } public void GetUniformdv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformdv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformdv)) { try { MH_glGetUniformdv.invokeExact(PFN_glGetUniformdv, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformdv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformdv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformdv"); } } public @CType("GLint") int GetSubroutineUniformLocation(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineUniformLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetSubroutineUniformLocation)) { try { return (int) MH_glGetSubroutineUniformLocation.invokeExact(PFN_glGetSubroutineUniformLocation, program, shadertype, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineUniformLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineUniformLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSubroutineUniformLocation"); } } public @CType("GLuint") int GetSubroutineIndex(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetSubroutineIndex)) { try { return (int) MH_glGetSubroutineIndex.invokeExact(PFN_glGetSubroutineIndex, program, shadertype, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSubroutineIndex"); } } public void GetActiveSubroutineUniformiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformiv)) { try { MH_glGetActiveSubroutineUniformiv.invokeExact(PFN_glGetActiveSubroutineUniformiv, program, shadertype, index, pname, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveSubroutineUniformiv"); } } public void GetActiveSubroutineUniformName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformName)) { try { MH_glGetActiveSubroutineUniformName.invokeExact(PFN_glGetActiveSubroutineUniformName, program, shadertype, index, bufSize, length, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveSubroutineUniformName"); } } public void GetActiveSubroutineName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineName)) { try { MH_glGetActiveSubroutineName.invokeExact(PFN_glGetActiveSubroutineName, program, shadertype, index, bufSize, length, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveSubroutineName"); } } public void UniformSubroutinesuiv(@CType("GLenum") int shadertype, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformSubroutinesuiv)) + if (!Unmarshal.isNullPointer(PFN_glUniformSubroutinesuiv)) { try { MH_glUniformSubroutinesuiv.invokeExact(PFN_glUniformSubroutinesuiv, shadertype, count, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformSubroutinesuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformSubroutinesuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformSubroutinesuiv"); } } public void GetUniformSubroutineuiv(@CType("GLenum") int shadertype, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformSubroutineuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformSubroutineuiv)) { try { MH_glGetUniformSubroutineuiv.invokeExact(PFN_glGetUniformSubroutineuiv, shadertype, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformSubroutineuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformSubroutineuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformSubroutineuiv"); } } public void GetProgramStageiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStageiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramStageiv)) { try { MH_glGetProgramStageiv.invokeExact(PFN_glGetProgramStageiv, program, shadertype, pname, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramStageiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramStageiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramStageiv"); } } public void PatchParameteri(@CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glPatchParameteri)) + if (!Unmarshal.isNullPointer(PFN_glPatchParameteri)) { try { MH_glPatchParameteri.invokeExact(PFN_glPatchParameteri, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glPatchParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPatchParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPatchParameteri"); } } public void PatchParameterfv(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glPatchParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glPatchParameterfv)) { try { MH_glPatchParameterfv.invokeExact(PFN_glPatchParameterfv, pname, values); - } - catch (Throwable e) { throw new RuntimeException("error in glPatchParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPatchParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPatchParameterfv"); } } public void BindTransformFeedback(@CType("GLenum") int target, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedback)) { try { MH_glBindTransformFeedback.invokeExact(PFN_glBindTransformFeedback, target, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTransformFeedback"); } } public void DeleteTransformFeedbacks(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacks)) + if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacks)) { try { MH_glDeleteTransformFeedbacks.invokeExact(PFN_glDeleteTransformFeedbacks, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacks", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacks", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteTransformFeedbacks"); } } public void GenTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacks)) + if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacks)) { try { MH_glGenTransformFeedbacks.invokeExact(PFN_glGenTransformFeedbacks, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacks", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacks", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenTransformFeedbacks"); } } public @CType("GLboolean") boolean IsTransformFeedback(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedback)) { try { return (boolean) MH_glIsTransformFeedback.invokeExact(PFN_glIsTransformFeedback, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTransformFeedback"); } } public void PauseTransformFeedback() { - try { if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedback)) { try { MH_glPauseTransformFeedback.invokeExact(PFN_glPauseTransformFeedback); - } - catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPauseTransformFeedback"); } } public void ResumeTransformFeedback() { - try { if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedback)) { try { MH_glResumeTransformFeedback.invokeExact(PFN_glResumeTransformFeedback); - } - catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResumeTransformFeedback"); } } public void DrawTransformFeedback(@CType("GLenum") int mode, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedback)) { try { MH_glDrawTransformFeedback.invokeExact(PFN_glDrawTransformFeedback, mode, id); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedback"); } } public void DrawTransformFeedbackStream(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStream)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStream)) { try { MH_glDrawTransformFeedbackStream.invokeExact(PFN_glDrawTransformFeedbackStream, mode, id, stream); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStream", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStream", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackStream"); } } public void BeginQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginQueryIndexed)) + if (!Unmarshal.isNullPointer(PFN_glBeginQueryIndexed)) { try { MH_glBeginQueryIndexed.invokeExact(PFN_glBeginQueryIndexed, target, index, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginQueryIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginQueryIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginQueryIndexed"); } } public void EndQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEndQueryIndexed)) + if (!Unmarshal.isNullPointer(PFN_glEndQueryIndexed)) { try { MH_glEndQueryIndexed.invokeExact(PFN_glEndQueryIndexed, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEndQueryIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndQueryIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndQueryIndexed"); } } public void GetQueryIndexediv(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryIndexediv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryIndexediv)) { try { MH_glGetQueryIndexediv.invokeExact(PFN_glGetQueryIndexediv, target, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryIndexediv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryIndexediv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryIndexediv"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java index 54726bf8..419c560e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL41.java @@ -329,621 +329,619 @@ public GL41(GLLoadFunc func) { } public void ReleaseShaderCompiler() { - try { if (!Unmarshal.isNullPointer(PFN_glReleaseShaderCompiler)) + if (!Unmarshal.isNullPointer(PFN_glReleaseShaderCompiler)) { try { MH_glReleaseShaderCompiler.invokeExact(PFN_glReleaseShaderCompiler); - } - catch (Throwable e) { throw new RuntimeException("error in glReleaseShaderCompiler", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReleaseShaderCompiler", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReleaseShaderCompiler"); } } public void ShaderBinary(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment shaders, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderBinary)) + if (!Unmarshal.isNullPointer(PFN_glShaderBinary)) { try { MH_glShaderBinary.invokeExact(PFN_glShaderBinary, count, shaders, binaryFormat, binary, length); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderBinary", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderBinary", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderBinary"); } } public void GetShaderPrecisionFormat(@CType("GLenum") int shadertype, @CType("GLenum") int precisiontype, @CType("GLint *") java.lang.foreign.MemorySegment range, @CType("GLint *") java.lang.foreign.MemorySegment precision) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShaderPrecisionFormat)) + if (!Unmarshal.isNullPointer(PFN_glGetShaderPrecisionFormat)) { try { MH_glGetShaderPrecisionFormat.invokeExact(PFN_glGetShaderPrecisionFormat, shadertype, precisiontype, range, precision); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShaderPrecisionFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShaderPrecisionFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShaderPrecisionFormat"); } } public void DepthRangef(@CType("GLfloat") float n, @CType("GLfloat") float f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangef)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangef)) { try { MH_glDepthRangef.invokeExact(PFN_glDepthRangef, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangef", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangef", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangef"); } } public void ClearDepthf(@CType("GLfloat") float d) { - try { if (!Unmarshal.isNullPointer(PFN_glClearDepthf)) + if (!Unmarshal.isNullPointer(PFN_glClearDepthf)) { try { MH_glClearDepthf.invokeExact(PFN_glClearDepthf, d); - } - catch (Throwable e) { throw new RuntimeException("error in glClearDepthf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearDepthf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearDepthf"); } } public void GetProgramBinary(@CType("GLuint") int program, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLenum *") java.lang.foreign.MemorySegment binaryFormat, @CType("void*") java.lang.foreign.MemorySegment binary) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramBinary)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramBinary)) { try { MH_glGetProgramBinary.invokeExact(PFN_glGetProgramBinary, program, bufSize, length, binaryFormat, binary); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramBinary", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramBinary", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramBinary"); } } public void ProgramBinary(@CType("GLuint") int program, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramBinary)) + if (!Unmarshal.isNullPointer(PFN_glProgramBinary)) { try { MH_glProgramBinary.invokeExact(PFN_glProgramBinary, program, binaryFormat, binary, length); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramBinary", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramBinary", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramBinary"); } } public void ProgramParameteri(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) { try { MH_glProgramParameteri.invokeExact(PFN_glProgramParameteri, program, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameteri"); } } public void UseProgramStages(@CType("GLuint") int pipeline, @CType("GLbitfield") int stages, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glUseProgramStages)) + if (!Unmarshal.isNullPointer(PFN_glUseProgramStages)) { try { MH_glUseProgramStages.invokeExact(PFN_glUseProgramStages, pipeline, stages, program); - } - catch (Throwable e) { throw new RuntimeException("error in glUseProgramStages", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUseProgramStages", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUseProgramStages"); } } public void ActiveShaderProgram(@CType("GLuint") int pipeline, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgram)) + if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgram)) { try { MH_glActiveShaderProgram.invokeExact(PFN_glActiveShaderProgram, pipeline, program); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveShaderProgram"); } } public @CType("GLuint") int CreateShaderProgramv(@CType("GLenum") int type, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment strings) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramv)) + if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramv)) { try { return (int) MH_glCreateShaderProgramv.invokeExact(PFN_glCreateShaderProgramv, type, count, strings); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateShaderProgramv"); } } public void BindProgramPipeline(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glBindProgramPipeline)) + if (!Unmarshal.isNullPointer(PFN_glBindProgramPipeline)) { try { MH_glBindProgramPipeline.invokeExact(PFN_glBindProgramPipeline, pipeline); - } - catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipeline", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipeline", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindProgramPipeline"); } } public void DeleteProgramPipelines(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelines)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelines)) { try { MH_glDeleteProgramPipelines.invokeExact(PFN_glDeleteProgramPipelines, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelines", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelines", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgramPipelines"); } } public void GenProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelines)) + if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelines)) { try { MH_glGenProgramPipelines.invokeExact(PFN_glGenProgramPipelines, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelines", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelines", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenProgramPipelines"); } } public @CType("GLboolean") boolean IsProgramPipeline(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgramPipeline)) + if (!Unmarshal.isNullPointer(PFN_glIsProgramPipeline)) { try { return (boolean) MH_glIsProgramPipeline.invokeExact(PFN_glIsProgramPipeline, pipeline); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipeline", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipeline", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgramPipeline"); } } public void GetProgramPipelineiv(@CType("GLuint") int pipeline, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineiv)) { try { MH_glGetProgramPipelineiv.invokeExact(PFN_glGetProgramPipelineiv, pipeline, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramPipelineiv"); } } public void ProgramUniform1i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i)) { try { MH_glProgramUniform1i.invokeExact(PFN_glProgramUniform1i, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i"); } } public void ProgramUniform1iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iv)) { try { MH_glProgramUniform1iv.invokeExact(PFN_glProgramUniform1iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1iv"); } } public void ProgramUniform1f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1f)) { try { MH_glProgramUniform1f.invokeExact(PFN_glProgramUniform1f, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1f"); } } public void ProgramUniform1fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fv)) { try { MH_glProgramUniform1fv.invokeExact(PFN_glProgramUniform1fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1fv"); } } public void ProgramUniform1d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1d)) { try { MH_glProgramUniform1d.invokeExact(PFN_glProgramUniform1d, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1d"); } } public void ProgramUniform1dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dv)) { try { MH_glProgramUniform1dv.invokeExact(PFN_glProgramUniform1dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1dv"); } } public void ProgramUniform1ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui)) { try { MH_glProgramUniform1ui.invokeExact(PFN_glProgramUniform1ui, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui"); } } public void ProgramUniform1uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiv)) { try { MH_glProgramUniform1uiv.invokeExact(PFN_glProgramUniform1uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1uiv"); } } public void ProgramUniform2i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i)) { try { MH_glProgramUniform2i.invokeExact(PFN_glProgramUniform2i, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i"); } } public void ProgramUniform2iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iv)) { try { MH_glProgramUniform2iv.invokeExact(PFN_glProgramUniform2iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2iv"); } } public void ProgramUniform2f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2f)) { try { MH_glProgramUniform2f.invokeExact(PFN_glProgramUniform2f, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2f"); } } public void ProgramUniform2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fv)) { try { MH_glProgramUniform2fv.invokeExact(PFN_glProgramUniform2fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2fv"); } } public void ProgramUniform2d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2d)) { try { MH_glProgramUniform2d.invokeExact(PFN_glProgramUniform2d, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2d"); } } public void ProgramUniform2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dv)) { try { MH_glProgramUniform2dv.invokeExact(PFN_glProgramUniform2dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2dv"); } } public void ProgramUniform2ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui)) { try { MH_glProgramUniform2ui.invokeExact(PFN_glProgramUniform2ui, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui"); } } public void ProgramUniform2uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiv)) { try { MH_glProgramUniform2uiv.invokeExact(PFN_glProgramUniform2uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2uiv"); } } public void ProgramUniform3i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i)) { try { MH_glProgramUniform3i.invokeExact(PFN_glProgramUniform3i, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i"); } } public void ProgramUniform3iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iv)) { try { MH_glProgramUniform3iv.invokeExact(PFN_glProgramUniform3iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3iv"); } } public void ProgramUniform3f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3f)) { try { MH_glProgramUniform3f.invokeExact(PFN_glProgramUniform3f, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3f"); } } public void ProgramUniform3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fv)) { try { MH_glProgramUniform3fv.invokeExact(PFN_glProgramUniform3fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3fv"); } } public void ProgramUniform3d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3d)) { try { MH_glProgramUniform3d.invokeExact(PFN_glProgramUniform3d, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3d"); } } public void ProgramUniform3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dv)) { try { MH_glProgramUniform3dv.invokeExact(PFN_glProgramUniform3dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3dv"); } } public void ProgramUniform3ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui)) { try { MH_glProgramUniform3ui.invokeExact(PFN_glProgramUniform3ui, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui"); } } public void ProgramUniform3uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiv)) { try { MH_glProgramUniform3uiv.invokeExact(PFN_glProgramUniform3uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3uiv"); } } public void ProgramUniform4i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i)) { try { MH_glProgramUniform4i.invokeExact(PFN_glProgramUniform4i, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i"); } } public void ProgramUniform4iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iv)) { try { MH_glProgramUniform4iv.invokeExact(PFN_glProgramUniform4iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4iv"); } } public void ProgramUniform4f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4f)) { try { MH_glProgramUniform4f.invokeExact(PFN_glProgramUniform4f, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4f"); } } public void ProgramUniform4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fv)) { try { MH_glProgramUniform4fv.invokeExact(PFN_glProgramUniform4fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4fv"); } } public void ProgramUniform4d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLdouble") double v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4d)) { try { MH_glProgramUniform4d.invokeExact(PFN_glProgramUniform4d, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4d"); } } public void ProgramUniform4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dv)) { try { MH_glProgramUniform4dv.invokeExact(PFN_glProgramUniform4dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4dv"); } } public void ProgramUniform4ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui)) { try { MH_glProgramUniform4ui.invokeExact(PFN_glProgramUniform4ui, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui"); } } public void ProgramUniform4uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiv)) { try { MH_glProgramUniform4uiv.invokeExact(PFN_glProgramUniform4uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4uiv"); } } public void ProgramUniformMatrix2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fv)) { try { MH_glProgramUniformMatrix2fv.invokeExact(PFN_glProgramUniformMatrix2fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2fv"); } } public void ProgramUniformMatrix3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fv)) { try { MH_glProgramUniformMatrix3fv.invokeExact(PFN_glProgramUniformMatrix3fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3fv"); } } public void ProgramUniformMatrix4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fv)) { try { MH_glProgramUniformMatrix4fv.invokeExact(PFN_glProgramUniformMatrix4fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4fv"); } } public void ProgramUniformMatrix2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dv)) { try { MH_glProgramUniformMatrix2dv.invokeExact(PFN_glProgramUniformMatrix2dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2dv"); } } public void ProgramUniformMatrix3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dv)) { try { MH_glProgramUniformMatrix3dv.invokeExact(PFN_glProgramUniformMatrix3dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3dv"); } } public void ProgramUniformMatrix4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dv)) { try { MH_glProgramUniformMatrix4dv.invokeExact(PFN_glProgramUniformMatrix4dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4dv"); } } public void ProgramUniformMatrix2x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fv)) { try { MH_glProgramUniformMatrix2x3fv.invokeExact(PFN_glProgramUniformMatrix2x3fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3fv"); } } public void ProgramUniformMatrix3x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fv)) { try { MH_glProgramUniformMatrix3x2fv.invokeExact(PFN_glProgramUniformMatrix3x2fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2fv"); } } public void ProgramUniformMatrix2x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fv)) { try { MH_glProgramUniformMatrix2x4fv.invokeExact(PFN_glProgramUniformMatrix2x4fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4fv"); } } public void ProgramUniformMatrix4x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fv)) { try { MH_glProgramUniformMatrix4x2fv.invokeExact(PFN_glProgramUniformMatrix4x2fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2fv"); } } public void ProgramUniformMatrix3x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fv)) { try { MH_glProgramUniformMatrix3x4fv.invokeExact(PFN_glProgramUniformMatrix3x4fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4fv"); } } public void ProgramUniformMatrix4x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fv)) { try { MH_glProgramUniformMatrix4x3fv.invokeExact(PFN_glProgramUniformMatrix4x3fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3fv"); } } public void ProgramUniformMatrix2x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dv)) { try { MH_glProgramUniformMatrix2x3dv.invokeExact(PFN_glProgramUniformMatrix2x3dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3dv"); } } public void ProgramUniformMatrix3x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dv)) { try { MH_glProgramUniformMatrix3x2dv.invokeExact(PFN_glProgramUniformMatrix3x2dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2dv"); } } public void ProgramUniformMatrix2x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dv)) { try { MH_glProgramUniformMatrix2x4dv.invokeExact(PFN_glProgramUniformMatrix2x4dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4dv"); } } public void ProgramUniformMatrix4x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dv)) { try { MH_glProgramUniformMatrix4x2dv.invokeExact(PFN_glProgramUniformMatrix4x2dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2dv"); } } public void ProgramUniformMatrix3x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dv)) { try { MH_glProgramUniformMatrix3x4dv.invokeExact(PFN_glProgramUniformMatrix3x4dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4dv"); } } public void ProgramUniformMatrix4x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dv)) { try { MH_glProgramUniformMatrix4x3dv.invokeExact(PFN_glProgramUniformMatrix4x3dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3dv"); } } public void ValidateProgramPipeline(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipeline)) + if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipeline)) { try { MH_glValidateProgramPipeline.invokeExact(PFN_glValidateProgramPipeline, pipeline); - } - catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipeline", e); } + } catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipeline", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glValidateProgramPipeline"); } } public void GetProgramPipelineInfoLog(@CType("GLuint") int pipeline, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLog)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLog)) { try { MH_glGetProgramPipelineInfoLog.invokeExact(PFN_glGetProgramPipelineInfoLog, pipeline, bufSize, length, infoLog); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLog", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLog", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramPipelineInfoLog"); } } public void VertexAttribL1d(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1d)) { try { MH_glVertexAttribL1d.invokeExact(PFN_glVertexAttribL1d, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1d"); } } public void VertexAttribL2d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2d)) { try { MH_glVertexAttribL2d.invokeExact(PFN_glVertexAttribL2d, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2d"); } } public void VertexAttribL3d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3d)) { try { MH_glVertexAttribL3d.invokeExact(PFN_glVertexAttribL3d, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3d"); } } public void VertexAttribL4d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4d)) { try { MH_glVertexAttribL4d.invokeExact(PFN_glVertexAttribL4d, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4d"); } } public void VertexAttribL1dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dv)) { try { MH_glVertexAttribL1dv.invokeExact(PFN_glVertexAttribL1dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1dv"); } } public void VertexAttribL2dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dv)) { try { MH_glVertexAttribL2dv.invokeExact(PFN_glVertexAttribL2dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2dv"); } } public void VertexAttribL3dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dv)) { try { MH_glVertexAttribL3dv.invokeExact(PFN_glVertexAttribL3dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3dv"); } } public void VertexAttribL4dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dv)) { try { MH_glVertexAttribL4dv.invokeExact(PFN_glVertexAttribL4dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4dv"); } } public void VertexAttribLPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointer)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointer)) { try { MH_glVertexAttribLPointer.invokeExact(PFN_glVertexAttribLPointer, index, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribLPointer"); } } public void GetVertexAttribLdv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdv)) { try { MH_glGetVertexAttribLdv.invokeExact(PFN_glGetVertexAttribLdv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribLdv"); } } public void ViewportArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportArrayv)) + if (!Unmarshal.isNullPointer(PFN_glViewportArrayv)) { try { MH_glViewportArrayv.invokeExact(PFN_glViewportArrayv, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportArrayv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportArrayv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportArrayv"); } } public void ViewportIndexedf(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float w, @CType("GLfloat") float h) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedf)) + if (!Unmarshal.isNullPointer(PFN_glViewportIndexedf)) { try { MH_glViewportIndexedf.invokeExact(PFN_glViewportIndexedf, index, x, y, w, h); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportIndexedf"); } } public void ViewportIndexedfv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedfv)) + if (!Unmarshal.isNullPointer(PFN_glViewportIndexedfv)) { try { MH_glViewportIndexedfv.invokeExact(PFN_glViewportIndexedfv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportIndexedfv"); } } public void ScissorArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorArrayv)) + if (!Unmarshal.isNullPointer(PFN_glScissorArrayv)) { try { MH_glScissorArrayv.invokeExact(PFN_glScissorArrayv, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorArrayv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorArrayv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorArrayv"); } } public void ScissorIndexed(@CType("GLuint") int index, @CType("GLint") int left, @CType("GLint") int bottom, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexed)) + if (!Unmarshal.isNullPointer(PFN_glScissorIndexed)) { try { MH_glScissorIndexed.invokeExact(PFN_glScissorIndexed, index, left, bottom, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorIndexed"); } } public void ScissorIndexedv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexedv)) + if (!Unmarshal.isNullPointer(PFN_glScissorIndexedv)) { try { MH_glScissorIndexedv.invokeExact(PFN_glScissorIndexedv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorIndexedv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorIndexedv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorIndexedv"); } } public void DepthRangeArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeArrayv)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangeArrayv)) { try { MH_glDepthRangeArrayv.invokeExact(PFN_glDepthRangeArrayv, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArrayv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArrayv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangeArrayv"); } } public void DepthRangeIndexed(@CType("GLuint") int index, @CType("GLdouble") double n, @CType("GLdouble") double f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexed)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexed)) { try { MH_glDepthRangeIndexed.invokeExact(PFN_glDepthRangeIndexed, index, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangeIndexed"); } } public void GetFloati_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFloati_v)) + if (!Unmarshal.isNullPointer(PFN_glGetFloati_v)) { try { MH_glGetFloati_v.invokeExact(PFN_glGetFloati_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFloati_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFloati_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFloati_v"); } } public void GetDoublei_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDoublei_v)) + if (!Unmarshal.isNullPointer(PFN_glGetDoublei_v)) { try { MH_glGetDoublei_v.invokeExact(PFN_glGetDoublei_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDoublei_v"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java index bce9211e..26f6d117 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL42.java @@ -178,87 +178,87 @@ public GL42(GLLoadFunc func) { } public void DrawArraysInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedBaseInstance)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedBaseInstance)) { try { MH_glDrawArraysInstancedBaseInstance.invokeExact(PFN_glDrawArraysInstancedBaseInstance, mode, first, count, instancecount, baseinstance); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedBaseInstance", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedBaseInstance", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysInstancedBaseInstance"); } } public void DrawElementsInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseInstance)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseInstance)) { try { MH_glDrawElementsInstancedBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseInstance, mode, count, type, indices, instancecount, baseinstance); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseInstance", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseInstance", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedBaseInstance"); } } public void DrawElementsInstancedBaseVertexBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex, @CType("GLuint") int baseinstance) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertexBaseInstance)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertexBaseInstance)) { try { MH_glDrawElementsInstancedBaseVertexBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseVertexBaseInstance, mode, count, type, indices, instancecount, basevertex, baseinstance); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertexBaseInstance", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertexBaseInstance", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedBaseVertexBaseInstance"); } } public void GetInternalformativ(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformativ)) + if (!Unmarshal.isNullPointer(PFN_glGetInternalformativ)) { try { MH_glGetInternalformativ.invokeExact(PFN_glGetInternalformativ, target, internalformat, pname, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInternalformativ", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInternalformativ", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInternalformativ"); } } public void GetActiveAtomicCounterBufferiv(@CType("GLuint") int program, @CType("GLuint") int bufferIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAtomicCounterBufferiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveAtomicCounterBufferiv)) { try { MH_glGetActiveAtomicCounterBufferiv.invokeExact(PFN_glGetActiveAtomicCounterBufferiv, program, bufferIndex, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveAtomicCounterBufferiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveAtomicCounterBufferiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveAtomicCounterBufferiv"); } } public void BindImageTexture(@CType("GLuint") int unit, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int access, @CType("GLenum") int format) { - try { if (!Unmarshal.isNullPointer(PFN_glBindImageTexture)) + if (!Unmarshal.isNullPointer(PFN_glBindImageTexture)) { try { MH_glBindImageTexture.invokeExact(PFN_glBindImageTexture, unit, texture, level, layered, layer, access, format); - } - catch (Throwable e) { throw new RuntimeException("error in glBindImageTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindImageTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindImageTexture"); } } public void MemoryBarrier(@CType("GLbitfield") int barriers) { - try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrier)) + if (!Unmarshal.isNullPointer(PFN_glMemoryBarrier)) { try { MH_glMemoryBarrier.invokeExact(PFN_glMemoryBarrier, barriers); - } - catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrier", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrier", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMemoryBarrier"); } } public void TexStorage1D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage1D)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage1D)) { try { MH_glTexStorage1D.invokeExact(PFN_glTexStorage1D, target, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage1D"); } } public void TexStorage2D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2D)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage2D)) { try { MH_glTexStorage2D.invokeExact(PFN_glTexStorage2D, target, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage2D"); } } public void TexStorage3D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3D)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage3D)) { try { MH_glTexStorage3D.invokeExact(PFN_glTexStorage3D, target, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage3D"); } } public void DrawTransformFeedbackInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLsizei") int instancecount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackInstanced)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackInstanced)) { try { MH_glDrawTransformFeedbackInstanced.invokeExact(PFN_glDrawTransformFeedbackInstanced, mode, id, instancecount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackInstanced", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackInstanced", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackInstanced"); } } public void DrawTransformFeedbackStreamInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream, @CType("GLsizei") int instancecount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStreamInstanced)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStreamInstanced)) { try { MH_glDrawTransformFeedbackStreamInstanced.invokeExact(PFN_glDrawTransformFeedbackStreamInstanced, mode, id, stream, instancecount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStreamInstanced", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStreamInstanced", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackStreamInstanced"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java index c1a26787..cd043419 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL43.java @@ -423,315 +423,311 @@ public GL43(GLLoadFunc func) { } public void ClearBufferData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferData)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferData)) { try { MH_glClearBufferData.invokeExact(PFN_glClearBufferData, target, internalformat, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferData"); } } public void ClearBufferSubData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferSubData)) { try { MH_glClearBufferSubData.invokeExact(PFN_glClearBufferSubData, target, internalformat, offset, size, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferSubData"); } } public void DispatchCompute(@CType("GLuint") int num_groups_x, @CType("GLuint") int num_groups_y, @CType("GLuint") int num_groups_z) { - try { if (!Unmarshal.isNullPointer(PFN_glDispatchCompute)) + if (!Unmarshal.isNullPointer(PFN_glDispatchCompute)) { try { MH_glDispatchCompute.invokeExact(PFN_glDispatchCompute, num_groups_x, num_groups_y, num_groups_z); - } - catch (Throwable e) { throw new RuntimeException("error in glDispatchCompute", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDispatchCompute", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDispatchCompute"); } } public void DispatchComputeIndirect(@CType("GLintptr") long indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDispatchComputeIndirect)) + if (!Unmarshal.isNullPointer(PFN_glDispatchComputeIndirect)) { try { MH_glDispatchComputeIndirect.invokeExact(PFN_glDispatchComputeIndirect, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDispatchComputeIndirect"); } } public void CopyImageSubData(@CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyImageSubData)) + if (!Unmarshal.isNullPointer(PFN_glCopyImageSubData)) { try { MH_glCopyImageSubData.invokeExact(PFN_glCopyImageSubData, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyImageSubData"); } } public void FramebufferParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteri)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteri)) { try { MH_glFramebufferParameteri.invokeExact(PFN_glFramebufferParameteri, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferParameteri"); } } public void GetFramebufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameteriv)) { try { MH_glGetFramebufferParameteriv.invokeExact(PFN_glGetFramebufferParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferParameteriv"); } } public void GetInternalformati64v(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformati64v)) + if (!Unmarshal.isNullPointer(PFN_glGetInternalformati64v)) { try { MH_glGetInternalformati64v.invokeExact(PFN_glGetInternalformati64v, target, internalformat, pname, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInternalformati64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInternalformati64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInternalformati64v"); } } public void InvalidateTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexSubImage)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateTexSubImage)) { try { MH_glInvalidateTexSubImage.invokeExact(PFN_glInvalidateTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateTexSubImage"); } } public void InvalidateTexImage(@CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexImage)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateTexImage)) { try { MH_glInvalidateTexImage.invokeExact(PFN_glInvalidateTexImage, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateTexImage"); } } public void InvalidateBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferSubData)) { try { MH_glInvalidateBufferSubData.invokeExact(PFN_glInvalidateBufferSubData, buffer, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateBufferSubData"); } } public void InvalidateBufferData(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferData)) { try { MH_glInvalidateBufferData.invokeExact(PFN_glInvalidateBufferData, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateBufferData"); } } public void InvalidateFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateFramebuffer)) { try { MH_glInvalidateFramebuffer.invokeExact(PFN_glInvalidateFramebuffer, target, numAttachments, attachments); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateFramebuffer"); } } public void InvalidateSubFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateSubFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateSubFramebuffer)) { try { MH_glInvalidateSubFramebuffer.invokeExact(PFN_glInvalidateSubFramebuffer, target, numAttachments, attachments, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateSubFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateSubFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateSubFramebuffer"); } } public void MultiDrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirect)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirect)) { try { MH_glMultiDrawArraysIndirect.invokeExact(PFN_glMultiDrawArraysIndirect, mode, indirect, drawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirect"); } } public void MultiDrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirect)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirect)) { try { MH_glMultiDrawElementsIndirect.invokeExact(PFN_glMultiDrawElementsIndirect, mode, type, indirect, drawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirect"); } } public void GetProgramInterfaceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramInterfaceiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramInterfaceiv)) { try { MH_glGetProgramInterfaceiv.invokeExact(PFN_glGetProgramInterfaceiv, program, programInterface, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramInterfaceiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramInterfaceiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramInterfaceiv"); } } public @CType("GLuint") int GetProgramResourceIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceIndex)) { try { return (int) MH_glGetProgramResourceIndex.invokeExact(PFN_glGetProgramResourceIndex, program, programInterface, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceIndex"); } } public void GetProgramResourceName(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceName)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceName)) { try { MH_glGetProgramResourceName.invokeExact(PFN_glGetProgramResourceName, program, programInterface, index, bufSize, length, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceName"); } } public void GetProgramResourceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int propCount, @CType("const GLenum *") java.lang.foreign.MemorySegment props, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceiv)) { try { MH_glGetProgramResourceiv.invokeExact(PFN_glGetProgramResourceiv, program, programInterface, index, propCount, props, count, length, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceiv"); } } public @CType("GLint") int GetProgramResourceLocation(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocation)) { try { return (int) MH_glGetProgramResourceLocation.invokeExact(PFN_glGetProgramResourceLocation, program, programInterface, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceLocation"); } } public @CType("GLint") int GetProgramResourceLocationIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocationIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocationIndex)) { try { return (int) MH_glGetProgramResourceLocationIndex.invokeExact(PFN_glGetProgramResourceLocationIndex, program, programInterface, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocationIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocationIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceLocationIndex"); } } public void ShaderStorageBlockBinding(@CType("GLuint") int program, @CType("GLuint") int storageBlockIndex, @CType("GLuint") int storageBlockBinding) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderStorageBlockBinding)) + if (!Unmarshal.isNullPointer(PFN_glShaderStorageBlockBinding)) { try { MH_glShaderStorageBlockBinding.invokeExact(PFN_glShaderStorageBlockBinding, program, storageBlockIndex, storageBlockBinding); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderStorageBlockBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderStorageBlockBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderStorageBlockBinding"); } } public void TexBufferRange(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glTexBufferRange)) { try { MH_glTexBufferRange.invokeExact(PFN_glTexBufferRange, target, internalformat, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBufferRange"); } } public void TexStorage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage2DMultisample)) { try { MH_glTexStorage2DMultisample.invokeExact(PFN_glTexStorage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage2DMultisample"); } } public void TexStorage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage3DMultisample)) { try { MH_glTexStorage3DMultisample.invokeExact(PFN_glTexStorage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage3DMultisample"); } } public void TextureView(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLuint") int origtexture, @CType("GLenum") int internalformat, @CType("GLuint") int minlevel, @CType("GLuint") int numlevels, @CType("GLuint") int minlayer, @CType("GLuint") int numlayers) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureView)) + if (!Unmarshal.isNullPointer(PFN_glTextureView)) { try { MH_glTextureView.invokeExact(PFN_glTextureView, texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureView", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureView", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureView"); } } public void BindVertexBuffer(@CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffer)) { try { MH_glBindVertexBuffer.invokeExact(PFN_glBindVertexBuffer, bindingindex, buffer, offset, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexBuffer"); } } public void VertexAttribFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormat)) { try { MH_glVertexAttribFormat.invokeExact(PFN_glVertexAttribFormat, attribindex, size, type, normalized, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribFormat"); } } public void VertexAttribIFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormat)) { try { MH_glVertexAttribIFormat.invokeExact(PFN_glVertexAttribIFormat, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribIFormat"); } } public void VertexAttribLFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormat)) { try { MH_glVertexAttribLFormat.invokeExact(PFN_glVertexAttribLFormat, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribLFormat"); } } public void VertexAttribBinding(@CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribBinding)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribBinding)) { try { MH_glVertexAttribBinding.invokeExact(PFN_glVertexAttribBinding, attribindex, bindingindex); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribBinding"); } } public void VertexBindingDivisor(@CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexBindingDivisor)) + if (!Unmarshal.isNullPointer(PFN_glVertexBindingDivisor)) { try { MH_glVertexBindingDivisor.invokeExact(PFN_glVertexBindingDivisor, bindingindex, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexBindingDivisor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexBindingDivisor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexBindingDivisor"); } } public void DebugMessageControl(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControl)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageControl)) { try { MH_glDebugMessageControl.invokeExact(PFN_glDebugMessageControl, source, type, severity, count, ids, enabled); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControl", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControl", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageControl"); } } public void DebugMessageInsert(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsert)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsert)) { try { MH_glDebugMessageInsert.invokeExact(PFN_glDebugMessageInsert, source, type, id, severity, length, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsert", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsert", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageInsert"); } } public void DebugMessageCallback(@CType("GLDEBUGPROC") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallback)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallback)) { try { MH_glDebugMessageCallback.invokeExact(PFN_glDebugMessageCallback, callback, userParam); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageCallback"); } } public @CType("GLuint") int GetDebugMessageLog(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLog)) + if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLog)) { try { return (int) MH_glGetDebugMessageLog.invokeExact(PFN_glGetDebugMessageLog, count, bufSize, sources, types, ids, severities, lengths, messageLog); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLog", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLog", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDebugMessageLog"); } } public void PushDebugGroup(@CType("GLenum") int source, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message) { - try { if (!Unmarshal.isNullPointer(PFN_glPushDebugGroup)) + if (!Unmarshal.isNullPointer(PFN_glPushDebugGroup)) { try { MH_glPushDebugGroup.invokeExact(PFN_glPushDebugGroup, source, id, length, message); - } - catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroup", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroup", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPushDebugGroup"); } } public void PopDebugGroup() { - try { if (!Unmarshal.isNullPointer(PFN_glPopDebugGroup)) + if (!Unmarshal.isNullPointer(PFN_glPopDebugGroup)) { try { MH_glPopDebugGroup.invokeExact(PFN_glPopDebugGroup); - } - catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroup", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroup", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPopDebugGroup"); } } public void ObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectLabel)) + if (!Unmarshal.isNullPointer(PFN_glObjectLabel)) { try { MH_glObjectLabel.invokeExact(PFN_glObjectLabel, identifier, name, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glObjectLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectLabel"); } } public void GetObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabel)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectLabel)) { try { MH_glGetObjectLabel.invokeExact(PFN_glGetObjectLabel, identifier, name, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectLabel"); } } public void ObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabel)) + if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabel)) { try { MH_glObjectPtrLabel.invokeExact(PFN_glObjectPtrLabel, ptr, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectPtrLabel"); } } public void GetObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabel)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabel)) { try { MH_glGetObjectPtrLabel.invokeExact(PFN_glGetObjectPtrLabel, ptr, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectPtrLabel"); } } public void GetPointerv(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPointerv)) + if (!Unmarshal.isNullPointer(PFN_glGetPointerv)) { try { MH_glGetPointerv.invokeExact(PFN_glGetPointerv, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPointerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPointerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPointerv"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java index 4fbcca4e..558311e2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL44.java @@ -76,66 +76,66 @@ public GL44(GLLoadFunc func) { } public void BufferStorage(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glBufferStorage)) { try { MH_glBufferStorage.invokeExact(PFN_glBufferStorage, target, size, data, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferStorage"); } } public void ClearTexImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearTexImage)) + if (!Unmarshal.isNullPointer(PFN_glClearTexImage)) { try { MH_glClearTexImage.invokeExact(PFN_glClearTexImage, texture, level, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearTexImage"); } } public void ClearTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearTexSubImage)) + if (!Unmarshal.isNullPointer(PFN_glClearTexSubImage)) { try { MH_glClearTexSubImage.invokeExact(PFN_glClearTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearTexSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearTexSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearTexSubImage"); } } public void BindBuffersBase(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersBase)) + if (!Unmarshal.isNullPointer(PFN_glBindBuffersBase)) { try { MH_glBindBuffersBase.invokeExact(PFN_glBindBuffersBase, target, first, count, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBuffersBase", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBuffersBase", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBuffersBase"); } } public void BindBuffersRange(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizeiptr *") java.lang.foreign.MemorySegment sizes) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersRange)) + if (!Unmarshal.isNullPointer(PFN_glBindBuffersRange)) { try { MH_glBindBuffersRange.invokeExact(PFN_glBindBuffersRange, target, first, count, buffers, offsets, sizes); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBuffersRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBuffersRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBuffersRange"); } } public void BindTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTextures)) + if (!Unmarshal.isNullPointer(PFN_glBindTextures)) { try { MH_glBindTextures.invokeExact(PFN_glBindTextures, first, count, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTextures"); } } public void BindSamplers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glBindSamplers)) + if (!Unmarshal.isNullPointer(PFN_glBindSamplers)) { try { MH_glBindSamplers.invokeExact(PFN_glBindSamplers, first, count, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glBindSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindSamplers"); } } public void BindImageTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glBindImageTextures)) + if (!Unmarshal.isNullPointer(PFN_glBindImageTextures)) { try { MH_glBindImageTextures.invokeExact(PFN_glBindImageTextures, first, count, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glBindImageTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindImageTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindImageTextures"); } } public void BindVertexBuffers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffers)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffers)) { try { MH_glBindVertexBuffers.invokeExact(PFN_glBindVertexBuffers, first, count, buffers, offsets, strides); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexBuffers"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java index 0ccbe0bb..b4b9f7df 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL45.java @@ -382,778 +382,773 @@ public GL45(GLLoadFunc func) { } public void ClipControl(@CType("GLenum") int origin, @CType("GLenum") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glClipControl)) + if (!Unmarshal.isNullPointer(PFN_glClipControl)) { try { MH_glClipControl.invokeExact(PFN_glClipControl, origin, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glClipControl", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClipControl", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClipControl"); } } public void CreateTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateTransformFeedbacks)) + if (!Unmarshal.isNullPointer(PFN_glCreateTransformFeedbacks)) { try { MH_glCreateTransformFeedbacks.invokeExact(PFN_glCreateTransformFeedbacks, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateTransformFeedbacks", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateTransformFeedbacks", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateTransformFeedbacks"); } } public void TransformFeedbackBufferBase(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferBase)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferBase)) { try { MH_glTransformFeedbackBufferBase.invokeExact(PFN_glTransformFeedbackBufferBase, xfb, index, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferBase", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferBase", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackBufferBase"); } } public void TransformFeedbackBufferRange(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferRange)) { try { MH_glTransformFeedbackBufferRange.invokeExact(PFN_glTransformFeedbackBufferRange, xfb, index, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackBufferRange"); } } public void GetTransformFeedbackiv(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackiv)) { try { MH_glGetTransformFeedbackiv.invokeExact(PFN_glGetTransformFeedbackiv, xfb, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbackiv"); } } public void GetTransformFeedbacki_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki_v)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki_v)) { try { MH_glGetTransformFeedbacki_v.invokeExact(PFN_glGetTransformFeedbacki_v, xfb, pname, index, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbacki_v"); } } public void GetTransformFeedbacki64_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki64_v)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki64_v)) { try { MH_glGetTransformFeedbacki64_v.invokeExact(PFN_glGetTransformFeedbacki64_v, xfb, pname, index, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki64_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki64_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbacki64_v"); } } public void CreateBuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateBuffers)) + if (!Unmarshal.isNullPointer(PFN_glCreateBuffers)) { try { MH_glCreateBuffers.invokeExact(PFN_glCreateBuffers, n, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateBuffers"); } } public void NamedBufferStorage(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorage)) { try { MH_glNamedBufferStorage.invokeExact(PFN_glNamedBufferStorage, buffer, size, data, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferStorage"); } } public void NamedBufferData(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferData)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferData)) { try { MH_glNamedBufferData.invokeExact(PFN_glNamedBufferData, buffer, size, data, usage); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferData"); } } public void NamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubData)) { try { MH_glNamedBufferSubData.invokeExact(PFN_glNamedBufferSubData, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferSubData"); } } public void CopyNamedBufferSubData(@CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glCopyNamedBufferSubData)) { try { MH_glCopyNamedBufferSubData.invokeExact(PFN_glCopyNamedBufferSubData, readBuffer, writeBuffer, readOffset, writeOffset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyNamedBufferSubData"); } } public void ClearNamedBufferData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferData)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferData)) { try { MH_glClearNamedBufferData.invokeExact(PFN_glClearNamedBufferData, buffer, internalformat, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedBufferData"); } } public void ClearNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubData)) { try { MH_glClearNamedBufferSubData.invokeExact(PFN_glClearNamedBufferSubData, buffer, internalformat, offset, size, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedBufferSubData"); } } public @CType("void*") java.lang.foreign.MemorySegment MapNamedBuffer(@CType("GLuint") int buffer, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBuffer)) + if (!Unmarshal.isNullPointer(PFN_glMapNamedBuffer)) { try { return (java.lang.foreign.MemorySegment) MH_glMapNamedBuffer.invokeExact(PFN_glMapNamedBuffer, buffer, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapNamedBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapNamedBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapNamedBuffer"); } } public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRange)) { try { return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferRange.invokeExact(PFN_glMapNamedBufferRange, buffer, offset, length, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapNamedBufferRange"); } } public @CType("GLboolean") boolean UnmapNamedBuffer(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBuffer)) + if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBuffer)) { try { return (boolean) MH_glUnmapNamedBuffer.invokeExact(PFN_glUnmapNamedBuffer, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapNamedBuffer"); } } public void FlushMappedNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRange)) { try { MH_glFlushMappedNamedBufferRange.invokeExact(PFN_glFlushMappedNamedBufferRange, buffer, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushMappedNamedBufferRange"); } } public void GetNamedBufferParameteriv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteriv)) { try { MH_glGetNamedBufferParameteriv.invokeExact(PFN_glGetNamedBufferParameteriv, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferParameteriv"); } } public void GetNamedBufferParameteri64v(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteri64v)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteri64v)) { try { MH_glGetNamedBufferParameteri64v.invokeExact(PFN_glGetNamedBufferParameteri64v, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteri64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteri64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferParameteri64v"); } } public void GetNamedBufferPointerv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointerv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointerv)) { try { MH_glGetNamedBufferPointerv.invokeExact(PFN_glGetNamedBufferPointerv, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferPointerv"); } } public void GetNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubData)) { try { MH_glGetNamedBufferSubData.invokeExact(PFN_glGetNamedBufferSubData, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferSubData"); } } public void CreateFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateFramebuffers)) + if (!Unmarshal.isNullPointer(PFN_glCreateFramebuffers)) { try { MH_glCreateFramebuffers.invokeExact(PFN_glCreateFramebuffers, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateFramebuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateFramebuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateFramebuffers"); } } public void NamedFramebufferRenderbuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbuffer)) { try { MH_glNamedFramebufferRenderbuffer.invokeExact(PFN_glNamedFramebufferRenderbuffer, framebuffer, attachment, renderbuffertarget, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferRenderbuffer"); } } public void NamedFramebufferParameteri(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteri)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteri)) { try { MH_glNamedFramebufferParameteri.invokeExact(PFN_glNamedFramebufferParameteri, framebuffer, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferParameteri"); } } public void NamedFramebufferTexture(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture)) { try { MH_glNamedFramebufferTexture.invokeExact(PFN_glNamedFramebufferTexture, framebuffer, attachment, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTexture"); } } public void NamedFramebufferTextureLayer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayer)) { try { MH_glNamedFramebufferTextureLayer.invokeExact(PFN_glNamedFramebufferTextureLayer, framebuffer, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTextureLayer"); } } public void NamedFramebufferDrawBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int buf) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffer)) { try { MH_glNamedFramebufferDrawBuffer.invokeExact(PFN_glNamedFramebufferDrawBuffer, framebuffer, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferDrawBuffer"); } } public void NamedFramebufferDrawBuffers(@CType("GLuint") int framebuffer, @CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffers)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffers)) { try { MH_glNamedFramebufferDrawBuffers.invokeExact(PFN_glNamedFramebufferDrawBuffers, framebuffer, n, bufs); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferDrawBuffers"); } } public void NamedFramebufferReadBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int src) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferReadBuffer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferReadBuffer)) { try { MH_glNamedFramebufferReadBuffer.invokeExact(PFN_glNamedFramebufferReadBuffer, framebuffer, src); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferReadBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferReadBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferReadBuffer"); } } public void InvalidateNamedFramebufferData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferData)) { try { MH_glInvalidateNamedFramebufferData.invokeExact(PFN_glInvalidateNamedFramebufferData, framebuffer, numAttachments, attachments); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateNamedFramebufferData"); } } public void InvalidateNamedFramebufferSubData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferSubData)) { try { MH_glInvalidateNamedFramebufferSubData.invokeExact(PFN_glInvalidateNamedFramebufferSubData, framebuffer, numAttachments, attachments, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateNamedFramebufferSubData"); } } public void ClearNamedFramebufferiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferiv)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferiv)) { try { MH_glClearNamedFramebufferiv.invokeExact(PFN_glClearNamedFramebufferiv, framebuffer, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferiv"); } } public void ClearNamedFramebufferuiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferuiv)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferuiv)) { try { MH_glClearNamedFramebufferuiv.invokeExact(PFN_glClearNamedFramebufferuiv, framebuffer, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferuiv"); } } public void ClearNamedFramebufferfv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfv)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfv)) { try { MH_glClearNamedFramebufferfv.invokeExact(PFN_glClearNamedFramebufferfv, framebuffer, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferfv"); } } public void ClearNamedFramebufferfi(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("GLfloat") float depth, @CType("GLint") int stencil) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfi)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfi)) { try { MH_glClearNamedFramebufferfi.invokeExact(PFN_glClearNamedFramebufferfi, framebuffer, buffer, drawbuffer, depth, stencil); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfi", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfi", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferfi"); } } public void BlitNamedFramebuffer(@CType("GLuint") int readFramebuffer, @CType("GLuint") int drawFramebuffer, @CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitNamedFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glBlitNamedFramebuffer)) { try { MH_glBlitNamedFramebuffer.invokeExact(PFN_glBlitNamedFramebuffer, readFramebuffer, drawFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitNamedFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitNamedFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitNamedFramebuffer"); } } public @CType("GLenum") int CheckNamedFramebufferStatus(@CType("GLuint") int framebuffer, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatus)) + if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatus)) { try { return (int) MH_glCheckNamedFramebufferStatus.invokeExact(PFN_glCheckNamedFramebufferStatus, framebuffer, target); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatus", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatus", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCheckNamedFramebufferStatus"); } } public void GetNamedFramebufferParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameteriv)) { try { MH_glGetNamedFramebufferParameteriv.invokeExact(PFN_glGetNamedFramebufferParameteriv, framebuffer, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferParameteriv"); } } public void GetNamedFramebufferAttachmentParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameteriv)) { try { MH_glGetNamedFramebufferAttachmentParameteriv.invokeExact(PFN_glGetNamedFramebufferAttachmentParameteriv, framebuffer, attachment, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferAttachmentParameteriv"); } } public void CreateRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateRenderbuffers)) + if (!Unmarshal.isNullPointer(PFN_glCreateRenderbuffers)) { try { MH_glCreateRenderbuffers.invokeExact(PFN_glCreateRenderbuffers, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateRenderbuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateRenderbuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateRenderbuffers"); } } public void NamedRenderbufferStorage(@CType("GLuint") int renderbuffer, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorage)) { try { MH_glNamedRenderbufferStorage.invokeExact(PFN_glNamedRenderbufferStorage, renderbuffer, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorage"); } } public void NamedRenderbufferStorageMultisample(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisample)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisample)) { try { MH_glNamedRenderbufferStorageMultisample.invokeExact(PFN_glNamedRenderbufferStorageMultisample, renderbuffer, samples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorageMultisample"); } } public void GetNamedRenderbufferParameteriv(@CType("GLuint") int renderbuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameteriv)) { try { MH_glGetNamedRenderbufferParameteriv.invokeExact(PFN_glGetNamedRenderbufferParameteriv, renderbuffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedRenderbufferParameteriv"); } } public void CreateTextures(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateTextures)) + if (!Unmarshal.isNullPointer(PFN_glCreateTextures)) { try { MH_glCreateTextures.invokeExact(PFN_glCreateTextures, target, n, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateTextures"); } } public void TextureBuffer(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBuffer)) + if (!Unmarshal.isNullPointer(PFN_glTextureBuffer)) { try { MH_glTextureBuffer.invokeExact(PFN_glTextureBuffer, texture, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBuffer"); } } public void TextureBufferRange(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glTextureBufferRange)) { try { MH_glTextureBufferRange.invokeExact(PFN_glTextureBufferRange, texture, internalformat, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBufferRange"); } } public void TextureStorage1D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1D)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage1D)) { try { MH_glTextureStorage1D.invokeExact(PFN_glTextureStorage1D, texture, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage1D"); } } public void TextureStorage2D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2D)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2D)) { try { MH_glTextureStorage2D.invokeExact(PFN_glTextureStorage2D, texture, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2D"); } } public void TextureStorage3D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3D)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3D)) { try { MH_glTextureStorage3D.invokeExact(PFN_glTextureStorage3D, texture, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3D"); } } public void TextureStorage2DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisample)) { try { MH_glTextureStorage2DMultisample.invokeExact(PFN_glTextureStorage2DMultisample, texture, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2DMultisample"); } } public void TextureStorage3DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisample)) { try { MH_glTextureStorage3DMultisample.invokeExact(PFN_glTextureStorage3DMultisample, texture, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3DMultisample"); } } public void TextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1D)) { try { MH_glTextureSubImage1D.invokeExact(PFN_glTextureSubImage1D, texture, level, xoffset, width, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage1D"); } } public void TextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2D)) { try { MH_glTextureSubImage2D.invokeExact(PFN_glTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage2D"); } } public void TextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3D)) { try { MH_glTextureSubImage3D.invokeExact(PFN_glTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage3D"); } } public void CompressedTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1D)) { try { MH_glCompressedTextureSubImage1D.invokeExact(PFN_glCompressedTextureSubImage1D, texture, level, xoffset, width, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage1D"); } } public void CompressedTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2D)) { try { MH_glCompressedTextureSubImage2D.invokeExact(PFN_glCompressedTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage2D"); } } public void CompressedTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3D)) { try { MH_glCompressedTextureSubImage3D.invokeExact(PFN_glCompressedTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage3D"); } } public void CopyTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1D)) { try { MH_glCopyTextureSubImage1D.invokeExact(PFN_glCopyTextureSubImage1D, texture, level, xoffset, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage1D"); } } public void CopyTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2D)) { try { MH_glCopyTextureSubImage2D.invokeExact(PFN_glCopyTextureSubImage2D, texture, level, xoffset, yoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage2D"); } } public void CopyTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3D)) { try { MH_glCopyTextureSubImage3D.invokeExact(PFN_glCopyTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage3D"); } } public void TextureParameterf(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterf)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterf)) { try { MH_glTextureParameterf.invokeExact(PFN_glTextureParameterf, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterf"); } } public void TextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterfv)) { try { MH_glTextureParameterfv.invokeExact(PFN_glTextureParameterfv, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterfv"); } } public void TextureParameteri(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteri)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameteri)) { try { MH_glTextureParameteri.invokeExact(PFN_glTextureParameteri, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameteri"); } } public void TextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterIiv)) { try { MH_glTextureParameterIiv.invokeExact(PFN_glTextureParameterIiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterIiv"); } } public void TextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuiv)) { try { MH_glTextureParameterIuiv.invokeExact(PFN_glTextureParameterIuiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterIuiv"); } } public void TextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameteriv)) { try { MH_glTextureParameteriv.invokeExact(PFN_glTextureParameteriv, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameteriv"); } } public void GenerateTextureMipmap(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmap)) + if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmap)) { try { MH_glGenerateTextureMipmap.invokeExact(PFN_glGenerateTextureMipmap, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmap", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmap", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateTextureMipmap"); } } public void BindTextureUnit(@CType("GLuint") int unit, @CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTextureUnit)) + if (!Unmarshal.isNullPointer(PFN_glBindTextureUnit)) { try { MH_glBindTextureUnit.invokeExact(PFN_glBindTextureUnit, unit, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnit", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnit", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTextureUnit"); } } public void GetTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureImage)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureImage)) { try { MH_glGetTextureImage.invokeExact(PFN_glGetTextureImage, texture, level, format, type, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureImage"); } } public void GetCompressedTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImage)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImage)) { try { MH_glGetCompressedTextureImage.invokeExact(PFN_glGetCompressedTextureImage, texture, level, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTextureImage"); } } public void GetTextureLevelParameterfv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfv)) { try { MH_glGetTextureLevelParameterfv.invokeExact(PFN_glGetTextureLevelParameterfv, texture, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureLevelParameterfv"); } } public void GetTextureLevelParameteriv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameteriv)) { try { MH_glGetTextureLevelParameteriv.invokeExact(PFN_glGetTextureLevelParameteriv, texture, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureLevelParameteriv"); } } public void GetTextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfv)) { try { MH_glGetTextureParameterfv.invokeExact(PFN_glGetTextureParameterfv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterfv"); } } public void GetTextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIiv)) { try { MH_glGetTextureParameterIiv.invokeExact(PFN_glGetTextureParameterIiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterIiv"); } } public void GetTextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuiv)) { try { MH_glGetTextureParameterIuiv.invokeExact(PFN_glGetTextureParameterIuiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterIuiv"); } } public void GetTextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameteriv)) { try { MH_glGetTextureParameteriv.invokeExact(PFN_glGetTextureParameteriv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameteriv"); } } public void CreateVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateVertexArrays)) + if (!Unmarshal.isNullPointer(PFN_glCreateVertexArrays)) { try { MH_glCreateVertexArrays.invokeExact(PFN_glCreateVertexArrays, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateVertexArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateVertexArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateVertexArrays"); } } public void DisableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttrib)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttrib)) { try { MH_glDisableVertexArrayAttrib.invokeExact(PFN_glDisableVertexArrayAttrib, vaobj, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttrib", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttrib", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexArrayAttrib"); } } public void EnableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttrib)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttrib)) { try { MH_glEnableVertexArrayAttrib.invokeExact(PFN_glEnableVertexArrayAttrib, vaobj, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttrib", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttrib", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexArrayAttrib"); } } public void VertexArrayElementBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayElementBuffer)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayElementBuffer)) { try { MH_glVertexArrayElementBuffer.invokeExact(PFN_glVertexArrayElementBuffer, vaobj, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayElementBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayElementBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayElementBuffer"); } } public void VertexArrayVertexBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffer)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffer)) { try { MH_glVertexArrayVertexBuffer.invokeExact(PFN_glVertexArrayVertexBuffer, vaobj, bindingindex, buffer, offset, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexBuffer"); } } public void VertexArrayVertexBuffers(@CType("GLuint") int vaobj, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffers)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffers)) { try { MH_glVertexArrayVertexBuffers.invokeExact(PFN_glVertexArrayVertexBuffers, vaobj, first, count, buffers, offsets, strides); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexBuffers"); } } public void VertexArrayAttribBinding(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribBinding)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribBinding)) { try { MH_glVertexArrayAttribBinding.invokeExact(PFN_glVertexArrayAttribBinding, vaobj, attribindex, bindingindex); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribBinding"); } } public void VertexArrayAttribFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribFormat)) { try { MH_glVertexArrayAttribFormat.invokeExact(PFN_glVertexArrayAttribFormat, vaobj, attribindex, size, type, normalized, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribFormat"); } } public void VertexArrayAttribIFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribIFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribIFormat)) { try { MH_glVertexArrayAttribIFormat.invokeExact(PFN_glVertexArrayAttribIFormat, vaobj, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribIFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribIFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribIFormat"); } } public void VertexArrayAttribLFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribLFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribLFormat)) { try { MH_glVertexArrayAttribLFormat.invokeExact(PFN_glVertexArrayAttribLFormat, vaobj, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribLFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribLFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribLFormat"); } } public void VertexArrayBindingDivisor(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindingDivisor)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindingDivisor)) { try { MH_glVertexArrayBindingDivisor.invokeExact(PFN_glVertexArrayBindingDivisor, vaobj, bindingindex, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindingDivisor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindingDivisor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayBindingDivisor"); } } public void GetVertexArrayiv(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayiv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayiv)) { try { MH_glGetVertexArrayiv.invokeExact(PFN_glGetVertexArrayiv, vaobj, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayiv"); } } public void GetVertexArrayIndexediv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexediv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexediv)) { try { MH_glGetVertexArrayIndexediv.invokeExact(PFN_glGetVertexArrayIndexediv, vaobj, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexediv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexediv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayIndexediv"); } } public void GetVertexArrayIndexed64iv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexed64iv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexed64iv)) { try { MH_glGetVertexArrayIndexed64iv.invokeExact(PFN_glGetVertexArrayIndexed64iv, vaobj, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexed64iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexed64iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayIndexed64iv"); } } public void CreateSamplers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateSamplers)) + if (!Unmarshal.isNullPointer(PFN_glCreateSamplers)) { try { MH_glCreateSamplers.invokeExact(PFN_glCreateSamplers, n, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateSamplers"); } } public void CreateProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateProgramPipelines)) + if (!Unmarshal.isNullPointer(PFN_glCreateProgramPipelines)) { try { MH_glCreateProgramPipelines.invokeExact(PFN_glCreateProgramPipelines, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateProgramPipelines", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateProgramPipelines", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateProgramPipelines"); } } public void CreateQueries(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateQueries)) + if (!Unmarshal.isNullPointer(PFN_glCreateQueries)) { try { MH_glCreateQueries.invokeExact(PFN_glCreateQueries, target, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateQueries", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateQueries", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateQueries"); } } public void GetQueryBufferObjecti64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjecti64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjecti64v)) { try { MH_glGetQueryBufferObjecti64v.invokeExact(PFN_glGetQueryBufferObjecti64v, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjecti64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjecti64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjecti64v"); } } public void GetQueryBufferObjectiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectiv)) { try { MH_glGetQueryBufferObjectiv.invokeExact(PFN_glGetQueryBufferObjectiv, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjectiv"); } } public void GetQueryBufferObjectui64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectui64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectui64v)) { try { MH_glGetQueryBufferObjectui64v.invokeExact(PFN_glGetQueryBufferObjectui64v, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectui64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectui64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjectui64v"); } } public void GetQueryBufferObjectuiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectuiv)) { try { MH_glGetQueryBufferObjectuiv.invokeExact(PFN_glGetQueryBufferObjectuiv, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjectuiv"); } } public void MemoryBarrierByRegion(@CType("GLbitfield") int barriers) { - try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierByRegion)) + if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierByRegion)) { try { MH_glMemoryBarrierByRegion.invokeExact(PFN_glMemoryBarrierByRegion, barriers); - } - catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierByRegion", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierByRegion", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMemoryBarrierByRegion"); } } public void GetTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSubImage)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureSubImage)) { try { MH_glGetTextureSubImage.invokeExact(PFN_glGetTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureSubImage"); } } public void GetCompressedTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureSubImage)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureSubImage)) { try { MH_glGetCompressedTextureSubImage.invokeExact(PFN_glGetCompressedTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTextureSubImage"); } } public @CType("GLenum") int GetGraphicsResetStatus() { - try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatus)) + if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatus)) { try { return (int) MH_glGetGraphicsResetStatus.invokeExact(PFN_glGetGraphicsResetStatus); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatus", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatus", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetGraphicsResetStatus"); } } public void GetnCompressedTexImage(@CType("GLenum") int target, @CType("GLint") int lod, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnCompressedTexImage)) + if (!Unmarshal.isNullPointer(PFN_glGetnCompressedTexImage)) { try { MH_glGetnCompressedTexImage.invokeExact(PFN_glGetnCompressedTexImage, target, lod, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnCompressedTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnCompressedTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnCompressedTexImage"); } } public void GetnTexImage(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnTexImage)) + if (!Unmarshal.isNullPointer(PFN_glGetnTexImage)) { try { MH_glGetnTexImage.invokeExact(PFN_glGetnTexImage, target, level, format, type, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnTexImage"); } } public void GetnUniformdv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformdv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformdv)) { try { MH_glGetnUniformdv.invokeExact(PFN_glGetnUniformdv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformdv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformdv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformdv"); } } public void GetnUniformfv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformfv)) { try { MH_glGetnUniformfv.invokeExact(PFN_glGetnUniformfv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformfv"); } } public void GetnUniformiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformiv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformiv)) { try { MH_glGetnUniformiv.invokeExact(PFN_glGetnUniformiv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformiv"); } } public void GetnUniformuiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformuiv)) { try { MH_glGetnUniformuiv.invokeExact(PFN_glGetnUniformuiv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformuiv"); } } public void ReadnPixels(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glReadnPixels)) + if (!Unmarshal.isNullPointer(PFN_glReadnPixels)) { try { MH_glReadnPixels.invokeExact(PFN_glReadnPixels, x, y, width, height, format, type, bufSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glReadnPixels", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadnPixels", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadnPixels"); } } public void TextureBarrier() { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBarrier)) + if (!Unmarshal.isNullPointer(PFN_glTextureBarrier)) { try { MH_glTextureBarrier.invokeExact(PFN_glTextureBarrier); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBarrier", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBarrier", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBarrier"); } } // --- OverrunGL custom code --- diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java index a5f41251..081dd57a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/GL46.java @@ -64,31 +64,31 @@ public GL46(GLLoadFunc func) { } public void SpecializeShader(@CType("GLuint") int shader, @CType("const GLchar *") java.lang.foreign.MemorySegment pEntryPoint, @CType("GLuint") int numSpecializationConstants, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantIndex, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantValue) { - try { if (!Unmarshal.isNullPointer(PFN_glSpecializeShader)) + if (!Unmarshal.isNullPointer(PFN_glSpecializeShader)) { try { MH_glSpecializeShader.invokeExact(PFN_glSpecializeShader, shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); - } - catch (Throwable e) { throw new RuntimeException("error in glSpecializeShader", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSpecializeShader", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSpecializeShader"); } } public void MultiDrawArraysIndirectCount(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectCount)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectCount)) { try { MH_glMultiDrawArraysIndirectCount.invokeExact(PFN_glMultiDrawArraysIndirectCount, mode, indirect, drawcount, maxdrawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectCount", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectCount", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirectCount"); } } public void MultiDrawElementsIndirectCount(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectCount)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectCount)) { try { MH_glMultiDrawElementsIndirectCount.invokeExact(PFN_glMultiDrawElementsIndirectCount, mode, type, indirect, drawcount, maxdrawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectCount", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectCount", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirectCount"); } } public void PolygonOffsetClamp(@CType("GLfloat") float factor, @CType("GLfloat") float units, @CType("GLfloat") float clamp) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClamp)) + if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClamp)) { try { MH_glPolygonOffsetClamp.invokeExact(PFN_glPolygonOffsetClamp, factor, units, clamp); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClamp", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClamp", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonOffsetClamp"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java index d75f2e79..3593e057 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDebugOutput.java @@ -55,32 +55,31 @@ public GLAMDDebugOutput(overrungl.opengl.GLLoadFunc func) { } public void DebugMessageEnableAMD(@CType("GLenum") int category, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageEnableAMD)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageEnableAMD)) { try { MH_glDebugMessageEnableAMD.invokeExact(PFN_glDebugMessageEnableAMD, category, severity, count, ids, enabled); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageEnableAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageEnableAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageEnableAMD"); } } public void DebugMessageInsertAMD(@CType("GLenum") int category, @CType("GLenum") int severity, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertAMD)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertAMD)) { try { MH_glDebugMessageInsertAMD.invokeExact(PFN_glDebugMessageInsertAMD, category, severity, id, length, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageInsertAMD"); } } public void DebugMessageCallbackAMD(@CType("GLDEBUGPROCAMD") java.lang.foreign.MemorySegment callback, @CType("void*") java.lang.foreign.MemorySegment userParam) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackAMD)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackAMD)) { try { MH_glDebugMessageCallbackAMD.invokeExact(PFN_glDebugMessageCallbackAMD, callback, userParam); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageCallbackAMD"); } } public @CType("GLuint") int GetDebugMessageLogAMD(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment categories, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment message) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogAMD)) { try { return (int) MH_glGetDebugMessageLogAMD.invokeExact(PFN_glGetDebugMessageLogAMD, count, bufSize, categories, severities, ids, lengths, message); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDebugMessageLogAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java index 5bb02b2d..6f05c06d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDDrawBuffersBlend.java @@ -41,31 +41,31 @@ public GLAMDDrawBuffersBlend(overrungl.opengl.GLLoadFunc func) { } public void BlendFuncIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int src, @CType("GLenum") int dst) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncIndexedAMD)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncIndexedAMD)) { try { MH_glBlendFuncIndexedAMD.invokeExact(PFN_glBlendFuncIndexedAMD, buf, src, dst); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncIndexedAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncIndexedAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncIndexedAMD"); } } public void BlendFuncSeparateIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int srcRGB, @CType("GLenum") int dstRGB, @CType("GLenum") int srcAlpha, @CType("GLenum") int dstAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateIndexedAMD)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateIndexedAMD)) { try { MH_glBlendFuncSeparateIndexedAMD.invokeExact(PFN_glBlendFuncSeparateIndexedAMD, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateIndexedAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateIndexedAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncSeparateIndexedAMD"); } } public void BlendEquationIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationIndexedAMD)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationIndexedAMD)) { try { MH_glBlendEquationIndexedAMD.invokeExact(PFN_glBlendEquationIndexedAMD, buf, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationIndexedAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationIndexedAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationIndexedAMD"); } } public void BlendEquationSeparateIndexedAMD(@CType("GLuint") int buf, @CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateIndexedAMD)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateIndexedAMD)) { try { MH_glBlendEquationSeparateIndexedAMD.invokeExact(PFN_glBlendEquationSeparateIndexedAMD, buf, modeRGB, modeAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateIndexedAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateIndexedAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationSeparateIndexedAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java index 5ee546ee..4f357cee 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferMultisampleAdvanced.java @@ -41,17 +41,17 @@ public GLAMDFramebufferMultisampleAdvanced(overrungl.opengl.GLLoadFunc func) { } public void RenderbufferStorageMultisampleAdvancedAMD(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLsizei") int storageSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleAdvancedAMD)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleAdvancedAMD)) { try { MH_glRenderbufferStorageMultisampleAdvancedAMD.invokeExact(PFN_glRenderbufferStorageMultisampleAdvancedAMD, target, samples, storageSamples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleAdvancedAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleAdvancedAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorageMultisampleAdvancedAMD"); } } public void NamedRenderbufferStorageMultisampleAdvancedAMD(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLsizei") int storageSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD)) { try { MH_glNamedRenderbufferStorageMultisampleAdvancedAMD.invokeExact(PFN_glNamedRenderbufferStorageMultisampleAdvancedAMD, renderbuffer, samples, storageSamples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleAdvancedAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleAdvancedAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorageMultisampleAdvancedAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java index 499984d3..40b131a0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDFramebufferSamplePositions.java @@ -45,31 +45,31 @@ public GLAMDFramebufferSamplePositions(overrungl.opengl.GLLoadFunc func) { } public void FramebufferSamplePositionsfvAMD(@CType("GLenum") int target, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferSamplePositionsfvAMD)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferSamplePositionsfvAMD)) { try { MH_glFramebufferSamplePositionsfvAMD.invokeExact(PFN_glFramebufferSamplePositionsfvAMD, target, numsamples, pixelindex, values); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferSamplePositionsfvAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferSamplePositionsfvAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferSamplePositionsfvAMD"); } } public void NamedFramebufferSamplePositionsfvAMD(@CType("GLuint") int framebuffer, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSamplePositionsfvAMD)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSamplePositionsfvAMD)) { try { MH_glNamedFramebufferSamplePositionsfvAMD.invokeExact(PFN_glNamedFramebufferSamplePositionsfvAMD, framebuffer, numsamples, pixelindex, values); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSamplePositionsfvAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSamplePositionsfvAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferSamplePositionsfvAMD"); } } public void GetFramebufferParameterfvAMD(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("GLsizei") int size, @CType("GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterfvAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterfvAMD)) { try { MH_glGetFramebufferParameterfvAMD.invokeExact(PFN_glGetFramebufferParameterfvAMD, target, pname, numsamples, pixelindex, size, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterfvAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterfvAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferParameterfvAMD"); } } public void GetNamedFramebufferParameterfvAMD(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLuint") int numsamples, @CType("GLuint") int pixelindex, @CType("GLsizei") int size, @CType("GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameterfvAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameterfvAMD)) { try { MH_glGetNamedFramebufferParameterfvAMD.invokeExact(PFN_glGetNamedFramebufferParameterfvAMD, framebuffer, pname, numsamples, pixelindex, size, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameterfvAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameterfvAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferParameterfvAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java index 32d4fd17..425a5965 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDGpuShaderInt64.java @@ -158,241 +158,241 @@ public GLAMDGpuShaderInt64(overrungl.opengl.GLLoadFunc func) { } public void Uniform1i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i64NV)) { try { MH_glUniform1i64NV.invokeExact(PFN_glUniform1i64NV, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i64NV"); } } public void Uniform2i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i64NV)) { try { MH_glUniform2i64NV.invokeExact(PFN_glUniform2i64NV, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i64NV"); } } public void Uniform3i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i64NV)) { try { MH_glUniform3i64NV.invokeExact(PFN_glUniform3i64NV, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i64NV"); } } public void Uniform4i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i64NV)) { try { MH_glUniform4i64NV.invokeExact(PFN_glUniform4i64NV, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i64NV"); } } public void Uniform1i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i64vNV)) { try { MH_glUniform1i64vNV.invokeExact(PFN_glUniform1i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i64vNV"); } } public void Uniform2i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i64vNV)) { try { MH_glUniform2i64vNV.invokeExact(PFN_glUniform2i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i64vNV"); } } public void Uniform3i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i64vNV)) { try { MH_glUniform3i64vNV.invokeExact(PFN_glUniform3i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i64vNV"); } } public void Uniform4i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i64vNV)) { try { MH_glUniform4i64vNV.invokeExact(PFN_glUniform4i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i64vNV"); } } public void Uniform1ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui64NV)) { try { MH_glUniform1ui64NV.invokeExact(PFN_glUniform1ui64NV, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui64NV"); } } public void Uniform2ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui64NV)) { try { MH_glUniform2ui64NV.invokeExact(PFN_glUniform2ui64NV, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui64NV"); } } public void Uniform3ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui64NV)) { try { MH_glUniform3ui64NV.invokeExact(PFN_glUniform3ui64NV, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui64NV"); } } public void Uniform4ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui64NV)) { try { MH_glUniform4ui64NV.invokeExact(PFN_glUniform4ui64NV, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui64NV"); } } public void Uniform1ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vNV)) { try { MH_glUniform1ui64vNV.invokeExact(PFN_glUniform1ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui64vNV"); } } public void Uniform2ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vNV)) { try { MH_glUniform2ui64vNV.invokeExact(PFN_glUniform2ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui64vNV"); } } public void Uniform3ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vNV)) { try { MH_glUniform3ui64vNV.invokeExact(PFN_glUniform3ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui64vNV"); } } public void Uniform4ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vNV)) { try { MH_glUniform4ui64vNV.invokeExact(PFN_glUniform4ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui64vNV"); } } public void GetUniformi64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vNV)) { try { MH_glGetUniformi64vNV.invokeExact(PFN_glGetUniformi64vNV, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformi64vNV"); } } public void GetUniformui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vNV)) { try { MH_glGetUniformui64vNV.invokeExact(PFN_glGetUniformui64vNV, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformui64vNV"); } } public void ProgramUniform1i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64NV)) { try { MH_glProgramUniform1i64NV.invokeExact(PFN_glProgramUniform1i64NV, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i64NV"); } } public void ProgramUniform2i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64NV)) { try { MH_glProgramUniform2i64NV.invokeExact(PFN_glProgramUniform2i64NV, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i64NV"); } } public void ProgramUniform3i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64NV)) { try { MH_glProgramUniform3i64NV.invokeExact(PFN_glProgramUniform3i64NV, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i64NV"); } } public void ProgramUniform4i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64NV)) { try { MH_glProgramUniform4i64NV.invokeExact(PFN_glProgramUniform4i64NV, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i64NV"); } } public void ProgramUniform1i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vNV)) { try { MH_glProgramUniform1i64vNV.invokeExact(PFN_glProgramUniform1i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i64vNV"); } } public void ProgramUniform2i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vNV)) { try { MH_glProgramUniform2i64vNV.invokeExact(PFN_glProgramUniform2i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i64vNV"); } } public void ProgramUniform3i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vNV)) { try { MH_glProgramUniform3i64vNV.invokeExact(PFN_glProgramUniform3i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i64vNV"); } } public void ProgramUniform4i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vNV)) { try { MH_glProgramUniform4i64vNV.invokeExact(PFN_glProgramUniform4i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i64vNV"); } } public void ProgramUniform1ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64NV)) { try { MH_glProgramUniform1ui64NV.invokeExact(PFN_glProgramUniform1ui64NV, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui64NV"); } } public void ProgramUniform2ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64NV)) { try { MH_glProgramUniform2ui64NV.invokeExact(PFN_glProgramUniform2ui64NV, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui64NV"); } } public void ProgramUniform3ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64NV)) { try { MH_glProgramUniform3ui64NV.invokeExact(PFN_glProgramUniform3ui64NV, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui64NV"); } } public void ProgramUniform4ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64NV)) { try { MH_glProgramUniform4ui64NV.invokeExact(PFN_glProgramUniform4ui64NV, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui64NV"); } } public void ProgramUniform1ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vNV)) { try { MH_glProgramUniform1ui64vNV.invokeExact(PFN_glProgramUniform1ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui64vNV"); } } public void ProgramUniform2ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vNV)) { try { MH_glProgramUniform2ui64vNV.invokeExact(PFN_glProgramUniform2ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui64vNV"); } } public void ProgramUniform3ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vNV)) { try { MH_glProgramUniform3ui64vNV.invokeExact(PFN_glProgramUniform3ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui64vNV"); } } public void ProgramUniform4ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vNV)) { try { MH_glProgramUniform4ui64vNV.invokeExact(PFN_glProgramUniform4ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui64vNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java index 25de43f0..e59fd71a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDInterleavedElements.java @@ -41,10 +41,10 @@ public GLAMDInterleavedElements(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribParameteriAMD(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribParameteriAMD)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribParameteriAMD)) { try { MH_glVertexAttribParameteriAMD.invokeExact(PFN_glVertexAttribParameteriAMD, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribParameteriAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribParameteriAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribParameteriAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java index 4a2807fc..d2b12182 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDMultiDrawIndirect.java @@ -35,17 +35,17 @@ public GLAMDMultiDrawIndirect(overrungl.opengl.GLLoadFunc func) { } public void MultiDrawArraysIndirectAMD(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int primcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectAMD)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectAMD)) { try { MH_glMultiDrawArraysIndirectAMD.invokeExact(PFN_glMultiDrawArraysIndirectAMD, mode, indirect, primcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirectAMD"); } } public void MultiDrawElementsIndirectAMD(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int primcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectAMD)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectAMD)) { try { MH_glMultiDrawElementsIndirectAMD.invokeExact(PFN_glMultiDrawElementsIndirectAMD, mode, type, indirect, primcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirectAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java index ed974a0d..37581121 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDNameGenDelete.java @@ -43,25 +43,24 @@ public GLAMDNameGenDelete(overrungl.opengl.GLLoadFunc func) { } public void GenNamesAMD(@CType("GLenum") int identifier, @CType("GLuint") int num, @CType("GLuint *") java.lang.foreign.MemorySegment names) { - try { if (!Unmarshal.isNullPointer(PFN_glGenNamesAMD)) + if (!Unmarshal.isNullPointer(PFN_glGenNamesAMD)) { try { MH_glGenNamesAMD.invokeExact(PFN_glGenNamesAMD, identifier, num, names); - } - catch (Throwable e) { throw new RuntimeException("error in glGenNamesAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenNamesAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenNamesAMD"); } } public void DeleteNamesAMD(@CType("GLenum") int identifier, @CType("GLuint") int num, @CType("const GLuint *") java.lang.foreign.MemorySegment names) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteNamesAMD)) + if (!Unmarshal.isNullPointer(PFN_glDeleteNamesAMD)) { try { MH_glDeleteNamesAMD.invokeExact(PFN_glDeleteNamesAMD, identifier, num, names); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteNamesAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteNamesAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteNamesAMD"); } } public @CType("GLboolean") boolean IsNameAMD(@CType("GLenum") int identifier, @CType("GLuint") int name) { - try { if (!Unmarshal.isNullPointer(PFN_glIsNameAMD)) + if (!Unmarshal.isNullPointer(PFN_glIsNameAMD)) { try { return (boolean) MH_glIsNameAMD.invokeExact(PFN_glIsNameAMD, identifier, name); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsNameAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsNameAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsNameAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java index 059aeb5c..547f9bf3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDOcclusionQueryEvent.java @@ -38,10 +38,10 @@ public GLAMDOcclusionQueryEvent(overrungl.opengl.GLLoadFunc func) { } public void QueryObjectParameteruiAMD(@CType("GLenum") int target, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glQueryObjectParameteruiAMD)) + if (!Unmarshal.isNullPointer(PFN_glQueryObjectParameteruiAMD)) { try { MH_glQueryObjectParameteruiAMD.invokeExact(PFN_glQueryObjectParameteruiAMD, target, id, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glQueryObjectParameteruiAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glQueryObjectParameteruiAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glQueryObjectParameteruiAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java index ef7a119a..c7795a15 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDPerformanceMonitor.java @@ -69,80 +69,80 @@ public GLAMDPerformanceMonitor(overrungl.opengl.GLLoadFunc func) { } public void GetPerfMonitorGroupsAMD(@CType("GLint *") java.lang.foreign.MemorySegment numGroups, @CType("GLsizei") int groupsSize, @CType("GLuint *") java.lang.foreign.MemorySegment groups) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorGroupsAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorGroupsAMD)) { try { MH_glGetPerfMonitorGroupsAMD.invokeExact(PFN_glGetPerfMonitorGroupsAMD, numGroups, groupsSize, groups); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorGroupsAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorGroupsAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfMonitorGroupsAMD"); } } public void GetPerfMonitorCountersAMD(@CType("GLuint") int group, @CType("GLint *") java.lang.foreign.MemorySegment numCounters, @CType("GLint *") java.lang.foreign.MemorySegment maxActiveCounters, @CType("GLsizei") int counterSize, @CType("GLuint *") java.lang.foreign.MemorySegment counters) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCountersAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCountersAMD)) { try { MH_glGetPerfMonitorCountersAMD.invokeExact(PFN_glGetPerfMonitorCountersAMD, group, numCounters, maxActiveCounters, counterSize, counters); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCountersAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCountersAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfMonitorCountersAMD"); } } public void GetPerfMonitorGroupStringAMD(@CType("GLuint") int group, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment groupString) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorGroupStringAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorGroupStringAMD)) { try { MH_glGetPerfMonitorGroupStringAMD.invokeExact(PFN_glGetPerfMonitorGroupStringAMD, group, bufSize, length, groupString); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorGroupStringAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorGroupStringAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfMonitorGroupStringAMD"); } } public void GetPerfMonitorCounterStringAMD(@CType("GLuint") int group, @CType("GLuint") int counter, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment counterString) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterStringAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterStringAMD)) { try { MH_glGetPerfMonitorCounterStringAMD.invokeExact(PFN_glGetPerfMonitorCounterStringAMD, group, counter, bufSize, length, counterString); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterStringAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterStringAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfMonitorCounterStringAMD"); } } public void GetPerfMonitorCounterInfoAMD(@CType("GLuint") int group, @CType("GLuint") int counter, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterInfoAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterInfoAMD)) { try { MH_glGetPerfMonitorCounterInfoAMD.invokeExact(PFN_glGetPerfMonitorCounterInfoAMD, group, counter, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterInfoAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterInfoAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfMonitorCounterInfoAMD"); } } public void GenPerfMonitorsAMD(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment monitors) { - try { if (!Unmarshal.isNullPointer(PFN_glGenPerfMonitorsAMD)) + if (!Unmarshal.isNullPointer(PFN_glGenPerfMonitorsAMD)) { try { MH_glGenPerfMonitorsAMD.invokeExact(PFN_glGenPerfMonitorsAMD, n, monitors); - } - catch (Throwable e) { throw new RuntimeException("error in glGenPerfMonitorsAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenPerfMonitorsAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenPerfMonitorsAMD"); } } public void DeletePerfMonitorsAMD(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment monitors) { - try { if (!Unmarshal.isNullPointer(PFN_glDeletePerfMonitorsAMD)) + if (!Unmarshal.isNullPointer(PFN_glDeletePerfMonitorsAMD)) { try { MH_glDeletePerfMonitorsAMD.invokeExact(PFN_glDeletePerfMonitorsAMD, n, monitors); - } - catch (Throwable e) { throw new RuntimeException("error in glDeletePerfMonitorsAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeletePerfMonitorsAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeletePerfMonitorsAMD"); } } public void SelectPerfMonitorCountersAMD(@CType("GLuint") int monitor, @CType("GLboolean") boolean enable, @CType("GLuint") int group, @CType("GLint") int numCounters, @CType("GLuint *") java.lang.foreign.MemorySegment counterList) { - try { if (!Unmarshal.isNullPointer(PFN_glSelectPerfMonitorCountersAMD)) + if (!Unmarshal.isNullPointer(PFN_glSelectPerfMonitorCountersAMD)) { try { MH_glSelectPerfMonitorCountersAMD.invokeExact(PFN_glSelectPerfMonitorCountersAMD, monitor, enable, group, numCounters, counterList); - } - catch (Throwable e) { throw new RuntimeException("error in glSelectPerfMonitorCountersAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSelectPerfMonitorCountersAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSelectPerfMonitorCountersAMD"); } } public void BeginPerfMonitorAMD(@CType("GLuint") int monitor) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginPerfMonitorAMD)) + if (!Unmarshal.isNullPointer(PFN_glBeginPerfMonitorAMD)) { try { MH_glBeginPerfMonitorAMD.invokeExact(PFN_glBeginPerfMonitorAMD, monitor); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginPerfMonitorAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginPerfMonitorAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginPerfMonitorAMD"); } } public void EndPerfMonitorAMD(@CType("GLuint") int monitor) { - try { if (!Unmarshal.isNullPointer(PFN_glEndPerfMonitorAMD)) + if (!Unmarshal.isNullPointer(PFN_glEndPerfMonitorAMD)) { try { MH_glEndPerfMonitorAMD.invokeExact(PFN_glEndPerfMonitorAMD, monitor); - } - catch (Throwable e) { throw new RuntimeException("error in glEndPerfMonitorAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndPerfMonitorAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndPerfMonitorAMD"); } } public void GetPerfMonitorCounterDataAMD(@CType("GLuint") int monitor, @CType("GLenum") int pname, @CType("GLsizei") int dataSize, @CType("GLuint *") java.lang.foreign.MemorySegment data, @CType("GLint *") java.lang.foreign.MemorySegment bytesWritten) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterDataAMD)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfMonitorCounterDataAMD)) { try { MH_glGetPerfMonitorCounterDataAMD.invokeExact(PFN_glGetPerfMonitorCounterDataAMD, monitor, pname, dataSize, data, bytesWritten); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterDataAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfMonitorCounterDataAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfMonitorCounterDataAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java index f8592f74..f9b34220 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSamplePositions.java @@ -33,10 +33,10 @@ public GLAMDSamplePositions(overrungl.opengl.GLLoadFunc func) { } public void SetMultisamplefvAMD(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment val) { - try { if (!Unmarshal.isNullPointer(PFN_glSetMultisamplefvAMD)) + if (!Unmarshal.isNullPointer(PFN_glSetMultisamplefvAMD)) { try { MH_glSetMultisamplefvAMD.invokeExact(PFN_glSetMultisamplefvAMD, pname, index, val); - } - catch (Throwable e) { throw new RuntimeException("error in glSetMultisamplefvAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSetMultisamplefvAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSetMultisamplefvAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java index c428bf6e..1beaca7a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDSparseTexture.java @@ -44,17 +44,17 @@ public GLAMDSparseTexture(overrungl.opengl.GLLoadFunc func) { } public void TexStorageSparseAMD(@CType("GLenum") int target, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int layers, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorageSparseAMD)) + if (!Unmarshal.isNullPointer(PFN_glTexStorageSparseAMD)) { try { MH_glTexStorageSparseAMD.invokeExact(PFN_glTexStorageSparseAMD, target, internalFormat, width, height, depth, layers, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorageSparseAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorageSparseAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorageSparseAMD"); } } public void TextureStorageSparseAMD(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int layers, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageSparseAMD)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorageSparseAMD)) { try { MH_glTextureStorageSparseAMD.invokeExact(PFN_glTextureStorageSparseAMD, texture, target, internalFormat, width, height, depth, layers, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorageSparseAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorageSparseAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorageSparseAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java index 76a1abb0..b70133c6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDStencilOperationExtended.java @@ -36,10 +36,10 @@ public GLAMDStencilOperationExtended(overrungl.opengl.GLLoadFunc func) { } public void StencilOpValueAMD(@CType("GLenum") int face, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilOpValueAMD)) + if (!Unmarshal.isNullPointer(PFN_glStencilOpValueAMD)) { try { MH_glStencilOpValueAMD.invokeExact(PFN_glStencilOpValueAMD, face, value); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilOpValueAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilOpValueAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilOpValueAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java index a2126a4f..ae448643 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/amd/GLAMDVertexShaderTessellator.java @@ -42,17 +42,17 @@ public GLAMDVertexShaderTessellator(overrungl.opengl.GLLoadFunc func) { } public void TessellationFactorAMD(@CType("GLfloat") float factor) { - try { if (!Unmarshal.isNullPointer(PFN_glTessellationFactorAMD)) + if (!Unmarshal.isNullPointer(PFN_glTessellationFactorAMD)) { try { MH_glTessellationFactorAMD.invokeExact(PFN_glTessellationFactorAMD, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glTessellationFactorAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTessellationFactorAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTessellationFactorAMD"); } } public void TessellationModeAMD(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glTessellationModeAMD)) + if (!Unmarshal.isNullPointer(PFN_glTessellationModeAMD)) { try { MH_glTessellationModeAMD.invokeExact(PFN_glTessellationModeAMD, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glTessellationModeAMD", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTessellationModeAMD", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTessellationModeAMD"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java index 5311dbfe..66468fea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEElementArray.java @@ -47,38 +47,38 @@ public GLAPPLEElementArray(overrungl.opengl.GLLoadFunc func) { } public void ElementPointerAPPLE(@CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glElementPointerAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glElementPointerAPPLE)) { try { MH_glElementPointerAPPLE.invokeExact(PFN_glElementPointerAPPLE, type, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glElementPointerAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glElementPointerAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glElementPointerAPPLE"); } } public void DrawElementArrayAPPLE(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementArrayAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementArrayAPPLE)) { try { MH_glDrawElementArrayAPPLE.invokeExact(PFN_glDrawElementArrayAPPLE, mode, first, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementArrayAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementArrayAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementArrayAPPLE"); } } public void DrawRangeElementArrayAPPLE(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLint") int first, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementArrayAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementArrayAPPLE)) { try { MH_glDrawRangeElementArrayAPPLE.invokeExact(PFN_glDrawRangeElementArrayAPPLE, mode, start, end, first, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementArrayAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementArrayAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawRangeElementArrayAPPLE"); } } public void MultiDrawElementArrayAPPLE(@CType("GLenum") int mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementArrayAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementArrayAPPLE)) { try { MH_glMultiDrawElementArrayAPPLE.invokeExact(PFN_glMultiDrawElementArrayAPPLE, mode, first, count, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementArrayAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementArrayAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementArrayAPPLE"); } } public void MultiDrawRangeElementArrayAPPLE(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawRangeElementArrayAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawRangeElementArrayAPPLE)) { try { MH_glMultiDrawRangeElementArrayAPPLE.invokeExact(PFN_glMultiDrawRangeElementArrayAPPLE, mode, start, end, first, count, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawRangeElementArrayAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawRangeElementArrayAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawRangeElementArrayAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java index e7891a32..df23236e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFence.java @@ -55,62 +55,59 @@ public GLAPPLEFence(overrungl.opengl.GLLoadFunc func) { } public void GenFencesAPPLE(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment fences) { - try { if (!Unmarshal.isNullPointer(PFN_glGenFencesAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glGenFencesAPPLE)) { try { MH_glGenFencesAPPLE.invokeExact(PFN_glGenFencesAPPLE, n, fences); - } - catch (Throwable e) { throw new RuntimeException("error in glGenFencesAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenFencesAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenFencesAPPLE"); } } public void DeleteFencesAPPLE(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment fences) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteFencesAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glDeleteFencesAPPLE)) { try { MH_glDeleteFencesAPPLE.invokeExact(PFN_glDeleteFencesAPPLE, n, fences); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteFencesAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteFencesAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteFencesAPPLE"); } } public void SetFenceAPPLE(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glSetFenceAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glSetFenceAPPLE)) { try { MH_glSetFenceAPPLE.invokeExact(PFN_glSetFenceAPPLE, fence); - } - catch (Throwable e) { throw new RuntimeException("error in glSetFenceAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSetFenceAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSetFenceAPPLE"); } } public @CType("GLboolean") boolean IsFenceAPPLE(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glIsFenceAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glIsFenceAPPLE)) { try { return (boolean) MH_glIsFenceAPPLE.invokeExact(PFN_glIsFenceAPPLE, fence); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsFenceAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsFenceAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsFenceAPPLE"); } } public @CType("GLboolean") boolean TestFenceAPPLE(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glTestFenceAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glTestFenceAPPLE)) { try { return (boolean) MH_glTestFenceAPPLE.invokeExact(PFN_glTestFenceAPPLE, fence); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glTestFenceAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTestFenceAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTestFenceAPPLE"); } } public void FinishFenceAPPLE(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glFinishFenceAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glFinishFenceAPPLE)) { try { MH_glFinishFenceAPPLE.invokeExact(PFN_glFinishFenceAPPLE, fence); - } - catch (Throwable e) { throw new RuntimeException("error in glFinishFenceAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinishFenceAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinishFenceAPPLE"); } } public @CType("GLboolean") boolean TestObjectAPPLE(@CType("GLenum") int object, @CType("GLuint") int name) { - try { if (!Unmarshal.isNullPointer(PFN_glTestObjectAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glTestObjectAPPLE)) { try { return (boolean) MH_glTestObjectAPPLE.invokeExact(PFN_glTestObjectAPPLE, object, name); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glTestObjectAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTestObjectAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTestObjectAPPLE"); } } public void FinishObjectAPPLE(@CType("GLenum") int object, @CType("GLint") int name) { - try { if (!Unmarshal.isNullPointer(PFN_glFinishObjectAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glFinishObjectAPPLE)) { try { MH_glFinishObjectAPPLE.invokeExact(PFN_glFinishObjectAPPLE, object, name); - } - catch (Throwable e) { throw new RuntimeException("error in glFinishObjectAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinishObjectAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinishObjectAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java index 277b2bc8..1b14e12d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEFlushBufferRange.java @@ -37,17 +37,17 @@ public GLAPPLEFlushBufferRange(overrungl.opengl.GLLoadFunc func) { } public void BufferParameteriAPPLE(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferParameteriAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glBufferParameteriAPPLE)) { try { MH_glBufferParameteriAPPLE.invokeExact(PFN_glBufferParameteriAPPLE, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferParameteriAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferParameteriAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferParameteriAPPLE"); } } public void FlushMappedBufferRangeAPPLE(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRangeAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRangeAPPLE)) { try { MH_glFlushMappedBufferRangeAPPLE.invokeExact(PFN_glFlushMappedBufferRangeAPPLE, target, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRangeAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRangeAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushMappedBufferRangeAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java index b2560b15..d582312c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEObjectPurgeable.java @@ -44,26 +44,24 @@ public GLAPPLEObjectPurgeable(overrungl.opengl.GLLoadFunc func) { } public @CType("GLenum") int ObjectPurgeableAPPLE(@CType("GLenum") int objectType, @CType("GLuint") int name, @CType("GLenum") int option) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectPurgeableAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glObjectPurgeableAPPLE)) { try { return (int) MH_glObjectPurgeableAPPLE.invokeExact(PFN_glObjectPurgeableAPPLE, objectType, name, option); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glObjectPurgeableAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectPurgeableAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectPurgeableAPPLE"); } } public @CType("GLenum") int ObjectUnpurgeableAPPLE(@CType("GLenum") int objectType, @CType("GLuint") int name, @CType("GLenum") int option) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectUnpurgeableAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glObjectUnpurgeableAPPLE)) { try { return (int) MH_glObjectUnpurgeableAPPLE.invokeExact(PFN_glObjectUnpurgeableAPPLE, objectType, name, option); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glObjectUnpurgeableAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectUnpurgeableAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectUnpurgeableAPPLE"); } } public void GetObjectParameterivAPPLE(@CType("GLenum") int objectType, @CType("GLuint") int name, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterivAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterivAPPLE)) { try { MH_glGetObjectParameterivAPPLE.invokeExact(PFN_glGetObjectParameterivAPPLE, objectType, name, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterivAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterivAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectParameterivAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java index d5e8a42f..cbd72444 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLETextureRange.java @@ -41,17 +41,17 @@ public GLAPPLETextureRange(overrungl.opengl.GLLoadFunc func) { } public void TextureRangeAPPLE(@CType("GLenum") int target, @CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureRangeAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glTextureRangeAPPLE)) { try { MH_glTextureRangeAPPLE.invokeExact(PFN_glTextureRangeAPPLE, target, length, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureRangeAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureRangeAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureRangeAPPLE"); } } public void GetTexParameterPointervAPPLE(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterPointervAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterPointervAPPLE)) { try { MH_glGetTexParameterPointervAPPLE.invokeExact(PFN_glGetTexParameterPointervAPPLE, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterPointervAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterPointervAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterPointervAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java index c879b192..c31e8c58 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayObject.java @@ -42,32 +42,31 @@ public GLAPPLEVertexArrayObject(overrungl.opengl.GLLoadFunc func) { } public void BindVertexArrayAPPLE(@CType("GLuint") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexArrayAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexArrayAPPLE)) { try { MH_glBindVertexArrayAPPLE.invokeExact(PFN_glBindVertexArrayAPPLE, array); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexArrayAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexArrayAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexArrayAPPLE"); } } public void DeleteVertexArraysAPPLE(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArraysAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArraysAPPLE)) { try { MH_glDeleteVertexArraysAPPLE.invokeExact(PFN_glDeleteVertexArraysAPPLE, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArraysAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArraysAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteVertexArraysAPPLE"); } } public void GenVertexArraysAPPLE(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glGenVertexArraysAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glGenVertexArraysAPPLE)) { try { MH_glGenVertexArraysAPPLE.invokeExact(PFN_glGenVertexArraysAPPLE, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glGenVertexArraysAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenVertexArraysAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenVertexArraysAPPLE"); } } public @CType("GLboolean") boolean IsVertexArrayAPPLE(@CType("GLuint") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glIsVertexArrayAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glIsVertexArrayAPPLE)) { try { return (boolean) MH_glIsVertexArrayAPPLE.invokeExact(PFN_glIsVertexArrayAPPLE, array); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsVertexArrayAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsVertexArrayAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsVertexArrayAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java index ec4e944b..19fc6d93 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexArrayRange.java @@ -45,24 +45,24 @@ public GLAPPLEVertexArrayRange(overrungl.opengl.GLLoadFunc func) { } public void VertexArrayRangeAPPLE(@CType("GLsizei") int length, @CType("void*") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayRangeAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayRangeAPPLE)) { try { MH_glVertexArrayRangeAPPLE.invokeExact(PFN_glVertexArrayRangeAPPLE, length, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayRangeAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayRangeAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayRangeAPPLE"); } } public void FlushVertexArrayRangeAPPLE(@CType("GLsizei") int length, @CType("void*") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushVertexArrayRangeAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glFlushVertexArrayRangeAPPLE)) { try { MH_glFlushVertexArrayRangeAPPLE.invokeExact(PFN_glFlushVertexArrayRangeAPPLE, length, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushVertexArrayRangeAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushVertexArrayRangeAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushVertexArrayRangeAPPLE"); } } public void VertexArrayParameteriAPPLE(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayParameteriAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayParameteriAPPLE)) { try { MH_glVertexArrayParameteriAPPLE.invokeExact(PFN_glVertexArrayParameteriAPPLE, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayParameteriAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayParameteriAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayParameteriAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java index dfc6444e..9c958485 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/apple/GLAPPLEVertexProgramEvaluators.java @@ -60,53 +60,52 @@ public GLAPPLEVertexProgramEvaluators(overrungl.opengl.GLLoadFunc func) { } public void EnableVertexAttribAPPLE(@CType("GLuint") int index, @CType("GLenum") int pname) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribAPPLE)) { try { MH_glEnableVertexAttribAPPLE.invokeExact(PFN_glEnableVertexAttribAPPLE, index, pname); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexAttribAPPLE"); } } public void DisableVertexAttribAPPLE(@CType("GLuint") int index, @CType("GLenum") int pname) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribAPPLE)) { try { MH_glDisableVertexAttribAPPLE.invokeExact(PFN_glDisableVertexAttribAPPLE, index, pname); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexAttribAPPLE"); } } public @CType("GLboolean") boolean IsVertexAttribEnabledAPPLE(@CType("GLuint") int index, @CType("GLenum") int pname) { - try { if (!Unmarshal.isNullPointer(PFN_glIsVertexAttribEnabledAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glIsVertexAttribEnabledAPPLE)) { try { return (boolean) MH_glIsVertexAttribEnabledAPPLE.invokeExact(PFN_glIsVertexAttribEnabledAPPLE, index, pname); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsVertexAttribEnabledAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsVertexAttribEnabledAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsVertexAttribEnabledAPPLE"); } } public void MapVertexAttrib1dAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLdouble") double u1, @CType("GLdouble") double u2, @CType("GLint") int stride, @CType("GLint") int order, @CType("const GLdouble *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib1dAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib1dAPPLE)) { try { MH_glMapVertexAttrib1dAPPLE.invokeExact(PFN_glMapVertexAttrib1dAPPLE, index, size, u1, u2, stride, order, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib1dAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib1dAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapVertexAttrib1dAPPLE"); } } public void MapVertexAttrib1fAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLfloat") float u1, @CType("GLfloat") float u2, @CType("GLint") int stride, @CType("GLint") int order, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib1fAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib1fAPPLE)) { try { MH_glMapVertexAttrib1fAPPLE.invokeExact(PFN_glMapVertexAttrib1fAPPLE, index, size, u1, u2, stride, order, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib1fAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib1fAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapVertexAttrib1fAPPLE"); } } public void MapVertexAttrib2dAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLdouble") double u1, @CType("GLdouble") double u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("const GLdouble *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib2dAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib2dAPPLE)) { try { MH_glMapVertexAttrib2dAPPLE.invokeExact(PFN_glMapVertexAttrib2dAPPLE, index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib2dAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib2dAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapVertexAttrib2dAPPLE"); } } public void MapVertexAttrib2fAPPLE(@CType("GLuint") int index, @CType("GLuint") int size, @CType("GLfloat") float u1, @CType("GLfloat") float u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib2fAPPLE)) + if (!Unmarshal.isNullPointer(PFN_glMapVertexAttrib2fAPPLE)) { try { MH_glMapVertexAttrib2fAPPLE.invokeExact(PFN_glMapVertexAttrib2fAPPLE, index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib2fAPPLE", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapVertexAttrib2fAPPLE", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapVertexAttrib2fAPPLE"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java index d82a603c..8dcfbd0f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBaseInstance.java @@ -38,24 +38,24 @@ public GLARBBaseInstance(overrungl.opengl.GLLoadFunc func) { } public void DrawArraysInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedBaseInstance)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedBaseInstance)) { try { MH_glDrawArraysInstancedBaseInstance.invokeExact(PFN_glDrawArraysInstancedBaseInstance, mode, first, count, instancecount, baseinstance); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedBaseInstance", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedBaseInstance", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysInstancedBaseInstance"); } } public void DrawElementsInstancedBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLuint") int baseinstance) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseInstance)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseInstance)) { try { MH_glDrawElementsInstancedBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseInstance, mode, count, type, indices, instancecount, baseinstance); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseInstance", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseInstance", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedBaseInstance"); } } public void DrawElementsInstancedBaseVertexBaseInstance(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex, @CType("GLuint") int baseinstance) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertexBaseInstance)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertexBaseInstance)) { try { MH_glDrawElementsInstancedBaseVertexBaseInstance.invokeExact(PFN_glDrawElementsInstancedBaseVertexBaseInstance, mode, count, type, indices, instancecount, basevertex, baseinstance); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertexBaseInstance", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertexBaseInstance", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedBaseVertexBaseInstance"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java index 8351fd23..9f5814ad 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBindlessTexture.java @@ -78,120 +78,115 @@ public GLARBBindlessTexture(overrungl.opengl.GLLoadFunc func) { } public @CType("GLuint64") long GetTextureHandleARB(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureHandleARB)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureHandleARB)) { try { return (long) MH_glGetTextureHandleARB.invokeExact(PFN_glGetTextureHandleARB, texture); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureHandleARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureHandleARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureHandleARB"); } } public @CType("GLuint64") long GetTextureSamplerHandleARB(@CType("GLuint") int texture, @CType("GLuint") int sampler) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSamplerHandleARB)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureSamplerHandleARB)) { try { return (long) MH_glGetTextureSamplerHandleARB.invokeExact(PFN_glGetTextureSamplerHandleARB, texture, sampler); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureSamplerHandleARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureSamplerHandleARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureSamplerHandleARB"); } } public void MakeTextureHandleResidentARB(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleResidentARB)) + if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleResidentARB)) { try { MH_glMakeTextureHandleResidentARB.invokeExact(PFN_glMakeTextureHandleResidentARB, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleResidentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleResidentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeTextureHandleResidentARB"); } } public void MakeTextureHandleNonResidentARB(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleNonResidentARB)) + if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleNonResidentARB)) { try { MH_glMakeTextureHandleNonResidentARB.invokeExact(PFN_glMakeTextureHandleNonResidentARB, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleNonResidentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleNonResidentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeTextureHandleNonResidentARB"); } } public @CType("GLuint64") long GetImageHandleARB(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int format) { - try { if (!Unmarshal.isNullPointer(PFN_glGetImageHandleARB)) + if (!Unmarshal.isNullPointer(PFN_glGetImageHandleARB)) { try { return (long) MH_glGetImageHandleARB.invokeExact(PFN_glGetImageHandleARB, texture, level, layered, layer, format); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetImageHandleARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetImageHandleARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetImageHandleARB"); } } public void MakeImageHandleResidentARB(@CType("GLuint64") long handle, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleResidentARB)) + if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleResidentARB)) { try { MH_glMakeImageHandleResidentARB.invokeExact(PFN_glMakeImageHandleResidentARB, handle, access); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleResidentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleResidentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeImageHandleResidentARB"); } } public void MakeImageHandleNonResidentARB(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleNonResidentARB)) + if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleNonResidentARB)) { try { MH_glMakeImageHandleNonResidentARB.invokeExact(PFN_glMakeImageHandleNonResidentARB, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleNonResidentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleNonResidentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeImageHandleNonResidentARB"); } } public void UniformHandleui64ARB(@CType("GLint") int location, @CType("GLuint64") long value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64ARB)) { try { MH_glUniformHandleui64ARB.invokeExact(PFN_glUniformHandleui64ARB, location, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformHandleui64ARB"); } } public void UniformHandleui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64vARB)) { try { MH_glUniformHandleui64vARB.invokeExact(PFN_glUniformHandleui64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformHandleui64vARB"); } } public void ProgramUniformHandleui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64ARB)) { try { MH_glProgramUniformHandleui64ARB.invokeExact(PFN_glProgramUniformHandleui64ARB, program, location, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformHandleui64ARB"); } } public void ProgramUniformHandleui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64vARB)) { try { MH_glProgramUniformHandleui64vARB.invokeExact(PFN_glProgramUniformHandleui64vARB, program, location, count, values); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformHandleui64vARB"); } } public @CType("GLboolean") boolean IsTextureHandleResidentARB(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTextureHandleResidentARB)) + if (!Unmarshal.isNullPointer(PFN_glIsTextureHandleResidentARB)) { try { return (boolean) MH_glIsTextureHandleResidentARB.invokeExact(PFN_glIsTextureHandleResidentARB, handle); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTextureHandleResidentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTextureHandleResidentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTextureHandleResidentARB"); } } public @CType("GLboolean") boolean IsImageHandleResidentARB(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glIsImageHandleResidentARB)) + if (!Unmarshal.isNullPointer(PFN_glIsImageHandleResidentARB)) { try { return (boolean) MH_glIsImageHandleResidentARB.invokeExact(PFN_glIsImageHandleResidentARB, handle); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsImageHandleResidentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsImageHandleResidentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsImageHandleResidentARB"); } } public void VertexAttribL1ui64ARB(@CType("GLuint") int index, @CType("GLuint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64ARB)) { try { MH_glVertexAttribL1ui64ARB.invokeExact(PFN_glVertexAttribL1ui64ARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1ui64ARB"); } } public void VertexAttribL1ui64vARB(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64vARB)) { try { MH_glVertexAttribL1ui64vARB.invokeExact(PFN_glVertexAttribL1ui64vARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1ui64vARB"); } } public void GetVertexAttribLui64vARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLui64vARB)) { try { MH_glGetVertexAttribLui64vARB.invokeExact(PFN_glGetVertexAttribLui64vARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribLui64vARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java index 71b77e18..d67e1b24 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBlendFuncExtended.java @@ -40,18 +40,17 @@ public GLARBBlendFuncExtended(overrungl.opengl.GLLoadFunc func) { } public void BindFragDataLocationIndexed(@CType("GLuint") int program, @CType("GLuint") int colorNumber, @CType("GLuint") int index, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationIndexed)) + if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationIndexed)) { try { MH_glBindFragDataLocationIndexed.invokeExact(PFN_glBindFragDataLocationIndexed, program, colorNumber, index, name); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFragDataLocationIndexed"); } } public @CType("GLint") int GetFragDataIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetFragDataIndex)) { try { return (int) MH_glGetFragDataIndex.invokeExact(PFN_glGetFragDataIndex, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragDataIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragDataIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragDataIndex"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java index 26570cb3..a55b5d91 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBBufferStorage.java @@ -41,10 +41,10 @@ public GLARBBufferStorage(overrungl.opengl.GLLoadFunc func) { } public void BufferStorage(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glBufferStorage)) { try { MH_glBufferStorage.invokeExact(PFN_glBufferStorage, target, size, data, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferStorage"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java index 112821df..2567b5e6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClEvent.java @@ -34,11 +34,10 @@ public GLARBClEvent(overrungl.opengl.GLLoadFunc func) { } public @CType("GLsync") java.lang.foreign.MemorySegment CreateSyncFromCLeventARB(@CType("struct _cl_context *") java.lang.foreign.MemorySegment context, @CType("struct _cl_event *") java.lang.foreign.MemorySegment event, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateSyncFromCLeventARB)) + if (!Unmarshal.isNullPointer(PFN_glCreateSyncFromCLeventARB)) { try { return (java.lang.foreign.MemorySegment) MH_glCreateSyncFromCLeventARB.invokeExact(PFN_glCreateSyncFromCLeventARB, context, event, flags); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateSyncFromCLeventARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateSyncFromCLeventARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateSyncFromCLeventARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java index d40f0f7f..36cb367a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearBufferObject.java @@ -35,17 +35,17 @@ public GLARBClearBufferObject(overrungl.opengl.GLLoadFunc func) { } public void ClearBufferData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferData)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferData)) { try { MH_glClearBufferData.invokeExact(PFN_glClearBufferData, target, internalformat, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferData"); } } public void ClearBufferSubData(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glClearBufferSubData)) { try { MH_glClearBufferSubData.invokeExact(PFN_glClearBufferSubData, target, internalformat, offset, size, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearBufferSubData"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java index 8c128b78..9100f573 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClearTexture.java @@ -36,17 +36,17 @@ public GLARBClearTexture(overrungl.opengl.GLLoadFunc func) { } public void ClearTexImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearTexImage)) + if (!Unmarshal.isNullPointer(PFN_glClearTexImage)) { try { MH_glClearTexImage.invokeExact(PFN_glClearTexImage, texture, level, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearTexImage"); } } public void ClearTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearTexSubImage)) + if (!Unmarshal.isNullPointer(PFN_glClearTexSubImage)) { try { MH_glClearTexSubImage.invokeExact(PFN_glClearTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearTexSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearTexSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearTexSubImage"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java index 86bb8a80..07122191 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBClipControl.java @@ -38,10 +38,10 @@ public GLARBClipControl(overrungl.opengl.GLLoadFunc func) { } public void ClipControl(@CType("GLenum") int origin, @CType("GLenum") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glClipControl)) + if (!Unmarshal.isNullPointer(PFN_glClipControl)) { try { MH_glClipControl.invokeExact(PFN_glClipControl, origin, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glClipControl", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClipControl", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClipControl"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java index 4e02e88c..c397a91c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBColorBufferFloat.java @@ -37,10 +37,10 @@ public GLARBColorBufferFloat(overrungl.opengl.GLLoadFunc func) { } public void ClampColorARB(@CType("GLenum") int target, @CType("GLenum") int clamp) { - try { if (!Unmarshal.isNullPointer(PFN_glClampColorARB)) + if (!Unmarshal.isNullPointer(PFN_glClampColorARB)) { try { MH_glClampColorARB.invokeExact(PFN_glClampColorARB, target, clamp); - } - catch (Throwable e) { throw new RuntimeException("error in glClampColorARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClampColorARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClampColorARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java index 72e71c4c..a6d38700 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeShader.java @@ -53,17 +53,17 @@ public GLARBComputeShader(overrungl.opengl.GLLoadFunc func) { } public void DispatchCompute(@CType("GLuint") int num_groups_x, @CType("GLuint") int num_groups_y, @CType("GLuint") int num_groups_z) { - try { if (!Unmarshal.isNullPointer(PFN_glDispatchCompute)) + if (!Unmarshal.isNullPointer(PFN_glDispatchCompute)) { try { MH_glDispatchCompute.invokeExact(PFN_glDispatchCompute, num_groups_x, num_groups_y, num_groups_z); - } - catch (Throwable e) { throw new RuntimeException("error in glDispatchCompute", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDispatchCompute", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDispatchCompute"); } } public void DispatchComputeIndirect(@CType("GLintptr") long indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDispatchComputeIndirect)) + if (!Unmarshal.isNullPointer(PFN_glDispatchComputeIndirect)) { try { MH_glDispatchComputeIndirect.invokeExact(PFN_glDispatchComputeIndirect, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDispatchComputeIndirect"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java index 9cc17088..75978b9b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBComputeVariableGroupSize.java @@ -36,10 +36,10 @@ public GLARBComputeVariableGroupSize(overrungl.opengl.GLLoadFunc func) { } public void DispatchComputeGroupSizeARB(@CType("GLuint") int num_groups_x, @CType("GLuint") int num_groups_y, @CType("GLuint") int num_groups_z, @CType("GLuint") int group_size_x, @CType("GLuint") int group_size_y, @CType("GLuint") int group_size_z) { - try { if (!Unmarshal.isNullPointer(PFN_glDispatchComputeGroupSizeARB)) + if (!Unmarshal.isNullPointer(PFN_glDispatchComputeGroupSizeARB)) { try { MH_glDispatchComputeGroupSizeARB.invokeExact(PFN_glDispatchComputeGroupSizeARB, num_groups_x, num_groups_y, num_groups_z, group_size_x, group_size_y, group_size_z); - } - catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeGroupSizeARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDispatchComputeGroupSizeARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDispatchComputeGroupSizeARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java index 6d06133c..7b2b585e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyBuffer.java @@ -34,10 +34,10 @@ public GLARBCopyBuffer(overrungl.opengl.GLLoadFunc func) { } public void CopyBufferSubData(@CType("GLenum") int readTarget, @CType("GLenum") int writeTarget, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glCopyBufferSubData)) { try { MH_glCopyBufferSubData.invokeExact(PFN_glCopyBufferSubData, readTarget, writeTarget, readOffset, writeOffset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyBufferSubData"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java index cf4ce88e..2520b2bd 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBCopyImage.java @@ -32,10 +32,10 @@ public GLARBCopyImage(overrungl.opengl.GLLoadFunc func) { } public void CopyImageSubData(@CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyImageSubData)) + if (!Unmarshal.isNullPointer(PFN_glCopyImageSubData)) { try { MH_glCopyImageSubData.invokeExact(PFN_glCopyImageSubData, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyImageSubData"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java index 0e9698f7..3933d507 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDebugOutput.java @@ -63,32 +63,31 @@ public GLARBDebugOutput(overrungl.opengl.GLLoadFunc func) { } public void DebugMessageControlARB(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControlARB)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageControlARB)) { try { MH_glDebugMessageControlARB.invokeExact(PFN_glDebugMessageControlARB, source, type, severity, count, ids, enabled); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControlARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControlARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageControlARB"); } } public void DebugMessageInsertARB(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertARB)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertARB)) { try { MH_glDebugMessageInsertARB.invokeExact(PFN_glDebugMessageInsertARB, source, type, id, severity, length, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageInsertARB"); } } public void DebugMessageCallbackARB(@CType("GLDEBUGPROCARB") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackARB)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackARB)) { try { MH_glDebugMessageCallbackARB.invokeExact(PFN_glDebugMessageCallbackARB, callback, userParam); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageCallbackARB"); } } public @CType("GLuint") int GetDebugMessageLogARB(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogARB)) + if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogARB)) { try { return (int) MH_glGetDebugMessageLogARB.invokeExact(PFN_glGetDebugMessageLogARB, count, bufSize, sources, types, ids, severities, lengths, messageLog); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDebugMessageLogARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java index 143322bf..5f5a1ff1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDirectStateAccess.java @@ -325,686 +325,682 @@ public GLARBDirectStateAccess(overrungl.opengl.GLLoadFunc func) { } public void CreateTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateTransformFeedbacks)) + if (!Unmarshal.isNullPointer(PFN_glCreateTransformFeedbacks)) { try { MH_glCreateTransformFeedbacks.invokeExact(PFN_glCreateTransformFeedbacks, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateTransformFeedbacks", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateTransformFeedbacks", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateTransformFeedbacks"); } } public void TransformFeedbackBufferBase(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferBase)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferBase)) { try { MH_glTransformFeedbackBufferBase.invokeExact(PFN_glTransformFeedbackBufferBase, xfb, index, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferBase", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferBase", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackBufferBase"); } } public void TransformFeedbackBufferRange(@CType("GLuint") int xfb, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackBufferRange)) { try { MH_glTransformFeedbackBufferRange.invokeExact(PFN_glTransformFeedbackBufferRange, xfb, index, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackBufferRange"); } } public void GetTransformFeedbackiv(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackiv)) { try { MH_glGetTransformFeedbackiv.invokeExact(PFN_glGetTransformFeedbackiv, xfb, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbackiv"); } } public void GetTransformFeedbacki_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki_v)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki_v)) { try { MH_glGetTransformFeedbacki_v.invokeExact(PFN_glGetTransformFeedbacki_v, xfb, pname, index, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbacki_v"); } } public void GetTransformFeedbacki64_v(@CType("GLuint") int xfb, @CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki64_v)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbacki64_v)) { try { MH_glGetTransformFeedbacki64_v.invokeExact(PFN_glGetTransformFeedbacki64_v, xfb, pname, index, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki64_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbacki64_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbacki64_v"); } } public void CreateBuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateBuffers)) + if (!Unmarshal.isNullPointer(PFN_glCreateBuffers)) { try { MH_glCreateBuffers.invokeExact(PFN_glCreateBuffers, n, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateBuffers"); } } public void NamedBufferStorage(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorage)) { try { MH_glNamedBufferStorage.invokeExact(PFN_glNamedBufferStorage, buffer, size, data, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferStorage"); } } public void NamedBufferData(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferData)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferData)) { try { MH_glNamedBufferData.invokeExact(PFN_glNamedBufferData, buffer, size, data, usage); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferData"); } } public void NamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubData)) { try { MH_glNamedBufferSubData.invokeExact(PFN_glNamedBufferSubData, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferSubData"); } } public void CopyNamedBufferSubData(@CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glCopyNamedBufferSubData)) { try { MH_glCopyNamedBufferSubData.invokeExact(PFN_glCopyNamedBufferSubData, readBuffer, writeBuffer, readOffset, writeOffset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyNamedBufferSubData"); } } public void ClearNamedBufferData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferData)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferData)) { try { MH_glClearNamedBufferData.invokeExact(PFN_glClearNamedBufferData, buffer, internalformat, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedBufferData"); } } public void ClearNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubData)) { try { MH_glClearNamedBufferSubData.invokeExact(PFN_glClearNamedBufferSubData, buffer, internalformat, offset, size, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedBufferSubData"); } } public @CType("void*") java.lang.foreign.MemorySegment MapNamedBuffer(@CType("GLuint") int buffer, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBuffer)) + if (!Unmarshal.isNullPointer(PFN_glMapNamedBuffer)) { try { return (java.lang.foreign.MemorySegment) MH_glMapNamedBuffer.invokeExact(PFN_glMapNamedBuffer, buffer, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapNamedBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapNamedBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapNamedBuffer"); } } public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRange)) { try { return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferRange.invokeExact(PFN_glMapNamedBufferRange, buffer, offset, length, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapNamedBufferRange"); } } public @CType("GLboolean") boolean UnmapNamedBuffer(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBuffer)) + if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBuffer)) { try { return (boolean) MH_glUnmapNamedBuffer.invokeExact(PFN_glUnmapNamedBuffer, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapNamedBuffer"); } } public void FlushMappedNamedBufferRange(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRange)) { try { MH_glFlushMappedNamedBufferRange.invokeExact(PFN_glFlushMappedNamedBufferRange, buffer, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushMappedNamedBufferRange"); } } public void GetNamedBufferParameteriv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteriv)) { try { MH_glGetNamedBufferParameteriv.invokeExact(PFN_glGetNamedBufferParameteriv, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferParameteriv"); } } public void GetNamedBufferParameteri64v(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteri64v)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameteri64v)) { try { MH_glGetNamedBufferParameteri64v.invokeExact(PFN_glGetNamedBufferParameteri64v, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteri64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameteri64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferParameteri64v"); } } public void GetNamedBufferPointerv(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointerv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointerv)) { try { MH_glGetNamedBufferPointerv.invokeExact(PFN_glGetNamedBufferPointerv, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferPointerv"); } } public void GetNamedBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubData)) { try { MH_glGetNamedBufferSubData.invokeExact(PFN_glGetNamedBufferSubData, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferSubData"); } } public void CreateFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateFramebuffers)) + if (!Unmarshal.isNullPointer(PFN_glCreateFramebuffers)) { try { MH_glCreateFramebuffers.invokeExact(PFN_glCreateFramebuffers, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateFramebuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateFramebuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateFramebuffers"); } } public void NamedFramebufferRenderbuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbuffer)) { try { MH_glNamedFramebufferRenderbuffer.invokeExact(PFN_glNamedFramebufferRenderbuffer, framebuffer, attachment, renderbuffertarget, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferRenderbuffer"); } } public void NamedFramebufferParameteri(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteri)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteri)) { try { MH_glNamedFramebufferParameteri.invokeExact(PFN_glNamedFramebufferParameteri, framebuffer, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferParameteri"); } } public void NamedFramebufferTexture(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture)) { try { MH_glNamedFramebufferTexture.invokeExact(PFN_glNamedFramebufferTexture, framebuffer, attachment, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTexture"); } } public void NamedFramebufferTextureLayer(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayer)) { try { MH_glNamedFramebufferTextureLayer.invokeExact(PFN_glNamedFramebufferTextureLayer, framebuffer, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTextureLayer"); } } public void NamedFramebufferDrawBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int buf) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffer)) { try { MH_glNamedFramebufferDrawBuffer.invokeExact(PFN_glNamedFramebufferDrawBuffer, framebuffer, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferDrawBuffer"); } } public void NamedFramebufferDrawBuffers(@CType("GLuint") int framebuffer, @CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffers)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferDrawBuffers)) { try { MH_glNamedFramebufferDrawBuffers.invokeExact(PFN_glNamedFramebufferDrawBuffers, framebuffer, n, bufs); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferDrawBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferDrawBuffers"); } } public void NamedFramebufferReadBuffer(@CType("GLuint") int framebuffer, @CType("GLenum") int src) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferReadBuffer)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferReadBuffer)) { try { MH_glNamedFramebufferReadBuffer.invokeExact(PFN_glNamedFramebufferReadBuffer, framebuffer, src); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferReadBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferReadBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferReadBuffer"); } } public void InvalidateNamedFramebufferData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferData)) { try { MH_glInvalidateNamedFramebufferData.invokeExact(PFN_glInvalidateNamedFramebufferData, framebuffer, numAttachments, attachments); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateNamedFramebufferData"); } } public void InvalidateNamedFramebufferSubData(@CType("GLuint") int framebuffer, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateNamedFramebufferSubData)) { try { MH_glInvalidateNamedFramebufferSubData.invokeExact(PFN_glInvalidateNamedFramebufferSubData, framebuffer, numAttachments, attachments, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateNamedFramebufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateNamedFramebufferSubData"); } } public void ClearNamedFramebufferiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferiv)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferiv)) { try { MH_glClearNamedFramebufferiv.invokeExact(PFN_glClearNamedFramebufferiv, framebuffer, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferiv"); } } public void ClearNamedFramebufferuiv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferuiv)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferuiv)) { try { MH_glClearNamedFramebufferuiv.invokeExact(PFN_glClearNamedFramebufferuiv, framebuffer, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferuiv"); } } public void ClearNamedFramebufferfv(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfv)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfv)) { try { MH_glClearNamedFramebufferfv.invokeExact(PFN_glClearNamedFramebufferfv, framebuffer, buffer, drawbuffer, value); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferfv"); } } public void ClearNamedFramebufferfi(@CType("GLuint") int framebuffer, @CType("GLenum") int buffer, @CType("GLint") int drawbuffer, @CType("GLfloat") float depth, @CType("GLint") int stencil) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfi)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedFramebufferfi)) { try { MH_glClearNamedFramebufferfi.invokeExact(PFN_glClearNamedFramebufferfi, framebuffer, buffer, drawbuffer, depth, stencil); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfi", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedFramebufferfi", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedFramebufferfi"); } } public void BlitNamedFramebuffer(@CType("GLuint") int readFramebuffer, @CType("GLuint") int drawFramebuffer, @CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitNamedFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glBlitNamedFramebuffer)) { try { MH_glBlitNamedFramebuffer.invokeExact(PFN_glBlitNamedFramebuffer, readFramebuffer, drawFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitNamedFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitNamedFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitNamedFramebuffer"); } } public @CType("GLenum") int CheckNamedFramebufferStatus(@CType("GLuint") int framebuffer, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatus)) + if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatus)) { try { return (int) MH_glCheckNamedFramebufferStatus.invokeExact(PFN_glCheckNamedFramebufferStatus, framebuffer, target); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatus", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatus", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCheckNamedFramebufferStatus"); } } public void GetNamedFramebufferParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameteriv)) { try { MH_glGetNamedFramebufferParameteriv.invokeExact(PFN_glGetNamedFramebufferParameteriv, framebuffer, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferParameteriv"); } } public void GetNamedFramebufferAttachmentParameteriv(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameteriv)) { try { MH_glGetNamedFramebufferAttachmentParameteriv.invokeExact(PFN_glGetNamedFramebufferAttachmentParameteriv, framebuffer, attachment, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferAttachmentParameteriv"); } } public void CreateRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateRenderbuffers)) + if (!Unmarshal.isNullPointer(PFN_glCreateRenderbuffers)) { try { MH_glCreateRenderbuffers.invokeExact(PFN_glCreateRenderbuffers, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateRenderbuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateRenderbuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateRenderbuffers"); } } public void NamedRenderbufferStorage(@CType("GLuint") int renderbuffer, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorage)) { try { MH_glNamedRenderbufferStorage.invokeExact(PFN_glNamedRenderbufferStorage, renderbuffer, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorage"); } } public void NamedRenderbufferStorageMultisample(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisample)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisample)) { try { MH_glNamedRenderbufferStorageMultisample.invokeExact(PFN_glNamedRenderbufferStorageMultisample, renderbuffer, samples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorageMultisample"); } } public void GetNamedRenderbufferParameteriv(@CType("GLuint") int renderbuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameteriv)) { try { MH_glGetNamedRenderbufferParameteriv.invokeExact(PFN_glGetNamedRenderbufferParameteriv, renderbuffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedRenderbufferParameteriv"); } } public void CreateTextures(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateTextures)) + if (!Unmarshal.isNullPointer(PFN_glCreateTextures)) { try { MH_glCreateTextures.invokeExact(PFN_glCreateTextures, target, n, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateTextures"); } } public void TextureBuffer(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBuffer)) + if (!Unmarshal.isNullPointer(PFN_glTextureBuffer)) { try { MH_glTextureBuffer.invokeExact(PFN_glTextureBuffer, texture, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBuffer"); } } public void TextureBufferRange(@CType("GLuint") int texture, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glTextureBufferRange)) { try { MH_glTextureBufferRange.invokeExact(PFN_glTextureBufferRange, texture, internalformat, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBufferRange"); } } public void TextureStorage1D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1D)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage1D)) { try { MH_glTextureStorage1D.invokeExact(PFN_glTextureStorage1D, texture, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage1D"); } } public void TextureStorage2D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2D)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2D)) { try { MH_glTextureStorage2D.invokeExact(PFN_glTextureStorage2D, texture, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2D"); } } public void TextureStorage3D(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3D)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3D)) { try { MH_glTextureStorage3D.invokeExact(PFN_glTextureStorage3D, texture, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3D"); } } public void TextureStorage2DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisample)) { try { MH_glTextureStorage2DMultisample.invokeExact(PFN_glTextureStorage2DMultisample, texture, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2DMultisample"); } } public void TextureStorage3DMultisample(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisample)) { try { MH_glTextureStorage3DMultisample.invokeExact(PFN_glTextureStorage3DMultisample, texture, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3DMultisample"); } } public void TextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1D)) { try { MH_glTextureSubImage1D.invokeExact(PFN_glTextureSubImage1D, texture, level, xoffset, width, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage1D"); } } public void TextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2D)) { try { MH_glTextureSubImage2D.invokeExact(PFN_glTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage2D"); } } public void TextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3D)) { try { MH_glTextureSubImage3D.invokeExact(PFN_glTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage3D"); } } public void CompressedTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1D)) { try { MH_glCompressedTextureSubImage1D.invokeExact(PFN_glCompressedTextureSubImage1D, texture, level, xoffset, width, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage1D"); } } public void CompressedTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2D)) { try { MH_glCompressedTextureSubImage2D.invokeExact(PFN_glCompressedTextureSubImage2D, texture, level, xoffset, yoffset, width, height, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage2D"); } } public void CompressedTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3D)) { try { MH_glCompressedTextureSubImage3D.invokeExact(PFN_glCompressedTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage3D"); } } public void CopyTextureSubImage1D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1D)) { try { MH_glCopyTextureSubImage1D.invokeExact(PFN_glCopyTextureSubImage1D, texture, level, xoffset, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage1D"); } } public void CopyTextureSubImage2D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2D)) { try { MH_glCopyTextureSubImage2D.invokeExact(PFN_glCopyTextureSubImage2D, texture, level, xoffset, yoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage2D"); } } public void CopyTextureSubImage3D(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3D)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3D)) { try { MH_glCopyTextureSubImage3D.invokeExact(PFN_glCopyTextureSubImage3D, texture, level, xoffset, yoffset, zoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage3D"); } } public void TextureParameterf(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterf)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterf)) { try { MH_glTextureParameterf.invokeExact(PFN_glTextureParameterf, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterf"); } } public void TextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterfv)) { try { MH_glTextureParameterfv.invokeExact(PFN_glTextureParameterfv, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterfv"); } } public void TextureParameteri(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteri)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameteri)) { try { MH_glTextureParameteri.invokeExact(PFN_glTextureParameteri, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameteri"); } } public void TextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterIiv)) { try { MH_glTextureParameterIiv.invokeExact(PFN_glTextureParameterIiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterIiv"); } } public void TextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuiv)) { try { MH_glTextureParameterIuiv.invokeExact(PFN_glTextureParameterIuiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterIuiv"); } } public void TextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameteriv)) { try { MH_glTextureParameteriv.invokeExact(PFN_glTextureParameteriv, texture, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameteriv"); } } public void GenerateTextureMipmap(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmap)) + if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmap)) { try { MH_glGenerateTextureMipmap.invokeExact(PFN_glGenerateTextureMipmap, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmap", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmap", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateTextureMipmap"); } } public void BindTextureUnit(@CType("GLuint") int unit, @CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTextureUnit)) + if (!Unmarshal.isNullPointer(PFN_glBindTextureUnit)) { try { MH_glBindTextureUnit.invokeExact(PFN_glBindTextureUnit, unit, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnit", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnit", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTextureUnit"); } } public void GetTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureImage)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureImage)) { try { MH_glGetTextureImage.invokeExact(PFN_glGetTextureImage, texture, level, format, type, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureImage"); } } public void GetCompressedTextureImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImage)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImage)) { try { MH_glGetCompressedTextureImage.invokeExact(PFN_glGetCompressedTextureImage, texture, level, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTextureImage"); } } public void GetTextureLevelParameterfv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfv)) { try { MH_glGetTextureLevelParameterfv.invokeExact(PFN_glGetTextureLevelParameterfv, texture, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureLevelParameterfv"); } } public void GetTextureLevelParameteriv(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameteriv)) { try { MH_glGetTextureLevelParameteriv.invokeExact(PFN_glGetTextureLevelParameteriv, texture, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureLevelParameteriv"); } } public void GetTextureParameterfv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfv)) { try { MH_glGetTextureParameterfv.invokeExact(PFN_glGetTextureParameterfv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterfv"); } } public void GetTextureParameterIiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIiv)) { try { MH_glGetTextureParameterIiv.invokeExact(PFN_glGetTextureParameterIiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterIiv"); } } public void GetTextureParameterIuiv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuiv)) { try { MH_glGetTextureParameterIuiv.invokeExact(PFN_glGetTextureParameterIuiv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterIuiv"); } } public void GetTextureParameteriv(@CType("GLuint") int texture, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameteriv)) { try { MH_glGetTextureParameteriv.invokeExact(PFN_glGetTextureParameteriv, texture, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameteriv"); } } public void CreateVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateVertexArrays)) + if (!Unmarshal.isNullPointer(PFN_glCreateVertexArrays)) { try { MH_glCreateVertexArrays.invokeExact(PFN_glCreateVertexArrays, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateVertexArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateVertexArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateVertexArrays"); } } public void DisableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttrib)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttrib)) { try { MH_glDisableVertexArrayAttrib.invokeExact(PFN_glDisableVertexArrayAttrib, vaobj, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttrib", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttrib", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexArrayAttrib"); } } public void EnableVertexArrayAttrib(@CType("GLuint") int vaobj, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttrib)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttrib)) { try { MH_glEnableVertexArrayAttrib.invokeExact(PFN_glEnableVertexArrayAttrib, vaobj, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttrib", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttrib", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexArrayAttrib"); } } public void VertexArrayElementBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayElementBuffer)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayElementBuffer)) { try { MH_glVertexArrayElementBuffer.invokeExact(PFN_glVertexArrayElementBuffer, vaobj, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayElementBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayElementBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayElementBuffer"); } } public void VertexArrayVertexBuffer(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffer)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffer)) { try { MH_glVertexArrayVertexBuffer.invokeExact(PFN_glVertexArrayVertexBuffer, vaobj, bindingindex, buffer, offset, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexBuffer"); } } public void VertexArrayVertexBuffers(@CType("GLuint") int vaobj, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffers)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBuffers)) { try { MH_glVertexArrayVertexBuffers.invokeExact(PFN_glVertexArrayVertexBuffers, vaobj, first, count, buffers, offsets, strides); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexBuffers"); } } public void VertexArrayAttribBinding(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribBinding)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribBinding)) { try { MH_glVertexArrayAttribBinding.invokeExact(PFN_glVertexArrayAttribBinding, vaobj, attribindex, bindingindex); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribBinding"); } } public void VertexArrayAttribFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribFormat)) { try { MH_glVertexArrayAttribFormat.invokeExact(PFN_glVertexArrayAttribFormat, vaobj, attribindex, size, type, normalized, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribFormat"); } } public void VertexArrayAttribIFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribIFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribIFormat)) { try { MH_glVertexArrayAttribIFormat.invokeExact(PFN_glVertexArrayAttribIFormat, vaobj, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribIFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribIFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribIFormat"); } } public void VertexArrayAttribLFormat(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribLFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayAttribLFormat)) { try { MH_glVertexArrayAttribLFormat.invokeExact(PFN_glVertexArrayAttribLFormat, vaobj, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribLFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayAttribLFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayAttribLFormat"); } } public void VertexArrayBindingDivisor(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindingDivisor)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindingDivisor)) { try { MH_glVertexArrayBindingDivisor.invokeExact(PFN_glVertexArrayBindingDivisor, vaobj, bindingindex, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindingDivisor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindingDivisor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayBindingDivisor"); } } public void GetVertexArrayiv(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayiv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayiv)) { try { MH_glGetVertexArrayiv.invokeExact(PFN_glGetVertexArrayiv, vaobj, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayiv"); } } public void GetVertexArrayIndexediv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexediv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexediv)) { try { MH_glGetVertexArrayIndexediv.invokeExact(PFN_glGetVertexArrayIndexediv, vaobj, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexediv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexediv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayIndexediv"); } } public void GetVertexArrayIndexed64iv(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexed64iv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIndexed64iv)) { try { MH_glGetVertexArrayIndexed64iv.invokeExact(PFN_glGetVertexArrayIndexed64iv, vaobj, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexed64iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIndexed64iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayIndexed64iv"); } } public void CreateSamplers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateSamplers)) + if (!Unmarshal.isNullPointer(PFN_glCreateSamplers)) { try { MH_glCreateSamplers.invokeExact(PFN_glCreateSamplers, n, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateSamplers"); } } public void CreateProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateProgramPipelines)) + if (!Unmarshal.isNullPointer(PFN_glCreateProgramPipelines)) { try { MH_glCreateProgramPipelines.invokeExact(PFN_glCreateProgramPipelines, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateProgramPipelines", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateProgramPipelines", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateProgramPipelines"); } } public void CreateQueries(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateQueries)) + if (!Unmarshal.isNullPointer(PFN_glCreateQueries)) { try { MH_glCreateQueries.invokeExact(PFN_glCreateQueries, target, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateQueries", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateQueries", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateQueries"); } } public void GetQueryBufferObjecti64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjecti64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjecti64v)) { try { MH_glGetQueryBufferObjecti64v.invokeExact(PFN_glGetQueryBufferObjecti64v, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjecti64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjecti64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjecti64v"); } } public void GetQueryBufferObjectiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectiv)) { try { MH_glGetQueryBufferObjectiv.invokeExact(PFN_glGetQueryBufferObjectiv, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjectiv"); } } public void GetQueryBufferObjectui64v(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectui64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectui64v)) { try { MH_glGetQueryBufferObjectui64v.invokeExact(PFN_glGetQueryBufferObjectui64v, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectui64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectui64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjectui64v"); } } public void GetQueryBufferObjectuiv(@CType("GLuint") int id, @CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryBufferObjectuiv)) { try { MH_glGetQueryBufferObjectuiv.invokeExact(PFN_glGetQueryBufferObjectuiv, id, buffer, pname, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryBufferObjectuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryBufferObjectuiv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java index f3816e84..ab22f89a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffers.java @@ -49,10 +49,10 @@ public GLARBDrawBuffers(overrungl.opengl.GLLoadFunc func) { } public void DrawBuffersARB(@CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffersARB)) + if (!Unmarshal.isNullPointer(PFN_glDrawBuffersARB)) { try { MH_glDrawBuffersARB.invokeExact(PFN_glDrawBuffersARB, n, bufs); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawBuffersARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawBuffersARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawBuffersARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java index 8f13dbbb..75fe9898 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawBuffersBlend.java @@ -41,31 +41,31 @@ public GLARBDrawBuffersBlend(overrungl.opengl.GLLoadFunc func) { } public void BlendEquationiARB(@CType("GLuint") int buf, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationiARB)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationiARB)) { try { MH_glBlendEquationiARB.invokeExact(PFN_glBlendEquationiARB, buf, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationiARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationiARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationiARB"); } } public void BlendEquationSeparateiARB(@CType("GLuint") int buf, @CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateiARB)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateiARB)) { try { MH_glBlendEquationSeparateiARB.invokeExact(PFN_glBlendEquationSeparateiARB, buf, modeRGB, modeAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateiARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateiARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationSeparateiARB"); } } public void BlendFunciARB(@CType("GLuint") int buf, @CType("GLenum") int src, @CType("GLenum") int dst) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFunciARB)) + if (!Unmarshal.isNullPointer(PFN_glBlendFunciARB)) { try { MH_glBlendFunciARB.invokeExact(PFN_glBlendFunciARB, buf, src, dst); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFunciARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFunciARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFunciARB"); } } public void BlendFuncSeparateiARB(@CType("GLuint") int buf, @CType("GLenum") int srcRGB, @CType("GLenum") int dstRGB, @CType("GLenum") int srcAlpha, @CType("GLenum") int dstAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateiARB)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateiARB)) { try { MH_glBlendFuncSeparateiARB.invokeExact(PFN_glBlendFuncSeparateiARB, buf, srcRGB, dstRGB, srcAlpha, dstAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateiARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateiARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncSeparateiARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java index 112ee21c..07944f9a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawElementsBaseVertex.java @@ -41,31 +41,31 @@ public GLARBDrawElementsBaseVertex(overrungl.opengl.GLLoadFunc func) { } public void DrawElementsBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsBaseVertex)) { try { MH_glDrawElementsBaseVertex.invokeExact(PFN_glDrawElementsBaseVertex, mode, count, type, indices, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsBaseVertex"); } } public void DrawRangeElementsBaseVertex(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLint") int basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsBaseVertex)) { try { MH_glDrawRangeElementsBaseVertex.invokeExact(PFN_glDrawRangeElementsBaseVertex, mode, start, end, count, type, indices, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawRangeElementsBaseVertex"); } } public void DrawElementsInstancedBaseVertex(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int instancecount, @CType("GLint") int basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedBaseVertex)) { try { MH_glDrawElementsInstancedBaseVertex.invokeExact(PFN_glDrawElementsInstancedBaseVertex, mode, count, type, indices, instancecount, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedBaseVertex"); } } public void MultiDrawElementsBaseVertex(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int drawcount, @CType("const GLint *") java.lang.foreign.MemorySegment basevertex) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsBaseVertex)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsBaseVertex)) { try { MH_glMultiDrawElementsBaseVertex.invokeExact(PFN_glMultiDrawElementsBaseVertex, mode, count, type, indices, drawcount, basevertex); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsBaseVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsBaseVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsBaseVertex"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java index 1ae397d1..f016da4f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawIndirect.java @@ -37,17 +37,17 @@ public GLARBDrawIndirect(overrungl.opengl.GLLoadFunc func) { } public void DrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysIndirect)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysIndirect)) { try { MH_glDrawArraysIndirect.invokeExact(PFN_glDrawArraysIndirect, mode, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysIndirect"); } } public void DrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsIndirect)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsIndirect)) { try { MH_glDrawElementsIndirect.invokeExact(PFN_glDrawElementsIndirect, mode, type, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsIndirect"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java index 5bdc168b..53bcdebf 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBDrawInstanced.java @@ -35,17 +35,17 @@ public GLARBDrawInstanced(overrungl.opengl.GLLoadFunc func) { } public void DrawArraysInstancedARB(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedARB)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedARB)) { try { MH_glDrawArraysInstancedARB.invokeExact(PFN_glDrawArraysInstancedARB, mode, first, count, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysInstancedARB"); } } public void DrawElementsInstancedARB(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedARB)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedARB)) { try { MH_glDrawElementsInstancedARB.invokeExact(PFN_glDrawElementsInstancedARB, mode, count, type, indices, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java index a2b5a9fe..ad7a99a3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES2Compatibility.java @@ -60,38 +60,38 @@ public GLARBES2Compatibility(overrungl.opengl.GLLoadFunc func) { } public void ReleaseShaderCompiler() { - try { if (!Unmarshal.isNullPointer(PFN_glReleaseShaderCompiler)) + if (!Unmarshal.isNullPointer(PFN_glReleaseShaderCompiler)) { try { MH_glReleaseShaderCompiler.invokeExact(PFN_glReleaseShaderCompiler); - } - catch (Throwable e) { throw new RuntimeException("error in glReleaseShaderCompiler", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReleaseShaderCompiler", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReleaseShaderCompiler"); } } public void ShaderBinary(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment shaders, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderBinary)) + if (!Unmarshal.isNullPointer(PFN_glShaderBinary)) { try { MH_glShaderBinary.invokeExact(PFN_glShaderBinary, count, shaders, binaryFormat, binary, length); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderBinary", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderBinary", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderBinary"); } } public void GetShaderPrecisionFormat(@CType("GLenum") int shadertype, @CType("GLenum") int precisiontype, @CType("GLint *") java.lang.foreign.MemorySegment range, @CType("GLint *") java.lang.foreign.MemorySegment precision) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShaderPrecisionFormat)) + if (!Unmarshal.isNullPointer(PFN_glGetShaderPrecisionFormat)) { try { MH_glGetShaderPrecisionFormat.invokeExact(PFN_glGetShaderPrecisionFormat, shadertype, precisiontype, range, precision); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShaderPrecisionFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShaderPrecisionFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShaderPrecisionFormat"); } } public void DepthRangef(@CType("GLfloat") float n, @CType("GLfloat") float f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangef)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangef)) { try { MH_glDepthRangef.invokeExact(PFN_glDepthRangef, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangef", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangef", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangef"); } } public void ClearDepthf(@CType("GLfloat") float d) { - try { if (!Unmarshal.isNullPointer(PFN_glClearDepthf)) + if (!Unmarshal.isNullPointer(PFN_glClearDepthf)) { try { MH_glClearDepthf.invokeExact(PFN_glClearDepthf, d); - } - catch (Throwable e) { throw new RuntimeException("error in glClearDepthf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearDepthf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearDepthf"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java index 44774cca..3e86b2e6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES31Compatibility.java @@ -33,10 +33,10 @@ public GLARBES31Compatibility(overrungl.opengl.GLLoadFunc func) { } public void MemoryBarrierByRegion(@CType("GLbitfield") int barriers) { - try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierByRegion)) + if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierByRegion)) { try { MH_glMemoryBarrierByRegion.invokeExact(PFN_glMemoryBarrierByRegion, barriers); - } - catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierByRegion", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierByRegion", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMemoryBarrierByRegion"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java index 2150e4c5..947f3d2a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBES32Compatibility.java @@ -35,10 +35,10 @@ public GLARBES32Compatibility(overrungl.opengl.GLLoadFunc func) { } public void PrimitiveBoundingBoxARB(@CType("GLfloat") float minX, @CType("GLfloat") float minY, @CType("GLfloat") float minZ, @CType("GLfloat") float minW, @CType("GLfloat") float maxX, @CType("GLfloat") float maxY, @CType("GLfloat") float maxZ, @CType("GLfloat") float maxW) { - try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveBoundingBoxARB)) + if (!Unmarshal.isNullPointer(PFN_glPrimitiveBoundingBoxARB)) { try { MH_glPrimitiveBoundingBoxARB.invokeExact(PFN_glPrimitiveBoundingBoxARB, minX, minY, minZ, minW, maxX, maxY, maxZ, maxW); - } - catch (Throwable e) { throw new RuntimeException("error in glPrimitiveBoundingBoxARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPrimitiveBoundingBoxARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPrimitiveBoundingBoxARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java index bb1d188d..2baf44ca 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFragmentProgram.java @@ -164,137 +164,136 @@ public GLARBFragmentProgram(overrungl.opengl.GLLoadFunc func) { } public void ProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramStringARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramStringARB)) { try { MH_glProgramStringARB.invokeExact(PFN_glProgramStringARB, target, format, len, string); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramStringARB"); } } public void BindProgramARB(@CType("GLenum") int target, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glBindProgramARB)) + if (!Unmarshal.isNullPointer(PFN_glBindProgramARB)) { try { MH_glBindProgramARB.invokeExact(PFN_glBindProgramARB, target, program); - } - catch (Throwable e) { throw new RuntimeException("error in glBindProgramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindProgramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindProgramARB"); } } public void DeleteProgramsARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsARB)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsARB)) { try { MH_glDeleteProgramsARB.invokeExact(PFN_glDeleteProgramsARB, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgramsARB"); } } public void GenProgramsARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glGenProgramsARB)) + if (!Unmarshal.isNullPointer(PFN_glGenProgramsARB)) { try { MH_glGenProgramsARB.invokeExact(PFN_glGenProgramsARB, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glGenProgramsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenProgramsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenProgramsARB"); } } public void ProgramEnvParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dARB)) { try { MH_glProgramEnvParameter4dARB.invokeExact(PFN_glProgramEnvParameter4dARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4dARB"); } } public void ProgramEnvParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dvARB)) { try { MH_glProgramEnvParameter4dvARB.invokeExact(PFN_glProgramEnvParameter4dvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4dvARB"); } } public void ProgramEnvParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fARB)) { try { MH_glProgramEnvParameter4fARB.invokeExact(PFN_glProgramEnvParameter4fARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4fARB"); } } public void ProgramEnvParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fvARB)) { try { MH_glProgramEnvParameter4fvARB.invokeExact(PFN_glProgramEnvParameter4fvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4fvARB"); } } public void ProgramLocalParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dARB)) { try { MH_glProgramLocalParameter4dARB.invokeExact(PFN_glProgramLocalParameter4dARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4dARB"); } } public void ProgramLocalParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dvARB)) { try { MH_glProgramLocalParameter4dvARB.invokeExact(PFN_glProgramLocalParameter4dvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4dvARB"); } } public void ProgramLocalParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fARB)) { try { MH_glProgramLocalParameter4fARB.invokeExact(PFN_glProgramLocalParameter4fARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4fARB"); } } public void ProgramLocalParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fvARB)) { try { MH_glProgramLocalParameter4fvARB.invokeExact(PFN_glProgramLocalParameter4fvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4fvARB"); } } public void GetProgramEnvParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterdvARB)) { try { MH_glGetProgramEnvParameterdvARB.invokeExact(PFN_glGetProgramEnvParameterdvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramEnvParameterdvARB"); } } public void GetProgramEnvParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterfvARB)) { try { MH_glGetProgramEnvParameterfvARB.invokeExact(PFN_glGetProgramEnvParameterfvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramEnvParameterfvARB"); } } public void GetProgramLocalParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterdvARB)) { try { MH_glGetProgramLocalParameterdvARB.invokeExact(PFN_glGetProgramLocalParameterdvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramLocalParameterdvARB"); } } public void GetProgramLocalParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterfvARB)) { try { MH_glGetProgramLocalParameterfvARB.invokeExact(PFN_glGetProgramLocalParameterfvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramLocalParameterfvARB"); } } public void GetProgramivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramivARB)) { try { MH_glGetProgramivARB.invokeExact(PFN_glGetProgramivARB, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramivARB"); } } public void GetProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStringARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramStringARB)) { try { MH_glGetProgramStringARB.invokeExact(PFN_glGetProgramStringARB, target, pname, string); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramStringARB"); } } public @CType("GLboolean") boolean IsProgramARB(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgramARB)) + if (!Unmarshal.isNullPointer(PFN_glIsProgramARB)) { try { return (boolean) MH_glIsProgramARB.invokeExact(PFN_glIsProgramARB, program); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgramARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java index 88097ec5..7c6f70ec 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferNoAttachments.java @@ -44,17 +44,17 @@ public GLARBFramebufferNoAttachments(overrungl.opengl.GLLoadFunc func) { } public void FramebufferParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteri)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteri)) { try { MH_glFramebufferParameteri.invokeExact(PFN_glFramebufferParameteri, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferParameteri"); } } public void GetFramebufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameteriv)) { try { MH_glGetFramebufferParameteriv.invokeExact(PFN_glGetFramebufferParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferParameteriv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java index 4f87f975..96f9565b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBFramebufferObject.java @@ -162,146 +162,143 @@ public GLARBFramebufferObject(overrungl.opengl.GLLoadFunc func) { } public @CType("GLboolean") boolean IsRenderbuffer(@CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glIsRenderbuffer)) { try { return (boolean) MH_glIsRenderbuffer.invokeExact(PFN_glIsRenderbuffer, renderbuffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsRenderbuffer"); } } public void BindRenderbuffer(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindRenderbuffer)) { try { MH_glBindRenderbuffer.invokeExact(PFN_glBindRenderbuffer, target, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindRenderbuffer"); } } public void DeleteRenderbuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffers)) { try { MH_glDeleteRenderbuffers.invokeExact(PFN_glDeleteRenderbuffers, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteRenderbuffers"); } } public void GenRenderbuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffers)) + if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffers)) { try { MH_glGenRenderbuffers.invokeExact(PFN_glGenRenderbuffers, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenRenderbuffers"); } } public void RenderbufferStorage(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorage)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorage)) { try { MH_glRenderbufferStorage.invokeExact(PFN_glRenderbufferStorage, target, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorage"); } } public void GetRenderbufferParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameteriv)) { try { MH_glGetRenderbufferParameteriv.invokeExact(PFN_glGetRenderbufferParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetRenderbufferParameteriv"); } } public @CType("GLboolean") boolean IsFramebuffer(@CType("GLuint") int framebuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glIsFramebuffer)) { try { return (boolean) MH_glIsFramebuffer.invokeExact(PFN_glIsFramebuffer, framebuffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsFramebuffer"); } } public void BindFramebuffer(@CType("GLenum") int target, @CType("GLuint") int framebuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindFramebuffer)) { try { MH_glBindFramebuffer.invokeExact(PFN_glBindFramebuffer, target, framebuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFramebuffer"); } } public void DeleteFramebuffers(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffers)) { try { MH_glDeleteFramebuffers.invokeExact(PFN_glDeleteFramebuffers, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteFramebuffers"); } } public void GenFramebuffers(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenFramebuffers)) + if (!Unmarshal.isNullPointer(PFN_glGenFramebuffers)) { try { MH_glGenFramebuffers.invokeExact(PFN_glGenFramebuffers, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenFramebuffers"); } } public @CType("GLenum") int CheckFramebufferStatus(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatus)) + if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatus)) { try { return (int) MH_glCheckFramebufferStatus.invokeExact(PFN_glCheckFramebufferStatus, target); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatus", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatus", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCheckFramebufferStatus"); } } public void FramebufferTexture1D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1D)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1D)) { try { MH_glFramebufferTexture1D.invokeExact(PFN_glFramebufferTexture1D, target, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture1D"); } } public void FramebufferTexture2D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2D)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2D)) { try { MH_glFramebufferTexture2D.invokeExact(PFN_glFramebufferTexture2D, target, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture2D"); } } public void FramebufferTexture3D(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3D)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3D)) { try { MH_glFramebufferTexture3D.invokeExact(PFN_glFramebufferTexture3D, target, attachment, textarget, texture, level, zoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture3D"); } } public void FramebufferRenderbuffer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbuffer)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbuffer)) { try { MH_glFramebufferRenderbuffer.invokeExact(PFN_glFramebufferRenderbuffer, target, attachment, renderbuffertarget, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferRenderbuffer"); } } public void GetFramebufferAttachmentParameteriv(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameteriv)) { try { MH_glGetFramebufferAttachmentParameteriv.invokeExact(PFN_glGetFramebufferAttachmentParameteriv, target, attachment, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferAttachmentParameteriv"); } } public void GenerateMipmap(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateMipmap)) + if (!Unmarshal.isNullPointer(PFN_glGenerateMipmap)) { try { MH_glGenerateMipmap.invokeExact(PFN_glGenerateMipmap, target); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmap", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmap", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateMipmap"); } } public void BlitFramebuffer(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glBlitFramebuffer)) { try { MH_glBlitFramebuffer.invokeExact(PFN_glBlitFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitFramebuffer"); } } public void RenderbufferStorageMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisample)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisample)) { try { MH_glRenderbufferStorageMultisample.invokeExact(PFN_glRenderbufferStorageMultisample, target, samples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorageMultisample"); } } public void FramebufferTextureLayer(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayer)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayer)) { try { MH_glFramebufferTextureLayer.invokeExact(PFN_glFramebufferTextureLayer, target, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureLayer"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java index 7c1a89ff..1af86d00 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGeometryShader4.java @@ -61,31 +61,31 @@ public GLARBGeometryShader4(overrungl.opengl.GLLoadFunc func) { } public void ProgramParameteriARB(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteriARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameteriARB)) { try { MH_glProgramParameteriARB.invokeExact(PFN_glProgramParameteriARB, program, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameteriARB"); } } public void FramebufferTextureARB(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureARB)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureARB)) { try { MH_glFramebufferTextureARB.invokeExact(PFN_glFramebufferTextureARB, target, attachment, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureARB"); } } public void FramebufferTextureLayerARB(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerARB)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerARB)) { try { MH_glFramebufferTextureLayerARB.invokeExact(PFN_glFramebufferTextureLayerARB, target, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureLayerARB"); } } public void FramebufferTextureFaceARB(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int face) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureFaceARB)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureFaceARB)) { try { MH_glFramebufferTextureFaceARB.invokeExact(PFN_glFramebufferTextureFaceARB, target, attachment, texture, level, face); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureFaceARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureFaceARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureFaceARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java index 3472826d..36c667fc 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetProgramBinary.java @@ -42,24 +42,24 @@ public GLARBGetProgramBinary(overrungl.opengl.GLLoadFunc func) { } public void GetProgramBinary(@CType("GLuint") int program, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLenum *") java.lang.foreign.MemorySegment binaryFormat, @CType("void*") java.lang.foreign.MemorySegment binary) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramBinary)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramBinary)) { try { MH_glGetProgramBinary.invokeExact(PFN_glGetProgramBinary, program, bufSize, length, binaryFormat, binary); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramBinary", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramBinary", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramBinary"); } } public void ProgramBinary(@CType("GLuint") int program, @CType("GLenum") int binaryFormat, @CType("const void *") java.lang.foreign.MemorySegment binary, @CType("GLsizei") int length) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramBinary)) + if (!Unmarshal.isNullPointer(PFN_glProgramBinary)) { try { MH_glProgramBinary.invokeExact(PFN_glProgramBinary, program, binaryFormat, binary, length); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramBinary", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramBinary", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramBinary"); } } public void ProgramParameteri(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) { try { MH_glProgramParameteri.invokeExact(PFN_glProgramParameteri, program, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameteri"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java index 69b72ebc..7b33b1ba 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGetTextureSubImage.java @@ -35,17 +35,17 @@ public GLARBGetTextureSubImage(overrungl.opengl.GLLoadFunc func) { } public void GetTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSubImage)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureSubImage)) { try { MH_glGetTextureSubImage.invokeExact(PFN_glGetTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureSubImage"); } } public void GetCompressedTextureSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureSubImage)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureSubImage)) { try { MH_glGetCompressedTextureSubImage.invokeExact(PFN_glGetCompressedTextureSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTextureSubImage"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java index 3355d2b1..28a89257 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGlSpirv.java @@ -34,10 +34,10 @@ public GLARBGlSpirv(overrungl.opengl.GLLoadFunc func) { } public void SpecializeShaderARB(@CType("GLuint") int shader, @CType("const GLchar *") java.lang.foreign.MemorySegment pEntryPoint, @CType("GLuint") int numSpecializationConstants, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantIndex, @CType("const GLuint *") java.lang.foreign.MemorySegment pConstantValue) { - try { if (!Unmarshal.isNullPointer(PFN_glSpecializeShaderARB)) + if (!Unmarshal.isNullPointer(PFN_glSpecializeShaderARB)) { try { MH_glSpecializeShaderARB.invokeExact(PFN_glSpecializeShaderARB, shader, pEntryPoint, numSpecializationConstants, pConstantIndex, pConstantValue); - } - catch (Throwable e) { throw new RuntimeException("error in glSpecializeShaderARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSpecializeShaderARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSpecializeShaderARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java index 419837f7..a8d59ad9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderFp64.java @@ -96,129 +96,129 @@ public GLARBGpuShaderFp64(overrungl.opengl.GLLoadFunc func) { } public void Uniform1d(@CType("GLint") int location, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1d)) + if (!Unmarshal.isNullPointer(PFN_glUniform1d)) { try { MH_glUniform1d.invokeExact(PFN_glUniform1d, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1d"); } } public void Uniform2d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2d)) + if (!Unmarshal.isNullPointer(PFN_glUniform2d)) { try { MH_glUniform2d.invokeExact(PFN_glUniform2d, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2d"); } } public void Uniform3d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3d)) + if (!Unmarshal.isNullPointer(PFN_glUniform3d)) { try { MH_glUniform3d.invokeExact(PFN_glUniform3d, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3d"); } } public void Uniform4d(@CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4d)) + if (!Unmarshal.isNullPointer(PFN_glUniform4d)) { try { MH_glUniform4d.invokeExact(PFN_glUniform4d, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4d"); } } public void Uniform1dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform1dv)) { try { MH_glUniform1dv.invokeExact(PFN_glUniform1dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1dv"); } } public void Uniform2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform2dv)) { try { MH_glUniform2dv.invokeExact(PFN_glUniform2dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2dv"); } } public void Uniform3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform3dv)) { try { MH_glUniform3dv.invokeExact(PFN_glUniform3dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3dv"); } } public void Uniform4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniform4dv)) { try { MH_glUniform4dv.invokeExact(PFN_glUniform4dv, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4dv"); } } public void UniformMatrix2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2dv)) { try { MH_glUniformMatrix2dv.invokeExact(PFN_glUniformMatrix2dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2dv"); } } public void UniformMatrix3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3dv)) { try { MH_glUniformMatrix3dv.invokeExact(PFN_glUniformMatrix3dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3dv"); } } public void UniformMatrix4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4dv)) { try { MH_glUniformMatrix4dv.invokeExact(PFN_glUniformMatrix4dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4dv"); } } public void UniformMatrix2x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x3dv)) { try { MH_glUniformMatrix2x3dv.invokeExact(PFN_glUniformMatrix2x3dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2x3dv"); } } public void UniformMatrix2x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2x4dv)) { try { MH_glUniformMatrix2x4dv.invokeExact(PFN_glUniformMatrix2x4dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2x4dv"); } } public void UniformMatrix3x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x2dv)) { try { MH_glUniformMatrix3x2dv.invokeExact(PFN_glUniformMatrix3x2dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3x2dv"); } } public void UniformMatrix3x4dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3x4dv)) { try { MH_glUniformMatrix3x4dv.invokeExact(PFN_glUniformMatrix3x4dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3x4dv"); } } public void UniformMatrix4x2dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x2dv)) { try { MH_glUniformMatrix4x2dv.invokeExact(PFN_glUniformMatrix4x2dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4x2dv"); } } public void UniformMatrix4x3dv(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3dv)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4x3dv)) { try { MH_glUniformMatrix4x3dv.invokeExact(PFN_glUniformMatrix4x3dv, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4x3dv"); } } public void GetUniformdv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformdv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformdv)) { try { MH_glGetUniformdv.invokeExact(PFN_glGetUniformdv, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformdv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformdv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformdv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java index 7b015e79..3ba38255 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBGpuShaderInt64.java @@ -145,255 +145,255 @@ public GLARBGpuShaderInt64(overrungl.opengl.GLLoadFunc func) { } public void Uniform1i64ARB(@CType("GLint") int location, @CType("GLint64") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i64ARB)) { try { MH_glUniform1i64ARB.invokeExact(PFN_glUniform1i64ARB, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i64ARB"); } } public void Uniform2i64ARB(@CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i64ARB)) { try { MH_glUniform2i64ARB.invokeExact(PFN_glUniform2i64ARB, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i64ARB"); } } public void Uniform3i64ARB(@CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i64ARB)) { try { MH_glUniform3i64ARB.invokeExact(PFN_glUniform3i64ARB, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i64ARB"); } } public void Uniform4i64ARB(@CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z, @CType("GLint64") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i64ARB)) { try { MH_glUniform4i64ARB.invokeExact(PFN_glUniform4i64ARB, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i64ARB"); } } public void Uniform1i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i64vARB)) { try { MH_glUniform1i64vARB.invokeExact(PFN_glUniform1i64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i64vARB"); } } public void Uniform2i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i64vARB)) { try { MH_glUniform2i64vARB.invokeExact(PFN_glUniform2i64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i64vARB"); } } public void Uniform3i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i64vARB)) { try { MH_glUniform3i64vARB.invokeExact(PFN_glUniform3i64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i64vARB"); } } public void Uniform4i64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i64vARB)) { try { MH_glUniform4i64vARB.invokeExact(PFN_glUniform4i64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i64vARB"); } } public void Uniform1ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui64ARB)) { try { MH_glUniform1ui64ARB.invokeExact(PFN_glUniform1ui64ARB, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui64ARB"); } } public void Uniform2ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui64ARB)) { try { MH_glUniform2ui64ARB.invokeExact(PFN_glUniform2ui64ARB, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui64ARB"); } } public void Uniform3ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui64ARB)) { try { MH_glUniform3ui64ARB.invokeExact(PFN_glUniform3ui64ARB, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui64ARB"); } } public void Uniform4ui64ARB(@CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z, @CType("GLuint64") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui64ARB)) { try { MH_glUniform4ui64ARB.invokeExact(PFN_glUniform4ui64ARB, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui64ARB"); } } public void Uniform1ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vARB)) { try { MH_glUniform1ui64vARB.invokeExact(PFN_glUniform1ui64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui64vARB"); } } public void Uniform2ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vARB)) { try { MH_glUniform2ui64vARB.invokeExact(PFN_glUniform2ui64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui64vARB"); } } public void Uniform3ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vARB)) { try { MH_glUniform3ui64vARB.invokeExact(PFN_glUniform3ui64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui64vARB"); } } public void Uniform4ui64vARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vARB)) { try { MH_glUniform4ui64vARB.invokeExact(PFN_glUniform4ui64vARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui64vARB"); } } public void GetUniformi64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vARB)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vARB)) { try { MH_glGetUniformi64vARB.invokeExact(PFN_glGetUniformi64vARB, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformi64vARB"); } } public void GetUniformui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vARB)) { try { MH_glGetUniformui64vARB.invokeExact(PFN_glGetUniformui64vARB, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformui64vARB"); } } public void GetnUniformi64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformi64vARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformi64vARB)) { try { MH_glGetnUniformi64vARB.invokeExact(PFN_glGetnUniformi64vARB, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformi64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformi64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformi64vARB"); } } public void GetnUniformui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformui64vARB)) { try { MH_glGetnUniformui64vARB.invokeExact(PFN_glGetnUniformui64vARB, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformui64vARB"); } } public void ProgramUniform1i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64ARB)) { try { MH_glProgramUniform1i64ARB.invokeExact(PFN_glProgramUniform1i64ARB, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i64ARB"); } } public void ProgramUniform2i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64ARB)) { try { MH_glProgramUniform2i64ARB.invokeExact(PFN_glProgramUniform2i64ARB, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i64ARB"); } } public void ProgramUniform3i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64ARB)) { try { MH_glProgramUniform3i64ARB.invokeExact(PFN_glProgramUniform3i64ARB, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i64ARB"); } } public void ProgramUniform4i64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64") long x, @CType("GLint64") long y, @CType("GLint64") long z, @CType("GLint64") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64ARB)) { try { MH_glProgramUniform4i64ARB.invokeExact(PFN_glProgramUniform4i64ARB, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i64ARB"); } } public void ProgramUniform1i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vARB)) { try { MH_glProgramUniform1i64vARB.invokeExact(PFN_glProgramUniform1i64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i64vARB"); } } public void ProgramUniform2i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vARB)) { try { MH_glProgramUniform2i64vARB.invokeExact(PFN_glProgramUniform2i64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i64vARB"); } } public void ProgramUniform3i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vARB)) { try { MH_glProgramUniform3i64vARB.invokeExact(PFN_glProgramUniform3i64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i64vARB"); } } public void ProgramUniform4i64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vARB)) { try { MH_glProgramUniform4i64vARB.invokeExact(PFN_glProgramUniform4i64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i64vARB"); } } public void ProgramUniform1ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64ARB)) { try { MH_glProgramUniform1ui64ARB.invokeExact(PFN_glProgramUniform1ui64ARB, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui64ARB"); } } public void ProgramUniform2ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64ARB)) { try { MH_glProgramUniform2ui64ARB.invokeExact(PFN_glProgramUniform2ui64ARB, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui64ARB"); } } public void ProgramUniform3ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64ARB)) { try { MH_glProgramUniform3ui64ARB.invokeExact(PFN_glProgramUniform3ui64ARB, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui64ARB"); } } public void ProgramUniform4ui64ARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long x, @CType("GLuint64") long y, @CType("GLuint64") long z, @CType("GLuint64") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64ARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64ARB)) { try { MH_glProgramUniform4ui64ARB.invokeExact(PFN_glProgramUniform4ui64ARB, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64ARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64ARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui64ARB"); } } public void ProgramUniform1ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vARB)) { try { MH_glProgramUniform1ui64vARB.invokeExact(PFN_glProgramUniform1ui64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui64vARB"); } } public void ProgramUniform2ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vARB)) { try { MH_glProgramUniform2ui64vARB.invokeExact(PFN_glProgramUniform2ui64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui64vARB"); } } public void ProgramUniform3ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vARB)) { try { MH_glProgramUniform3ui64vARB.invokeExact(PFN_glProgramUniform3ui64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui64vARB"); } } public void ProgramUniform4ui64vARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vARB)) { try { MH_glProgramUniform4ui64vARB.invokeExact(PFN_glProgramUniform4ui64vARB, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui64vARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java index d5fb0aba..38d3af3e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBImaging.java @@ -205,241 +205,241 @@ public GLARBImaging(overrungl.opengl.GLLoadFunc func) { } public void BlendColor(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendColor)) + if (!Unmarshal.isNullPointer(PFN_glBlendColor)) { try { MH_glBlendColor.invokeExact(PFN_glBlendColor, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendColor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendColor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendColor"); } } public void BlendEquation(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquation)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquation)) { try { MH_glBlendEquation.invokeExact(PFN_glBlendEquation, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquation"); } } public void ColorTable(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment table) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTable)) + if (!Unmarshal.isNullPointer(PFN_glColorTable)) { try { MH_glColorTable.invokeExact(PFN_glColorTable, target, internalformat, width, format, type, table); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTable"); } } public void ColorTableParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glColorTableParameterfv)) { try { MH_glColorTableParameterfv.invokeExact(PFN_glColorTableParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTableParameterfv"); } } public void ColorTableParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glColorTableParameteriv)) { try { MH_glColorTableParameteriv.invokeExact(PFN_glColorTableParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTableParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTableParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTableParameteriv"); } } public void CopyColorTable(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyColorTable)) + if (!Unmarshal.isNullPointer(PFN_glCopyColorTable)) { try { MH_glCopyColorTable.invokeExact(PFN_glCopyColorTable, target, internalformat, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyColorTable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyColorTable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyColorTable"); } } public void GetColorTable(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment table) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTable)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTable)) { try { MH_glGetColorTable.invokeExact(PFN_glGetColorTable, target, format, type, table); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTable"); } } public void GetColorTableParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfv)) { try { MH_glGetColorTableParameterfv.invokeExact(PFN_glGetColorTableParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableParameterfv"); } } public void GetColorTableParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameteriv)) { try { MH_glGetColorTableParameteriv.invokeExact(PFN_glGetColorTableParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableParameteriv"); } } public void ColorSubTable(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLsizei") int count, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glColorSubTable)) + if (!Unmarshal.isNullPointer(PFN_glColorSubTable)) { try { MH_glColorSubTable.invokeExact(PFN_glColorSubTable, target, start, count, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glColorSubTable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorSubTable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorSubTable"); } } public void CopyColorSubTable(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyColorSubTable)) + if (!Unmarshal.isNullPointer(PFN_glCopyColorSubTable)) { try { MH_glCopyColorSubTable.invokeExact(PFN_glCopyColorSubTable, target, start, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyColorSubTable", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyColorSubTable", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyColorSubTable"); } } public void ConvolutionFilter1D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter1D)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter1D)) { try { MH_glConvolutionFilter1D.invokeExact(PFN_glConvolutionFilter1D, target, internalformat, width, format, type, image); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionFilter1D"); } } public void ConvolutionFilter2D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter2D)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter2D)) { try { MH_glConvolutionFilter2D.invokeExact(PFN_glConvolutionFilter2D, target, internalformat, width, height, format, type, image); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionFilter2D"); } } public void ConvolutionParameterf(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterf)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterf)) { try { MH_glConvolutionParameterf.invokeExact(PFN_glConvolutionParameterf, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterf"); } } public void ConvolutionParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfv)) { try { MH_glConvolutionParameterfv.invokeExact(PFN_glConvolutionParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterfv"); } } public void ConvolutionParameteri(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteri)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteri)) { try { MH_glConvolutionParameteri.invokeExact(PFN_glConvolutionParameteri, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameteri"); } } public void ConvolutionParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteriv)) { try { MH_glConvolutionParameteriv.invokeExact(PFN_glConvolutionParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameteriv"); } } public void CopyConvolutionFilter1D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter1D)) + if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter1D)) { try { MH_glCopyConvolutionFilter1D.invokeExact(PFN_glCopyConvolutionFilter1D, target, internalformat, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyConvolutionFilter1D"); } } public void CopyConvolutionFilter2D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter2D)) + if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter2D)) { try { MH_glCopyConvolutionFilter2D.invokeExact(PFN_glCopyConvolutionFilter2D, target, internalformat, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyConvolutionFilter2D"); } } public void GetConvolutionFilter(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionFilter)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionFilter)) { try { MH_glGetConvolutionFilter.invokeExact(PFN_glGetConvolutionFilter, target, format, type, image); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionFilter", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionFilter", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionFilter"); } } public void GetConvolutionParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterfv)) { try { MH_glGetConvolutionParameterfv.invokeExact(PFN_glGetConvolutionParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionParameterfv"); } } public void GetConvolutionParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameteriv)) { try { MH_glGetConvolutionParameteriv.invokeExact(PFN_glGetConvolutionParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionParameteriv"); } } public void GetSeparableFilter(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment row, @CType("void*") java.lang.foreign.MemorySegment column, @CType("void*") java.lang.foreign.MemorySegment span) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSeparableFilter)) + if (!Unmarshal.isNullPointer(PFN_glGetSeparableFilter)) { try { MH_glGetSeparableFilter.invokeExact(PFN_glGetSeparableFilter, target, format, type, row, column, span); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSeparableFilter", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSeparableFilter", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSeparableFilter"); } } public void SeparableFilter2D(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment row, @CType("const void *") java.lang.foreign.MemorySegment column) { - try { if (!Unmarshal.isNullPointer(PFN_glSeparableFilter2D)) + if (!Unmarshal.isNullPointer(PFN_glSeparableFilter2D)) { try { MH_glSeparableFilter2D.invokeExact(PFN_glSeparableFilter2D, target, internalformat, width, height, format, type, row, column); - } - catch (Throwable e) { throw new RuntimeException("error in glSeparableFilter2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSeparableFilter2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSeparableFilter2D"); } } public void GetHistogram(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogram)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogram)) { try { MH_glGetHistogram.invokeExact(PFN_glGetHistogram, target, reset, format, type, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogram"); } } public void GetHistogramParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterfv)) { try { MH_glGetHistogramParameterfv.invokeExact(PFN_glGetHistogramParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogramParameterfv"); } } public void GetHistogramParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameteriv)) { try { MH_glGetHistogramParameteriv.invokeExact(PFN_glGetHistogramParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogramParameteriv"); } } public void GetMinmax(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMinmax)) + if (!Unmarshal.isNullPointer(PFN_glGetMinmax)) { try { MH_glGetMinmax.invokeExact(PFN_glGetMinmax, target, reset, format, type, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMinmax", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMinmax", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMinmax"); } } public void GetMinmaxParameterfv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterfv)) { try { MH_glGetMinmaxParameterfv.invokeExact(PFN_glGetMinmaxParameterfv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMinmaxParameterfv"); } } public void GetMinmaxParameteriv(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameteriv)) { try { MH_glGetMinmaxParameteriv.invokeExact(PFN_glGetMinmaxParameteriv, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMinmaxParameteriv"); } } public void Histogram(@CType("GLenum") int target, @CType("GLsizei") int width, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { - try { if (!Unmarshal.isNullPointer(PFN_glHistogram)) + if (!Unmarshal.isNullPointer(PFN_glHistogram)) { try { MH_glHistogram.invokeExact(PFN_glHistogram, target, width, internalformat, sink); - } - catch (Throwable e) { throw new RuntimeException("error in glHistogram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glHistogram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glHistogram"); } } public void Minmax(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { - try { if (!Unmarshal.isNullPointer(PFN_glMinmax)) + if (!Unmarshal.isNullPointer(PFN_glMinmax)) { try { MH_glMinmax.invokeExact(PFN_glMinmax, target, internalformat, sink); - } - catch (Throwable e) { throw new RuntimeException("error in glMinmax", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMinmax", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMinmax"); } } public void ResetHistogram(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glResetHistogram)) + if (!Unmarshal.isNullPointer(PFN_glResetHistogram)) { try { MH_glResetHistogram.invokeExact(PFN_glResetHistogram, target); - } - catch (Throwable e) { throw new RuntimeException("error in glResetHistogram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResetHistogram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResetHistogram"); } } public void ResetMinmax(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glResetMinmax)) + if (!Unmarshal.isNullPointer(PFN_glResetMinmax)) { try { MH_glResetMinmax.invokeExact(PFN_glResetMinmax, target); - } - catch (Throwable e) { throw new RuntimeException("error in glResetMinmax", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResetMinmax", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResetMinmax"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java index 872733e5..960d430d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBIndirectParameters.java @@ -37,17 +37,17 @@ public GLARBIndirectParameters(overrungl.opengl.GLLoadFunc func) { } public void MultiDrawArraysIndirectCountARB(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectCountARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectCountARB)) { try { MH_glMultiDrawArraysIndirectCountARB.invokeExact(PFN_glMultiDrawArraysIndirectCountARB, mode, indirect, drawcount, maxdrawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectCountARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectCountARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirectCountARB"); } } public void MultiDrawElementsIndirectCountARB(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectCountARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectCountARB)) { try { MH_glMultiDrawElementsIndirectCountARB.invokeExact(PFN_glMultiDrawElementsIndirectCountARB, mode, type, indirect, drawcount, maxdrawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectCountARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectCountARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirectCountARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java index a6a15dd0..bd3d9424 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInstancedArrays.java @@ -33,10 +33,10 @@ public GLARBInstancedArrays(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribDivisorARB(@CType("GLuint") int index, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribDivisorARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribDivisorARB)) { try { MH_glVertexAttribDivisorARB.invokeExact(PFN_glVertexAttribDivisorARB, index, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribDivisorARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribDivisorARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribDivisorARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java index b29eb1b2..27c8a761 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery.java @@ -33,10 +33,10 @@ public GLARBInternalformatQuery(overrungl.opengl.GLLoadFunc func) { } public void GetInternalformativ(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformativ)) + if (!Unmarshal.isNullPointer(PFN_glGetInternalformativ)) { try { MH_glGetInternalformativ.invokeExact(PFN_glGetInternalformativ, target, internalformat, pname, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInternalformativ", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInternalformativ", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInternalformativ"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java index c44c7e84..4f041bf9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInternalformatQuery2.java @@ -166,10 +166,10 @@ public GLARBInternalformatQuery2(overrungl.opengl.GLLoadFunc func) { } public void GetInternalformati64v(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformati64v)) + if (!Unmarshal.isNullPointer(PFN_glGetInternalformati64v)) { try { MH_glGetInternalformati64v.invokeExact(PFN_glGetInternalformati64v, target, internalformat, pname, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInternalformati64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInternalformati64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInternalformati64v"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java index 0a0c7b62..f1a920c5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBInvalidateSubdata.java @@ -47,45 +47,45 @@ public GLARBInvalidateSubdata(overrungl.opengl.GLLoadFunc func) { } public void InvalidateTexSubImage(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexSubImage)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateTexSubImage)) { try { MH_glInvalidateTexSubImage.invokeExact(PFN_glInvalidateTexSubImage, texture, level, xoffset, yoffset, zoffset, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexSubImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexSubImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateTexSubImage"); } } public void InvalidateTexImage(@CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateTexImage)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateTexImage)) { try { MH_glInvalidateTexImage.invokeExact(PFN_glInvalidateTexImage, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexImage", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateTexImage", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateTexImage"); } } public void InvalidateBufferSubData(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferSubData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferSubData)) { try { MH_glInvalidateBufferSubData.invokeExact(PFN_glInvalidateBufferSubData, buffer, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferSubData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferSubData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateBufferSubData"); } } public void InvalidateBufferData(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferData)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateBufferData)) { try { MH_glInvalidateBufferData.invokeExact(PFN_glInvalidateBufferData, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferData", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateBufferData", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateBufferData"); } } public void InvalidateFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateFramebuffer)) { try { MH_glInvalidateFramebuffer.invokeExact(PFN_glInvalidateFramebuffer, target, numAttachments, attachments); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateFramebuffer"); } } public void InvalidateSubFramebuffer(@CType("GLenum") int target, @CType("GLsizei") int numAttachments, @CType("const GLenum *") java.lang.foreign.MemorySegment attachments, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glInvalidateSubFramebuffer)) + if (!Unmarshal.isNullPointer(PFN_glInvalidateSubFramebuffer)) { try { MH_glInvalidateSubFramebuffer.invokeExact(PFN_glInvalidateSubFramebuffer, target, numAttachments, attachments, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glInvalidateSubFramebuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInvalidateSubFramebuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInvalidateSubFramebuffer"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java index aabcb026..f90da137 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMapBufferRange.java @@ -41,18 +41,17 @@ public GLARBMapBufferRange(overrungl.opengl.GLLoadFunc func) { } public @CType("void*") java.lang.foreign.MemorySegment MapBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glMapBufferRange)) { try { return (java.lang.foreign.MemorySegment) MH_glMapBufferRange.invokeExact(PFN_glMapBufferRange, target, offset, length, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapBufferRange"); } } public void FlushMappedBufferRange(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glFlushMappedBufferRange)) { try { MH_glFlushMappedBufferRange.invokeExact(PFN_glFlushMappedBufferRange, target, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushMappedBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushMappedBufferRange"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java index 8517bd9e..aacded91 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMatrixPalette.java @@ -54,38 +54,38 @@ public GLARBMatrixPalette(overrungl.opengl.GLLoadFunc func) { } public void CurrentPaletteMatrixARB(@CType("GLint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glCurrentPaletteMatrixARB)) + if (!Unmarshal.isNullPointer(PFN_glCurrentPaletteMatrixARB)) { try { MH_glCurrentPaletteMatrixARB.invokeExact(PFN_glCurrentPaletteMatrixARB, index); - } - catch (Throwable e) { throw new RuntimeException("error in glCurrentPaletteMatrixARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCurrentPaletteMatrixARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCurrentPaletteMatrixARB"); } } public void MatrixIndexubvARB(@CType("GLint") int size, @CType("const GLubyte *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexubvARB)) + if (!Unmarshal.isNullPointer(PFN_glMatrixIndexubvARB)) { try { MH_glMatrixIndexubvARB.invokeExact(PFN_glMatrixIndexubvARB, size, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexubvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexubvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixIndexubvARB"); } } public void MatrixIndexusvARB(@CType("GLint") int size, @CType("const GLushort *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexusvARB)) + if (!Unmarshal.isNullPointer(PFN_glMatrixIndexusvARB)) { try { MH_glMatrixIndexusvARB.invokeExact(PFN_glMatrixIndexusvARB, size, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexusvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexusvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixIndexusvARB"); } } public void MatrixIndexuivARB(@CType("GLint") int size, @CType("const GLuint *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexuivARB)) + if (!Unmarshal.isNullPointer(PFN_glMatrixIndexuivARB)) { try { MH_glMatrixIndexuivARB.invokeExact(PFN_glMatrixIndexuivARB, size, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixIndexuivARB"); } } public void MatrixIndexPointerARB(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixIndexPointerARB)) + if (!Unmarshal.isNullPointer(PFN_glMatrixIndexPointerARB)) { try { MH_glMatrixIndexPointerARB.invokeExact(PFN_glMatrixIndexPointerARB, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexPointerARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixIndexPointerARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixIndexPointerARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java index 34a9e746..78e079e0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiBind.java @@ -47,45 +47,45 @@ public GLARBMultiBind(overrungl.opengl.GLLoadFunc func) { } public void BindBuffersBase(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersBase)) + if (!Unmarshal.isNullPointer(PFN_glBindBuffersBase)) { try { MH_glBindBuffersBase.invokeExact(PFN_glBindBuffersBase, target, first, count, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBuffersBase", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBuffersBase", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBuffersBase"); } } public void BindBuffersRange(@CType("GLenum") int target, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizeiptr *") java.lang.foreign.MemorySegment sizes) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBuffersRange)) + if (!Unmarshal.isNullPointer(PFN_glBindBuffersRange)) { try { MH_glBindBuffersRange.invokeExact(PFN_glBindBuffersRange, target, first, count, buffers, offsets, sizes); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBuffersRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBuffersRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBuffersRange"); } } public void BindTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTextures)) + if (!Unmarshal.isNullPointer(PFN_glBindTextures)) { try { MH_glBindTextures.invokeExact(PFN_glBindTextures, first, count, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTextures"); } } public void BindSamplers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glBindSamplers)) + if (!Unmarshal.isNullPointer(PFN_glBindSamplers)) { try { MH_glBindSamplers.invokeExact(PFN_glBindSamplers, first, count, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glBindSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindSamplers"); } } public void BindImageTextures(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glBindImageTextures)) + if (!Unmarshal.isNullPointer(PFN_glBindImageTextures)) { try { MH_glBindImageTextures.invokeExact(PFN_glBindImageTextures, first, count, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glBindImageTextures", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindImageTextures", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindImageTextures"); } } public void BindVertexBuffers(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("const GLintptr *") java.lang.foreign.MemorySegment offsets, @CType("const GLsizei *") java.lang.foreign.MemorySegment strides) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffers)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffers)) { try { MH_glBindVertexBuffers.invokeExact(PFN_glBindVertexBuffers, first, count, buffers, offsets, strides); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexBuffers"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java index beaf8265..c33e356a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultiDrawIndirect.java @@ -35,17 +35,17 @@ public GLARBMultiDrawIndirect(overrungl.opengl.GLLoadFunc func) { } public void MultiDrawArraysIndirect(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirect)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirect)) { try { MH_glMultiDrawArraysIndirect.invokeExact(PFN_glMultiDrawArraysIndirect, mode, indirect, drawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirect"); } } public void MultiDrawElementsIndirect(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirect)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirect)) { try { MH_glMultiDrawElementsIndirect.invokeExact(PFN_glMultiDrawElementsIndirect, mode, type, indirect, drawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirect", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirect", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirect"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java index cbe171e9..6629fdd2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultisample.java @@ -41,10 +41,10 @@ public GLARBMultisample(overrungl.opengl.GLLoadFunc func) { } public void SampleCoverageARB(@CType("GLfloat") float value, @CType("GLboolean") boolean invert) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleCoverageARB)) + if (!Unmarshal.isNullPointer(PFN_glSampleCoverageARB)) { try { MH_glSampleCoverageARB.invokeExact(PFN_glSampleCoverageARB, value, invert); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleCoverageARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleCoverageARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleCoverageARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java index dcd0c287..cd4332d0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBMultitexture.java @@ -166,241 +166,241 @@ public GLARBMultitexture(overrungl.opengl.GLLoadFunc func) { } public void ActiveTextureARB(@CType("GLenum") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveTextureARB)) + if (!Unmarshal.isNullPointer(PFN_glActiveTextureARB)) { try { MH_glActiveTextureARB.invokeExact(PFN_glActiveTextureARB, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveTextureARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveTextureARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveTextureARB"); } } public void ClientActiveTextureARB(@CType("GLenum") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glClientActiveTextureARB)) + if (!Unmarshal.isNullPointer(PFN_glClientActiveTextureARB)) { try { MH_glClientActiveTextureARB.invokeExact(PFN_glClientActiveTextureARB, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glClientActiveTextureARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClientActiveTextureARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClientActiveTextureARB"); } } public void MultiTexCoord1dARB(@CType("GLenum") int target, @CType("GLdouble") double s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1dARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1dARB)) { try { MH_glMultiTexCoord1dARB.invokeExact(PFN_glMultiTexCoord1dARB, target, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1dARB"); } } public void MultiTexCoord1dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1dvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1dvARB)) { try { MH_glMultiTexCoord1dvARB.invokeExact(PFN_glMultiTexCoord1dvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1dvARB"); } } public void MultiTexCoord1fARB(@CType("GLenum") int target, @CType("GLfloat") float s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1fARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1fARB)) { try { MH_glMultiTexCoord1fARB.invokeExact(PFN_glMultiTexCoord1fARB, target, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1fARB"); } } public void MultiTexCoord1fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1fvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1fvARB)) { try { MH_glMultiTexCoord1fvARB.invokeExact(PFN_glMultiTexCoord1fvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1fvARB"); } } public void MultiTexCoord1iARB(@CType("GLenum") int target, @CType("GLint") int s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1iARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1iARB)) { try { MH_glMultiTexCoord1iARB.invokeExact(PFN_glMultiTexCoord1iARB, target, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1iARB"); } } public void MultiTexCoord1ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1ivARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1ivARB)) { try { MH_glMultiTexCoord1ivARB.invokeExact(PFN_glMultiTexCoord1ivARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1ivARB"); } } public void MultiTexCoord1sARB(@CType("GLenum") int target, @CType("GLshort") short s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1sARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1sARB)) { try { MH_glMultiTexCoord1sARB.invokeExact(PFN_glMultiTexCoord1sARB, target, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1sARB"); } } public void MultiTexCoord1svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1svARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1svARB)) { try { MH_glMultiTexCoord1svARB.invokeExact(PFN_glMultiTexCoord1svARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1svARB"); } } public void MultiTexCoord2dARB(@CType("GLenum") int target, @CType("GLdouble") double s, @CType("GLdouble") double t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2dARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2dARB)) { try { MH_glMultiTexCoord2dARB.invokeExact(PFN_glMultiTexCoord2dARB, target, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2dARB"); } } public void MultiTexCoord2dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2dvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2dvARB)) { try { MH_glMultiTexCoord2dvARB.invokeExact(PFN_glMultiTexCoord2dvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2dvARB"); } } public void MultiTexCoord2fARB(@CType("GLenum") int target, @CType("GLfloat") float s, @CType("GLfloat") float t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2fARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2fARB)) { try { MH_glMultiTexCoord2fARB.invokeExact(PFN_glMultiTexCoord2fARB, target, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2fARB"); } } public void MultiTexCoord2fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2fvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2fvARB)) { try { MH_glMultiTexCoord2fvARB.invokeExact(PFN_glMultiTexCoord2fvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2fvARB"); } } public void MultiTexCoord2iARB(@CType("GLenum") int target, @CType("GLint") int s, @CType("GLint") int t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2iARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2iARB)) { try { MH_glMultiTexCoord2iARB.invokeExact(PFN_glMultiTexCoord2iARB, target, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2iARB"); } } public void MultiTexCoord2ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2ivARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2ivARB)) { try { MH_glMultiTexCoord2ivARB.invokeExact(PFN_glMultiTexCoord2ivARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2ivARB"); } } public void MultiTexCoord2sARB(@CType("GLenum") int target, @CType("GLshort") short s, @CType("GLshort") short t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2sARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2sARB)) { try { MH_glMultiTexCoord2sARB.invokeExact(PFN_glMultiTexCoord2sARB, target, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2sARB"); } } public void MultiTexCoord2svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2svARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2svARB)) { try { MH_glMultiTexCoord2svARB.invokeExact(PFN_glMultiTexCoord2svARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2svARB"); } } public void MultiTexCoord3dARB(@CType("GLenum") int target, @CType("GLdouble") double s, @CType("GLdouble") double t, @CType("GLdouble") double r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3dARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3dARB)) { try { MH_glMultiTexCoord3dARB.invokeExact(PFN_glMultiTexCoord3dARB, target, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3dARB"); } } public void MultiTexCoord3dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3dvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3dvARB)) { try { MH_glMultiTexCoord3dvARB.invokeExact(PFN_glMultiTexCoord3dvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3dvARB"); } } public void MultiTexCoord3fARB(@CType("GLenum") int target, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3fARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3fARB)) { try { MH_glMultiTexCoord3fARB.invokeExact(PFN_glMultiTexCoord3fARB, target, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3fARB"); } } public void MultiTexCoord3fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3fvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3fvARB)) { try { MH_glMultiTexCoord3fvARB.invokeExact(PFN_glMultiTexCoord3fvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3fvARB"); } } public void MultiTexCoord3iARB(@CType("GLenum") int target, @CType("GLint") int s, @CType("GLint") int t, @CType("GLint") int r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3iARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3iARB)) { try { MH_glMultiTexCoord3iARB.invokeExact(PFN_glMultiTexCoord3iARB, target, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3iARB"); } } public void MultiTexCoord3ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3ivARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3ivARB)) { try { MH_glMultiTexCoord3ivARB.invokeExact(PFN_glMultiTexCoord3ivARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3ivARB"); } } public void MultiTexCoord3sARB(@CType("GLenum") int target, @CType("GLshort") short s, @CType("GLshort") short t, @CType("GLshort") short r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3sARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3sARB)) { try { MH_glMultiTexCoord3sARB.invokeExact(PFN_glMultiTexCoord3sARB, target, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3sARB"); } } public void MultiTexCoord3svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3svARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3svARB)) { try { MH_glMultiTexCoord3svARB.invokeExact(PFN_glMultiTexCoord3svARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3svARB"); } } public void MultiTexCoord4dARB(@CType("GLenum") int target, @CType("GLdouble") double s, @CType("GLdouble") double t, @CType("GLdouble") double r, @CType("GLdouble") double q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4dARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4dARB)) { try { MH_glMultiTexCoord4dARB.invokeExact(PFN_glMultiTexCoord4dARB, target, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4dARB"); } } public void MultiTexCoord4dvARB(@CType("GLenum") int target, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4dvARB)) { try { MH_glMultiTexCoord4dvARB.invokeExact(PFN_glMultiTexCoord4dvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4dvARB"); } } public void MultiTexCoord4fARB(@CType("GLenum") int target, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4fARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4fARB)) { try { MH_glMultiTexCoord4fARB.invokeExact(PFN_glMultiTexCoord4fARB, target, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4fARB"); } } public void MultiTexCoord4fvARB(@CType("GLenum") int target, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4fvARB)) { try { MH_glMultiTexCoord4fvARB.invokeExact(PFN_glMultiTexCoord4fvARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4fvARB"); } } public void MultiTexCoord4iARB(@CType("GLenum") int target, @CType("GLint") int s, @CType("GLint") int t, @CType("GLint") int r, @CType("GLint") int q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4iARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4iARB)) { try { MH_glMultiTexCoord4iARB.invokeExact(PFN_glMultiTexCoord4iARB, target, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4iARB"); } } public void MultiTexCoord4ivARB(@CType("GLenum") int target, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4ivARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4ivARB)) { try { MH_glMultiTexCoord4ivARB.invokeExact(PFN_glMultiTexCoord4ivARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4ivARB"); } } public void MultiTexCoord4sARB(@CType("GLenum") int target, @CType("GLshort") short s, @CType("GLshort") short t, @CType("GLshort") short r, @CType("GLshort") short q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4sARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4sARB)) { try { MH_glMultiTexCoord4sARB.invokeExact(PFN_glMultiTexCoord4sARB, target, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4sARB"); } } public void MultiTexCoord4svARB(@CType("GLenum") int target, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4svARB)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4svARB)) { try { MH_glMultiTexCoord4svARB.invokeExact(PFN_glMultiTexCoord4svARB, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4svARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java index 0b0503de..3b7e89a2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBOcclusionQuery.java @@ -58,60 +58,59 @@ public GLARBOcclusionQuery(overrungl.opengl.GLLoadFunc func) { } public void GenQueriesARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glGenQueriesARB)) + if (!Unmarshal.isNullPointer(PFN_glGenQueriesARB)) { try { MH_glGenQueriesARB.invokeExact(PFN_glGenQueriesARB, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glGenQueriesARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenQueriesARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenQueriesARB"); } } public void DeleteQueriesARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteQueriesARB)) + if (!Unmarshal.isNullPointer(PFN_glDeleteQueriesARB)) { try { MH_glDeleteQueriesARB.invokeExact(PFN_glDeleteQueriesARB, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteQueriesARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteQueriesARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteQueriesARB"); } } public @CType("GLboolean") boolean IsQueryARB(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsQueryARB)) + if (!Unmarshal.isNullPointer(PFN_glIsQueryARB)) { try { return (boolean) MH_glIsQueryARB.invokeExact(PFN_glIsQueryARB, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsQueryARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsQueryARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsQueryARB"); } } public void BeginQueryARB(@CType("GLenum") int target, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginQueryARB)) + if (!Unmarshal.isNullPointer(PFN_glBeginQueryARB)) { try { MH_glBeginQueryARB.invokeExact(PFN_glBeginQueryARB, target, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginQueryARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginQueryARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginQueryARB"); } } public void EndQueryARB(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glEndQueryARB)) + if (!Unmarshal.isNullPointer(PFN_glEndQueryARB)) { try { MH_glEndQueryARB.invokeExact(PFN_glEndQueryARB, target); - } - catch (Throwable e) { throw new RuntimeException("error in glEndQueryARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndQueryARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndQueryARB"); } } public void GetQueryivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryivARB)) { try { MH_glGetQueryivARB.invokeExact(PFN_glGetQueryivARB, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryivARB"); } } public void GetQueryObjectivARB(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectivARB)) { try { MH_glGetQueryObjectivARB.invokeExact(PFN_glGetQueryObjectivARB, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectivARB"); } } public void GetQueryObjectuivARB(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectuivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectuivARB)) { try { MH_glGetQueryObjectuivARB.invokeExact(PFN_glGetQueryObjectuivARB, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectuivARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java index 1916bb57..7ae5981a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBParallelShaderCompile.java @@ -34,10 +34,10 @@ public GLARBParallelShaderCompile(overrungl.opengl.GLLoadFunc func) { } public void MaxShaderCompilerThreadsARB(@CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glMaxShaderCompilerThreadsARB)) + if (!Unmarshal.isNullPointer(PFN_glMaxShaderCompilerThreadsARB)) { try { MH_glMaxShaderCompilerThreadsARB.invokeExact(PFN_glMaxShaderCompilerThreadsARB, count); - } - catch (Throwable e) { throw new RuntimeException("error in glMaxShaderCompilerThreadsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMaxShaderCompilerThreadsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMaxShaderCompilerThreadsARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java index c1624c12..bbd8be0c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPointParameters.java @@ -39,17 +39,17 @@ public GLARBPointParameters(overrungl.opengl.GLLoadFunc func) { } public void PointParameterfARB(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfARB)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfARB)) { try { MH_glPointParameterfARB.invokeExact(PFN_glPointParameterfARB, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfARB"); } } public void PointParameterfvARB(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfvARB)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfvARB)) { try { MH_glPointParameterfvARB.invokeExact(PFN_glPointParameterfvARB, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfvARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java index bb2ba558..8ad96f5e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBPolygonOffsetClamp.java @@ -33,10 +33,10 @@ public GLARBPolygonOffsetClamp(overrungl.opengl.GLLoadFunc func) { } public void PolygonOffsetClamp(@CType("GLfloat") float factor, @CType("GLfloat") float units, @CType("GLfloat") float clamp) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClamp)) + if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClamp)) { try { MH_glPolygonOffsetClamp.invokeExact(PFN_glPolygonOffsetClamp, factor, units, clamp); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClamp", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClamp", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonOffsetClamp"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java index dac40f29..822c7e25 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProgramInterfaceQuery.java @@ -97,48 +97,45 @@ public GLARBProgramInterfaceQuery(overrungl.opengl.GLLoadFunc func) { } public void GetProgramInterfaceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramInterfaceiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramInterfaceiv)) { try { MH_glGetProgramInterfaceiv.invokeExact(PFN_glGetProgramInterfaceiv, program, programInterface, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramInterfaceiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramInterfaceiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramInterfaceiv"); } } public @CType("GLuint") int GetProgramResourceIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceIndex)) { try { return (int) MH_glGetProgramResourceIndex.invokeExact(PFN_glGetProgramResourceIndex, program, programInterface, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceIndex"); } } public void GetProgramResourceName(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceName)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceName)) { try { MH_glGetProgramResourceName.invokeExact(PFN_glGetProgramResourceName, program, programInterface, index, bufSize, length, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceName"); } } public void GetProgramResourceiv(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int propCount, @CType("const GLenum *") java.lang.foreign.MemorySegment props, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceiv)) { try { MH_glGetProgramResourceiv.invokeExact(PFN_glGetProgramResourceiv, program, programInterface, index, propCount, props, count, length, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceiv"); } } public @CType("GLint") int GetProgramResourceLocation(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocation)) { try { return (int) MH_glGetProgramResourceLocation.invokeExact(PFN_glGetProgramResourceLocation, program, programInterface, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceLocation"); } } public @CType("GLint") int GetProgramResourceLocationIndex(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocationIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourceLocationIndex)) { try { return (int) MH_glGetProgramResourceLocationIndex.invokeExact(PFN_glGetProgramResourceLocationIndex, program, programInterface, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocationIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourceLocationIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourceLocationIndex"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java index 344e2e8e..7aa063ea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBProvokingVertex.java @@ -36,10 +36,10 @@ public GLARBProvokingVertex(overrungl.opengl.GLLoadFunc func) { } public void ProvokingVertex(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glProvokingVertex)) + if (!Unmarshal.isNullPointer(PFN_glProvokingVertex)) { try { MH_glProvokingVertex.invokeExact(PFN_glProvokingVertex, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glProvokingVertex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProvokingVertex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProvokingVertex"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java index 27b8788a..352967b1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBRobustness.java @@ -96,144 +96,143 @@ public GLARBRobustness(overrungl.opengl.GLLoadFunc func) { } public @CType("GLenum") int GetGraphicsResetStatusARB() { - try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatusARB)) + if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatusARB)) { try { return (int) MH_glGetGraphicsResetStatusARB.invokeExact(PFN_glGetGraphicsResetStatusARB); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatusARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatusARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetGraphicsResetStatusARB"); } } public void GetnTexImageARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment img) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnTexImageARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnTexImageARB)) { try { MH_glGetnTexImageARB.invokeExact(PFN_glGetnTexImageARB, target, level, format, type, bufSize, img); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnTexImageARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnTexImageARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnTexImageARB"); } } public void ReadnPixelsARB(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glReadnPixelsARB)) + if (!Unmarshal.isNullPointer(PFN_glReadnPixelsARB)) { try { MH_glReadnPixelsARB.invokeExact(PFN_glReadnPixelsARB, x, y, width, height, format, type, bufSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glReadnPixelsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadnPixelsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadnPixelsARB"); } } public void GetnCompressedTexImageARB(@CType("GLenum") int target, @CType("GLint") int lod, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment img) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnCompressedTexImageARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnCompressedTexImageARB)) { try { MH_glGetnCompressedTexImageARB.invokeExact(PFN_glGetnCompressedTexImageARB, target, lod, bufSize, img); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnCompressedTexImageARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnCompressedTexImageARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnCompressedTexImageARB"); } } public void GetnUniformfvARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformfvARB)) { try { MH_glGetnUniformfvARB.invokeExact(PFN_glGetnUniformfvARB, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformfvARB"); } } public void GetnUniformivARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformivARB)) { try { MH_glGetnUniformivARB.invokeExact(PFN_glGetnUniformivARB, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformivARB"); } } public void GetnUniformuivARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformuivARB)) { try { MH_glGetnUniformuivARB.invokeExact(PFN_glGetnUniformuivARB, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformuivARB"); } } public void GetnUniformdvARB(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformdvARB)) { try { MH_glGetnUniformdvARB.invokeExact(PFN_glGetnUniformdvARB, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformdvARB"); } } public void GetnMapdvARB(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLsizei") int bufSize, @CType("GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnMapdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnMapdvARB)) { try { MH_glGetnMapdvARB.invokeExact(PFN_glGetnMapdvARB, target, query, bufSize, v); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnMapdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnMapdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnMapdvARB"); } } public void GetnMapfvARB(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnMapfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnMapfvARB)) { try { MH_glGetnMapfvARB.invokeExact(PFN_glGetnMapfvARB, target, query, bufSize, v); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnMapfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnMapfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnMapfvARB"); } } public void GetnMapivARB(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnMapivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnMapivARB)) { try { MH_glGetnMapivARB.invokeExact(PFN_glGetnMapivARB, target, query, bufSize, v); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnMapivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnMapivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnMapivARB"); } } public void GetnPixelMapfvARB(@CType("GLenum") int map, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapfvARB)) { try { MH_glGetnPixelMapfvARB.invokeExact(PFN_glGetnPixelMapfvARB, map, bufSize, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnPixelMapfvARB"); } } public void GetnPixelMapuivARB(@CType("GLenum") int map, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapuivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapuivARB)) { try { MH_glGetnPixelMapuivARB.invokeExact(PFN_glGetnPixelMapuivARB, map, bufSize, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnPixelMapuivARB"); } } public void GetnPixelMapusvARB(@CType("GLenum") int map, @CType("GLsizei") int bufSize, @CType("GLushort *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapusvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnPixelMapusvARB)) { try { MH_glGetnPixelMapusvARB.invokeExact(PFN_glGetnPixelMapusvARB, map, bufSize, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapusvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnPixelMapusvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnPixelMapusvARB"); } } public void GetnPolygonStippleARB(@CType("GLsizei") int bufSize, @CType("GLubyte *") java.lang.foreign.MemorySegment pattern) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnPolygonStippleARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnPolygonStippleARB)) { try { MH_glGetnPolygonStippleARB.invokeExact(PFN_glGetnPolygonStippleARB, bufSize, pattern); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnPolygonStippleARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnPolygonStippleARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnPolygonStippleARB"); } } public void GetnColorTableARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment table) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnColorTableARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnColorTableARB)) { try { MH_glGetnColorTableARB.invokeExact(PFN_glGetnColorTableARB, target, format, type, bufSize, table); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnColorTableARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnColorTableARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnColorTableARB"); } } public void GetnConvolutionFilterARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnConvolutionFilterARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnConvolutionFilterARB)) { try { MH_glGetnConvolutionFilterARB.invokeExact(PFN_glGetnConvolutionFilterARB, target, format, type, bufSize, image); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnConvolutionFilterARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnConvolutionFilterARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnConvolutionFilterARB"); } } public void GetnSeparableFilterARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int rowBufSize, @CType("void*") java.lang.foreign.MemorySegment row, @CType("GLsizei") int columnBufSize, @CType("void*") java.lang.foreign.MemorySegment column, @CType("void*") java.lang.foreign.MemorySegment span) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnSeparableFilterARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnSeparableFilterARB)) { try { MH_glGetnSeparableFilterARB.invokeExact(PFN_glGetnSeparableFilterARB, target, format, type, rowBufSize, row, columnBufSize, column, span); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnSeparableFilterARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnSeparableFilterARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnSeparableFilterARB"); } } public void GetnHistogramARB(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnHistogramARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnHistogramARB)) { try { MH_glGetnHistogramARB.invokeExact(PFN_glGetnHistogramARB, target, reset, format, type, bufSize, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnHistogramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnHistogramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnHistogramARB"); } } public void GetnMinmaxARB(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnMinmaxARB)) + if (!Unmarshal.isNullPointer(PFN_glGetnMinmaxARB)) { try { MH_glGetnMinmaxARB.invokeExact(PFN_glGetnMinmaxARB, target, reset, format, type, bufSize, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnMinmaxARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnMinmaxARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnMinmaxARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java index 30efc6b3..a8782036 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleLocations.java @@ -46,24 +46,24 @@ public GLARBSampleLocations(overrungl.opengl.GLLoadFunc func) { } public void FramebufferSampleLocationsfvARB(@CType("GLenum") int target, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferSampleLocationsfvARB)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferSampleLocationsfvARB)) { try { MH_glFramebufferSampleLocationsfvARB.invokeExact(PFN_glFramebufferSampleLocationsfvARB, target, start, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferSampleLocationsfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferSampleLocationsfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferSampleLocationsfvARB"); } } public void NamedFramebufferSampleLocationsfvARB(@CType("GLuint") int framebuffer, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSampleLocationsfvARB)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSampleLocationsfvARB)) { try { MH_glNamedFramebufferSampleLocationsfvARB.invokeExact(PFN_glNamedFramebufferSampleLocationsfvARB, framebuffer, start, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSampleLocationsfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSampleLocationsfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferSampleLocationsfvARB"); } } public void EvaluateDepthValuesARB() { - try { if (!Unmarshal.isNullPointer(PFN_glEvaluateDepthValuesARB)) + if (!Unmarshal.isNullPointer(PFN_glEvaluateDepthValuesARB)) { try { MH_glEvaluateDepthValuesARB.invokeExact(PFN_glEvaluateDepthValuesARB); - } - catch (Throwable e) { throw new RuntimeException("error in glEvaluateDepthValuesARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEvaluateDepthValuesARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEvaluateDepthValuesARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java index 0dfaff68..69ef35bb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSampleShading.java @@ -34,10 +34,10 @@ public GLARBSampleShading(overrungl.opengl.GLLoadFunc func) { } public void MinSampleShadingARB(@CType("GLfloat") float value) { - try { if (!Unmarshal.isNullPointer(PFN_glMinSampleShadingARB)) + if (!Unmarshal.isNullPointer(PFN_glMinSampleShadingARB)) { try { MH_glMinSampleShadingARB.invokeExact(PFN_glMinSampleShadingARB, value); - } - catch (Throwable e) { throw new RuntimeException("error in glMinSampleShadingARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMinSampleShadingARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMinSampleShadingARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java index a17a677c..f5e3dbb0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSamplerObjects.java @@ -72,102 +72,101 @@ public GLARBSamplerObjects(overrungl.opengl.GLLoadFunc func) { } public void GenSamplers(@CType("GLsizei") int count, @CType("GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenSamplers)) + if (!Unmarshal.isNullPointer(PFN_glGenSamplers)) { try { MH_glGenSamplers.invokeExact(PFN_glGenSamplers, count, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenSamplers"); } } public void DeleteSamplers(@CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment samplers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteSamplers)) + if (!Unmarshal.isNullPointer(PFN_glDeleteSamplers)) { try { MH_glDeleteSamplers.invokeExact(PFN_glDeleteSamplers, count, samplers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteSamplers", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteSamplers", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteSamplers"); } } public @CType("GLboolean") boolean IsSampler(@CType("GLuint") int sampler) { - try { if (!Unmarshal.isNullPointer(PFN_glIsSampler)) + if (!Unmarshal.isNullPointer(PFN_glIsSampler)) { try { return (boolean) MH_glIsSampler.invokeExact(PFN_glIsSampler, sampler); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsSampler", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsSampler", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsSampler"); } } public void BindSampler(@CType("GLuint") int unit, @CType("GLuint") int sampler) { - try { if (!Unmarshal.isNullPointer(PFN_glBindSampler)) + if (!Unmarshal.isNullPointer(PFN_glBindSampler)) { try { MH_glBindSampler.invokeExact(PFN_glBindSampler, unit, sampler); - } - catch (Throwable e) { throw new RuntimeException("error in glBindSampler", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindSampler", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindSampler"); } } public void SamplerParameteri(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteri)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameteri)) { try { MH_glSamplerParameteri.invokeExact(PFN_glSamplerParameteri, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameteri"); } } public void SamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameteriv)) { try { MH_glSamplerParameteriv.invokeExact(PFN_glSamplerParameteriv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameteriv"); } } public void SamplerParameterf(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterf)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterf)) { try { MH_glSamplerParameterf.invokeExact(PFN_glSamplerParameterf, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterf"); } } public void SamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterfv)) { try { MH_glSamplerParameterfv.invokeExact(PFN_glSamplerParameterfv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterfv"); } } public void SamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIiv)) { try { MH_glSamplerParameterIiv.invokeExact(PFN_glSamplerParameterIiv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterIiv"); } } public void SamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glSamplerParameterIuiv)) { try { MH_glSamplerParameterIuiv.invokeExact(PFN_glSamplerParameterIuiv, sampler, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplerParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplerParameterIuiv"); } } public void GetSamplerParameteriv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameteriv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameteriv)) { try { MH_glGetSamplerParameteriv.invokeExact(PFN_glGetSamplerParameteriv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameteriv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameteriv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameteriv"); } } public void GetSamplerParameterIiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIiv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIiv)) { try { MH_glGetSamplerParameterIiv.invokeExact(PFN_glGetSamplerParameterIiv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameterIiv"); } } public void GetSamplerParameterfv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterfv)) { try { MH_glGetSamplerParameterfv.invokeExact(PFN_glGetSamplerParameterfv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameterfv"); } } public void GetSamplerParameterIuiv(@CType("GLuint") int sampler, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetSamplerParameterIuiv)) { try { MH_glGetSamplerParameterIuiv.invokeExact(PFN_glGetSamplerParameterIuiv, sampler, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSamplerParameterIuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSamplerParameterIuiv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java index 48d1c3b8..ae5b50bf 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSeparateShaderObjects.java @@ -221,432 +221,430 @@ public GLARBSeparateShaderObjects(overrungl.opengl.GLLoadFunc func) { } public void UseProgramStages(@CType("GLuint") int pipeline, @CType("GLbitfield") int stages, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glUseProgramStages)) + if (!Unmarshal.isNullPointer(PFN_glUseProgramStages)) { try { MH_glUseProgramStages.invokeExact(PFN_glUseProgramStages, pipeline, stages, program); - } - catch (Throwable e) { throw new RuntimeException("error in glUseProgramStages", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUseProgramStages", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUseProgramStages"); } } public void ActiveShaderProgram(@CType("GLuint") int pipeline, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgram)) + if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgram)) { try { MH_glActiveShaderProgram.invokeExact(PFN_glActiveShaderProgram, pipeline, program); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgram", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgram", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveShaderProgram"); } } public @CType("GLuint") int CreateShaderProgramv(@CType("GLenum") int type, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment strings) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramv)) + if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramv)) { try { return (int) MH_glCreateShaderProgramv.invokeExact(PFN_glCreateShaderProgramv, type, count, strings); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateShaderProgramv"); } } public void BindProgramPipeline(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glBindProgramPipeline)) + if (!Unmarshal.isNullPointer(PFN_glBindProgramPipeline)) { try { MH_glBindProgramPipeline.invokeExact(PFN_glBindProgramPipeline, pipeline); - } - catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipeline", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipeline", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindProgramPipeline"); } } public void DeleteProgramPipelines(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelines)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelines)) { try { MH_glDeleteProgramPipelines.invokeExact(PFN_glDeleteProgramPipelines, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelines", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelines", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgramPipelines"); } } public void GenProgramPipelines(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelines)) + if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelines)) { try { MH_glGenProgramPipelines.invokeExact(PFN_glGenProgramPipelines, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelines", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelines", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenProgramPipelines"); } } public @CType("GLboolean") boolean IsProgramPipeline(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgramPipeline)) + if (!Unmarshal.isNullPointer(PFN_glIsProgramPipeline)) { try { return (boolean) MH_glIsProgramPipeline.invokeExact(PFN_glIsProgramPipeline, pipeline); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipeline", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipeline", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgramPipeline"); } } public void GetProgramPipelineiv(@CType("GLuint") int pipeline, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineiv)) { try { MH_glGetProgramPipelineiv.invokeExact(PFN_glGetProgramPipelineiv, pipeline, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramPipelineiv"); } } public void ProgramParameteri(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameteri)) { try { MH_glProgramParameteri.invokeExact(PFN_glProgramParameteri, program, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameteri"); } } public void ProgramUniform1i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i)) { try { MH_glProgramUniform1i.invokeExact(PFN_glProgramUniform1i, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i"); } } public void ProgramUniform1iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iv)) { try { MH_glProgramUniform1iv.invokeExact(PFN_glProgramUniform1iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1iv"); } } public void ProgramUniform1f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1f)) { try { MH_glProgramUniform1f.invokeExact(PFN_glProgramUniform1f, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1f"); } } public void ProgramUniform1fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fv)) { try { MH_glProgramUniform1fv.invokeExact(PFN_glProgramUniform1fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1fv"); } } public void ProgramUniform1d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1d)) { try { MH_glProgramUniform1d.invokeExact(PFN_glProgramUniform1d, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1d"); } } public void ProgramUniform1dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dv)) { try { MH_glProgramUniform1dv.invokeExact(PFN_glProgramUniform1dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1dv"); } } public void ProgramUniform1ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui)) { try { MH_glProgramUniform1ui.invokeExact(PFN_glProgramUniform1ui, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui"); } } public void ProgramUniform1uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiv)) { try { MH_glProgramUniform1uiv.invokeExact(PFN_glProgramUniform1uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1uiv"); } } public void ProgramUniform2i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i)) { try { MH_glProgramUniform2i.invokeExact(PFN_glProgramUniform2i, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i"); } } public void ProgramUniform2iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iv)) { try { MH_glProgramUniform2iv.invokeExact(PFN_glProgramUniform2iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2iv"); } } public void ProgramUniform2f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2f)) { try { MH_glProgramUniform2f.invokeExact(PFN_glProgramUniform2f, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2f"); } } public void ProgramUniform2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fv)) { try { MH_glProgramUniform2fv.invokeExact(PFN_glProgramUniform2fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2fv"); } } public void ProgramUniform2d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2d)) { try { MH_glProgramUniform2d.invokeExact(PFN_glProgramUniform2d, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2d"); } } public void ProgramUniform2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dv)) { try { MH_glProgramUniform2dv.invokeExact(PFN_glProgramUniform2dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2dv"); } } public void ProgramUniform2ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui)) { try { MH_glProgramUniform2ui.invokeExact(PFN_glProgramUniform2ui, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui"); } } public void ProgramUniform2uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiv)) { try { MH_glProgramUniform2uiv.invokeExact(PFN_glProgramUniform2uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2uiv"); } } public void ProgramUniform3i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i)) { try { MH_glProgramUniform3i.invokeExact(PFN_glProgramUniform3i, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i"); } } public void ProgramUniform3iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iv)) { try { MH_glProgramUniform3iv.invokeExact(PFN_glProgramUniform3iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3iv"); } } public void ProgramUniform3f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3f)) { try { MH_glProgramUniform3f.invokeExact(PFN_glProgramUniform3f, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3f"); } } public void ProgramUniform3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fv)) { try { MH_glProgramUniform3fv.invokeExact(PFN_glProgramUniform3fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3fv"); } } public void ProgramUniform3d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3d)) { try { MH_glProgramUniform3d.invokeExact(PFN_glProgramUniform3d, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3d"); } } public void ProgramUniform3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dv)) { try { MH_glProgramUniform3dv.invokeExact(PFN_glProgramUniform3dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3dv"); } } public void ProgramUniform3ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui)) { try { MH_glProgramUniform3ui.invokeExact(PFN_glProgramUniform3ui, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui"); } } public void ProgramUniform3uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiv)) { try { MH_glProgramUniform3uiv.invokeExact(PFN_glProgramUniform3uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3uiv"); } } public void ProgramUniform4i(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i)) { try { MH_glProgramUniform4i.invokeExact(PFN_glProgramUniform4i, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i"); } } public void ProgramUniform4iv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iv)) { try { MH_glProgramUniform4iv.invokeExact(PFN_glProgramUniform4iv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4iv"); } } public void ProgramUniform4f(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4f)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4f)) { try { MH_glProgramUniform4f.invokeExact(PFN_glProgramUniform4f, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4f", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4f", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4f"); } } public void ProgramUniform4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fv)) { try { MH_glProgramUniform4fv.invokeExact(PFN_glProgramUniform4fv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4fv"); } } public void ProgramUniform4d(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double v0, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLdouble") double v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4d)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4d)) { try { MH_glProgramUniform4d.invokeExact(PFN_glProgramUniform4d, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4d"); } } public void ProgramUniform4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dv)) { try { MH_glProgramUniform4dv.invokeExact(PFN_glProgramUniform4dv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4dv"); } } public void ProgramUniform4ui(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui)) { try { MH_glProgramUniform4ui.invokeExact(PFN_glProgramUniform4ui, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui"); } } public void ProgramUniform4uiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiv)) { try { MH_glProgramUniform4uiv.invokeExact(PFN_glProgramUniform4uiv, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4uiv"); } } public void ProgramUniformMatrix2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fv)) { try { MH_glProgramUniformMatrix2fv.invokeExact(PFN_glProgramUniformMatrix2fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2fv"); } } public void ProgramUniformMatrix3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fv)) { try { MH_glProgramUniformMatrix3fv.invokeExact(PFN_glProgramUniformMatrix3fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3fv"); } } public void ProgramUniformMatrix4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fv)) { try { MH_glProgramUniformMatrix4fv.invokeExact(PFN_glProgramUniformMatrix4fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4fv"); } } public void ProgramUniformMatrix2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dv)) { try { MH_glProgramUniformMatrix2dv.invokeExact(PFN_glProgramUniformMatrix2dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2dv"); } } public void ProgramUniformMatrix3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dv)) { try { MH_glProgramUniformMatrix3dv.invokeExact(PFN_glProgramUniformMatrix3dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3dv"); } } public void ProgramUniformMatrix4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dv)) { try { MH_glProgramUniformMatrix4dv.invokeExact(PFN_glProgramUniformMatrix4dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4dv"); } } public void ProgramUniformMatrix2x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fv)) { try { MH_glProgramUniformMatrix2x3fv.invokeExact(PFN_glProgramUniformMatrix2x3fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3fv"); } } public void ProgramUniformMatrix3x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fv)) { try { MH_glProgramUniformMatrix3x2fv.invokeExact(PFN_glProgramUniformMatrix3x2fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2fv"); } } public void ProgramUniformMatrix2x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fv)) { try { MH_glProgramUniformMatrix2x4fv.invokeExact(PFN_glProgramUniformMatrix2x4fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4fv"); } } public void ProgramUniformMatrix4x2fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fv)) { try { MH_glProgramUniformMatrix4x2fv.invokeExact(PFN_glProgramUniformMatrix4x2fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2fv"); } } public void ProgramUniformMatrix3x4fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fv)) { try { MH_glProgramUniformMatrix3x4fv.invokeExact(PFN_glProgramUniformMatrix3x4fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4fv"); } } public void ProgramUniformMatrix4x3fv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fv)) { try { MH_glProgramUniformMatrix4x3fv.invokeExact(PFN_glProgramUniformMatrix4x3fv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3fv"); } } public void ProgramUniformMatrix2x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dv)) { try { MH_glProgramUniformMatrix2x3dv.invokeExact(PFN_glProgramUniformMatrix2x3dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3dv"); } } public void ProgramUniformMatrix3x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dv)) { try { MH_glProgramUniformMatrix3x2dv.invokeExact(PFN_glProgramUniformMatrix3x2dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2dv"); } } public void ProgramUniformMatrix2x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dv)) { try { MH_glProgramUniformMatrix2x4dv.invokeExact(PFN_glProgramUniformMatrix2x4dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4dv"); } } public void ProgramUniformMatrix4x2dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dv)) { try { MH_glProgramUniformMatrix4x2dv.invokeExact(PFN_glProgramUniformMatrix4x2dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2dv"); } } public void ProgramUniformMatrix3x4dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dv)) { try { MH_glProgramUniformMatrix3x4dv.invokeExact(PFN_glProgramUniformMatrix3x4dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4dv"); } } public void ProgramUniformMatrix4x3dv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dv)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dv)) { try { MH_glProgramUniformMatrix4x3dv.invokeExact(PFN_glProgramUniformMatrix4x3dv, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3dv"); } } public void ValidateProgramPipeline(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipeline)) + if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipeline)) { try { MH_glValidateProgramPipeline.invokeExact(PFN_glValidateProgramPipeline, pipeline); - } - catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipeline", e); } + } catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipeline", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glValidateProgramPipeline"); } } public void GetProgramPipelineInfoLog(@CType("GLuint") int pipeline, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLog)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLog)) { try { MH_glGetProgramPipelineInfoLog.invokeExact(PFN_glGetProgramPipelineInfoLog, pipeline, bufSize, length, infoLog); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLog", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLog", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramPipelineInfoLog"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java index 7f3a940c..15e1a13c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderAtomicCounters.java @@ -61,10 +61,10 @@ public GLARBShaderAtomicCounters(overrungl.opengl.GLLoadFunc func) { } public void GetActiveAtomicCounterBufferiv(@CType("GLuint") int program, @CType("GLuint") int bufferIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAtomicCounterBufferiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveAtomicCounterBufferiv)) { try { MH_glGetActiveAtomicCounterBufferiv.invokeExact(PFN_glGetActiveAtomicCounterBufferiv, program, bufferIndex, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveAtomicCounterBufferiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveAtomicCounterBufferiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveAtomicCounterBufferiv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java index c67cff20..398748e3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderImageLoadStore.java @@ -99,17 +99,17 @@ public GLARBShaderImageLoadStore(overrungl.opengl.GLLoadFunc func) { } public void BindImageTexture(@CType("GLuint") int unit, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int access, @CType("GLenum") int format) { - try { if (!Unmarshal.isNullPointer(PFN_glBindImageTexture)) + if (!Unmarshal.isNullPointer(PFN_glBindImageTexture)) { try { MH_glBindImageTexture.invokeExact(PFN_glBindImageTexture, unit, texture, level, layered, layer, access, format); - } - catch (Throwable e) { throw new RuntimeException("error in glBindImageTexture", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindImageTexture", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindImageTexture"); } } public void MemoryBarrier(@CType("GLbitfield") int barriers) { - try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrier)) + if (!Unmarshal.isNullPointer(PFN_glMemoryBarrier)) { try { MH_glMemoryBarrier.invokeExact(PFN_glMemoryBarrier, barriers); - } - catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrier", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrier", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMemoryBarrier"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java index 4a23d336..8f1333a7 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderObjects.java @@ -180,280 +180,276 @@ public GLARBShaderObjects(overrungl.opengl.GLLoadFunc func) { } public void DeleteObjectARB(@CType("GLhandleARB") int obj) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteObjectARB)) + if (!Unmarshal.isNullPointer(PFN_glDeleteObjectARB)) { try { MH_glDeleteObjectARB.invokeExact(PFN_glDeleteObjectARB, obj); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteObjectARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteObjectARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteObjectARB"); } } public @CType("GLhandleARB") int GetHandleARB(@CType("GLenum") int pname) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHandleARB)) + if (!Unmarshal.isNullPointer(PFN_glGetHandleARB)) { try { return (int) MH_glGetHandleARB.invokeExact(PFN_glGetHandleARB, pname); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetHandleARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHandleARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHandleARB"); } } public void DetachObjectARB(@CType("GLhandleARB") int containerObj, @CType("GLhandleARB") int attachedObj) { - try { if (!Unmarshal.isNullPointer(PFN_glDetachObjectARB)) + if (!Unmarshal.isNullPointer(PFN_glDetachObjectARB)) { try { MH_glDetachObjectARB.invokeExact(PFN_glDetachObjectARB, containerObj, attachedObj); - } - catch (Throwable e) { throw new RuntimeException("error in glDetachObjectARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDetachObjectARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDetachObjectARB"); } } public @CType("GLhandleARB") int CreateShaderObjectARB(@CType("GLenum") int shaderType) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderObjectARB)) + if (!Unmarshal.isNullPointer(PFN_glCreateShaderObjectARB)) { try { return (int) MH_glCreateShaderObjectARB.invokeExact(PFN_glCreateShaderObjectARB, shaderType); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateShaderObjectARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateShaderObjectARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateShaderObjectARB"); } } public void ShaderSourceARB(@CType("GLhandleARB") int shaderObj, @CType("GLsizei") int count, @CType("const GLcharARB **") java.lang.foreign.MemorySegment string, @CType("const GLint *") java.lang.foreign.MemorySegment length) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderSourceARB)) + if (!Unmarshal.isNullPointer(PFN_glShaderSourceARB)) { try { MH_glShaderSourceARB.invokeExact(PFN_glShaderSourceARB, shaderObj, count, string, length); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderSourceARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderSourceARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderSourceARB"); } } public void CompileShaderARB(@CType("GLhandleARB") int shaderObj) { - try { if (!Unmarshal.isNullPointer(PFN_glCompileShaderARB)) + if (!Unmarshal.isNullPointer(PFN_glCompileShaderARB)) { try { MH_glCompileShaderARB.invokeExact(PFN_glCompileShaderARB, shaderObj); - } - catch (Throwable e) { throw new RuntimeException("error in glCompileShaderARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompileShaderARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompileShaderARB"); } } public @CType("GLhandleARB") int CreateProgramObjectARB() { - try { if (!Unmarshal.isNullPointer(PFN_glCreateProgramObjectARB)) + if (!Unmarshal.isNullPointer(PFN_glCreateProgramObjectARB)) { try { return (int) MH_glCreateProgramObjectARB.invokeExact(PFN_glCreateProgramObjectARB); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateProgramObjectARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateProgramObjectARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateProgramObjectARB"); } } public void AttachObjectARB(@CType("GLhandleARB") int containerObj, @CType("GLhandleARB") int obj) { - try { if (!Unmarshal.isNullPointer(PFN_glAttachObjectARB)) + if (!Unmarshal.isNullPointer(PFN_glAttachObjectARB)) { try { MH_glAttachObjectARB.invokeExact(PFN_glAttachObjectARB, containerObj, obj); - } - catch (Throwable e) { throw new RuntimeException("error in glAttachObjectARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAttachObjectARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAttachObjectARB"); } } public void LinkProgramARB(@CType("GLhandleARB") int programObj) { - try { if (!Unmarshal.isNullPointer(PFN_glLinkProgramARB)) + if (!Unmarshal.isNullPointer(PFN_glLinkProgramARB)) { try { MH_glLinkProgramARB.invokeExact(PFN_glLinkProgramARB, programObj); - } - catch (Throwable e) { throw new RuntimeException("error in glLinkProgramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLinkProgramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLinkProgramARB"); } } public void UseProgramObjectARB(@CType("GLhandleARB") int programObj) { - try { if (!Unmarshal.isNullPointer(PFN_glUseProgramObjectARB)) + if (!Unmarshal.isNullPointer(PFN_glUseProgramObjectARB)) { try { MH_glUseProgramObjectARB.invokeExact(PFN_glUseProgramObjectARB, programObj); - } - catch (Throwable e) { throw new RuntimeException("error in glUseProgramObjectARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUseProgramObjectARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUseProgramObjectARB"); } } public void ValidateProgramARB(@CType("GLhandleARB") int programObj) { - try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramARB)) + if (!Unmarshal.isNullPointer(PFN_glValidateProgramARB)) { try { MH_glValidateProgramARB.invokeExact(PFN_glValidateProgramARB, programObj); - } - catch (Throwable e) { throw new RuntimeException("error in glValidateProgramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glValidateProgramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glValidateProgramARB"); } } public void Uniform1fARB(@CType("GLint") int location, @CType("GLfloat") float v0) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1fARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1fARB)) { try { MH_glUniform1fARB.invokeExact(PFN_glUniform1fARB, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1fARB"); } } public void Uniform2fARB(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2fARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2fARB)) { try { MH_glUniform2fARB.invokeExact(PFN_glUniform2fARB, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2fARB"); } } public void Uniform3fARB(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3fARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3fARB)) { try { MH_glUniform3fARB.invokeExact(PFN_glUniform3fARB, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3fARB"); } } public void Uniform4fARB(@CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4fARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4fARB)) { try { MH_glUniform4fARB.invokeExact(PFN_glUniform4fARB, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4fARB"); } } public void Uniform1iARB(@CType("GLint") int location, @CType("GLint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1iARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1iARB)) { try { MH_glUniform1iARB.invokeExact(PFN_glUniform1iARB, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1iARB"); } } public void Uniform2iARB(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2iARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2iARB)) { try { MH_glUniform2iARB.invokeExact(PFN_glUniform2iARB, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2iARB"); } } public void Uniform3iARB(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3iARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3iARB)) { try { MH_glUniform3iARB.invokeExact(PFN_glUniform3iARB, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3iARB"); } } public void Uniform4iARB(@CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4iARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4iARB)) { try { MH_glUniform4iARB.invokeExact(PFN_glUniform4iARB, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4iARB"); } } public void Uniform1fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1fvARB)) { try { MH_glUniform1fvARB.invokeExact(PFN_glUniform1fvARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1fvARB"); } } public void Uniform2fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2fvARB)) { try { MH_glUniform2fvARB.invokeExact(PFN_glUniform2fvARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2fvARB"); } } public void Uniform3fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3fvARB)) { try { MH_glUniform3fvARB.invokeExact(PFN_glUniform3fvARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3fvARB"); } } public void Uniform4fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4fvARB)) { try { MH_glUniform4fvARB.invokeExact(PFN_glUniform4fvARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4fvARB"); } } public void Uniform1ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ivARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ivARB)) { try { MH_glUniform1ivARB.invokeExact(PFN_glUniform1ivARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ivARB"); } } public void Uniform2ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ivARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ivARB)) { try { MH_glUniform2ivARB.invokeExact(PFN_glUniform2ivARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ivARB"); } } public void Uniform3ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ivARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ivARB)) { try { MH_glUniform3ivARB.invokeExact(PFN_glUniform3ivARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ivARB"); } } public void Uniform4ivARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ivARB)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ivARB)) { try { MH_glUniform4ivARB.invokeExact(PFN_glUniform4ivARB, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ivARB"); } } public void UniformMatrix2fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix2fvARB)) { try { MH_glUniformMatrix2fvARB.invokeExact(PFN_glUniformMatrix2fvARB, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix2fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix2fvARB"); } } public void UniformMatrix3fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix3fvARB)) { try { MH_glUniformMatrix3fvARB.invokeExact(PFN_glUniformMatrix3fvARB, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix3fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix3fvARB"); } } public void UniformMatrix4fvARB(@CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glUniformMatrix4fvARB)) { try { MH_glUniformMatrix4fvARB.invokeExact(PFN_glUniformMatrix4fvARB, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformMatrix4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformMatrix4fvARB"); } } public void GetObjectParameterfvARB(@CType("GLhandleARB") int obj, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterfvARB)) { try { MH_glGetObjectParameterfvARB.invokeExact(PFN_glGetObjectParameterfvARB, obj, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectParameterfvARB"); } } public void GetObjectParameterivARB(@CType("GLhandleARB") int obj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectParameterivARB)) { try { MH_glGetObjectParameterivARB.invokeExact(PFN_glGetObjectParameterivARB, obj, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectParameterivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectParameterivARB"); } } public void GetInfoLogARB(@CType("GLhandleARB") int obj, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLcharARB *") java.lang.foreign.MemorySegment infoLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInfoLogARB)) + if (!Unmarshal.isNullPointer(PFN_glGetInfoLogARB)) { try { MH_glGetInfoLogARB.invokeExact(PFN_glGetInfoLogARB, obj, maxLength, length, infoLog); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInfoLogARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInfoLogARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInfoLogARB"); } } public void GetAttachedObjectsARB(@CType("GLhandleARB") int containerObj, @CType("GLsizei") int maxCount, @CType("GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLhandleARB *") java.lang.foreign.MemorySegment obj) { - try { if (!Unmarshal.isNullPointer(PFN_glGetAttachedObjectsARB)) + if (!Unmarshal.isNullPointer(PFN_glGetAttachedObjectsARB)) { try { MH_glGetAttachedObjectsARB.invokeExact(PFN_glGetAttachedObjectsARB, containerObj, maxCount, count, obj); - } - catch (Throwable e) { throw new RuntimeException("error in glGetAttachedObjectsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetAttachedObjectsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetAttachedObjectsARB"); } } public @CType("GLint") int GetUniformLocationARB(@CType("GLhandleARB") int programObj, @CType("const GLcharARB *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformLocationARB)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformLocationARB)) { try { return (int) MH_glGetUniformLocationARB.invokeExact(PFN_glGetUniformLocationARB, programObj, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformLocationARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformLocationARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformLocationARB"); } } public void GetActiveUniformARB(@CType("GLhandleARB") int programObj, @CType("GLuint") int index, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLcharARB *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformARB)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformARB)) { try { MH_glGetActiveUniformARB.invokeExact(PFN_glGetActiveUniformARB, programObj, index, maxLength, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformARB"); } } public void GetUniformfvARB(@CType("GLhandleARB") int programObj, @CType("GLint") int location, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformfvARB)) { try { MH_glGetUniformfvARB.invokeExact(PFN_glGetUniformfvARB, programObj, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformfvARB"); } } public void GetUniformivARB(@CType("GLhandleARB") int programObj, @CType("GLint") int location, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformivARB)) { try { MH_glGetUniformivARB.invokeExact(PFN_glGetUniformivARB, programObj, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformivARB"); } } public void GetShaderSourceARB(@CType("GLhandleARB") int obj, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLcharARB *") java.lang.foreign.MemorySegment source) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShaderSourceARB)) + if (!Unmarshal.isNullPointer(PFN_glGetShaderSourceARB)) { try { MH_glGetShaderSourceARB.invokeExact(PFN_glGetShaderSourceARB, obj, maxLength, length, source); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShaderSourceARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShaderSourceARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShaderSourceARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java index 81949dac..c303773b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderStorageBufferObject.java @@ -49,10 +49,10 @@ public GLARBShaderStorageBufferObject(overrungl.opengl.GLLoadFunc func) { } public void ShaderStorageBlockBinding(@CType("GLuint") int program, @CType("GLuint") int storageBlockIndex, @CType("GLuint") int storageBlockBinding) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderStorageBlockBinding)) + if (!Unmarshal.isNullPointer(PFN_glShaderStorageBlockBinding)) { try { MH_glShaderStorageBlockBinding.invokeExact(PFN_glShaderStorageBlockBinding, program, storageBlockIndex, storageBlockBinding); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderStorageBlockBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderStorageBlockBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderStorageBlockBinding"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java index 15efcc9c..e391b6fd 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShaderSubroutine.java @@ -64,61 +64,59 @@ public GLARBShaderSubroutine(overrungl.opengl.GLLoadFunc func) { } public @CType("GLint") int GetSubroutineUniformLocation(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineUniformLocation)) + if (!Unmarshal.isNullPointer(PFN_glGetSubroutineUniformLocation)) { try { return (int) MH_glGetSubroutineUniformLocation.invokeExact(PFN_glGetSubroutineUniformLocation, program, shadertype, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineUniformLocation", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineUniformLocation", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSubroutineUniformLocation"); } } public @CType("GLuint") int GetSubroutineIndex(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSubroutineIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetSubroutineIndex)) { try { return (int) MH_glGetSubroutineIndex.invokeExact(PFN_glGetSubroutineIndex, program, shadertype, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSubroutineIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSubroutineIndex"); } } public void GetActiveSubroutineUniformiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformiv)) { try { MH_glGetActiveSubroutineUniformiv.invokeExact(PFN_glGetActiveSubroutineUniformiv, program, shadertype, index, pname, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveSubroutineUniformiv"); } } public void GetActiveSubroutineUniformName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineUniformName)) { try { MH_glGetActiveSubroutineUniformName.invokeExact(PFN_glGetActiveSubroutineUniformName, program, shadertype, index, bufSize, length, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineUniformName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveSubroutineUniformName"); } } public void GetActiveSubroutineName(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveSubroutineName)) { try { MH_glGetActiveSubroutineName.invokeExact(PFN_glGetActiveSubroutineName, program, shadertype, index, bufSize, length, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveSubroutineName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveSubroutineName"); } } public void UniformSubroutinesuiv(@CType("GLenum") int shadertype, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformSubroutinesuiv)) + if (!Unmarshal.isNullPointer(PFN_glUniformSubroutinesuiv)) { try { MH_glUniformSubroutinesuiv.invokeExact(PFN_glUniformSubroutinesuiv, shadertype, count, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformSubroutinesuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformSubroutinesuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformSubroutinesuiv"); } } public void GetUniformSubroutineuiv(@CType("GLenum") int shadertype, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformSubroutineuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformSubroutineuiv)) { try { MH_glGetUniformSubroutineuiv.invokeExact(PFN_glGetUniformSubroutineuiv, shadertype, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformSubroutineuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformSubroutineuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformSubroutineuiv"); } } public void GetProgramStageiv(@CType("GLuint") int program, @CType("GLenum") int shadertype, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStageiv)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramStageiv)) { try { MH_glGetProgramStageiv.invokeExact(PFN_glGetProgramStageiv, program, shadertype, pname, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramStageiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramStageiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramStageiv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java index 651e98b5..7f83ab94 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBShadingLanguageInclude.java @@ -50,46 +50,45 @@ public GLARBShadingLanguageInclude(overrungl.opengl.GLLoadFunc func) { } public void NamedStringARB(@CType("GLenum") int type, @CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name, @CType("GLint") int stringlen, @CType("const GLchar *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedStringARB)) + if (!Unmarshal.isNullPointer(PFN_glNamedStringARB)) { try { MH_glNamedStringARB.invokeExact(PFN_glNamedStringARB, type, namelen, name, stringlen, string); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedStringARB"); } } public void DeleteNamedStringARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteNamedStringARB)) + if (!Unmarshal.isNullPointer(PFN_glDeleteNamedStringARB)) { try { MH_glDeleteNamedStringARB.invokeExact(PFN_glDeleteNamedStringARB, namelen, name); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteNamedStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteNamedStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteNamedStringARB"); } } public void CompileShaderIncludeARB(@CType("GLuint") int shader, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment path, @CType("const GLint *") java.lang.foreign.MemorySegment length) { - try { if (!Unmarshal.isNullPointer(PFN_glCompileShaderIncludeARB)) + if (!Unmarshal.isNullPointer(PFN_glCompileShaderIncludeARB)) { try { MH_glCompileShaderIncludeARB.invokeExact(PFN_glCompileShaderIncludeARB, shader, count, path, length); - } - catch (Throwable e) { throw new RuntimeException("error in glCompileShaderIncludeARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompileShaderIncludeARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompileShaderIncludeARB"); } } public @CType("GLboolean") boolean IsNamedStringARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glIsNamedStringARB)) + if (!Unmarshal.isNullPointer(PFN_glIsNamedStringARB)) { try { return (boolean) MH_glIsNamedStringARB.invokeExact(PFN_glIsNamedStringARB, namelen, name); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsNamedStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsNamedStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsNamedStringARB"); } } public void GetNamedStringARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment stringlen, @CType("GLchar *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedStringARB)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedStringARB)) { try { MH_glGetNamedStringARB.invokeExact(PFN_glGetNamedStringARB, namelen, name, bufSize, stringlen, string); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedStringARB"); } } public void GetNamedStringivARB(@CType("GLint") int namelen, @CType("const GLchar *") java.lang.foreign.MemorySegment name, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedStringivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedStringivARB)) { try { MH_glGetNamedStringivARB.invokeExact(PFN_glGetNamedStringivARB, namelen, name, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedStringivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedStringivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedStringivARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java index 0eeeef15..0c5ccd02 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseBuffer.java @@ -38,24 +38,24 @@ public GLARBSparseBuffer(overrungl.opengl.GLLoadFunc func) { } public void BufferPageCommitmentARB(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferPageCommitmentARB)) + if (!Unmarshal.isNullPointer(PFN_glBufferPageCommitmentARB)) { try { MH_glBufferPageCommitmentARB.invokeExact(PFN_glBufferPageCommitmentARB, target, offset, size, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferPageCommitmentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferPageCommitmentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferPageCommitmentARB"); } } public void NamedBufferPageCommitmentEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentEXT)) { try { MH_glNamedBufferPageCommitmentEXT.invokeExact(PFN_glNamedBufferPageCommitmentEXT, buffer, offset, size, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferPageCommitmentEXT"); } } public void NamedBufferPageCommitmentARB(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentARB)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentARB)) { try { MH_glNamedBufferPageCommitmentARB.invokeExact(PFN_glNamedBufferPageCommitmentARB, buffer, offset, size, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferPageCommitmentARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java index aab3428a..f8317493 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSparseTexture.java @@ -43,10 +43,10 @@ public GLARBSparseTexture(overrungl.opengl.GLLoadFunc func) { } public void TexPageCommitmentARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glTexPageCommitmentARB)) + if (!Unmarshal.isNullPointer(PFN_glTexPageCommitmentARB)) { try { MH_glTexPageCommitmentARB.invokeExact(PFN_glTexPageCommitmentARB, target, level, xoffset, yoffset, zoffset, width, height, depth, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glTexPageCommitmentARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexPageCommitmentARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexPageCommitmentARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java index 3f411e6f..f55e0844 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBSync.java @@ -65,55 +65,52 @@ public GLARBSync(overrungl.opengl.GLLoadFunc func) { } public @CType("GLsync") java.lang.foreign.MemorySegment FenceSync(@CType("GLenum") int condition, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glFenceSync)) + if (!Unmarshal.isNullPointer(PFN_glFenceSync)) { try { return (java.lang.foreign.MemorySegment) MH_glFenceSync.invokeExact(PFN_glFenceSync, condition, flags); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glFenceSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFenceSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFenceSync"); } } public @CType("GLboolean") boolean IsSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { - try { if (!Unmarshal.isNullPointer(PFN_glIsSync)) + if (!Unmarshal.isNullPointer(PFN_glIsSync)) { try { return (boolean) MH_glIsSync.invokeExact(PFN_glIsSync, sync); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsSync"); } } public void DeleteSync(@CType("GLsync") java.lang.foreign.MemorySegment sync) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteSync)) + if (!Unmarshal.isNullPointer(PFN_glDeleteSync)) { try { MH_glDeleteSync.invokeExact(PFN_glDeleteSync, sync); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteSync"); } } public @CType("GLenum") int ClientWaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { - try { if (!Unmarshal.isNullPointer(PFN_glClientWaitSync)) + if (!Unmarshal.isNullPointer(PFN_glClientWaitSync)) { try { return (int) MH_glClientWaitSync.invokeExact(PFN_glClientWaitSync, sync, flags, timeout); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glClientWaitSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClientWaitSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClientWaitSync"); } } public void WaitSync(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLbitfield") int flags, @CType("GLuint64") long timeout) { - try { if (!Unmarshal.isNullPointer(PFN_glWaitSync)) + if (!Unmarshal.isNullPointer(PFN_glWaitSync)) { try { MH_glWaitSync.invokeExact(PFN_glWaitSync, sync, flags, timeout); - } - catch (Throwable e) { throw new RuntimeException("error in glWaitSync", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWaitSync", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWaitSync"); } } public void GetInteger64v(@CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInteger64v)) + if (!Unmarshal.isNullPointer(PFN_glGetInteger64v)) { try { MH_glGetInteger64v.invokeExact(PFN_glGetInteger64v, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInteger64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInteger64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInteger64v"); } } public void GetSynciv(@CType("GLsync") java.lang.foreign.MemorySegment sync, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSynciv)) + if (!Unmarshal.isNullPointer(PFN_glGetSynciv)) { try { MH_glGetSynciv.invokeExact(PFN_glGetSynciv, sync, pname, count, length, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSynciv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSynciv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSynciv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java index a85c4611..bcce0ffa 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTessellationShader.java @@ -72,17 +72,17 @@ public GLARBTessellationShader(overrungl.opengl.GLLoadFunc func) { } public void PatchParameteri(@CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glPatchParameteri)) + if (!Unmarshal.isNullPointer(PFN_glPatchParameteri)) { try { MH_glPatchParameteri.invokeExact(PFN_glPatchParameteri, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glPatchParameteri", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPatchParameteri", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPatchParameteri"); } } public void PatchParameterfv(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glPatchParameterfv)) + if (!Unmarshal.isNullPointer(PFN_glPatchParameterfv)) { try { MH_glPatchParameterfv.invokeExact(PFN_glPatchParameterfv, pname, values); - } - catch (Throwable e) { throw new RuntimeException("error in glPatchParameterfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPatchParameterfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPatchParameterfv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java index 32daf926..d6afc1fd 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBarrier.java @@ -32,10 +32,10 @@ public GLARBTextureBarrier(overrungl.opengl.GLLoadFunc func) { } public void TextureBarrier() { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBarrier)) + if (!Unmarshal.isNullPointer(PFN_glTextureBarrier)) { try { MH_glTextureBarrier.invokeExact(PFN_glTextureBarrier); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBarrier", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBarrier", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBarrier"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java index 0d82c6b7..16d8799a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferObject.java @@ -37,10 +37,10 @@ public GLARBTextureBufferObject(overrungl.opengl.GLLoadFunc func) { } public void TexBufferARB(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBufferARB)) + if (!Unmarshal.isNullPointer(PFN_glTexBufferARB)) { try { MH_glTexBufferARB.invokeExact(PFN_glTexBufferARB, target, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBufferARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBufferARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBufferARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java index 65003bbf..011d1b78 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureBufferRange.java @@ -35,10 +35,10 @@ public GLARBTextureBufferRange(overrungl.opengl.GLLoadFunc func) { } public void TexBufferRange(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glTexBufferRange)) { try { MH_glTexBufferRange.invokeExact(PFN_glTexBufferRange, target, internalformat, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBufferRange"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java index 2ce3333e..499fb7b3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureCompression.java @@ -61,52 +61,52 @@ public GLARBTextureCompression(overrungl.opengl.GLLoadFunc func) { } public void CompressedTexImage3DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage3DARB)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage3DARB)) { try { MH_glCompressedTexImage3DARB.invokeExact(PFN_glCompressedTexImage3DARB, target, level, internalformat, width, height, depth, border, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage3DARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage3DARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexImage3DARB"); } } public void CompressedTexImage2DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage2DARB)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage2DARB)) { try { MH_glCompressedTexImage2DARB.invokeExact(PFN_glCompressedTexImage2DARB, target, level, internalformat, width, height, border, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage2DARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage2DARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexImage2DARB"); } } public void CompressedTexImage1DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage1DARB)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexImage1DARB)) { try { MH_glCompressedTexImage1DARB.invokeExact(PFN_glCompressedTexImage1DARB, target, level, internalformat, width, border, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage1DARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexImage1DARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexImage1DARB"); } } public void CompressedTexSubImage3DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage3DARB)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage3DARB)) { try { MH_glCompressedTexSubImage3DARB.invokeExact(PFN_glCompressedTexSubImage3DARB, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage3DARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage3DARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexSubImage3DARB"); } } public void CompressedTexSubImage2DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage2DARB)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage2DARB)) { try { MH_glCompressedTexSubImage2DARB.invokeExact(PFN_glCompressedTexSubImage2DARB, target, level, xoffset, yoffset, width, height, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage2DARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage2DARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexSubImage2DARB"); } } public void CompressedTexSubImage1DARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage1DARB)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTexSubImage1DARB)) { try { MH_glCompressedTexSubImage1DARB.invokeExact(PFN_glCompressedTexSubImage1DARB, target, level, xoffset, width, format, imageSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage1DARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTexSubImage1DARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTexSubImage1DARB"); } } public void GetCompressedTexImageARB(@CType("GLenum") int target, @CType("GLint") int level, @CType("void*") java.lang.foreign.MemorySegment img) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTexImageARB)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTexImageARB)) { try { MH_glGetCompressedTexImageARB.invokeExact(PFN_glGetCompressedTexImageARB, target, level, img); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTexImageARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTexImageARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTexImageARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java index 072bd242..f4bc93e9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureMultisample.java @@ -62,31 +62,31 @@ public GLARBTextureMultisample(overrungl.opengl.GLLoadFunc func) { } public void TexImage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisample)) { try { MH_glTexImage2DMultisample.invokeExact(PFN_glTexImage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage2DMultisample"); } } public void TexImage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisample)) { try { MH_glTexImage3DMultisample.invokeExact(PFN_glTexImage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage3DMultisample"); } } public void GetMultisamplefv(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment val) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefv)) + if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefv)) { try { MH_glGetMultisamplefv.invokeExact(PFN_glGetMultisamplefv, pname, index, val); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultisamplefv"); } } public void SampleMaski(@CType("GLuint") int maskNumber, @CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleMaski)) + if (!Unmarshal.isNullPointer(PFN_glSampleMaski)) { try { MH_glSampleMaski.invokeExact(PFN_glSampleMaski, maskNumber, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleMaski", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleMaski", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleMaski"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java index e648071a..0997b6ca 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorage.java @@ -39,24 +39,24 @@ public GLARBTextureStorage(overrungl.opengl.GLLoadFunc func) { } public void TexStorage1D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage1D)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage1D)) { try { MH_glTexStorage1D.invokeExact(PFN_glTexStorage1D, target, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage1D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage1D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage1D"); } } public void TexStorage2D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2D)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage2D)) { try { MH_glTexStorage2D.invokeExact(PFN_glTexStorage2D, target, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage2D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage2D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage2D"); } } public void TexStorage3D(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3D)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage3D)) { try { MH_glTexStorage3D.invokeExact(PFN_glTexStorage3D, target, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage3D", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage3D", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage3D"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java index b4f720e1..f18df430 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureStorageMultisample.java @@ -35,17 +35,17 @@ public GLARBTextureStorageMultisample(overrungl.opengl.GLLoadFunc func) { } public void TexStorage2DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage2DMultisample)) { try { MH_glTexStorage2DMultisample.invokeExact(PFN_glTexStorage2DMultisample, target, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage2DMultisample"); } } public void TexStorage3DMultisample(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3DMultisample)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage3DMultisample)) { try { MH_glTexStorage3DMultisample.invokeExact(PFN_glTexStorage3DMultisample, target, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DMultisample", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DMultisample", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage3DMultisample"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java index 75769d9c..0adadb7f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTextureView.java @@ -37,10 +37,10 @@ public GLARBTextureView(overrungl.opengl.GLLoadFunc func) { } public void TextureView(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLuint") int origtexture, @CType("GLenum") int internalformat, @CType("GLuint") int minlevel, @CType("GLuint") int numlevels, @CType("GLuint") int minlayer, @CType("GLuint") int numlayers) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureView)) + if (!Unmarshal.isNullPointer(PFN_glTextureView)) { try { MH_glTextureView.invokeExact(PFN_glTextureView, texture, target, origtexture, internalformat, minlevel, numlevels, minlayer, numlayers); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureView", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureView", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureView"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java index d30b5fea..494d0230 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTimerQuery.java @@ -40,24 +40,24 @@ public GLARBTimerQuery(overrungl.opengl.GLLoadFunc func) { } public void QueryCounter(@CType("GLuint") int id, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glQueryCounter)) + if (!Unmarshal.isNullPointer(PFN_glQueryCounter)) { try { MH_glQueryCounter.invokeExact(PFN_glQueryCounter, id, target); - } - catch (Throwable e) { throw new RuntimeException("error in glQueryCounter", e); } + } catch (Throwable e) { throw new RuntimeException("error in glQueryCounter", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glQueryCounter"); } } public void GetQueryObjecti64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64v)) { try { MH_glGetQueryObjecti64v.invokeExact(PFN_glGetQueryObjecti64v, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjecti64v"); } } public void GetQueryObjectui64v(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64v)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64v)) { try { MH_glGetQueryObjectui64v.invokeExact(PFN_glGetQueryObjectui64v, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectui64v"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java index b3ee19cb..23dd00ff 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback2.java @@ -54,53 +54,52 @@ public GLARBTransformFeedback2(overrungl.opengl.GLLoadFunc func) { } public void BindTransformFeedback(@CType("GLenum") int target, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedback)) { try { MH_glBindTransformFeedback.invokeExact(PFN_glBindTransformFeedback, target, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTransformFeedback"); } } public void DeleteTransformFeedbacks(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacks)) + if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacks)) { try { MH_glDeleteTransformFeedbacks.invokeExact(PFN_glDeleteTransformFeedbacks, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacks", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacks", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteTransformFeedbacks"); } } public void GenTransformFeedbacks(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacks)) + if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacks)) { try { MH_glGenTransformFeedbacks.invokeExact(PFN_glGenTransformFeedbacks, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacks", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacks", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenTransformFeedbacks"); } } public @CType("GLboolean") boolean IsTransformFeedback(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedback)) { try { return (boolean) MH_glIsTransformFeedback.invokeExact(PFN_glIsTransformFeedback, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTransformFeedback"); } } public void PauseTransformFeedback() { - try { if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedback)) { try { MH_glPauseTransformFeedback.invokeExact(PFN_glPauseTransformFeedback); - } - catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPauseTransformFeedback"); } } public void ResumeTransformFeedback() { - try { if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedback)) { try { MH_glResumeTransformFeedback.invokeExact(PFN_glResumeTransformFeedback); - } - catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResumeTransformFeedback"); } } public void DrawTransformFeedback(@CType("GLenum") int mode, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedback)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedback)) { try { MH_glDrawTransformFeedback.invokeExact(PFN_glDrawTransformFeedback, mode, id); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedback"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java index e5ecd404..6dc8d837 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedback3.java @@ -43,31 +43,31 @@ public GLARBTransformFeedback3(overrungl.opengl.GLLoadFunc func) { } public void DrawTransformFeedbackStream(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStream)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStream)) { try { MH_glDrawTransformFeedbackStream.invokeExact(PFN_glDrawTransformFeedbackStream, mode, id, stream); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStream", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStream", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackStream"); } } public void BeginQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginQueryIndexed)) + if (!Unmarshal.isNullPointer(PFN_glBeginQueryIndexed)) { try { MH_glBeginQueryIndexed.invokeExact(PFN_glBeginQueryIndexed, target, index, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginQueryIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginQueryIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginQueryIndexed"); } } public void EndQueryIndexed(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEndQueryIndexed)) + if (!Unmarshal.isNullPointer(PFN_glEndQueryIndexed)) { try { MH_glEndQueryIndexed.invokeExact(PFN_glEndQueryIndexed, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEndQueryIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndQueryIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndQueryIndexed"); } } public void GetQueryIndexediv(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryIndexediv)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryIndexediv)) { try { MH_glGetQueryIndexediv.invokeExact(PFN_glGetQueryIndexediv, target, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryIndexediv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryIndexediv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryIndexediv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java index b448a4c8..53792421 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransformFeedbackInstanced.java @@ -35,17 +35,17 @@ public GLARBTransformFeedbackInstanced(overrungl.opengl.GLLoadFunc func) { } public void DrawTransformFeedbackInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLsizei") int instancecount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackInstanced)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackInstanced)) { try { MH_glDrawTransformFeedbackInstanced.invokeExact(PFN_glDrawTransformFeedbackInstanced, mode, id, instancecount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackInstanced", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackInstanced", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackInstanced"); } } public void DrawTransformFeedbackStreamInstanced(@CType("GLenum") int mode, @CType("GLuint") int id, @CType("GLuint") int stream, @CType("GLsizei") int instancecount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStreamInstanced)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackStreamInstanced)) { try { MH_glDrawTransformFeedbackStreamInstanced.invokeExact(PFN_glDrawTransformFeedbackStreamInstanced, mode, id, stream, instancecount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStreamInstanced", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackStreamInstanced", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackStreamInstanced"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java index bea20fa9..aec97c2d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBTransposeMatrix.java @@ -45,31 +45,31 @@ public GLARBTransposeMatrix(overrungl.opengl.GLLoadFunc func) { } public void LoadTransposeMatrixfARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixfARB)) + if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixfARB)) { try { MH_glLoadTransposeMatrixfARB.invokeExact(PFN_glLoadTransposeMatrixfARB, m); - } - catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixfARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixfARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLoadTransposeMatrixfARB"); } } public void LoadTransposeMatrixdARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixdARB)) + if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixdARB)) { try { MH_glLoadTransposeMatrixdARB.invokeExact(PFN_glLoadTransposeMatrixdARB, m); - } - catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixdARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixdARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLoadTransposeMatrixdARB"); } } public void MultTransposeMatrixfARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixfARB)) + if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixfARB)) { try { MH_glMultTransposeMatrixfARB.invokeExact(PFN_glMultTransposeMatrixfARB, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixfARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixfARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultTransposeMatrixfARB"); } } public void MultTransposeMatrixdARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixdARB)) + if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixdARB)) { try { MH_glMultTransposeMatrixdARB.invokeExact(PFN_glMultTransposeMatrixdARB, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixdARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixdARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultTransposeMatrixdARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java index 44b74fa3..61c807fc 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBUniformBufferObject.java @@ -92,74 +92,73 @@ public GLARBUniformBufferObject(overrungl.opengl.GLLoadFunc func) { } public void GetUniformIndices(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLchar *const*") java.lang.foreign.MemorySegment uniformNames, @CType("GLuint *") java.lang.foreign.MemorySegment uniformIndices) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformIndices)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformIndices)) { try { MH_glGetUniformIndices.invokeExact(PFN_glGetUniformIndices, program, uniformCount, uniformNames, uniformIndices); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformIndices", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformIndices", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformIndices"); } } public void GetActiveUniformsiv(@CType("GLuint") int program, @CType("GLsizei") int uniformCount, @CType("const GLuint *") java.lang.foreign.MemorySegment uniformIndices, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformsiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformsiv)) { try { MH_glGetActiveUniformsiv.invokeExact(PFN_glGetActiveUniformsiv, program, uniformCount, uniformIndices, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformsiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformsiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformsiv"); } } public void GetActiveUniformName(@CType("GLuint") int program, @CType("GLuint") int uniformIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformName) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformName)) { try { MH_glGetActiveUniformName.invokeExact(PFN_glGetActiveUniformName, program, uniformIndex, bufSize, length, uniformName); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformName"); } } public @CType("GLuint") int GetUniformBlockIndex(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformBlockIndex)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformBlockIndex)) { try { return (int) MH_glGetUniformBlockIndex.invokeExact(PFN_glGetUniformBlockIndex, program, uniformBlockName); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformBlockIndex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformBlockIndex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformBlockIndex"); } } public void GetActiveUniformBlockiv(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockiv)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockiv)) { try { MH_glGetActiveUniformBlockiv.invokeExact(PFN_glGetActiveUniformBlockiv, program, uniformBlockIndex, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformBlockiv"); } } public void GetActiveUniformBlockName(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment uniformBlockName) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockName)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveUniformBlockName)) { try { MH_glGetActiveUniformBlockName.invokeExact(PFN_glGetActiveUniformBlockName, program, uniformBlockIndex, bufSize, length, uniformBlockName); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockName", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveUniformBlockName", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveUniformBlockName"); } } public void UniformBlockBinding(@CType("GLuint") int program, @CType("GLuint") int uniformBlockIndex, @CType("GLuint") int uniformBlockBinding) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformBlockBinding)) + if (!Unmarshal.isNullPointer(PFN_glUniformBlockBinding)) { try { MH_glUniformBlockBinding.invokeExact(PFN_glUniformBlockBinding, program, uniformBlockIndex, uniformBlockBinding); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformBlockBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformBlockBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformBlockBinding"); } } public void BindBufferRange(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRange)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferRange)) { try { MH_glBindBufferRange.invokeExact(PFN_glBindBufferRange, target, index, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferRange", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferRange", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferRange"); } } public void BindBufferBase(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBase)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferBase)) { try { MH_glBindBufferBase.invokeExact(PFN_glBindBufferBase, target, index, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferBase", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferBase", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferBase"); } } public void GetIntegeri_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegeri_v)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegeri_v)) { try { MH_glGetIntegeri_v.invokeExact(PFN_glGetIntegeri_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegeri_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegeri_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegeri_v"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java index e4b37065..8695c13c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexArrayObject.java @@ -42,32 +42,31 @@ public GLARBVertexArrayObject(overrungl.opengl.GLLoadFunc func) { } public void BindVertexArray(@CType("GLuint") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexArray)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexArray)) { try { MH_glBindVertexArray.invokeExact(PFN_glBindVertexArray, array); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexArray", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexArray", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexArray"); } } public void DeleteVertexArrays(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArrays)) + if (!Unmarshal.isNullPointer(PFN_glDeleteVertexArrays)) { try { MH_glDeleteVertexArrays.invokeExact(PFN_glDeleteVertexArrays, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteVertexArrays"); } } public void GenVertexArrays(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment arrays) { - try { if (!Unmarshal.isNullPointer(PFN_glGenVertexArrays)) + if (!Unmarshal.isNullPointer(PFN_glGenVertexArrays)) { try { MH_glGenVertexArrays.invokeExact(PFN_glGenVertexArrays, n, arrays); - } - catch (Throwable e) { throw new RuntimeException("error in glGenVertexArrays", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenVertexArrays", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenVertexArrays"); } } public @CType("GLboolean") boolean IsVertexArray(@CType("GLuint") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glIsVertexArray)) + if (!Unmarshal.isNullPointer(PFN_glIsVertexArray)) { try { return (boolean) MH_glIsVertexArray.invokeExact(PFN_glIsVertexArray, array); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsVertexArray", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsVertexArray", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsVertexArray"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java index 42da1aee..ca35e2ea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttrib64bit.java @@ -72,73 +72,73 @@ public GLARBVertexAttrib64bit(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribL1d(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1d)) { try { MH_glVertexAttribL1d.invokeExact(PFN_glVertexAttribL1d, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1d"); } } public void VertexAttribL2d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2d)) { try { MH_glVertexAttribL2d.invokeExact(PFN_glVertexAttribL2d, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2d"); } } public void VertexAttribL3d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3d)) { try { MH_glVertexAttribL3d.invokeExact(PFN_glVertexAttribL3d, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3d"); } } public void VertexAttribL4d(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4d)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4d)) { try { MH_glVertexAttribL4d.invokeExact(PFN_glVertexAttribL4d, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4d", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4d", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4d"); } } public void VertexAttribL1dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dv)) { try { MH_glVertexAttribL1dv.invokeExact(PFN_glVertexAttribL1dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1dv"); } } public void VertexAttribL2dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dv)) { try { MH_glVertexAttribL2dv.invokeExact(PFN_glVertexAttribL2dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2dv"); } } public void VertexAttribL3dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dv)) { try { MH_glVertexAttribL3dv.invokeExact(PFN_glVertexAttribL3dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3dv"); } } public void VertexAttribL4dv(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dv)) { try { MH_glVertexAttribL4dv.invokeExact(PFN_glVertexAttribL4dv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4dv"); } } public void VertexAttribLPointer(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointer)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointer)) { try { MH_glVertexAttribLPointer.invokeExact(PFN_glVertexAttribLPointer, index, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribLPointer"); } } public void GetVertexAttribLdv(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdv)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdv)) { try { MH_glGetVertexAttribLdv.invokeExact(PFN_glGetVertexAttribLdv, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribLdv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java index 489bedbc..479d73d6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexAttribBinding.java @@ -54,45 +54,45 @@ public GLARBVertexAttribBinding(overrungl.opengl.GLLoadFunc func) { } public void BindVertexBuffer(@CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffer)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexBuffer)) { try { MH_glBindVertexBuffer.invokeExact(PFN_glBindVertexBuffer, bindingindex, buffer, offset, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffer", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexBuffer", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexBuffer"); } } public void VertexAttribFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormat)) { try { MH_glVertexAttribFormat.invokeExact(PFN_glVertexAttribFormat, attribindex, size, type, normalized, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribFormat"); } } public void VertexAttribIFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormat)) { try { MH_glVertexAttribIFormat.invokeExact(PFN_glVertexAttribIFormat, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribIFormat"); } } public void VertexAttribLFormat(@CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormat)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormat)) { try { MH_glVertexAttribLFormat.invokeExact(PFN_glVertexAttribLFormat, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormat", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormat", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribLFormat"); } } public void VertexAttribBinding(@CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribBinding)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribBinding)) { try { MH_glVertexAttribBinding.invokeExact(PFN_glVertexAttribBinding, attribindex, bindingindex); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribBinding", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribBinding", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribBinding"); } } public void VertexBindingDivisor(@CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexBindingDivisor)) + if (!Unmarshal.isNullPointer(PFN_glVertexBindingDivisor)) { try { MH_glVertexBindingDivisor.invokeExact(PFN_glVertexBindingDivisor, bindingindex, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexBindingDivisor", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexBindingDivisor", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexBindingDivisor"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java index a5e6fabe..d5874e5c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBlend.java @@ -101,73 +101,73 @@ public GLARBVertexBlend(overrungl.opengl.GLLoadFunc func) { } public void WeightbvARB(@CType("GLint") int size, @CType("const GLbyte *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightbvARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightbvARB)) { try { MH_glWeightbvARB.invokeExact(PFN_glWeightbvARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightbvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightbvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightbvARB"); } } public void WeightsvARB(@CType("GLint") int size, @CType("const GLshort *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightsvARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightsvARB)) { try { MH_glWeightsvARB.invokeExact(PFN_glWeightsvARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightsvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightsvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightsvARB"); } } public void WeightivARB(@CType("GLint") int size, @CType("const GLint *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightivARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightivARB)) { try { MH_glWeightivARB.invokeExact(PFN_glWeightivARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightivARB"); } } public void WeightfvARB(@CType("GLint") int size, @CType("const GLfloat *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightfvARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightfvARB)) { try { MH_glWeightfvARB.invokeExact(PFN_glWeightfvARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightfvARB"); } } public void WeightdvARB(@CType("GLint") int size, @CType("const GLdouble *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightdvARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightdvARB)) { try { MH_glWeightdvARB.invokeExact(PFN_glWeightdvARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightdvARB"); } } public void WeightubvARB(@CType("GLint") int size, @CType("const GLubyte *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightubvARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightubvARB)) { try { MH_glWeightubvARB.invokeExact(PFN_glWeightubvARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightubvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightubvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightubvARB"); } } public void WeightusvARB(@CType("GLint") int size, @CType("const GLushort *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightusvARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightusvARB)) { try { MH_glWeightusvARB.invokeExact(PFN_glWeightusvARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightusvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightusvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightusvARB"); } } public void WeightuivARB(@CType("GLint") int size, @CType("const GLuint *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightuivARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightuivARB)) { try { MH_glWeightuivARB.invokeExact(PFN_glWeightuivARB, size, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightuivARB"); } } public void WeightPointerARB(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightPointerARB)) + if (!Unmarshal.isNullPointer(PFN_glWeightPointerARB)) { try { MH_glWeightPointerARB.invokeExact(PFN_glWeightPointerARB, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightPointerARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightPointerARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightPointerARB"); } } public void VertexBlendARB(@CType("GLint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexBlendARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexBlendARB)) { try { MH_glVertexBlendARB.invokeExact(PFN_glVertexBlendARB, count); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexBlendARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexBlendARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexBlendARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java index e970683a..73a130ab 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexBufferObject.java @@ -93,83 +93,80 @@ public GLARBVertexBufferObject(overrungl.opengl.GLLoadFunc func) { } public void BindBufferARB(@CType("GLenum") int target, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferARB)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferARB)) { try { MH_glBindBufferARB.invokeExact(PFN_glBindBufferARB, target, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferARB"); } } public void DeleteBuffersARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteBuffersARB)) + if (!Unmarshal.isNullPointer(PFN_glDeleteBuffersARB)) { try { MH_glDeleteBuffersARB.invokeExact(PFN_glDeleteBuffersARB, n, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteBuffersARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteBuffersARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteBuffersARB"); } } public void GenBuffersARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment buffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenBuffersARB)) + if (!Unmarshal.isNullPointer(PFN_glGenBuffersARB)) { try { MH_glGenBuffersARB.invokeExact(PFN_glGenBuffersARB, n, buffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenBuffersARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenBuffersARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenBuffersARB"); } } public @CType("GLboolean") boolean IsBufferARB(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsBufferARB)) + if (!Unmarshal.isNullPointer(PFN_glIsBufferARB)) { try { return (boolean) MH_glIsBufferARB.invokeExact(PFN_glIsBufferARB, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsBufferARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsBufferARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsBufferARB"); } } public void BufferDataARB(@CType("GLenum") int target, @CType("GLsizeiptrARB") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferDataARB)) + if (!Unmarshal.isNullPointer(PFN_glBufferDataARB)) { try { MH_glBufferDataARB.invokeExact(PFN_glBufferDataARB, target, size, data, usage); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferDataARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferDataARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferDataARB"); } } public void BufferSubDataARB(@CType("GLenum") int target, @CType("GLintptrARB") long offset, @CType("GLsizeiptrARB") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferSubDataARB)) + if (!Unmarshal.isNullPointer(PFN_glBufferSubDataARB)) { try { MH_glBufferSubDataARB.invokeExact(PFN_glBufferSubDataARB, target, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferSubDataARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferSubDataARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferSubDataARB"); } } public void GetBufferSubDataARB(@CType("GLenum") int target, @CType("GLintptrARB") long offset, @CType("GLsizeiptrARB") long size, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferSubDataARB)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferSubDataARB)) { try { MH_glGetBufferSubDataARB.invokeExact(PFN_glGetBufferSubDataARB, target, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferSubDataARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferSubDataARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferSubDataARB"); } } public @CType("void*") java.lang.foreign.MemorySegment MapBufferARB(@CType("GLenum") int target, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapBufferARB)) + if (!Unmarshal.isNullPointer(PFN_glMapBufferARB)) { try { return (java.lang.foreign.MemorySegment) MH_glMapBufferARB.invokeExact(PFN_glMapBufferARB, target, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapBufferARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapBufferARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapBufferARB"); } } public @CType("GLboolean") boolean UnmapBufferARB(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapBufferARB)) + if (!Unmarshal.isNullPointer(PFN_glUnmapBufferARB)) { try { return (boolean) MH_glUnmapBufferARB.invokeExact(PFN_glUnmapBufferARB, target); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapBufferARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapBufferARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapBufferARB"); } } public void GetBufferParameterivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameterivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferParameterivARB)) { try { MH_glGetBufferParameterivARB.invokeExact(PFN_glGetBufferParameterivARB, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameterivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameterivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferParameterivARB"); } } public void GetBufferPointervARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferPointervARB)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferPointervARB)) { try { MH_glGetBufferPointervARB.invokeExact(PFN_glGetBufferPointervARB, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferPointervARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferPointervARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferPointervARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java index 63f50be9..07748a89 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexProgram.java @@ -294,438 +294,437 @@ public GLARBVertexProgram(overrungl.opengl.GLLoadFunc func) { } public void VertexAttrib1dARB(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dARB)) { try { MH_glVertexAttrib1dARB.invokeExact(PFN_glVertexAttrib1dARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dARB"); } } public void VertexAttrib1dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvARB)) { try { MH_glVertexAttrib1dvARB.invokeExact(PFN_glVertexAttrib1dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dvARB"); } } public void VertexAttrib1fARB(@CType("GLuint") int index, @CType("GLfloat") float x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fARB)) { try { MH_glVertexAttrib1fARB.invokeExact(PFN_glVertexAttrib1fARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fARB"); } } public void VertexAttrib1fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvARB)) { try { MH_glVertexAttrib1fvARB.invokeExact(PFN_glVertexAttrib1fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fvARB"); } } public void VertexAttrib1sARB(@CType("GLuint") int index, @CType("GLshort") short x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sARB)) { try { MH_glVertexAttrib1sARB.invokeExact(PFN_glVertexAttrib1sARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1sARB"); } } public void VertexAttrib1svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svARB)) { try { MH_glVertexAttrib1svARB.invokeExact(PFN_glVertexAttrib1svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1svARB"); } } public void VertexAttrib2dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dARB)) { try { MH_glVertexAttrib2dARB.invokeExact(PFN_glVertexAttrib2dARB, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dARB"); } } public void VertexAttrib2dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvARB)) { try { MH_glVertexAttrib2dvARB.invokeExact(PFN_glVertexAttrib2dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dvARB"); } } public void VertexAttrib2fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fARB)) { try { MH_glVertexAttrib2fARB.invokeExact(PFN_glVertexAttrib2fARB, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fARB"); } } public void VertexAttrib2fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvARB)) { try { MH_glVertexAttrib2fvARB.invokeExact(PFN_glVertexAttrib2fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fvARB"); } } public void VertexAttrib2sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sARB)) { try { MH_glVertexAttrib2sARB.invokeExact(PFN_glVertexAttrib2sARB, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2sARB"); } } public void VertexAttrib2svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svARB)) { try { MH_glVertexAttrib2svARB.invokeExact(PFN_glVertexAttrib2svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2svARB"); } } public void VertexAttrib3dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dARB)) { try { MH_glVertexAttrib3dARB.invokeExact(PFN_glVertexAttrib3dARB, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dARB"); } } public void VertexAttrib3dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvARB)) { try { MH_glVertexAttrib3dvARB.invokeExact(PFN_glVertexAttrib3dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dvARB"); } } public void VertexAttrib3fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fARB)) { try { MH_glVertexAttrib3fARB.invokeExact(PFN_glVertexAttrib3fARB, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fARB"); } } public void VertexAttrib3fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvARB)) { try { MH_glVertexAttrib3fvARB.invokeExact(PFN_glVertexAttrib3fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fvARB"); } } public void VertexAttrib3sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sARB)) { try { MH_glVertexAttrib3sARB.invokeExact(PFN_glVertexAttrib3sARB, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3sARB"); } } public void VertexAttrib3svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svARB)) { try { MH_glVertexAttrib3svARB.invokeExact(PFN_glVertexAttrib3svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3svARB"); } } public void VertexAttrib4NbvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NbvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NbvARB)) { try { MH_glVertexAttrib4NbvARB.invokeExact(PFN_glVertexAttrib4NbvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NbvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NbvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NbvARB"); } } public void VertexAttrib4NivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NivARB)) { try { MH_glVertexAttrib4NivARB.invokeExact(PFN_glVertexAttrib4NivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NivARB"); } } public void VertexAttrib4NsvARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NsvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NsvARB)) { try { MH_glVertexAttrib4NsvARB.invokeExact(PFN_glVertexAttrib4NsvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NsvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NsvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NsvARB"); } } public void VertexAttrib4NubARB(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubARB)) { try { MH_glVertexAttrib4NubARB.invokeExact(PFN_glVertexAttrib4NubARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NubARB"); } } public void VertexAttrib4NubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubvARB)) { try { MH_glVertexAttrib4NubvARB.invokeExact(PFN_glVertexAttrib4NubvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NubvARB"); } } public void VertexAttrib4NuivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NuivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NuivARB)) { try { MH_glVertexAttrib4NuivARB.invokeExact(PFN_glVertexAttrib4NuivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NuivARB"); } } public void VertexAttrib4NusvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NusvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NusvARB)) { try { MH_glVertexAttrib4NusvARB.invokeExact(PFN_glVertexAttrib4NusvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NusvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NusvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NusvARB"); } } public void VertexAttrib4bvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bvARB)) { try { MH_glVertexAttrib4bvARB.invokeExact(PFN_glVertexAttrib4bvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4bvARB"); } } public void VertexAttrib4dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dARB)) { try { MH_glVertexAttrib4dARB.invokeExact(PFN_glVertexAttrib4dARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dARB"); } } public void VertexAttrib4dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvARB)) { try { MH_glVertexAttrib4dvARB.invokeExact(PFN_glVertexAttrib4dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dvARB"); } } public void VertexAttrib4fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fARB)) { try { MH_glVertexAttrib4fARB.invokeExact(PFN_glVertexAttrib4fARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fARB"); } } public void VertexAttrib4fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvARB)) { try { MH_glVertexAttrib4fvARB.invokeExact(PFN_glVertexAttrib4fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fvARB"); } } public void VertexAttrib4ivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ivARB)) { try { MH_glVertexAttrib4ivARB.invokeExact(PFN_glVertexAttrib4ivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ivARB"); } } public void VertexAttrib4sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sARB)) { try { MH_glVertexAttrib4sARB.invokeExact(PFN_glVertexAttrib4sARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4sARB"); } } public void VertexAttrib4svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svARB)) { try { MH_glVertexAttrib4svARB.invokeExact(PFN_glVertexAttrib4svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4svARB"); } } public void VertexAttrib4ubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvARB)) { try { MH_glVertexAttrib4ubvARB.invokeExact(PFN_glVertexAttrib4ubvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ubvARB"); } } public void VertexAttrib4uivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uivARB)) { try { MH_glVertexAttrib4uivARB.invokeExact(PFN_glVertexAttrib4uivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4uivARB"); } } public void VertexAttrib4usvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usvARB)) { try { MH_glVertexAttrib4usvARB.invokeExact(PFN_glVertexAttrib4usvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4usvARB"); } } public void VertexAttribPointerARB(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerARB)) { try { MH_glVertexAttribPointerARB.invokeExact(PFN_glVertexAttribPointerARB, index, size, type, normalized, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribPointerARB"); } } public void EnableVertexAttribArrayARB(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArrayARB)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArrayARB)) { try { MH_glEnableVertexAttribArrayARB.invokeExact(PFN_glEnableVertexAttribArrayARB, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArrayARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArrayARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexAttribArrayARB"); } } public void DisableVertexAttribArrayARB(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArrayARB)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArrayARB)) { try { MH_glDisableVertexAttribArrayARB.invokeExact(PFN_glDisableVertexAttribArrayARB, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArrayARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArrayARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexAttribArrayARB"); } } public void ProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramStringARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramStringARB)) { try { MH_glProgramStringARB.invokeExact(PFN_glProgramStringARB, target, format, len, string); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramStringARB"); } } public void BindProgramARB(@CType("GLenum") int target, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glBindProgramARB)) + if (!Unmarshal.isNullPointer(PFN_glBindProgramARB)) { try { MH_glBindProgramARB.invokeExact(PFN_glBindProgramARB, target, program); - } - catch (Throwable e) { throw new RuntimeException("error in glBindProgramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindProgramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindProgramARB"); } } public void DeleteProgramsARB(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsARB)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsARB)) { try { MH_glDeleteProgramsARB.invokeExact(PFN_glDeleteProgramsARB, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgramsARB"); } } public void GenProgramsARB(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glGenProgramsARB)) + if (!Unmarshal.isNullPointer(PFN_glGenProgramsARB)) { try { MH_glGenProgramsARB.invokeExact(PFN_glGenProgramsARB, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glGenProgramsARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenProgramsARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenProgramsARB"); } } public void ProgramEnvParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dARB)) { try { MH_glProgramEnvParameter4dARB.invokeExact(PFN_glProgramEnvParameter4dARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4dARB"); } } public void ProgramEnvParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4dvARB)) { try { MH_glProgramEnvParameter4dvARB.invokeExact(PFN_glProgramEnvParameter4dvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4dvARB"); } } public void ProgramEnvParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fARB)) { try { MH_glProgramEnvParameter4fARB.invokeExact(PFN_glProgramEnvParameter4fARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4fARB"); } } public void ProgramEnvParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameter4fvARB)) { try { MH_glProgramEnvParameter4fvARB.invokeExact(PFN_glProgramEnvParameter4fvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameter4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameter4fvARB"); } } public void ProgramLocalParameter4dARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dARB)) { try { MH_glProgramLocalParameter4dARB.invokeExact(PFN_glProgramLocalParameter4dARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4dARB"); } } public void ProgramLocalParameter4dvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4dvARB)) { try { MH_glProgramLocalParameter4dvARB.invokeExact(PFN_glProgramLocalParameter4dvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4dvARB"); } } public void ProgramLocalParameter4fARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fARB)) { try { MH_glProgramLocalParameter4fARB.invokeExact(PFN_glProgramLocalParameter4fARB, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4fARB"); } } public void ProgramLocalParameter4fvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameter4fvARB)) { try { MH_glProgramLocalParameter4fvARB.invokeExact(PFN_glProgramLocalParameter4fvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameter4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameter4fvARB"); } } public void GetProgramEnvParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterdvARB)) { try { MH_glGetProgramEnvParameterdvARB.invokeExact(PFN_glGetProgramEnvParameterdvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramEnvParameterdvARB"); } } public void GetProgramEnvParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterfvARB)) { try { MH_glGetProgramEnvParameterfvARB.invokeExact(PFN_glGetProgramEnvParameterfvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramEnvParameterfvARB"); } } public void GetProgramLocalParameterdvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterdvARB)) { try { MH_glGetProgramLocalParameterdvARB.invokeExact(PFN_glGetProgramLocalParameterdvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramLocalParameterdvARB"); } } public void GetProgramLocalParameterfvARB(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterfvARB)) { try { MH_glGetProgramLocalParameterfvARB.invokeExact(PFN_glGetProgramLocalParameterfvARB, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramLocalParameterfvARB"); } } public void GetProgramivARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramivARB)) { try { MH_glGetProgramivARB.invokeExact(PFN_glGetProgramivARB, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramivARB"); } } public void GetProgramStringARB(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStringARB)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramStringARB)) { try { MH_glGetProgramStringARB.invokeExact(PFN_glGetProgramStringARB, target, pname, string); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramStringARB"); } } public void GetVertexAttribdvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvARB)) { try { MH_glGetVertexAttribdvARB.invokeExact(PFN_glGetVertexAttribdvARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribdvARB"); } } public void GetVertexAttribfvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvARB)) { try { MH_glGetVertexAttribfvARB.invokeExact(PFN_glGetVertexAttribfvARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribfvARB"); } } public void GetVertexAttribivARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivARB)) { try { MH_glGetVertexAttribivARB.invokeExact(PFN_glGetVertexAttribivARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribivARB"); } } public void GetVertexAttribPointervARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervARB)) { try { MH_glGetVertexAttribPointervARB.invokeExact(PFN_glGetVertexAttribPointervARB, index, pname, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribPointervARB"); } } public @CType("GLboolean") boolean IsProgramARB(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgramARB)) + if (!Unmarshal.isNullPointer(PFN_glIsProgramARB)) { try { return (boolean) MH_glIsProgramARB.invokeExact(PFN_glIsProgramARB, program); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgramARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgramARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgramARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java index e36729fa..60e1edb5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexShader.java @@ -193,326 +193,325 @@ public GLARBVertexShader(overrungl.opengl.GLLoadFunc func) { } public void VertexAttrib1fARB(@CType("GLuint") int index, @CType("GLfloat") float x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fARB)) { try { MH_glVertexAttrib1fARB.invokeExact(PFN_glVertexAttrib1fARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fARB"); } } public void VertexAttrib1sARB(@CType("GLuint") int index, @CType("GLshort") short x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sARB)) { try { MH_glVertexAttrib1sARB.invokeExact(PFN_glVertexAttrib1sARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1sARB"); } } public void VertexAttrib1dARB(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dARB)) { try { MH_glVertexAttrib1dARB.invokeExact(PFN_glVertexAttrib1dARB, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dARB"); } } public void VertexAttrib2fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fARB)) { try { MH_glVertexAttrib2fARB.invokeExact(PFN_glVertexAttrib2fARB, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fARB"); } } public void VertexAttrib2sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sARB)) { try { MH_glVertexAttrib2sARB.invokeExact(PFN_glVertexAttrib2sARB, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2sARB"); } } public void VertexAttrib2dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dARB)) { try { MH_glVertexAttrib2dARB.invokeExact(PFN_glVertexAttrib2dARB, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dARB"); } } public void VertexAttrib3fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fARB)) { try { MH_glVertexAttrib3fARB.invokeExact(PFN_glVertexAttrib3fARB, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fARB"); } } public void VertexAttrib3sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sARB)) { try { MH_glVertexAttrib3sARB.invokeExact(PFN_glVertexAttrib3sARB, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3sARB"); } } public void VertexAttrib3dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dARB)) { try { MH_glVertexAttrib3dARB.invokeExact(PFN_glVertexAttrib3dARB, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dARB"); } } public void VertexAttrib4fARB(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fARB)) { try { MH_glVertexAttrib4fARB.invokeExact(PFN_glVertexAttrib4fARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fARB"); } } public void VertexAttrib4sARB(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sARB)) { try { MH_glVertexAttrib4sARB.invokeExact(PFN_glVertexAttrib4sARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4sARB"); } } public void VertexAttrib4dARB(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dARB)) { try { MH_glVertexAttrib4dARB.invokeExact(PFN_glVertexAttrib4dARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dARB"); } } public void VertexAttrib4NubARB(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubARB)) { try { MH_glVertexAttrib4NubARB.invokeExact(PFN_glVertexAttrib4NubARB, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NubARB"); } } public void VertexAttrib1fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvARB)) { try { MH_glVertexAttrib1fvARB.invokeExact(PFN_glVertexAttrib1fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fvARB"); } } public void VertexAttrib1svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svARB)) { try { MH_glVertexAttrib1svARB.invokeExact(PFN_glVertexAttrib1svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1svARB"); } } public void VertexAttrib1dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvARB)) { try { MH_glVertexAttrib1dvARB.invokeExact(PFN_glVertexAttrib1dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dvARB"); } } public void VertexAttrib2fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvARB)) { try { MH_glVertexAttrib2fvARB.invokeExact(PFN_glVertexAttrib2fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fvARB"); } } public void VertexAttrib2svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svARB)) { try { MH_glVertexAttrib2svARB.invokeExact(PFN_glVertexAttrib2svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2svARB"); } } public void VertexAttrib2dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvARB)) { try { MH_glVertexAttrib2dvARB.invokeExact(PFN_glVertexAttrib2dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dvARB"); } } public void VertexAttrib3fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvARB)) { try { MH_glVertexAttrib3fvARB.invokeExact(PFN_glVertexAttrib3fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fvARB"); } } public void VertexAttrib3svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svARB)) { try { MH_glVertexAttrib3svARB.invokeExact(PFN_glVertexAttrib3svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3svARB"); } } public void VertexAttrib3dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvARB)) { try { MH_glVertexAttrib3dvARB.invokeExact(PFN_glVertexAttrib3dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dvARB"); } } public void VertexAttrib4fvARB(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvARB)) { try { MH_glVertexAttrib4fvARB.invokeExact(PFN_glVertexAttrib4fvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fvARB"); } } public void VertexAttrib4svARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svARB)) { try { MH_glVertexAttrib4svARB.invokeExact(PFN_glVertexAttrib4svARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4svARB"); } } public void VertexAttrib4dvARB(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvARB)) { try { MH_glVertexAttrib4dvARB.invokeExact(PFN_glVertexAttrib4dvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dvARB"); } } public void VertexAttrib4ivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ivARB)) { try { MH_glVertexAttrib4ivARB.invokeExact(PFN_glVertexAttrib4ivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ivARB"); } } public void VertexAttrib4bvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4bvARB)) { try { MH_glVertexAttrib4bvARB.invokeExact(PFN_glVertexAttrib4bvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4bvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4bvARB"); } } public void VertexAttrib4ubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvARB)) { try { MH_glVertexAttrib4ubvARB.invokeExact(PFN_glVertexAttrib4ubvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ubvARB"); } } public void VertexAttrib4usvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4usvARB)) { try { MH_glVertexAttrib4usvARB.invokeExact(PFN_glVertexAttrib4usvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4usvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4usvARB"); } } public void VertexAttrib4uivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4uivARB)) { try { MH_glVertexAttrib4uivARB.invokeExact(PFN_glVertexAttrib4uivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4uivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4uivARB"); } } public void VertexAttrib4NbvARB(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NbvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NbvARB)) { try { MH_glVertexAttrib4NbvARB.invokeExact(PFN_glVertexAttrib4NbvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NbvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NbvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NbvARB"); } } public void VertexAttrib4NsvARB(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NsvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NsvARB)) { try { MH_glVertexAttrib4NsvARB.invokeExact(PFN_glVertexAttrib4NsvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NsvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NsvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NsvARB"); } } public void VertexAttrib4NivARB(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NivARB)) { try { MH_glVertexAttrib4NivARB.invokeExact(PFN_glVertexAttrib4NivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NivARB"); } } public void VertexAttrib4NubvARB(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NubvARB)) { try { MH_glVertexAttrib4NubvARB.invokeExact(PFN_glVertexAttrib4NubvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NubvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NubvARB"); } } public void VertexAttrib4NusvARB(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NusvARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NusvARB)) { try { MH_glVertexAttrib4NusvARB.invokeExact(PFN_glVertexAttrib4NusvARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NusvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NusvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NusvARB"); } } public void VertexAttrib4NuivARB(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NuivARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4NuivARB)) { try { MH_glVertexAttrib4NuivARB.invokeExact(PFN_glVertexAttrib4NuivARB, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NuivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4NuivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4NuivARB"); } } public void VertexAttribPointerARB(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerARB)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerARB)) { try { MH_glVertexAttribPointerARB.invokeExact(PFN_glVertexAttribPointerARB, index, size, type, normalized, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribPointerARB"); } } public void EnableVertexAttribArrayARB(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArrayARB)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexAttribArrayARB)) { try { MH_glEnableVertexAttribArrayARB.invokeExact(PFN_glEnableVertexAttribArrayARB, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArrayARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexAttribArrayARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexAttribArrayARB"); } } public void DisableVertexAttribArrayARB(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArrayARB)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexAttribArrayARB)) { try { MH_glDisableVertexAttribArrayARB.invokeExact(PFN_glDisableVertexAttribArrayARB, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArrayARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexAttribArrayARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexAttribArrayARB"); } } public void BindAttribLocationARB(@CType("GLhandleARB") int programObj, @CType("GLuint") int index, @CType("const GLcharARB *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glBindAttribLocationARB)) + if (!Unmarshal.isNullPointer(PFN_glBindAttribLocationARB)) { try { MH_glBindAttribLocationARB.invokeExact(PFN_glBindAttribLocationARB, programObj, index, name); - } - catch (Throwable e) { throw new RuntimeException("error in glBindAttribLocationARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindAttribLocationARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindAttribLocationARB"); } } public void GetActiveAttribARB(@CType("GLhandleARB") int programObj, @CType("GLuint") int index, @CType("GLsizei") int maxLength, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLcharARB *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveAttribARB)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveAttribARB)) { try { MH_glGetActiveAttribARB.invokeExact(PFN_glGetActiveAttribARB, programObj, index, maxLength, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveAttribARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveAttribARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveAttribARB"); } } public @CType("GLint") int GetAttribLocationARB(@CType("GLhandleARB") int programObj, @CType("const GLcharARB *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetAttribLocationARB)) + if (!Unmarshal.isNullPointer(PFN_glGetAttribLocationARB)) { try { return (int) MH_glGetAttribLocationARB.invokeExact(PFN_glGetAttribLocationARB, programObj, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetAttribLocationARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetAttribLocationARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetAttribLocationARB"); } } public void GetVertexAttribdvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvARB)) { try { MH_glGetVertexAttribdvARB.invokeExact(PFN_glGetVertexAttribdvARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribdvARB"); } } public void GetVertexAttribfvARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvARB)) { try { MH_glGetVertexAttribfvARB.invokeExact(PFN_glGetVertexAttribfvARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribfvARB"); } } public void GetVertexAttribivARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivARB)) { try { MH_glGetVertexAttribivARB.invokeExact(PFN_glGetVertexAttribivARB, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribivARB"); } } public void GetVertexAttribPointervARB(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervARB)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervARB)) { try { MH_glGetVertexAttribPointervARB.invokeExact(PFN_glGetVertexAttribPointervARB, index, pname, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribPointervARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java index 0c2cfcb9..81fbf63c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBVertexType2101010Rev.java @@ -144,269 +144,269 @@ public GLARBVertexType2101010Rev(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribP1ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1ui)) { try { MH_glVertexAttribP1ui.invokeExact(PFN_glVertexAttribP1ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP1ui"); } } public void VertexAttribP1uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP1uiv)) { try { MH_glVertexAttribP1uiv.invokeExact(PFN_glVertexAttribP1uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP1uiv"); } } public void VertexAttribP2ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2ui)) { try { MH_glVertexAttribP2ui.invokeExact(PFN_glVertexAttribP2ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP2ui"); } } public void VertexAttribP2uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP2uiv)) { try { MH_glVertexAttribP2uiv.invokeExact(PFN_glVertexAttribP2uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP2uiv"); } } public void VertexAttribP3ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3ui)) { try { MH_glVertexAttribP3ui.invokeExact(PFN_glVertexAttribP3ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP3ui"); } } public void VertexAttribP3uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP3uiv)) { try { MH_glVertexAttribP3uiv.invokeExact(PFN_glVertexAttribP3uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP3uiv"); } } public void VertexAttribP4ui(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4ui)) { try { MH_glVertexAttribP4ui.invokeExact(PFN_glVertexAttribP4ui, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP4ui"); } } public void VertexAttribP4uiv(@CType("GLuint") int index, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribP4uiv)) { try { MH_glVertexAttribP4uiv.invokeExact(PFN_glVertexAttribP4uiv, index, type, normalized, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribP4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribP4uiv"); } } public void VertexP2ui(@CType("GLenum") int type, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexP2ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexP2ui)) { try { MH_glVertexP2ui.invokeExact(PFN_glVertexP2ui, type, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexP2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexP2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexP2ui"); } } public void VertexP2uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexP2uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexP2uiv)) { try { MH_glVertexP2uiv.invokeExact(PFN_glVertexP2uiv, type, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexP2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexP2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexP2uiv"); } } public void VertexP3ui(@CType("GLenum") int type, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexP3ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexP3ui)) { try { MH_glVertexP3ui.invokeExact(PFN_glVertexP3ui, type, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexP3ui"); } } public void VertexP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexP3uiv)) { try { MH_glVertexP3uiv.invokeExact(PFN_glVertexP3uiv, type, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexP3uiv"); } } public void VertexP4ui(@CType("GLenum") int type, @CType("GLuint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexP4ui)) + if (!Unmarshal.isNullPointer(PFN_glVertexP4ui)) { try { MH_glVertexP4ui.invokeExact(PFN_glVertexP4ui, type, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexP4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexP4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexP4ui"); } } public void VertexP4uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexP4uiv)) + if (!Unmarshal.isNullPointer(PFN_glVertexP4uiv)) { try { MH_glVertexP4uiv.invokeExact(PFN_glVertexP4uiv, type, value); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexP4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexP4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexP4uiv"); } } public void TexCoordP1ui(@CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP1ui)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP1ui)) { try { MH_glTexCoordP1ui.invokeExact(PFN_glTexCoordP1ui, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP1ui"); } } public void TexCoordP1uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP1uiv)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP1uiv)) { try { MH_glTexCoordP1uiv.invokeExact(PFN_glTexCoordP1uiv, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP1uiv"); } } public void TexCoordP2ui(@CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP2ui)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP2ui)) { try { MH_glTexCoordP2ui.invokeExact(PFN_glTexCoordP2ui, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP2ui"); } } public void TexCoordP2uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP2uiv)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP2uiv)) { try { MH_glTexCoordP2uiv.invokeExact(PFN_glTexCoordP2uiv, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP2uiv"); } } public void TexCoordP3ui(@CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP3ui)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP3ui)) { try { MH_glTexCoordP3ui.invokeExact(PFN_glTexCoordP3ui, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP3ui"); } } public void TexCoordP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP3uiv)) { try { MH_glTexCoordP3uiv.invokeExact(PFN_glTexCoordP3uiv, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP3uiv"); } } public void TexCoordP4ui(@CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP4ui)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP4ui)) { try { MH_glTexCoordP4ui.invokeExact(PFN_glTexCoordP4ui, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP4ui"); } } public void TexCoordP4uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordP4uiv)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordP4uiv)) { try { MH_glTexCoordP4uiv.invokeExact(PFN_glTexCoordP4uiv, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordP4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordP4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordP4uiv"); } } public void MultiTexCoordP1ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP1ui)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP1ui)) { try { MH_glMultiTexCoordP1ui.invokeExact(PFN_glMultiTexCoordP1ui, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP1ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP1ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP1ui"); } } public void MultiTexCoordP1uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP1uiv)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP1uiv)) { try { MH_glMultiTexCoordP1uiv.invokeExact(PFN_glMultiTexCoordP1uiv, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP1uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP1uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP1uiv"); } } public void MultiTexCoordP2ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP2ui)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP2ui)) { try { MH_glMultiTexCoordP2ui.invokeExact(PFN_glMultiTexCoordP2ui, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP2ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP2ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP2ui"); } } public void MultiTexCoordP2uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP2uiv)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP2uiv)) { try { MH_glMultiTexCoordP2uiv.invokeExact(PFN_glMultiTexCoordP2uiv, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP2uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP2uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP2uiv"); } } public void MultiTexCoordP3ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP3ui)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP3ui)) { try { MH_glMultiTexCoordP3ui.invokeExact(PFN_glMultiTexCoordP3ui, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP3ui"); } } public void MultiTexCoordP3uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP3uiv)) { try { MH_glMultiTexCoordP3uiv.invokeExact(PFN_glMultiTexCoordP3uiv, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP3uiv"); } } public void MultiTexCoordP4ui(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP4ui)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP4ui)) { try { MH_glMultiTexCoordP4ui.invokeExact(PFN_glMultiTexCoordP4ui, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP4ui"); } } public void MultiTexCoordP4uiv(@CType("GLenum") int texture, @CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP4uiv)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordP4uiv)) { try { MH_glMultiTexCoordP4uiv.invokeExact(PFN_glMultiTexCoordP4uiv, texture, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordP4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordP4uiv"); } } public void NormalP3ui(@CType("GLenum") int type, @CType("GLuint") int coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalP3ui)) + if (!Unmarshal.isNullPointer(PFN_glNormalP3ui)) { try { MH_glNormalP3ui.invokeExact(PFN_glNormalP3ui, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalP3ui"); } } public void NormalP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glNormalP3uiv)) { try { MH_glNormalP3uiv.invokeExact(PFN_glNormalP3uiv, type, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalP3uiv"); } } public void ColorP3ui(@CType("GLenum") int type, @CType("GLuint") int color) { - try { if (!Unmarshal.isNullPointer(PFN_glColorP3ui)) + if (!Unmarshal.isNullPointer(PFN_glColorP3ui)) { try { MH_glColorP3ui.invokeExact(PFN_glColorP3ui, type, color); - } - catch (Throwable e) { throw new RuntimeException("error in glColorP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorP3ui"); } } public void ColorP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment color) { - try { if (!Unmarshal.isNullPointer(PFN_glColorP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glColorP3uiv)) { try { MH_glColorP3uiv.invokeExact(PFN_glColorP3uiv, type, color); - } - catch (Throwable e) { throw new RuntimeException("error in glColorP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorP3uiv"); } } public void ColorP4ui(@CType("GLenum") int type, @CType("GLuint") int color) { - try { if (!Unmarshal.isNullPointer(PFN_glColorP4ui)) + if (!Unmarshal.isNullPointer(PFN_glColorP4ui)) { try { MH_glColorP4ui.invokeExact(PFN_glColorP4ui, type, color); - } - catch (Throwable e) { throw new RuntimeException("error in glColorP4ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorP4ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorP4ui"); } } public void ColorP4uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment color) { - try { if (!Unmarshal.isNullPointer(PFN_glColorP4uiv)) + if (!Unmarshal.isNullPointer(PFN_glColorP4uiv)) { try { MH_glColorP4uiv.invokeExact(PFN_glColorP4uiv, type, color); - } - catch (Throwable e) { throw new RuntimeException("error in glColorP4uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorP4uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorP4uiv"); } } public void SecondaryColorP3ui(@CType("GLenum") int type, @CType("GLuint") int color) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorP3ui)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColorP3ui)) { try { MH_glSecondaryColorP3ui.invokeExact(PFN_glSecondaryColorP3ui, type, color); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorP3ui", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorP3ui", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColorP3ui"); } } public void SecondaryColorP3uiv(@CType("GLenum") int type, @CType("const GLuint *") java.lang.foreign.MemorySegment color) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorP3uiv)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColorP3uiv)) { try { MH_glSecondaryColorP3uiv.invokeExact(PFN_glSecondaryColorP3uiv, type, color); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorP3uiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorP3uiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColorP3uiv"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java index cb2fd6fb..5afbb188 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBViewportArray.java @@ -77,87 +77,87 @@ public GLARBViewportArray(overrungl.opengl.GLLoadFunc func) { } public void ViewportArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportArrayv)) + if (!Unmarshal.isNullPointer(PFN_glViewportArrayv)) { try { MH_glViewportArrayv.invokeExact(PFN_glViewportArrayv, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportArrayv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportArrayv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportArrayv"); } } public void ViewportIndexedf(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float w, @CType("GLfloat") float h) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedf)) + if (!Unmarshal.isNullPointer(PFN_glViewportIndexedf)) { try { MH_glViewportIndexedf.invokeExact(PFN_glViewportIndexedf, index, x, y, w, h); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedf", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedf", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportIndexedf"); } } public void ViewportIndexedfv(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportIndexedfv)) + if (!Unmarshal.isNullPointer(PFN_glViewportIndexedfv)) { try { MH_glViewportIndexedfv.invokeExact(PFN_glViewportIndexedfv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportIndexedfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportIndexedfv"); } } public void ScissorArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorArrayv)) + if (!Unmarshal.isNullPointer(PFN_glScissorArrayv)) { try { MH_glScissorArrayv.invokeExact(PFN_glScissorArrayv, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorArrayv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorArrayv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorArrayv"); } } public void ScissorIndexed(@CType("GLuint") int index, @CType("GLint") int left, @CType("GLint") int bottom, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexed)) + if (!Unmarshal.isNullPointer(PFN_glScissorIndexed)) { try { MH_glScissorIndexed.invokeExact(PFN_glScissorIndexed, index, left, bottom, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorIndexed"); } } public void ScissorIndexedv(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorIndexedv)) + if (!Unmarshal.isNullPointer(PFN_glScissorIndexedv)) { try { MH_glScissorIndexedv.invokeExact(PFN_glScissorIndexedv, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorIndexedv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorIndexedv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorIndexedv"); } } public void DepthRangeArrayv(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeArrayv)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangeArrayv)) { try { MH_glDepthRangeArrayv.invokeExact(PFN_glDepthRangeArrayv, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArrayv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArrayv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangeArrayv"); } } public void DepthRangeIndexed(@CType("GLuint") int index, @CType("GLdouble") double n, @CType("GLdouble") double f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexed)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexed)) { try { MH_glDepthRangeIndexed.invokeExact(PFN_glDepthRangeIndexed, index, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexed", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexed", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangeIndexed"); } } public void GetFloati_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFloati_v)) + if (!Unmarshal.isNullPointer(PFN_glGetFloati_v)) { try { MH_glGetFloati_v.invokeExact(PFN_glGetFloati_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFloati_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFloati_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFloati_v"); } } public void GetDoublei_v(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDoublei_v)) + if (!Unmarshal.isNullPointer(PFN_glGetDoublei_v)) { try { MH_glGetDoublei_v.invokeExact(PFN_glGetDoublei_v, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_v", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_v", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDoublei_v"); } } public void DepthRangeArraydvNV(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeArraydvNV)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangeArraydvNV)) { try { MH_glDepthRangeArraydvNV.invokeExact(PFN_glDepthRangeArraydvNV, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArraydvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangeArraydvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangeArraydvNV"); } } public void DepthRangeIndexeddNV(@CType("GLuint") int index, @CType("GLdouble") double n, @CType("GLdouble") double f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexeddNV)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangeIndexeddNV)) { try { MH_glDepthRangeIndexeddNV.invokeExact(PFN_glDepthRangeIndexeddNV, index, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexeddNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangeIndexeddNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangeIndexeddNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java index 3fab3071..7eec4458 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/arb/GLARBWindowPos.java @@ -77,115 +77,115 @@ public GLARBWindowPos(overrungl.opengl.GLLoadFunc func) { } public void WindowPos2dARB(@CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2dARB)) { try { MH_glWindowPos2dARB.invokeExact(PFN_glWindowPos2dARB, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2dARB"); } } public void WindowPos2dvARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dvARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2dvARB)) { try { MH_glWindowPos2dvARB.invokeExact(PFN_glWindowPos2dvARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2dvARB"); } } public void WindowPos2fARB(@CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2fARB)) { try { MH_glWindowPos2fARB.invokeExact(PFN_glWindowPos2fARB, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2fARB"); } } public void WindowPos2fvARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fvARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2fvARB)) { try { MH_glWindowPos2fvARB.invokeExact(PFN_glWindowPos2fvARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2fvARB"); } } public void WindowPos2iARB(@CType("GLint") int x, @CType("GLint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2iARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2iARB)) { try { MH_glWindowPos2iARB.invokeExact(PFN_glWindowPos2iARB, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2iARB"); } } public void WindowPos2ivARB(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2ivARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2ivARB)) { try { MH_glWindowPos2ivARB.invokeExact(PFN_glWindowPos2ivARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2ivARB"); } } public void WindowPos2sARB(@CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2sARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2sARB)) { try { MH_glWindowPos2sARB.invokeExact(PFN_glWindowPos2sARB, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2sARB"); } } public void WindowPos2svARB(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2svARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2svARB)) { try { MH_glWindowPos2svARB.invokeExact(PFN_glWindowPos2svARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2svARB"); } } public void WindowPos3dARB(@CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3dARB)) { try { MH_glWindowPos3dARB.invokeExact(PFN_glWindowPos3dARB, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3dARB"); } } public void WindowPos3dvARB(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dvARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3dvARB)) { try { MH_glWindowPos3dvARB.invokeExact(PFN_glWindowPos3dvARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3dvARB"); } } public void WindowPos3fARB(@CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3fARB)) { try { MH_glWindowPos3fARB.invokeExact(PFN_glWindowPos3fARB, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3fARB"); } } public void WindowPos3fvARB(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fvARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3fvARB)) { try { MH_glWindowPos3fvARB.invokeExact(PFN_glWindowPos3fvARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fvARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fvARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3fvARB"); } } public void WindowPos3iARB(@CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3iARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3iARB)) { try { MH_glWindowPos3iARB.invokeExact(PFN_glWindowPos3iARB, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3iARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3iARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3iARB"); } } public void WindowPos3ivARB(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3ivARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3ivARB)) { try { MH_glWindowPos3ivARB.invokeExact(PFN_glWindowPos3ivARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3ivARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3ivARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3ivARB"); } } public void WindowPos3sARB(@CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3sARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3sARB)) { try { MH_glWindowPos3sARB.invokeExact(PFN_glWindowPos3sARB, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3sARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3sARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3sARB"); } } public void WindowPos3svARB(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3svARB)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3svARB)) { try { MH_glWindowPos3svARB.invokeExact(PFN_glWindowPos3svARB, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3svARB", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3svARB", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3svARB"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java index d1587959..12b0ba77 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIDrawBuffers.java @@ -49,10 +49,10 @@ public GLATIDrawBuffers(overrungl.opengl.GLLoadFunc func) { } public void DrawBuffersATI(@CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawBuffersATI)) + if (!Unmarshal.isNullPointer(PFN_glDrawBuffersATI)) { try { MH_glDrawBuffersATI.invokeExact(PFN_glDrawBuffersATI, n, bufs); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawBuffersATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawBuffersATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawBuffersATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java index af22ef50..4eb6c9cf 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIElementArray.java @@ -41,24 +41,24 @@ public GLATIElementArray(overrungl.opengl.GLLoadFunc func) { } public void ElementPointerATI(@CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glElementPointerATI)) + if (!Unmarshal.isNullPointer(PFN_glElementPointerATI)) { try { MH_glElementPointerATI.invokeExact(PFN_glElementPointerATI, type, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glElementPointerATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glElementPointerATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glElementPointerATI"); } } public void DrawElementArrayATI(@CType("GLenum") int mode, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementArrayATI)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementArrayATI)) { try { MH_glDrawElementArrayATI.invokeExact(PFN_glDrawElementArrayATI, mode, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementArrayATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementArrayATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementArrayATI"); } } public void DrawRangeElementArrayATI(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementArrayATI)) + if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementArrayATI)) { try { MH_glDrawRangeElementArrayATI.invokeExact(PFN_glDrawRangeElementArrayATI, mode, start, end, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementArrayATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementArrayATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawRangeElementArrayATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java index 0548f06f..65d0d506 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIEnvmapBumpmap.java @@ -49,31 +49,31 @@ public GLATIEnvmapBumpmap(overrungl.opengl.GLLoadFunc func) { } public void TexBumpParameterivATI(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBumpParameterivATI)) + if (!Unmarshal.isNullPointer(PFN_glTexBumpParameterivATI)) { try { MH_glTexBumpParameterivATI.invokeExact(PFN_glTexBumpParameterivATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBumpParameterivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBumpParameterivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBumpParameterivATI"); } } public void TexBumpParameterfvATI(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBumpParameterfvATI)) + if (!Unmarshal.isNullPointer(PFN_glTexBumpParameterfvATI)) { try { MH_glTexBumpParameterfvATI.invokeExact(PFN_glTexBumpParameterfvATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBumpParameterfvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBumpParameterfvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBumpParameterfvATI"); } } public void GetTexBumpParameterivATI(@CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexBumpParameterivATI)) + if (!Unmarshal.isNullPointer(PFN_glGetTexBumpParameterivATI)) { try { MH_glGetTexBumpParameterivATI.invokeExact(PFN_glGetTexBumpParameterivATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexBumpParameterivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexBumpParameterivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexBumpParameterivATI"); } } public void GetTexBumpParameterfvATI(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexBumpParameterfvATI)) + if (!Unmarshal.isNullPointer(PFN_glGetTexBumpParameterfvATI)) { try { MH_glGetTexBumpParameterfvATI.invokeExact(PFN_glGetTexBumpParameterfvATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexBumpParameterfvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexBumpParameterfvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexBumpParameterfvATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java index cc9f95fb..8c674e70 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIFragmentShader.java @@ -175,102 +175,101 @@ public GLATIFragmentShader(overrungl.opengl.GLLoadFunc func) { } public @CType("GLuint") int GenFragmentShadersATI(@CType("GLuint") int range) { - try { if (!Unmarshal.isNullPointer(PFN_glGenFragmentShadersATI)) + if (!Unmarshal.isNullPointer(PFN_glGenFragmentShadersATI)) { try { return (int) MH_glGenFragmentShadersATI.invokeExact(PFN_glGenFragmentShadersATI, range); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGenFragmentShadersATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenFragmentShadersATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenFragmentShadersATI"); } } public void BindFragmentShaderATI(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFragmentShaderATI)) + if (!Unmarshal.isNullPointer(PFN_glBindFragmentShaderATI)) { try { MH_glBindFragmentShaderATI.invokeExact(PFN_glBindFragmentShaderATI, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFragmentShaderATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFragmentShaderATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFragmentShaderATI"); } } public void DeleteFragmentShaderATI(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteFragmentShaderATI)) + if (!Unmarshal.isNullPointer(PFN_glDeleteFragmentShaderATI)) { try { MH_glDeleteFragmentShaderATI.invokeExact(PFN_glDeleteFragmentShaderATI, id); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteFragmentShaderATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteFragmentShaderATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteFragmentShaderATI"); } } public void BeginFragmentShaderATI() { - try { if (!Unmarshal.isNullPointer(PFN_glBeginFragmentShaderATI)) + if (!Unmarshal.isNullPointer(PFN_glBeginFragmentShaderATI)) { try { MH_glBeginFragmentShaderATI.invokeExact(PFN_glBeginFragmentShaderATI); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginFragmentShaderATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginFragmentShaderATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginFragmentShaderATI"); } } public void EndFragmentShaderATI() { - try { if (!Unmarshal.isNullPointer(PFN_glEndFragmentShaderATI)) + if (!Unmarshal.isNullPointer(PFN_glEndFragmentShaderATI)) { try { MH_glEndFragmentShaderATI.invokeExact(PFN_glEndFragmentShaderATI); - } - catch (Throwable e) { throw new RuntimeException("error in glEndFragmentShaderATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndFragmentShaderATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndFragmentShaderATI"); } } public void PassTexCoordATI(@CType("GLuint") int dst, @CType("GLuint") int coord, @CType("GLenum") int swizzle) { - try { if (!Unmarshal.isNullPointer(PFN_glPassTexCoordATI)) + if (!Unmarshal.isNullPointer(PFN_glPassTexCoordATI)) { try { MH_glPassTexCoordATI.invokeExact(PFN_glPassTexCoordATI, dst, coord, swizzle); - } - catch (Throwable e) { throw new RuntimeException("error in glPassTexCoordATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPassTexCoordATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPassTexCoordATI"); } } public void SampleMapATI(@CType("GLuint") int dst, @CType("GLuint") int interp, @CType("GLenum") int swizzle) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleMapATI)) + if (!Unmarshal.isNullPointer(PFN_glSampleMapATI)) { try { MH_glSampleMapATI.invokeExact(PFN_glSampleMapATI, dst, interp, swizzle); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleMapATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleMapATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleMapATI"); } } public void ColorFragmentOp1ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMask, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod) { - try { if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp1ATI)) + if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp1ATI)) { try { MH_glColorFragmentOp1ATI.invokeExact(PFN_glColorFragmentOp1ATI, op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod); - } - catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp1ATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp1ATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorFragmentOp1ATI"); } } public void ColorFragmentOp2ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMask, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod) { - try { if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp2ATI)) + if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp2ATI)) { try { MH_glColorFragmentOp2ATI.invokeExact(PFN_glColorFragmentOp2ATI, op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); - } - catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp2ATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp2ATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorFragmentOp2ATI"); } } public void ColorFragmentOp3ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMask, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod, @CType("GLuint") int arg3, @CType("GLuint") int arg3Rep, @CType("GLuint") int arg3Mod) { - try { if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp3ATI)) + if (!Unmarshal.isNullPointer(PFN_glColorFragmentOp3ATI)) { try { MH_glColorFragmentOp3ATI.invokeExact(PFN_glColorFragmentOp3ATI, op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); - } - catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp3ATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorFragmentOp3ATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorFragmentOp3ATI"); } } public void AlphaFragmentOp1ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod) { - try { if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp1ATI)) + if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp1ATI)) { try { MH_glAlphaFragmentOp1ATI.invokeExact(PFN_glAlphaFragmentOp1ATI, op, dst, dstMod, arg1, arg1Rep, arg1Mod); - } - catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp1ATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp1ATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAlphaFragmentOp1ATI"); } } public void AlphaFragmentOp2ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod) { - try { if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp2ATI)) + if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp2ATI)) { try { MH_glAlphaFragmentOp2ATI.invokeExact(PFN_glAlphaFragmentOp2ATI, op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); - } - catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp2ATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp2ATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAlphaFragmentOp2ATI"); } } public void AlphaFragmentOp3ATI(@CType("GLenum") int op, @CType("GLuint") int dst, @CType("GLuint") int dstMod, @CType("GLuint") int arg1, @CType("GLuint") int arg1Rep, @CType("GLuint") int arg1Mod, @CType("GLuint") int arg2, @CType("GLuint") int arg2Rep, @CType("GLuint") int arg2Mod, @CType("GLuint") int arg3, @CType("GLuint") int arg3Rep, @CType("GLuint") int arg3Mod) { - try { if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp3ATI)) + if (!Unmarshal.isNullPointer(PFN_glAlphaFragmentOp3ATI)) { try { MH_glAlphaFragmentOp3ATI.invokeExact(PFN_glAlphaFragmentOp3ATI, op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); - } - catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp3ATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAlphaFragmentOp3ATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAlphaFragmentOp3ATI"); } } public void SetFragmentShaderConstantATI(@CType("GLuint") int dst, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glSetFragmentShaderConstantATI)) + if (!Unmarshal.isNullPointer(PFN_glSetFragmentShaderConstantATI)) { try { MH_glSetFragmentShaderConstantATI.invokeExact(PFN_glSetFragmentShaderConstantATI, dst, value); - } - catch (Throwable e) { throw new RuntimeException("error in glSetFragmentShaderConstantATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSetFragmentShaderConstantATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSetFragmentShaderConstantATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java index 026ce919..1be00e5b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIMapObjectBuffer.java @@ -35,18 +35,17 @@ public GLATIMapObjectBuffer(overrungl.opengl.GLLoadFunc func) { } public @CType("void*") java.lang.foreign.MemorySegment MapObjectBufferATI(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glMapObjectBufferATI)) + if (!Unmarshal.isNullPointer(PFN_glMapObjectBufferATI)) { try { return (java.lang.foreign.MemorySegment) MH_glMapObjectBufferATI.invokeExact(PFN_glMapObjectBufferATI, buffer); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapObjectBufferATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapObjectBufferATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapObjectBufferATI"); } } public void UnmapObjectBufferATI(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapObjectBufferATI)) + if (!Unmarshal.isNullPointer(PFN_glUnmapObjectBufferATI)) { try { MH_glUnmapObjectBufferATI.invokeExact(PFN_glUnmapObjectBufferATI, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapObjectBufferATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapObjectBufferATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapObjectBufferATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java index 4d6ecd8a..f9d17a2f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIPnTriangles.java @@ -44,17 +44,17 @@ public GLATIPnTriangles(overrungl.opengl.GLLoadFunc func) { } public void PNTrianglesiATI(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPNTrianglesiATI)) + if (!Unmarshal.isNullPointer(PFN_glPNTrianglesiATI)) { try { MH_glPNTrianglesiATI.invokeExact(PFN_glPNTrianglesiATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPNTrianglesiATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPNTrianglesiATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPNTrianglesiATI"); } } public void PNTrianglesfATI(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPNTrianglesfATI)) + if (!Unmarshal.isNullPointer(PFN_glPNTrianglesfATI)) { try { MH_glPNTrianglesfATI.invokeExact(PFN_glPNTrianglesfATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPNTrianglesfATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPNTrianglesfATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPNTrianglesfATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java index aa1a9b12..e9c1e6ac 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATISeparateStencil.java @@ -39,17 +39,17 @@ public GLATISeparateStencil(overrungl.opengl.GLLoadFunc func) { } public void StencilOpSeparateATI(@CType("GLenum") int face, @CType("GLenum") int sfail, @CType("GLenum") int dpfail, @CType("GLenum") int dppass) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilOpSeparateATI)) + if (!Unmarshal.isNullPointer(PFN_glStencilOpSeparateATI)) { try { MH_glStencilOpSeparateATI.invokeExact(PFN_glStencilOpSeparateATI, face, sfail, dpfail, dppass); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilOpSeparateATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilOpSeparateATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilOpSeparateATI"); } } public void StencilFuncSeparateATI(@CType("GLenum") int frontfunc, @CType("GLenum") int backfunc, @CType("GLint") int ref, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilFuncSeparateATI)) + if (!Unmarshal.isNullPointer(PFN_glStencilFuncSeparateATI)) { try { MH_glStencilFuncSeparateATI.invokeExact(PFN_glStencilFuncSeparateATI, frontfunc, backfunc, ref, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilFuncSeparateATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilFuncSeparateATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilFuncSeparateATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java index 8960cd1e..3216baaf 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexArrayObject.java @@ -73,89 +73,87 @@ public GLATIVertexArrayObject(overrungl.opengl.GLLoadFunc func) { } public @CType("GLuint") int NewObjectBufferATI(@CType("GLsizei") int size, @CType("const void *") java.lang.foreign.MemorySegment pointer, @CType("GLenum") int usage) { - try { if (!Unmarshal.isNullPointer(PFN_glNewObjectBufferATI)) + if (!Unmarshal.isNullPointer(PFN_glNewObjectBufferATI)) { try { return (int) MH_glNewObjectBufferATI.invokeExact(PFN_glNewObjectBufferATI, size, pointer, usage); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glNewObjectBufferATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNewObjectBufferATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNewObjectBufferATI"); } } public @CType("GLboolean") boolean IsObjectBufferATI(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsObjectBufferATI)) + if (!Unmarshal.isNullPointer(PFN_glIsObjectBufferATI)) { try { return (boolean) MH_glIsObjectBufferATI.invokeExact(PFN_glIsObjectBufferATI, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsObjectBufferATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsObjectBufferATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsObjectBufferATI"); } } public void UpdateObjectBufferATI(@CType("GLuint") int buffer, @CType("GLuint") int offset, @CType("GLsizei") int size, @CType("const void *") java.lang.foreign.MemorySegment pointer, @CType("GLenum") int preserve) { - try { if (!Unmarshal.isNullPointer(PFN_glUpdateObjectBufferATI)) + if (!Unmarshal.isNullPointer(PFN_glUpdateObjectBufferATI)) { try { MH_glUpdateObjectBufferATI.invokeExact(PFN_glUpdateObjectBufferATI, buffer, offset, size, pointer, preserve); - } - catch (Throwable e) { throw new RuntimeException("error in glUpdateObjectBufferATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUpdateObjectBufferATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUpdateObjectBufferATI"); } } public void GetObjectBufferfvATI(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectBufferfvATI)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectBufferfvATI)) { try { MH_glGetObjectBufferfvATI.invokeExact(PFN_glGetObjectBufferfvATI, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectBufferfvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectBufferfvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectBufferfvATI"); } } public void GetObjectBufferivATI(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectBufferivATI)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectBufferivATI)) { try { MH_glGetObjectBufferivATI.invokeExact(PFN_glGetObjectBufferivATI, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectBufferivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectBufferivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectBufferivATI"); } } public void FreeObjectBufferATI(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glFreeObjectBufferATI)) + if (!Unmarshal.isNullPointer(PFN_glFreeObjectBufferATI)) { try { MH_glFreeObjectBufferATI.invokeExact(PFN_glFreeObjectBufferATI, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glFreeObjectBufferATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFreeObjectBufferATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFreeObjectBufferATI"); } } public void ArrayObjectATI(@CType("GLenum") int array, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLuint") int buffer, @CType("GLuint") int offset) { - try { if (!Unmarshal.isNullPointer(PFN_glArrayObjectATI)) + if (!Unmarshal.isNullPointer(PFN_glArrayObjectATI)) { try { MH_glArrayObjectATI.invokeExact(PFN_glArrayObjectATI, array, size, type, stride, buffer, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glArrayObjectATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glArrayObjectATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glArrayObjectATI"); } } public void GetArrayObjectfvATI(@CType("GLenum") int array, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetArrayObjectfvATI)) + if (!Unmarshal.isNullPointer(PFN_glGetArrayObjectfvATI)) { try { MH_glGetArrayObjectfvATI.invokeExact(PFN_glGetArrayObjectfvATI, array, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetArrayObjectfvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetArrayObjectfvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetArrayObjectfvATI"); } } public void GetArrayObjectivATI(@CType("GLenum") int array, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetArrayObjectivATI)) + if (!Unmarshal.isNullPointer(PFN_glGetArrayObjectivATI)) { try { MH_glGetArrayObjectivATI.invokeExact(PFN_glGetArrayObjectivATI, array, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetArrayObjectivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetArrayObjectivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetArrayObjectivATI"); } } public void VariantArrayObjectATI(@CType("GLuint") int id, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLuint") int buffer, @CType("GLuint") int offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantArrayObjectATI)) + if (!Unmarshal.isNullPointer(PFN_glVariantArrayObjectATI)) { try { MH_glVariantArrayObjectATI.invokeExact(PFN_glVariantArrayObjectATI, id, type, stride, buffer, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantArrayObjectATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantArrayObjectATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantArrayObjectATI"); } } public void GetVariantArrayObjectfvATI(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVariantArrayObjectfvATI)) + if (!Unmarshal.isNullPointer(PFN_glGetVariantArrayObjectfvATI)) { try { MH_glGetVariantArrayObjectfvATI.invokeExact(PFN_glGetVariantArrayObjectfvATI, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVariantArrayObjectfvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVariantArrayObjectfvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVariantArrayObjectfvATI"); } } public void GetVariantArrayObjectivATI(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVariantArrayObjectivATI)) + if (!Unmarshal.isNullPointer(PFN_glGetVariantArrayObjectivATI)) { try { MH_glGetVariantArrayObjectivATI.invokeExact(PFN_glGetVariantArrayObjectivATI, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVariantArrayObjectivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVariantArrayObjectivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVariantArrayObjectivATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java index 030ca2e9..3cd41608 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexAttribArrayObject.java @@ -38,24 +38,24 @@ public GLATIVertexAttribArrayObject(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribArrayObjectATI(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("GLuint") int buffer, @CType("GLuint") int offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribArrayObjectATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribArrayObjectATI)) { try { MH_glVertexAttribArrayObjectATI.invokeExact(PFN_glVertexAttribArrayObjectATI, index, size, type, normalized, stride, buffer, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribArrayObjectATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribArrayObjectATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribArrayObjectATI"); } } public void GetVertexAttribArrayObjectfvATI(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribArrayObjectfvATI)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribArrayObjectfvATI)) { try { MH_glGetVertexAttribArrayObjectfvATI.invokeExact(PFN_glGetVertexAttribArrayObjectfvATI, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribArrayObjectfvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribArrayObjectfvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribArrayObjectfvATI"); } } public void GetVertexAttribArrayObjectivATI(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribArrayObjectivATI)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribArrayObjectivATI)) { try { MH_glGetVertexAttribArrayObjectivATI.invokeExact(PFN_glGetVertexAttribArrayObjectivATI, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribArrayObjectivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribArrayObjectivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribArrayObjectivATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java index fed25acf..0bef9d17 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ati/GLATIVertexStreams.java @@ -174,318 +174,318 @@ public GLATIVertexStreams(overrungl.opengl.GLLoadFunc func) { } public void VertexStream1sATI(@CType("GLenum") int stream, @CType("GLshort") short x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1sATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1sATI)) { try { MH_glVertexStream1sATI.invokeExact(PFN_glVertexStream1sATI, stream, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1sATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1sATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1sATI"); } } public void VertexStream1svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1svATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1svATI)) { try { MH_glVertexStream1svATI.invokeExact(PFN_glVertexStream1svATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1svATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1svATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1svATI"); } } public void VertexStream1iATI(@CType("GLenum") int stream, @CType("GLint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1iATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1iATI)) { try { MH_glVertexStream1iATI.invokeExact(PFN_glVertexStream1iATI, stream, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1iATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1iATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1iATI"); } } public void VertexStream1ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1ivATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1ivATI)) { try { MH_glVertexStream1ivATI.invokeExact(PFN_glVertexStream1ivATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1ivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1ivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1ivATI"); } } public void VertexStream1fATI(@CType("GLenum") int stream, @CType("GLfloat") float x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1fATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1fATI)) { try { MH_glVertexStream1fATI.invokeExact(PFN_glVertexStream1fATI, stream, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1fATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1fATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1fATI"); } } public void VertexStream1fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1fvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1fvATI)) { try { MH_glVertexStream1fvATI.invokeExact(PFN_glVertexStream1fvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1fvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1fvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1fvATI"); } } public void VertexStream1dATI(@CType("GLenum") int stream, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1dATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1dATI)) { try { MH_glVertexStream1dATI.invokeExact(PFN_glVertexStream1dATI, stream, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1dATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1dATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1dATI"); } } public void VertexStream1dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream1dvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream1dvATI)) { try { MH_glVertexStream1dvATI.invokeExact(PFN_glVertexStream1dvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream1dvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream1dvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream1dvATI"); } } public void VertexStream2sATI(@CType("GLenum") int stream, @CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2sATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2sATI)) { try { MH_glVertexStream2sATI.invokeExact(PFN_glVertexStream2sATI, stream, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2sATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2sATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2sATI"); } } public void VertexStream2svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2svATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2svATI)) { try { MH_glVertexStream2svATI.invokeExact(PFN_glVertexStream2svATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2svATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2svATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2svATI"); } } public void VertexStream2iATI(@CType("GLenum") int stream, @CType("GLint") int x, @CType("GLint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2iATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2iATI)) { try { MH_glVertexStream2iATI.invokeExact(PFN_glVertexStream2iATI, stream, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2iATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2iATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2iATI"); } } public void VertexStream2ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2ivATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2ivATI)) { try { MH_glVertexStream2ivATI.invokeExact(PFN_glVertexStream2ivATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2ivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2ivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2ivATI"); } } public void VertexStream2fATI(@CType("GLenum") int stream, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2fATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2fATI)) { try { MH_glVertexStream2fATI.invokeExact(PFN_glVertexStream2fATI, stream, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2fATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2fATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2fATI"); } } public void VertexStream2fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2fvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2fvATI)) { try { MH_glVertexStream2fvATI.invokeExact(PFN_glVertexStream2fvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2fvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2fvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2fvATI"); } } public void VertexStream2dATI(@CType("GLenum") int stream, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2dATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2dATI)) { try { MH_glVertexStream2dATI.invokeExact(PFN_glVertexStream2dATI, stream, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2dATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2dATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2dATI"); } } public void VertexStream2dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream2dvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream2dvATI)) { try { MH_glVertexStream2dvATI.invokeExact(PFN_glVertexStream2dvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream2dvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream2dvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream2dvATI"); } } public void VertexStream3sATI(@CType("GLenum") int stream, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3sATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3sATI)) { try { MH_glVertexStream3sATI.invokeExact(PFN_glVertexStream3sATI, stream, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3sATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3sATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3sATI"); } } public void VertexStream3svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3svATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3svATI)) { try { MH_glVertexStream3svATI.invokeExact(PFN_glVertexStream3svATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3svATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3svATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3svATI"); } } public void VertexStream3iATI(@CType("GLenum") int stream, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3iATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3iATI)) { try { MH_glVertexStream3iATI.invokeExact(PFN_glVertexStream3iATI, stream, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3iATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3iATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3iATI"); } } public void VertexStream3ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3ivATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3ivATI)) { try { MH_glVertexStream3ivATI.invokeExact(PFN_glVertexStream3ivATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3ivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3ivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3ivATI"); } } public void VertexStream3fATI(@CType("GLenum") int stream, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3fATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3fATI)) { try { MH_glVertexStream3fATI.invokeExact(PFN_glVertexStream3fATI, stream, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3fATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3fATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3fATI"); } } public void VertexStream3fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3fvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3fvATI)) { try { MH_glVertexStream3fvATI.invokeExact(PFN_glVertexStream3fvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3fvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3fvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3fvATI"); } } public void VertexStream3dATI(@CType("GLenum") int stream, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3dATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3dATI)) { try { MH_glVertexStream3dATI.invokeExact(PFN_glVertexStream3dATI, stream, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3dATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3dATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3dATI"); } } public void VertexStream3dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream3dvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream3dvATI)) { try { MH_glVertexStream3dvATI.invokeExact(PFN_glVertexStream3dvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream3dvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream3dvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream3dvATI"); } } public void VertexStream4sATI(@CType("GLenum") int stream, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4sATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4sATI)) { try { MH_glVertexStream4sATI.invokeExact(PFN_glVertexStream4sATI, stream, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4sATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4sATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4sATI"); } } public void VertexStream4svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4svATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4svATI)) { try { MH_glVertexStream4svATI.invokeExact(PFN_glVertexStream4svATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4svATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4svATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4svATI"); } } public void VertexStream4iATI(@CType("GLenum") int stream, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4iATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4iATI)) { try { MH_glVertexStream4iATI.invokeExact(PFN_glVertexStream4iATI, stream, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4iATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4iATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4iATI"); } } public void VertexStream4ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4ivATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4ivATI)) { try { MH_glVertexStream4ivATI.invokeExact(PFN_glVertexStream4ivATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4ivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4ivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4ivATI"); } } public void VertexStream4fATI(@CType("GLenum") int stream, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4fATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4fATI)) { try { MH_glVertexStream4fATI.invokeExact(PFN_glVertexStream4fATI, stream, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4fATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4fATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4fATI"); } } public void VertexStream4fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4fvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4fvATI)) { try { MH_glVertexStream4fvATI.invokeExact(PFN_glVertexStream4fvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4fvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4fvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4fvATI"); } } public void VertexStream4dATI(@CType("GLenum") int stream, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4dATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4dATI)) { try { MH_glVertexStream4dATI.invokeExact(PFN_glVertexStream4dATI, stream, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4dATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4dATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4dATI"); } } public void VertexStream4dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexStream4dvATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexStream4dvATI)) { try { MH_glVertexStream4dvATI.invokeExact(PFN_glVertexStream4dvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexStream4dvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexStream4dvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexStream4dvATI"); } } public void NormalStream3bATI(@CType("GLenum") int stream, @CType("GLbyte") byte nx, @CType("GLbyte") byte ny, @CType("GLbyte") byte nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3bATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3bATI)) { try { MH_glNormalStream3bATI.invokeExact(PFN_glNormalStream3bATI, stream, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3bATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3bATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3bATI"); } } public void NormalStream3bvATI(@CType("GLenum") int stream, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3bvATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3bvATI)) { try { MH_glNormalStream3bvATI.invokeExact(PFN_glNormalStream3bvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3bvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3bvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3bvATI"); } } public void NormalStream3sATI(@CType("GLenum") int stream, @CType("GLshort") short nx, @CType("GLshort") short ny, @CType("GLshort") short nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3sATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3sATI)) { try { MH_glNormalStream3sATI.invokeExact(PFN_glNormalStream3sATI, stream, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3sATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3sATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3sATI"); } } public void NormalStream3svATI(@CType("GLenum") int stream, @CType("const GLshort *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3svATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3svATI)) { try { MH_glNormalStream3svATI.invokeExact(PFN_glNormalStream3svATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3svATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3svATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3svATI"); } } public void NormalStream3iATI(@CType("GLenum") int stream, @CType("GLint") int nx, @CType("GLint") int ny, @CType("GLint") int nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3iATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3iATI)) { try { MH_glNormalStream3iATI.invokeExact(PFN_glNormalStream3iATI, stream, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3iATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3iATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3iATI"); } } public void NormalStream3ivATI(@CType("GLenum") int stream, @CType("const GLint *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3ivATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3ivATI)) { try { MH_glNormalStream3ivATI.invokeExact(PFN_glNormalStream3ivATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3ivATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3ivATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3ivATI"); } } public void NormalStream3fATI(@CType("GLenum") int stream, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3fATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3fATI)) { try { MH_glNormalStream3fATI.invokeExact(PFN_glNormalStream3fATI, stream, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3fATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3fATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3fATI"); } } public void NormalStream3fvATI(@CType("GLenum") int stream, @CType("const GLfloat *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3fvATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3fvATI)) { try { MH_glNormalStream3fvATI.invokeExact(PFN_glNormalStream3fvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3fvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3fvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3fvATI"); } } public void NormalStream3dATI(@CType("GLenum") int stream, @CType("GLdouble") double nx, @CType("GLdouble") double ny, @CType("GLdouble") double nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3dATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3dATI)) { try { MH_glNormalStream3dATI.invokeExact(PFN_glNormalStream3dATI, stream, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3dATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3dATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3dATI"); } } public void NormalStream3dvATI(@CType("GLenum") int stream, @CType("const GLdouble *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalStream3dvATI)) + if (!Unmarshal.isNullPointer(PFN_glNormalStream3dvATI)) { try { MH_glNormalStream3dvATI.invokeExact(PFN_glNormalStream3dvATI, stream, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalStream3dvATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalStream3dvATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalStream3dvATI"); } } public void ClientActiveVertexStreamATI(@CType("GLenum") int stream) { - try { if (!Unmarshal.isNullPointer(PFN_glClientActiveVertexStreamATI)) + if (!Unmarshal.isNullPointer(PFN_glClientActiveVertexStreamATI)) { try { MH_glClientActiveVertexStreamATI.invokeExact(PFN_glClientActiveVertexStreamATI, stream); - } - catch (Throwable e) { throw new RuntimeException("error in glClientActiveVertexStreamATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClientActiveVertexStreamATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClientActiveVertexStreamATI"); } } public void VertexBlendEnviATI(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexBlendEnviATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexBlendEnviATI)) { try { MH_glVertexBlendEnviATI.invokeExact(PFN_glVertexBlendEnviATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexBlendEnviATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexBlendEnviATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexBlendEnviATI"); } } public void VertexBlendEnvfATI(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexBlendEnvfATI)) + if (!Unmarshal.isNullPointer(PFN_glVertexBlendEnvfATI)) { try { MH_glVertexBlendEnvfATI.invokeExact(PFN_glVertexBlendEnvfATI, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexBlendEnvfATI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexBlendEnvfATI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexBlendEnvfATI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java index 9f92704b..db5c9946 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBindableUniform.java @@ -44,26 +44,24 @@ public GLEXTBindableUniform(overrungl.opengl.GLLoadFunc func) { } public void UniformBufferEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniformBufferEXT)) { try { MH_glUniformBufferEXT.invokeExact(PFN_glUniformBufferEXT, program, location, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformBufferEXT"); } } public @CType("GLint") int GetUniformBufferSizeEXT(@CType("GLuint") int program, @CType("GLint") int location) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformBufferSizeEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformBufferSizeEXT)) { try { return (int) MH_glGetUniformBufferSizeEXT.invokeExact(PFN_glGetUniformBufferSizeEXT, program, location); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformBufferSizeEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformBufferSizeEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformBufferSizeEXT"); } } public @CType("GLintptr") long GetUniformOffsetEXT(@CType("GLuint") int program, @CType("GLint") int location) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformOffsetEXT)) { try { return (long) MH_glGetUniformOffsetEXT.invokeExact(PFN_glGetUniformOffsetEXT, program, location); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformOffsetEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java index d5a88a28..9a57c684 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendColor.java @@ -37,10 +37,10 @@ public GLEXTBlendColor(overrungl.opengl.GLLoadFunc func) { } public void BlendColorEXT(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue, @CType("GLfloat") float alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendColorEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlendColorEXT)) { try { MH_glBlendColorEXT.invokeExact(PFN_glBlendColorEXT, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendColorEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendColorEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendColorEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java index 2d2b47d6..c5f4a0f6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendEquationSeparate.java @@ -34,10 +34,10 @@ public GLEXTBlendEquationSeparate(overrungl.opengl.GLLoadFunc func) { } public void BlendEquationSeparateEXT(@CType("GLenum") int modeRGB, @CType("GLenum") int modeAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationSeparateEXT)) { try { MH_glBlendEquationSeparateEXT.invokeExact(PFN_glBlendEquationSeparateEXT, modeRGB, modeAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationSeparateEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationSeparateEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java index 22aca7aa..06fc41c1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendFuncSeparate.java @@ -36,10 +36,10 @@ public GLEXTBlendFuncSeparate(overrungl.opengl.GLLoadFunc func) { } public void BlendFuncSeparateEXT(@CType("GLenum") int sfactorRGB, @CType("GLenum") int dfactorRGB, @CType("GLenum") int sfactorAlpha, @CType("GLenum") int dfactorAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateEXT)) { try { MH_glBlendFuncSeparateEXT.invokeExact(PFN_glBlendFuncSeparateEXT, sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncSeparateEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java index 75e395b0..e88b99c9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTBlendMinmax.java @@ -36,10 +36,10 @@ public GLEXTBlendMinmax(overrungl.opengl.GLLoadFunc func) { } public void BlendEquationEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendEquationEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlendEquationEXT)) { try { MH_glBlendEquationEXT.invokeExact(PFN_glBlendEquationEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendEquationEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendEquationEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendEquationEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java index b4f1a063..a4c9339f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTColorSubtable.java @@ -35,17 +35,17 @@ public GLEXTColorSubtable(overrungl.opengl.GLLoadFunc func) { } public void ColorSubTableEXT(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLsizei") int count, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glColorSubTableEXT)) + if (!Unmarshal.isNullPointer(PFN_glColorSubTableEXT)) { try { MH_glColorSubTableEXT.invokeExact(PFN_glColorSubTableEXT, target, start, count, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glColorSubTableEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorSubTableEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorSubTableEXT"); } } public void CopyColorSubTableEXT(@CType("GLenum") int target, @CType("GLsizei") int start, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyColorSubTableEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyColorSubTableEXT)) { try { MH_glCopyColorSubTableEXT.invokeExact(PFN_glCopyColorSubTableEXT, target, start, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyColorSubTableEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyColorSubTableEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyColorSubTableEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java index ca7438b1..afe18c76 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCompiledVertexArray.java @@ -37,17 +37,17 @@ public GLEXTCompiledVertexArray(overrungl.opengl.GLLoadFunc func) { } public void LockArraysEXT(@CType("GLint") int first, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glLockArraysEXT)) + if (!Unmarshal.isNullPointer(PFN_glLockArraysEXT)) { try { MH_glLockArraysEXT.invokeExact(PFN_glLockArraysEXT, first, count); - } - catch (Throwable e) { throw new RuntimeException("error in glLockArraysEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLockArraysEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLockArraysEXT"); } } public void UnlockArraysEXT() { - try { if (!Unmarshal.isNullPointer(PFN_glUnlockArraysEXT)) + if (!Unmarshal.isNullPointer(PFN_glUnlockArraysEXT)) { try { MH_glUnlockArraysEXT.invokeExact(PFN_glUnlockArraysEXT); - } - catch (Throwable e) { throw new RuntimeException("error in glUnlockArraysEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnlockArraysEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnlockArraysEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java index 75522a9a..feb3af54 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTConvolution.java @@ -88,94 +88,94 @@ public GLEXTConvolution(overrungl.opengl.GLLoadFunc func) { } public void ConvolutionFilter1DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter1DEXT)) { try { MH_glConvolutionFilter1DEXT.invokeExact(PFN_glConvolutionFilter1DEXT, target, internalformat, width, format, type, image); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionFilter1DEXT"); } } public void ConvolutionFilter2DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionFilter2DEXT)) { try { MH_glConvolutionFilter2DEXT.invokeExact(PFN_glConvolutionFilter2DEXT, target, internalformat, width, height, format, type, image); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionFilter2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionFilter2DEXT"); } } public void ConvolutionParameterfEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfEXT)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfEXT)) { try { MH_glConvolutionParameterfEXT.invokeExact(PFN_glConvolutionParameterfEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterfEXT"); } } public void ConvolutionParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterfvEXT)) { try { MH_glConvolutionParameterfvEXT.invokeExact(PFN_glConvolutionParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterfvEXT"); } } public void ConvolutionParameteriEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameteriEXT)) { try { MH_glConvolutionParameteriEXT.invokeExact(PFN_glConvolutionParameteriEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameteriEXT"); } } public void ConvolutionParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterivEXT)) { try { MH_glConvolutionParameterivEXT.invokeExact(PFN_glConvolutionParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterivEXT"); } } public void CopyConvolutionFilter1DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter1DEXT)) { try { MH_glCopyConvolutionFilter1DEXT.invokeExact(PFN_glCopyConvolutionFilter1DEXT, target, internalformat, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyConvolutionFilter1DEXT"); } } public void CopyConvolutionFilter2DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyConvolutionFilter2DEXT)) { try { MH_glCopyConvolutionFilter2DEXT.invokeExact(PFN_glCopyConvolutionFilter2DEXT, target, internalformat, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyConvolutionFilter2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyConvolutionFilter2DEXT"); } } public void GetConvolutionFilterEXT(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment image) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionFilterEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionFilterEXT)) { try { MH_glGetConvolutionFilterEXT.invokeExact(PFN_glGetConvolutionFilterEXT, target, format, type, image); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionFilterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionFilterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionFilterEXT"); } } public void GetConvolutionParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterfvEXT)) { try { MH_glGetConvolutionParameterfvEXT.invokeExact(PFN_glGetConvolutionParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionParameterfvEXT"); } } public void GetConvolutionParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterivEXT)) { try { MH_glGetConvolutionParameterivEXT.invokeExact(PFN_glGetConvolutionParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionParameterivEXT"); } } public void GetSeparableFilterEXT(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment row, @CType("void*") java.lang.foreign.MemorySegment column, @CType("void*") java.lang.foreign.MemorySegment span) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSeparableFilterEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetSeparableFilterEXT)) { try { MH_glGetSeparableFilterEXT.invokeExact(PFN_glGetSeparableFilterEXT, target, format, type, row, column, span); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSeparableFilterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSeparableFilterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSeparableFilterEXT"); } } public void SeparableFilter2DEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment row, @CType("const void *") java.lang.foreign.MemorySegment column) { - try { if (!Unmarshal.isNullPointer(PFN_glSeparableFilter2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glSeparableFilter2DEXT)) { try { MH_glSeparableFilter2DEXT.invokeExact(PFN_glSeparableFilter2DEXT, target, internalformat, width, height, format, type, row, column); - } - catch (Throwable e) { throw new RuntimeException("error in glSeparableFilter2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSeparableFilter2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSeparableFilter2DEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java index 06a94c62..af18f93f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCoordinateFrame.java @@ -109,157 +109,157 @@ public GLEXTCoordinateFrame(overrungl.opengl.GLLoadFunc func) { } public void Tangent3bEXT(@CType("GLbyte") byte tx, @CType("GLbyte") byte ty, @CType("GLbyte") byte tz) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3bEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3bEXT)) { try { MH_glTangent3bEXT.invokeExact(PFN_glTangent3bEXT, tx, ty, tz); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3bEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3bEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3bEXT"); } } public void Tangent3bvEXT(@CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3bvEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3bvEXT)) { try { MH_glTangent3bvEXT.invokeExact(PFN_glTangent3bvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3bvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3bvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3bvEXT"); } } public void Tangent3dEXT(@CType("GLdouble") double tx, @CType("GLdouble") double ty, @CType("GLdouble") double tz) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3dEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3dEXT)) { try { MH_glTangent3dEXT.invokeExact(PFN_glTangent3dEXT, tx, ty, tz); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3dEXT"); } } public void Tangent3dvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3dvEXT)) { try { MH_glTangent3dvEXT.invokeExact(PFN_glTangent3dvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3dvEXT"); } } public void Tangent3fEXT(@CType("GLfloat") float tx, @CType("GLfloat") float ty, @CType("GLfloat") float tz) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3fEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3fEXT)) { try { MH_glTangent3fEXT.invokeExact(PFN_glTangent3fEXT, tx, ty, tz); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3fEXT"); } } public void Tangent3fvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3fvEXT)) { try { MH_glTangent3fvEXT.invokeExact(PFN_glTangent3fvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3fvEXT"); } } public void Tangent3iEXT(@CType("GLint") int tx, @CType("GLint") int ty, @CType("GLint") int tz) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3iEXT)) { try { MH_glTangent3iEXT.invokeExact(PFN_glTangent3iEXT, tx, ty, tz); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3iEXT"); } } public void Tangent3ivEXT(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3ivEXT)) { try { MH_glTangent3ivEXT.invokeExact(PFN_glTangent3ivEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3ivEXT"); } } public void Tangent3sEXT(@CType("GLshort") short tx, @CType("GLshort") short ty, @CType("GLshort") short tz) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3sEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3sEXT)) { try { MH_glTangent3sEXT.invokeExact(PFN_glTangent3sEXT, tx, ty, tz); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3sEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3sEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3sEXT"); } } public void Tangent3svEXT(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTangent3svEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangent3svEXT)) { try { MH_glTangent3svEXT.invokeExact(PFN_glTangent3svEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTangent3svEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangent3svEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangent3svEXT"); } } public void Binormal3bEXT(@CType("GLbyte") byte bx, @CType("GLbyte") byte by, @CType("GLbyte") byte bz) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3bEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3bEXT)) { try { MH_glBinormal3bEXT.invokeExact(PFN_glBinormal3bEXT, bx, by, bz); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3bEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3bEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3bEXT"); } } public void Binormal3bvEXT(@CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3bvEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3bvEXT)) { try { MH_glBinormal3bvEXT.invokeExact(PFN_glBinormal3bvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3bvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3bvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3bvEXT"); } } public void Binormal3dEXT(@CType("GLdouble") double bx, @CType("GLdouble") double by, @CType("GLdouble") double bz) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3dEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3dEXT)) { try { MH_glBinormal3dEXT.invokeExact(PFN_glBinormal3dEXT, bx, by, bz); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3dEXT"); } } public void Binormal3dvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3dvEXT)) { try { MH_glBinormal3dvEXT.invokeExact(PFN_glBinormal3dvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3dvEXT"); } } public void Binormal3fEXT(@CType("GLfloat") float bx, @CType("GLfloat") float by, @CType("GLfloat") float bz) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3fEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3fEXT)) { try { MH_glBinormal3fEXT.invokeExact(PFN_glBinormal3fEXT, bx, by, bz); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3fEXT"); } } public void Binormal3fvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3fvEXT)) { try { MH_glBinormal3fvEXT.invokeExact(PFN_glBinormal3fvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3fvEXT"); } } public void Binormal3iEXT(@CType("GLint") int bx, @CType("GLint") int by, @CType("GLint") int bz) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3iEXT)) { try { MH_glBinormal3iEXT.invokeExact(PFN_glBinormal3iEXT, bx, by, bz); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3iEXT"); } } public void Binormal3ivEXT(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3ivEXT)) { try { MH_glBinormal3ivEXT.invokeExact(PFN_glBinormal3ivEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3ivEXT"); } } public void Binormal3sEXT(@CType("GLshort") short bx, @CType("GLshort") short by, @CType("GLshort") short bz) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3sEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3sEXT)) { try { MH_glBinormal3sEXT.invokeExact(PFN_glBinormal3sEXT, bx, by, bz); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3sEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3sEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3sEXT"); } } public void Binormal3svEXT(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormal3svEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormal3svEXT)) { try { MH_glBinormal3svEXT.invokeExact(PFN_glBinormal3svEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormal3svEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormal3svEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormal3svEXT"); } } public void TangentPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glTangentPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glTangentPointerEXT)) { try { MH_glTangentPointerEXT.invokeExact(PFN_glTangentPointerEXT, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glTangentPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTangentPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTangentPointerEXT"); } } public void BinormalPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glBinormalPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glBinormalPointerEXT)) { try { MH_glBinormalPointerEXT.invokeExact(PFN_glBinormalPointerEXT, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glBinormalPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBinormalPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBinormalPointerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java index 55cfe6d7..a7c8bdea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCopyTexture.java @@ -44,38 +44,38 @@ public GLEXTCopyTexture(overrungl.opengl.GLLoadFunc func) { } public void CopyTexImage1DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexImage1DEXT)) { try { MH_glCopyTexImage1DEXT.invokeExact(PFN_glCopyTexImage1DEXT, target, level, internalformat, x, y, width, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexImage1DEXT"); } } public void CopyTexImage2DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexImage2DEXT)) { try { MH_glCopyTexImage2DEXT.invokeExact(PFN_glCopyTexImage2DEXT, target, level, internalformat, x, y, width, height, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexImage2DEXT"); } } public void CopyTexSubImage1DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage1DEXT)) { try { MH_glCopyTexSubImage1DEXT.invokeExact(PFN_glCopyTexSubImage1DEXT, target, level, xoffset, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexSubImage1DEXT"); } } public void CopyTexSubImage2DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage2DEXT)) { try { MH_glCopyTexSubImage2DEXT.invokeExact(PFN_glCopyTexSubImage2DEXT, target, level, xoffset, yoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexSubImage2DEXT"); } } public void CopyTexSubImage3DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTexSubImage3DEXT)) { try { MH_glCopyTexSubImage3DEXT.invokeExact(PFN_glCopyTexSubImage3DEXT, target, level, xoffset, yoffset, zoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTexSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTexSubImage3DEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java index 18366717..9c41ccf2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTCullVertex.java @@ -38,17 +38,17 @@ public GLEXTCullVertex(overrungl.opengl.GLLoadFunc func) { } public void CullParameterdvEXT(@CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glCullParameterdvEXT)) + if (!Unmarshal.isNullPointer(PFN_glCullParameterdvEXT)) { try { MH_glCullParameterdvEXT.invokeExact(PFN_glCullParameterdvEXT, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glCullParameterdvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCullParameterdvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCullParameterdvEXT"); } } public void CullParameterfvEXT(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glCullParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glCullParameterfvEXT)) { try { MH_glCullParameterfvEXT.invokeExact(PFN_glCullParameterfvEXT, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glCullParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCullParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCullParameterfvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java index 24c5fac0..bd65fc30 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugLabel.java @@ -43,17 +43,17 @@ public GLEXTDebugLabel(overrungl.opengl.GLLoadFunc func) { } public void LabelObjectEXT(@CType("GLenum") int type, @CType("GLuint") int object, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glLabelObjectEXT)) + if (!Unmarshal.isNullPointer(PFN_glLabelObjectEXT)) { try { MH_glLabelObjectEXT.invokeExact(PFN_glLabelObjectEXT, type, object, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glLabelObjectEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLabelObjectEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLabelObjectEXT"); } } public void GetObjectLabelEXT(@CType("GLenum") int type, @CType("GLuint") int object, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabelEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectLabelEXT)) { try { MH_glGetObjectLabelEXT.invokeExact(PFN_glGetObjectLabelEXT, type, object, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabelEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabelEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectLabelEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java index ffbcca60..c6bc3f38 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDebugMarker.java @@ -38,24 +38,24 @@ public GLEXTDebugMarker(overrungl.opengl.GLLoadFunc func) { } public void InsertEventMarkerEXT(@CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment marker) { - try { if (!Unmarshal.isNullPointer(PFN_glInsertEventMarkerEXT)) + if (!Unmarshal.isNullPointer(PFN_glInsertEventMarkerEXT)) { try { MH_glInsertEventMarkerEXT.invokeExact(PFN_glInsertEventMarkerEXT, length, marker); - } - catch (Throwable e) { throw new RuntimeException("error in glInsertEventMarkerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInsertEventMarkerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInsertEventMarkerEXT"); } } public void PushGroupMarkerEXT(@CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment marker) { - try { if (!Unmarshal.isNullPointer(PFN_glPushGroupMarkerEXT)) + if (!Unmarshal.isNullPointer(PFN_glPushGroupMarkerEXT)) { try { MH_glPushGroupMarkerEXT.invokeExact(PFN_glPushGroupMarkerEXT, length, marker); - } - catch (Throwable e) { throw new RuntimeException("error in glPushGroupMarkerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPushGroupMarkerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPushGroupMarkerEXT"); } } public void PopGroupMarkerEXT() { - try { if (!Unmarshal.isNullPointer(PFN_glPopGroupMarkerEXT)) + if (!Unmarshal.isNullPointer(PFN_glPopGroupMarkerEXT)) { try { MH_glPopGroupMarkerEXT.invokeExact(PFN_glPopGroupMarkerEXT); - } - catch (Throwable e) { throw new RuntimeException("error in glPopGroupMarkerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPopGroupMarkerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPopGroupMarkerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java index bb0c4ef1..c183f740 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDepthBoundsTest.java @@ -34,10 +34,10 @@ public GLEXTDepthBoundsTest(overrungl.opengl.GLLoadFunc func) { } public void DepthBoundsEXT(@CType("GLclampd") double zmin, @CType("GLclampd") double zmax) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthBoundsEXT)) + if (!Unmarshal.isNullPointer(PFN_glDepthBoundsEXT)) { try { MH_glDepthBoundsEXT.invokeExact(PFN_glDepthBoundsEXT, zmin, zmax); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthBoundsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthBoundsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthBoundsEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java index 6b616eda..90e86dff 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDirectStateAccess.java @@ -752,1793 +752,1788 @@ public GLEXTDirectStateAccess(overrungl.opengl.GLLoadFunc func) { } public void MatrixLoadfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadfEXT)) { try { MH_glMatrixLoadfEXT.invokeExact(PFN_glMatrixLoadfEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadfEXT"); } } public void MatrixLoaddEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoaddEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoaddEXT)) { try { MH_glMatrixLoaddEXT.invokeExact(PFN_glMatrixLoaddEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoaddEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoaddEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoaddEXT"); } } public void MatrixMultfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultfEXT)) { try { MH_glMatrixMultfEXT.invokeExact(PFN_glMatrixMultfEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultfEXT"); } } public void MatrixMultdEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultdEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultdEXT)) { try { MH_glMatrixMultdEXT.invokeExact(PFN_glMatrixMultdEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultdEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultdEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultdEXT"); } } public void MatrixLoadIdentityEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadIdentityEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadIdentityEXT)) { try { MH_glMatrixLoadIdentityEXT.invokeExact(PFN_glMatrixLoadIdentityEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadIdentityEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadIdentityEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadIdentityEXT"); } } public void MatrixRotatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float angle, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixRotatefEXT)) { try { MH_glMatrixRotatefEXT.invokeExact(PFN_glMatrixRotatefEXT, mode, angle, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixRotatefEXT"); } } public void MatrixRotatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double angle, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixRotatedEXT)) { try { MH_glMatrixRotatedEXT.invokeExact(PFN_glMatrixRotatedEXT, mode, angle, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixRotatedEXT"); } } public void MatrixScalefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixScalefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixScalefEXT)) { try { MH_glMatrixScalefEXT.invokeExact(PFN_glMatrixScalefEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixScalefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixScalefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixScalefEXT"); } } public void MatrixScaledEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixScaledEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixScaledEXT)) { try { MH_glMatrixScaledEXT.invokeExact(PFN_glMatrixScaledEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixScaledEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixScaledEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixScaledEXT"); } } public void MatrixTranslatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatefEXT)) { try { MH_glMatrixTranslatefEXT.invokeExact(PFN_glMatrixTranslatefEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixTranslatefEXT"); } } public void MatrixTranslatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatedEXT)) { try { MH_glMatrixTranslatedEXT.invokeExact(PFN_glMatrixTranslatedEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixTranslatedEXT"); } } public void MatrixFrustumEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixFrustumEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixFrustumEXT)) { try { MH_glMatrixFrustumEXT.invokeExact(PFN_glMatrixFrustumEXT, mode, left, right, bottom, top, zNear, zFar); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixFrustumEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixFrustumEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixFrustumEXT"); } } public void MatrixOrthoEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixOrthoEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixOrthoEXT)) { try { MH_glMatrixOrthoEXT.invokeExact(PFN_glMatrixOrthoEXT, mode, left, right, bottom, top, zNear, zFar); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixOrthoEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixOrthoEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixOrthoEXT"); } } public void MatrixPopEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixPopEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixPopEXT)) { try { MH_glMatrixPopEXT.invokeExact(PFN_glMatrixPopEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixPopEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixPopEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixPopEXT"); } } public void MatrixPushEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixPushEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixPushEXT)) { try { MH_glMatrixPushEXT.invokeExact(PFN_glMatrixPushEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixPushEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixPushEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixPushEXT"); } } public void ClientAttribDefaultEXT(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glClientAttribDefaultEXT)) + if (!Unmarshal.isNullPointer(PFN_glClientAttribDefaultEXT)) { try { MH_glClientAttribDefaultEXT.invokeExact(PFN_glClientAttribDefaultEXT, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glClientAttribDefaultEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClientAttribDefaultEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClientAttribDefaultEXT"); } } public void PushClientAttribDefaultEXT(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glPushClientAttribDefaultEXT)) + if (!Unmarshal.isNullPointer(PFN_glPushClientAttribDefaultEXT)) { try { MH_glPushClientAttribDefaultEXT.invokeExact(PFN_glPushClientAttribDefaultEXT, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glPushClientAttribDefaultEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPushClientAttribDefaultEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPushClientAttribDefaultEXT"); } } public void TextureParameterfEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterfEXT)) { try { MH_glTextureParameterfEXT.invokeExact(PFN_glTextureParameterfEXT, texture, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterfEXT"); } } public void TextureParameterfvEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterfvEXT)) { try { MH_glTextureParameterfvEXT.invokeExact(PFN_glTextureParameterfvEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterfvEXT"); } } public void TextureParameteriEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameteriEXT)) { try { MH_glTextureParameteriEXT.invokeExact(PFN_glTextureParameteriEXT, texture, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameteriEXT"); } } public void TextureParameterivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterivEXT)) { try { MH_glTextureParameterivEXT.invokeExact(PFN_glTextureParameterivEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterivEXT"); } } public void TextureImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage1DEXT)) { try { MH_glTextureImage1DEXT.invokeExact(PFN_glTextureImage1DEXT, texture, target, level, internalformat, width, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage1DEXT"); } } public void TextureImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage2DEXT)) { try { MH_glTextureImage2DEXT.invokeExact(PFN_glTextureImage2DEXT, texture, target, level, internalformat, width, height, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage2DEXT"); } } public void TextureSubImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage1DEXT)) { try { MH_glTextureSubImage1DEXT.invokeExact(PFN_glTextureSubImage1DEXT, texture, target, level, xoffset, width, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage1DEXT"); } } public void TextureSubImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage2DEXT)) { try { MH_glTextureSubImage2DEXT.invokeExact(PFN_glTextureSubImage2DEXT, texture, target, level, xoffset, yoffset, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage2DEXT"); } } public void CopyTextureImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureImage1DEXT)) { try { MH_glCopyTextureImage1DEXT.invokeExact(PFN_glCopyTextureImage1DEXT, texture, target, level, internalformat, x, y, width, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureImage1DEXT"); } } public void CopyTextureImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureImage2DEXT)) { try { MH_glCopyTextureImage2DEXT.invokeExact(PFN_glCopyTextureImage2DEXT, texture, target, level, internalformat, x, y, width, height, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureImage2DEXT"); } } public void CopyTextureSubImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage1DEXT)) { try { MH_glCopyTextureSubImage1DEXT.invokeExact(PFN_glCopyTextureSubImage1DEXT, texture, target, level, xoffset, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage1DEXT"); } } public void CopyTextureSubImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage2DEXT)) { try { MH_glCopyTextureSubImage2DEXT.invokeExact(PFN_glCopyTextureSubImage2DEXT, texture, target, level, xoffset, yoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage2DEXT"); } } public void GetTextureImageEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureImageEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureImageEXT)) { try { MH_glGetTextureImageEXT.invokeExact(PFN_glGetTextureImageEXT, texture, target, level, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureImageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureImageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureImageEXT"); } } public void GetTextureParameterfvEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterfvEXT)) { try { MH_glGetTextureParameterfvEXT.invokeExact(PFN_glGetTextureParameterfvEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterfvEXT"); } } public void GetTextureParameterivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterivEXT)) { try { MH_glGetTextureParameterivEXT.invokeExact(PFN_glGetTextureParameterivEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterivEXT"); } } public void GetTextureLevelParameterfvEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterfvEXT)) { try { MH_glGetTextureLevelParameterfvEXT.invokeExact(PFN_glGetTextureLevelParameterfvEXT, texture, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureLevelParameterfvEXT"); } } public void GetTextureLevelParameterivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureLevelParameterivEXT)) { try { MH_glGetTextureLevelParameterivEXT.invokeExact(PFN_glGetTextureLevelParameterivEXT, texture, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureLevelParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureLevelParameterivEXT"); } } public void TextureImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage3DEXT)) { try { MH_glTextureImage3DEXT.invokeExact(PFN_glTextureImage3DEXT, texture, target, level, internalformat, width, height, depth, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage3DEXT"); } } public void TextureSubImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureSubImage3DEXT)) { try { MH_glTextureSubImage3DEXT.invokeExact(PFN_glTextureSubImage3DEXT, texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureSubImage3DEXT"); } } public void CopyTextureSubImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyTextureSubImage3DEXT)) { try { MH_glCopyTextureSubImage3DEXT.invokeExact(PFN_glCopyTextureSubImage3DEXT, texture, target, level, xoffset, yoffset, zoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyTextureSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyTextureSubImage3DEXT"); } } public void BindMultiTextureEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindMultiTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindMultiTextureEXT)) { try { MH_glBindMultiTextureEXT.invokeExact(PFN_glBindMultiTextureEXT, texunit, target, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindMultiTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindMultiTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindMultiTextureEXT"); } } public void MultiTexCoordPointerEXT(@CType("GLenum") int texunit, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoordPointerEXT)) { try { MH_glMultiTexCoordPointerEXT.invokeExact(PFN_glMultiTexCoordPointerEXT, texunit, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoordPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoordPointerEXT"); } } public void MultiTexEnvfEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvfEXT)) { try { MH_glMultiTexEnvfEXT.invokeExact(PFN_glMultiTexEnvfEXT, texunit, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexEnvfEXT"); } } public void MultiTexEnvfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvfvEXT)) { try { MH_glMultiTexEnvfvEXT.invokeExact(PFN_glMultiTexEnvfvEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexEnvfvEXT"); } } public void MultiTexEnviEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnviEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexEnviEXT)) { try { MH_glMultiTexEnviEXT.invokeExact(PFN_glMultiTexEnviEXT, texunit, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnviEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnviEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexEnviEXT"); } } public void MultiTexEnvivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvivEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexEnvivEXT)) { try { MH_glMultiTexEnvivEXT.invokeExact(PFN_glMultiTexEnvivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexEnvivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexEnvivEXT"); } } public void MultiTexGendEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLdouble") double param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGendEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexGendEXT)) { try { MH_glMultiTexGendEXT.invokeExact(PFN_glMultiTexGendEXT, texunit, coord, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexGendEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexGendEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexGendEXT"); } } public void MultiTexGendvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGendvEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexGendvEXT)) { try { MH_glMultiTexGendvEXT.invokeExact(PFN_glMultiTexGendvEXT, texunit, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexGendvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexGendvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexGendvEXT"); } } public void MultiTexGenfEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGenfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexGenfEXT)) { try { MH_glMultiTexGenfEXT.invokeExact(PFN_glMultiTexGenfEXT, texunit, coord, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexGenfEXT"); } } public void MultiTexGenfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGenfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexGenfvEXT)) { try { MH_glMultiTexGenfvEXT.invokeExact(PFN_glMultiTexGenfvEXT, texunit, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexGenfvEXT"); } } public void MultiTexGeniEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGeniEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexGeniEXT)) { try { MH_glMultiTexGeniEXT.invokeExact(PFN_glMultiTexGeniEXT, texunit, coord, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexGeniEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexGeniEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexGeniEXT"); } } public void MultiTexGenivEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexGenivEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexGenivEXT)) { try { MH_glMultiTexGenivEXT.invokeExact(PFN_glMultiTexGenivEXT, texunit, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexGenivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexGenivEXT"); } } public void GetMultiTexEnvfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexEnvfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexEnvfvEXT)) { try { MH_glGetMultiTexEnvfvEXT.invokeExact(PFN_glGetMultiTexEnvfvEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexEnvfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexEnvfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexEnvfvEXT"); } } public void GetMultiTexEnvivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexEnvivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexEnvivEXT)) { try { MH_glGetMultiTexEnvivEXT.invokeExact(PFN_glGetMultiTexEnvivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexEnvivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexEnvivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexEnvivEXT"); } } public void GetMultiTexGendvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGendvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGendvEXT)) { try { MH_glGetMultiTexGendvEXT.invokeExact(PFN_glGetMultiTexGendvEXT, texunit, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGendvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGendvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexGendvEXT"); } } public void GetMultiTexGenfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGenfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGenfvEXT)) { try { MH_glGetMultiTexGenfvEXT.invokeExact(PFN_glGetMultiTexGenfvEXT, texunit, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGenfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGenfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexGenfvEXT"); } } public void GetMultiTexGenivEXT(@CType("GLenum") int texunit, @CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGenivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexGenivEXT)) { try { MH_glGetMultiTexGenivEXT.invokeExact(PFN_glGetMultiTexGenivEXT, texunit, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGenivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexGenivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexGenivEXT"); } } public void MultiTexParameteriEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexParameteriEXT)) { try { MH_glMultiTexParameteriEXT.invokeExact(PFN_glMultiTexParameteriEXT, texunit, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexParameteriEXT"); } } public void MultiTexParameterivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterivEXT)) { try { MH_glMultiTexParameterivEXT.invokeExact(PFN_glMultiTexParameterivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexParameterivEXT"); } } public void MultiTexParameterfEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterfEXT)) { try { MH_glMultiTexParameterfEXT.invokeExact(PFN_glMultiTexParameterfEXT, texunit, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexParameterfEXT"); } } public void MultiTexParameterfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterfvEXT)) { try { MH_glMultiTexParameterfvEXT.invokeExact(PFN_glMultiTexParameterfvEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexParameterfvEXT"); } } public void MultiTexImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexImage1DEXT)) { try { MH_glMultiTexImage1DEXT.invokeExact(PFN_glMultiTexImage1DEXT, texunit, target, level, internalformat, width, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexImage1DEXT"); } } public void MultiTexImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexImage2DEXT)) { try { MH_glMultiTexImage2DEXT.invokeExact(PFN_glMultiTexImage2DEXT, texunit, target, level, internalformat, width, height, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexImage2DEXT"); } } public void MultiTexSubImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage1DEXT)) { try { MH_glMultiTexSubImage1DEXT.invokeExact(PFN_glMultiTexSubImage1DEXT, texunit, target, level, xoffset, width, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexSubImage1DEXT"); } } public void MultiTexSubImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage2DEXT)) { try { MH_glMultiTexSubImage2DEXT.invokeExact(PFN_glMultiTexSubImage2DEXT, texunit, target, level, xoffset, yoffset, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexSubImage2DEXT"); } } public void CopyMultiTexImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexImage1DEXT)) { try { MH_glCopyMultiTexImage1DEXT.invokeExact(PFN_glCopyMultiTexImage1DEXT, texunit, target, level, internalformat, x, y, width, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyMultiTexImage1DEXT"); } } public void CopyMultiTexImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexImage2DEXT)) { try { MH_glCopyMultiTexImage2DEXT.invokeExact(PFN_glCopyMultiTexImage2DEXT, texunit, target, level, internalformat, x, y, width, height, border); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyMultiTexImage2DEXT"); } } public void CopyMultiTexSubImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage1DEXT)) { try { MH_glCopyMultiTexSubImage1DEXT.invokeExact(PFN_glCopyMultiTexSubImage1DEXT, texunit, target, level, xoffset, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyMultiTexSubImage1DEXT"); } } public void CopyMultiTexSubImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage2DEXT)) { try { MH_glCopyMultiTexSubImage2DEXT.invokeExact(PFN_glCopyMultiTexSubImage2DEXT, texunit, target, level, xoffset, yoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyMultiTexSubImage2DEXT"); } } public void GetMultiTexImageEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexImageEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexImageEXT)) { try { MH_glGetMultiTexImageEXT.invokeExact(PFN_glGetMultiTexImageEXT, texunit, target, level, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexImageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexImageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexImageEXT"); } } public void GetMultiTexParameterfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterfvEXT)) { try { MH_glGetMultiTexParameterfvEXT.invokeExact(PFN_glGetMultiTexParameterfvEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexParameterfvEXT"); } } public void GetMultiTexParameterivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterivEXT)) { try { MH_glGetMultiTexParameterivEXT.invokeExact(PFN_glGetMultiTexParameterivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexParameterivEXT"); } } public void GetMultiTexLevelParameterfvEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexLevelParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexLevelParameterfvEXT)) { try { MH_glGetMultiTexLevelParameterfvEXT.invokeExact(PFN_glGetMultiTexLevelParameterfvEXT, texunit, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexLevelParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexLevelParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexLevelParameterfvEXT"); } } public void GetMultiTexLevelParameterivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexLevelParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexLevelParameterivEXT)) { try { MH_glGetMultiTexLevelParameterivEXT.invokeExact(PFN_glGetMultiTexLevelParameterivEXT, texunit, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexLevelParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexLevelParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexLevelParameterivEXT"); } } public void MultiTexImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexImage3DEXT)) { try { MH_glMultiTexImage3DEXT.invokeExact(PFN_glMultiTexImage3DEXT, texunit, target, level, internalformat, width, height, depth, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexImage3DEXT"); } } public void MultiTexSubImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexSubImage3DEXT)) { try { MH_glMultiTexSubImage3DEXT.invokeExact(PFN_glMultiTexSubImage3DEXT, texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexSubImage3DEXT"); } } public void CopyMultiTexSubImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCopyMultiTexSubImage3DEXT)) { try { MH_glCopyMultiTexSubImage3DEXT.invokeExact(PFN_glCopyMultiTexSubImage3DEXT, texunit, target, level, xoffset, yoffset, zoffset, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyMultiTexSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyMultiTexSubImage3DEXT"); } } public void EnableClientStateIndexedEXT(@CType("GLenum") int array, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableClientStateIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableClientStateIndexedEXT)) { try { MH_glEnableClientStateIndexedEXT.invokeExact(PFN_glEnableClientStateIndexedEXT, array, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableClientStateIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableClientStateIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableClientStateIndexedEXT"); } } public void DisableClientStateIndexedEXT(@CType("GLenum") int array, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableClientStateIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableClientStateIndexedEXT)) { try { MH_glDisableClientStateIndexedEXT.invokeExact(PFN_glDisableClientStateIndexedEXT, array, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableClientStateIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableClientStateIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableClientStateIndexedEXT"); } } public void GetFloatIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFloatIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetFloatIndexedvEXT)) { try { MH_glGetFloatIndexedvEXT.invokeExact(PFN_glGetFloatIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFloatIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFloatIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFloatIndexedvEXT"); } } public void GetDoubleIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDoubleIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetDoubleIndexedvEXT)) { try { MH_glGetDoubleIndexedvEXT.invokeExact(PFN_glGetDoubleIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetDoubleIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDoubleIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDoubleIndexedvEXT"); } } public void GetPointerIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("void **") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPointerIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetPointerIndexedvEXT)) { try { MH_glGetPointerIndexedvEXT.invokeExact(PFN_glGetPointerIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPointerIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPointerIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPointerIndexedvEXT"); } } public void EnableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableIndexedEXT)) { try { MH_glEnableIndexedEXT.invokeExact(PFN_glEnableIndexedEXT, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableIndexedEXT"); } } public void DisableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableIndexedEXT)) { try { MH_glDisableIndexedEXT.invokeExact(PFN_glDisableIndexedEXT, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableIndexedEXT"); } } public @CType("GLboolean") boolean IsEnabledIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glIsEnabledIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsEnabledIndexedEXT)) { try { return (boolean) MH_glIsEnabledIndexedEXT.invokeExact(PFN_glIsEnabledIndexedEXT, target, index); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsEnabledIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsEnabledIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsEnabledIndexedEXT"); } } public void GetIntegerIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegerIndexedvEXT)) { try { MH_glGetIntegerIndexedvEXT.invokeExact(PFN_glGetIntegerIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegerIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegerIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegerIndexedvEXT"); } } public void GetBooleanIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBooleanIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetBooleanIndexedvEXT)) { try { MH_glGetBooleanIndexedvEXT.invokeExact(PFN_glGetBooleanIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBooleanIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBooleanIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBooleanIndexedvEXT"); } } public void CompressedTextureImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage3DEXT)) { try { MH_glCompressedTextureImage3DEXT.invokeExact(PFN_glCompressedTextureImage3DEXT, texture, target, level, internalformat, width, height, depth, border, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureImage3DEXT"); } } public void CompressedTextureImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage2DEXT)) { try { MH_glCompressedTextureImage2DEXT.invokeExact(PFN_glCompressedTextureImage2DEXT, texture, target, level, internalformat, width, height, border, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureImage2DEXT"); } } public void CompressedTextureImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureImage1DEXT)) { try { MH_glCompressedTextureImage1DEXT.invokeExact(PFN_glCompressedTextureImage1DEXT, texture, target, level, internalformat, width, border, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureImage1DEXT"); } } public void CompressedTextureSubImage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage3DEXT)) { try { MH_glCompressedTextureSubImage3DEXT.invokeExact(PFN_glCompressedTextureSubImage3DEXT, texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage3DEXT"); } } public void CompressedTextureSubImage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage2DEXT)) { try { MH_glCompressedTextureSubImage2DEXT.invokeExact(PFN_glCompressedTextureSubImage2DEXT, texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage2DEXT"); } } public void CompressedTextureSubImage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedTextureSubImage1DEXT)) { try { MH_glCompressedTextureSubImage1DEXT.invokeExact(PFN_glCompressedTextureSubImage1DEXT, texture, target, level, xoffset, width, format, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedTextureSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedTextureSubImage1DEXT"); } } public void GetCompressedTextureImageEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLint") int lod, @CType("void*") java.lang.foreign.MemorySegment img) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImageEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedTextureImageEXT)) { try { MH_glGetCompressedTextureImageEXT.invokeExact(PFN_glGetCompressedTextureImageEXT, texture, target, lod, img); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedTextureImageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedTextureImageEXT"); } } public void CompressedMultiTexImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage3DEXT)) { try { MH_glCompressedMultiTexImage3DEXT.invokeExact(PFN_glCompressedMultiTexImage3DEXT, texunit, target, level, internalformat, width, height, depth, border, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedMultiTexImage3DEXT"); } } public void CompressedMultiTexImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage2DEXT)) { try { MH_glCompressedMultiTexImage2DEXT.invokeExact(PFN_glCompressedMultiTexImage2DEXT, texunit, target, level, internalformat, width, height, border, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedMultiTexImage2DEXT"); } } public void CompressedMultiTexImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLint") int border, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexImage1DEXT)) { try { MH_glCompressedMultiTexImage1DEXT.invokeExact(PFN_glCompressedMultiTexImage1DEXT, texunit, target, level, internalformat, width, border, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedMultiTexImage1DEXT"); } } public void CompressedMultiTexSubImage3DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage3DEXT)) { try { MH_glCompressedMultiTexSubImage3DEXT.invokeExact(PFN_glCompressedMultiTexSubImage3DEXT, texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedMultiTexSubImage3DEXT"); } } public void CompressedMultiTexSubImage2DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage2DEXT)) { try { MH_glCompressedMultiTexSubImage2DEXT.invokeExact(PFN_glCompressedMultiTexSubImage2DEXT, texunit, target, level, xoffset, yoffset, width, height, format, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedMultiTexSubImage2DEXT"); } } public void CompressedMultiTexSubImage1DEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLsizei") int imageSize, @CType("const void *") java.lang.foreign.MemorySegment bits) { - try { if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glCompressedMultiTexSubImage1DEXT)) { try { MH_glCompressedMultiTexSubImage1DEXT.invokeExact(PFN_glCompressedMultiTexSubImage1DEXT, texunit, target, level, xoffset, width, format, imageSize, bits); - } - catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompressedMultiTexSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompressedMultiTexSubImage1DEXT"); } } public void GetCompressedMultiTexImageEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLint") int lod, @CType("void*") java.lang.foreign.MemorySegment img) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCompressedMultiTexImageEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetCompressedMultiTexImageEXT)) { try { MH_glGetCompressedMultiTexImageEXT.invokeExact(PFN_glGetCompressedMultiTexImageEXT, texunit, target, lod, img); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCompressedMultiTexImageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCompressedMultiTexImageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCompressedMultiTexImageEXT"); } } public void MatrixLoadTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposefEXT)) { try { MH_glMatrixLoadTransposefEXT.invokeExact(PFN_glMatrixLoadTransposefEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadTransposefEXT"); } } public void MatrixLoadTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposedEXT)) { try { MH_glMatrixLoadTransposedEXT.invokeExact(PFN_glMatrixLoadTransposedEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadTransposedEXT"); } } public void MatrixMultTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposefEXT)) { try { MH_glMatrixMultTransposefEXT.invokeExact(PFN_glMatrixMultTransposefEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultTransposefEXT"); } } public void MatrixMultTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposedEXT)) { try { MH_glMatrixMultTransposedEXT.invokeExact(PFN_glMatrixMultTransposedEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultTransposedEXT"); } } public void NamedBufferDataEXT(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLenum") int usage) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferDataEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferDataEXT)) { try { MH_glNamedBufferDataEXT.invokeExact(PFN_glNamedBufferDataEXT, buffer, size, data, usage); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferDataEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferDataEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferDataEXT"); } } public void NamedBufferSubDataEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubDataEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferSubDataEXT)) { try { MH_glNamedBufferSubDataEXT.invokeExact(PFN_glNamedBufferSubDataEXT, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubDataEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferSubDataEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferSubDataEXT"); } } public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferEXT(@CType("GLuint") int buffer, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferEXT)) { try { return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferEXT.invokeExact(PFN_glMapNamedBufferEXT, buffer, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapNamedBufferEXT"); } } public @CType("GLboolean") boolean UnmapNamedBufferEXT(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glUnmapNamedBufferEXT)) { try { return (boolean) MH_glUnmapNamedBufferEXT.invokeExact(PFN_glUnmapNamedBufferEXT, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapNamedBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapNamedBufferEXT"); } } public void GetNamedBufferParameterivEXT(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameterivEXT)) { try { MH_glGetNamedBufferParameterivEXT.invokeExact(PFN_glGetNamedBufferParameterivEXT, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferParameterivEXT"); } } public void GetNamedBufferPointervEXT(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferPointervEXT)) { try { MH_glGetNamedBufferPointervEXT.invokeExact(PFN_glGetNamedBufferPointervEXT, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferPointervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferPointervEXT"); } } public void GetNamedBufferSubDataEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubDataEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferSubDataEXT)) { try { MH_glGetNamedBufferSubDataEXT.invokeExact(PFN_glGetNamedBufferSubDataEXT, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubDataEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferSubDataEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferSubDataEXT"); } } public void ProgramUniform1fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fEXT)) { try { MH_glProgramUniform1fEXT.invokeExact(PFN_glProgramUniform1fEXT, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1fEXT"); } } public void ProgramUniform2fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fEXT)) { try { MH_glProgramUniform2fEXT.invokeExact(PFN_glProgramUniform2fEXT, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2fEXT"); } } public void ProgramUniform3fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fEXT)) { try { MH_glProgramUniform3fEXT.invokeExact(PFN_glProgramUniform3fEXT, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3fEXT"); } } public void ProgramUniform4fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fEXT)) { try { MH_glProgramUniform4fEXT.invokeExact(PFN_glProgramUniform4fEXT, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4fEXT"); } } public void ProgramUniform1iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iEXT)) { try { MH_glProgramUniform1iEXT.invokeExact(PFN_glProgramUniform1iEXT, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1iEXT"); } } public void ProgramUniform2iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iEXT)) { try { MH_glProgramUniform2iEXT.invokeExact(PFN_glProgramUniform2iEXT, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2iEXT"); } } public void ProgramUniform3iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iEXT)) { try { MH_glProgramUniform3iEXT.invokeExact(PFN_glProgramUniform3iEXT, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3iEXT"); } } public void ProgramUniform4iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iEXT)) { try { MH_glProgramUniform4iEXT.invokeExact(PFN_glProgramUniform4iEXT, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4iEXT"); } } public void ProgramUniform1fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fvEXT)) { try { MH_glProgramUniform1fvEXT.invokeExact(PFN_glProgramUniform1fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1fvEXT"); } } public void ProgramUniform2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fvEXT)) { try { MH_glProgramUniform2fvEXT.invokeExact(PFN_glProgramUniform2fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2fvEXT"); } } public void ProgramUniform3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fvEXT)) { try { MH_glProgramUniform3fvEXT.invokeExact(PFN_glProgramUniform3fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3fvEXT"); } } public void ProgramUniform4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fvEXT)) { try { MH_glProgramUniform4fvEXT.invokeExact(PFN_glProgramUniform4fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4fvEXT"); } } public void ProgramUniform1ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ivEXT)) { try { MH_glProgramUniform1ivEXT.invokeExact(PFN_glProgramUniform1ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ivEXT"); } } public void ProgramUniform2ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ivEXT)) { try { MH_glProgramUniform2ivEXT.invokeExact(PFN_glProgramUniform2ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ivEXT"); } } public void ProgramUniform3ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ivEXT)) { try { MH_glProgramUniform3ivEXT.invokeExact(PFN_glProgramUniform3ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ivEXT"); } } public void ProgramUniform4ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ivEXT)) { try { MH_glProgramUniform4ivEXT.invokeExact(PFN_glProgramUniform4ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ivEXT"); } } public void ProgramUniformMatrix2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fvEXT)) { try { MH_glProgramUniformMatrix2fvEXT.invokeExact(PFN_glProgramUniformMatrix2fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2fvEXT"); } } public void ProgramUniformMatrix3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fvEXT)) { try { MH_glProgramUniformMatrix3fvEXT.invokeExact(PFN_glProgramUniformMatrix3fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3fvEXT"); } } public void ProgramUniformMatrix4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fvEXT)) { try { MH_glProgramUniformMatrix4fvEXT.invokeExact(PFN_glProgramUniformMatrix4fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4fvEXT"); } } public void ProgramUniformMatrix2x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fvEXT)) { try { MH_glProgramUniformMatrix2x3fvEXT.invokeExact(PFN_glProgramUniformMatrix2x3fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3fvEXT"); } } public void ProgramUniformMatrix3x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fvEXT)) { try { MH_glProgramUniformMatrix3x2fvEXT.invokeExact(PFN_glProgramUniformMatrix3x2fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2fvEXT"); } } public void ProgramUniformMatrix2x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fvEXT)) { try { MH_glProgramUniformMatrix2x4fvEXT.invokeExact(PFN_glProgramUniformMatrix2x4fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4fvEXT"); } } public void ProgramUniformMatrix4x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fvEXT)) { try { MH_glProgramUniformMatrix4x2fvEXT.invokeExact(PFN_glProgramUniformMatrix4x2fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2fvEXT"); } } public void ProgramUniformMatrix3x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fvEXT)) { try { MH_glProgramUniformMatrix3x4fvEXT.invokeExact(PFN_glProgramUniformMatrix3x4fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4fvEXT"); } } public void ProgramUniformMatrix4x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fvEXT)) { try { MH_glProgramUniformMatrix4x3fvEXT.invokeExact(PFN_glProgramUniformMatrix4x3fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3fvEXT"); } } public void TextureBufferEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureBufferEXT)) { try { MH_glTextureBufferEXT.invokeExact(PFN_glTextureBufferEXT, texture, target, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBufferEXT"); } } public void MultiTexBufferEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexBufferEXT)) { try { MH_glMultiTexBufferEXT.invokeExact(PFN_glMultiTexBufferEXT, texunit, target, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexBufferEXT"); } } public void TextureParameterIivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterIivEXT)) { try { MH_glTextureParameterIivEXT.invokeExact(PFN_glTextureParameterIivEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterIivEXT"); } } public void TextureParameterIuivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureParameterIuivEXT)) { try { MH_glTextureParameterIuivEXT.invokeExact(PFN_glTextureParameterIuivEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureParameterIuivEXT"); } } public void GetTextureParameterIivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIivEXT)) { try { MH_glGetTextureParameterIivEXT.invokeExact(PFN_glGetTextureParameterIivEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterIivEXT"); } } public void GetTextureParameterIuivEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureParameterIuivEXT)) { try { MH_glGetTextureParameterIuivEXT.invokeExact(PFN_glGetTextureParameterIuivEXT, texture, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureParameterIuivEXT"); } } public void MultiTexParameterIivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterIivEXT)) { try { MH_glMultiTexParameterIivEXT.invokeExact(PFN_glMultiTexParameterIivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexParameterIivEXT"); } } public void MultiTexParameterIuivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexParameterIuivEXT)) { try { MH_glMultiTexParameterIuivEXT.invokeExact(PFN_glMultiTexParameterIuivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexParameterIuivEXT"); } } public void GetMultiTexParameterIivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterIivEXT)) { try { MH_glGetMultiTexParameterIivEXT.invokeExact(PFN_glGetMultiTexParameterIivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexParameterIivEXT"); } } public void GetMultiTexParameterIuivEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMultiTexParameterIuivEXT)) { try { MH_glGetMultiTexParameterIuivEXT.invokeExact(PFN_glGetMultiTexParameterIuivEXT, texunit, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultiTexParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultiTexParameterIuivEXT"); } } public void ProgramUniform1uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiEXT)) { try { MH_glProgramUniform1uiEXT.invokeExact(PFN_glProgramUniform1uiEXT, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1uiEXT"); } } public void ProgramUniform2uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiEXT)) { try { MH_glProgramUniform2uiEXT.invokeExact(PFN_glProgramUniform2uiEXT, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2uiEXT"); } } public void ProgramUniform3uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiEXT)) { try { MH_glProgramUniform3uiEXT.invokeExact(PFN_glProgramUniform3uiEXT, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3uiEXT"); } } public void ProgramUniform4uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiEXT)) { try { MH_glProgramUniform4uiEXT.invokeExact(PFN_glProgramUniform4uiEXT, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4uiEXT"); } } public void ProgramUniform1uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uivEXT)) { try { MH_glProgramUniform1uivEXT.invokeExact(PFN_glProgramUniform1uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1uivEXT"); } } public void ProgramUniform2uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uivEXT)) { try { MH_glProgramUniform2uivEXT.invokeExact(PFN_glProgramUniform2uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2uivEXT"); } } public void ProgramUniform3uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uivEXT)) { try { MH_glProgramUniform3uivEXT.invokeExact(PFN_glProgramUniform3uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3uivEXT"); } } public void ProgramUniform4uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uivEXT)) { try { MH_glProgramUniform4uivEXT.invokeExact(PFN_glProgramUniform4uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4uivEXT"); } } public void NamedProgramLocalParameters4fvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameters4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameters4fvEXT)) { try { MH_glNamedProgramLocalParameters4fvEXT.invokeExact(PFN_glNamedProgramLocalParameters4fvEXT, program, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameters4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameters4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameters4fvEXT"); } } public void NamedProgramLocalParameterI4iEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4iEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4iEXT)) { try { MH_glNamedProgramLocalParameterI4iEXT.invokeExact(PFN_glNamedProgramLocalParameterI4iEXT, program, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameterI4iEXT"); } } public void NamedProgramLocalParameterI4ivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4ivEXT)) { try { MH_glNamedProgramLocalParameterI4ivEXT.invokeExact(PFN_glNamedProgramLocalParameterI4ivEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameterI4ivEXT"); } } public void NamedProgramLocalParametersI4ivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParametersI4ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParametersI4ivEXT)) { try { MH_glNamedProgramLocalParametersI4ivEXT.invokeExact(PFN_glNamedProgramLocalParametersI4ivEXT, program, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParametersI4ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParametersI4ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParametersI4ivEXT"); } } public void NamedProgramLocalParameterI4uiEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4uiEXT)) { try { MH_glNamedProgramLocalParameterI4uiEXT.invokeExact(PFN_glNamedProgramLocalParameterI4uiEXT, program, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameterI4uiEXT"); } } public void NamedProgramLocalParameterI4uivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameterI4uivEXT)) { try { MH_glNamedProgramLocalParameterI4uivEXT.invokeExact(PFN_glNamedProgramLocalParameterI4uivEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameterI4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameterI4uivEXT"); } } public void NamedProgramLocalParametersI4uivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParametersI4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParametersI4uivEXT)) { try { MH_glNamedProgramLocalParametersI4uivEXT.invokeExact(PFN_glNamedProgramLocalParametersI4uivEXT, program, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParametersI4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParametersI4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParametersI4uivEXT"); } } public void GetNamedProgramLocalParameterIivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterIivEXT)) { try { MH_glGetNamedProgramLocalParameterIivEXT.invokeExact(PFN_glGetNamedProgramLocalParameterIivEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedProgramLocalParameterIivEXT"); } } public void GetNamedProgramLocalParameterIuivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterIuivEXT)) { try { MH_glGetNamedProgramLocalParameterIuivEXT.invokeExact(PFN_glGetNamedProgramLocalParameterIuivEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedProgramLocalParameterIuivEXT"); } } public void EnableClientStateiEXT(@CType("GLenum") int array, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableClientStateiEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableClientStateiEXT)) { try { MH_glEnableClientStateiEXT.invokeExact(PFN_glEnableClientStateiEXT, array, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableClientStateiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableClientStateiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableClientStateiEXT"); } } public void DisableClientStateiEXT(@CType("GLenum") int array, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableClientStateiEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableClientStateiEXT)) { try { MH_glDisableClientStateiEXT.invokeExact(PFN_glDisableClientStateiEXT, array, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableClientStateiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableClientStateiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableClientStateiEXT"); } } public void GetFloati_vEXT(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFloati_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetFloati_vEXT)) { try { MH_glGetFloati_vEXT.invokeExact(PFN_glGetFloati_vEXT, pname, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFloati_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFloati_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFloati_vEXT"); } } public void GetDoublei_vEXT(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDoublei_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetDoublei_vEXT)) { try { MH_glGetDoublei_vEXT.invokeExact(PFN_glGetDoublei_vEXT, pname, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDoublei_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDoublei_vEXT"); } } public void GetPointeri_vEXT(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPointeri_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetPointeri_vEXT)) { try { MH_glGetPointeri_vEXT.invokeExact(PFN_glGetPointeri_vEXT, pname, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPointeri_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPointeri_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPointeri_vEXT"); } } public void NamedProgramStringEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLenum") int format, @CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramStringEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramStringEXT)) { try { MH_glNamedProgramStringEXT.invokeExact(PFN_glNamedProgramStringEXT, program, target, format, len, string); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramStringEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramStringEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramStringEXT"); } } public void NamedProgramLocalParameter4dEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4dEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4dEXT)) { try { MH_glNamedProgramLocalParameter4dEXT.invokeExact(PFN_glNamedProgramLocalParameter4dEXT, program, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameter4dEXT"); } } public void NamedProgramLocalParameter4dvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4dvEXT)) { try { MH_glNamedProgramLocalParameter4dvEXT.invokeExact(PFN_glNamedProgramLocalParameter4dvEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameter4dvEXT"); } } public void NamedProgramLocalParameter4fEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4fEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4fEXT)) { try { MH_glNamedProgramLocalParameter4fEXT.invokeExact(PFN_glNamedProgramLocalParameter4fEXT, program, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameter4fEXT"); } } public void NamedProgramLocalParameter4fvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedProgramLocalParameter4fvEXT)) { try { MH_glNamedProgramLocalParameter4fvEXT.invokeExact(PFN_glNamedProgramLocalParameter4fvEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedProgramLocalParameter4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedProgramLocalParameter4fvEXT"); } } public void GetNamedProgramLocalParameterdvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterdvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterdvEXT)) { try { MH_glGetNamedProgramLocalParameterdvEXT.invokeExact(PFN_glGetNamedProgramLocalParameterdvEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterdvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterdvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedProgramLocalParameterdvEXT"); } } public void GetNamedProgramLocalParameterfvEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramLocalParameterfvEXT)) { try { MH_glGetNamedProgramLocalParameterfvEXT.invokeExact(PFN_glGetNamedProgramLocalParameterfvEXT, program, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramLocalParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedProgramLocalParameterfvEXT"); } } public void GetNamedProgramivEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramivEXT)) { try { MH_glGetNamedProgramivEXT.invokeExact(PFN_glGetNamedProgramivEXT, program, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedProgramivEXT"); } } public void GetNamedProgramStringEXT(@CType("GLuint") int program, @CType("GLenum") int target, @CType("GLenum") int pname, @CType("void*") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramStringEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedProgramStringEXT)) { try { MH_glGetNamedProgramStringEXT.invokeExact(PFN_glGetNamedProgramStringEXT, program, target, pname, string); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramStringEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedProgramStringEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedProgramStringEXT"); } } public void NamedRenderbufferStorageEXT(@CType("GLuint") int renderbuffer, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageEXT)) { try { MH_glNamedRenderbufferStorageEXT.invokeExact(PFN_glNamedRenderbufferStorageEXT, renderbuffer, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorageEXT"); } } public void GetNamedRenderbufferParameterivEXT(@CType("GLuint") int renderbuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedRenderbufferParameterivEXT)) { try { MH_glGetNamedRenderbufferParameterivEXT.invokeExact(PFN_glGetNamedRenderbufferParameterivEXT, renderbuffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedRenderbufferParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedRenderbufferParameterivEXT"); } } public void NamedRenderbufferStorageMultisampleEXT(@CType("GLuint") int renderbuffer, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleEXT)) { try { MH_glNamedRenderbufferStorageMultisampleEXT.invokeExact(PFN_glNamedRenderbufferStorageMultisampleEXT, renderbuffer, samples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorageMultisampleEXT"); } } public void NamedRenderbufferStorageMultisampleCoverageEXT(@CType("GLuint") int renderbuffer, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleCoverageEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedRenderbufferStorageMultisampleCoverageEXT)) { try { MH_glNamedRenderbufferStorageMultisampleCoverageEXT.invokeExact(PFN_glNamedRenderbufferStorageMultisampleCoverageEXT, renderbuffer, coverageSamples, colorSamples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleCoverageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedRenderbufferStorageMultisampleCoverageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedRenderbufferStorageMultisampleCoverageEXT"); } } public @CType("GLenum") int CheckNamedFramebufferStatusEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatusEXT)) + if (!Unmarshal.isNullPointer(PFN_glCheckNamedFramebufferStatusEXT)) { try { return (int) MH_glCheckNamedFramebufferStatusEXT.invokeExact(PFN_glCheckNamedFramebufferStatusEXT, framebuffer, target); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatusEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCheckNamedFramebufferStatusEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCheckNamedFramebufferStatusEXT"); } } public void NamedFramebufferTexture1DEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture1DEXT)) { try { MH_glNamedFramebufferTexture1DEXT.invokeExact(PFN_glNamedFramebufferTexture1DEXT, framebuffer, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTexture1DEXT"); } } public void NamedFramebufferTexture2DEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture2DEXT)) { try { MH_glNamedFramebufferTexture2DEXT.invokeExact(PFN_glNamedFramebufferTexture2DEXT, framebuffer, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTexture2DEXT"); } } public void NamedFramebufferTexture3DEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTexture3DEXT)) { try { MH_glNamedFramebufferTexture3DEXT.invokeExact(PFN_glNamedFramebufferTexture3DEXT, framebuffer, attachment, textarget, texture, level, zoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTexture3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTexture3DEXT"); } } public void NamedFramebufferRenderbufferEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferRenderbufferEXT)) { try { MH_glNamedFramebufferRenderbufferEXT.invokeExact(PFN_glNamedFramebufferRenderbufferEXT, framebuffer, attachment, renderbuffertarget, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferRenderbufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferRenderbufferEXT"); } } public void GetNamedFramebufferAttachmentParameterivEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferAttachmentParameterivEXT)) { try { MH_glGetNamedFramebufferAttachmentParameterivEXT.invokeExact(PFN_glGetNamedFramebufferAttachmentParameterivEXT, framebuffer, attachment, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferAttachmentParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferAttachmentParameterivEXT"); } } public void GenerateTextureMipmapEXT(@CType("GLuint") int texture, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmapEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenerateTextureMipmapEXT)) { try { MH_glGenerateTextureMipmapEXT.invokeExact(PFN_glGenerateTextureMipmapEXT, texture, target); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmapEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateTextureMipmapEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateTextureMipmapEXT"); } } public void GenerateMultiTexMipmapEXT(@CType("GLenum") int texunit, @CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateMultiTexMipmapEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenerateMultiTexMipmapEXT)) { try { MH_glGenerateMultiTexMipmapEXT.invokeExact(PFN_glGenerateMultiTexMipmapEXT, texunit, target); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateMultiTexMipmapEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateMultiTexMipmapEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateMultiTexMipmapEXT"); } } public void FramebufferDrawBufferEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferDrawBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferDrawBufferEXT)) { try { MH_glFramebufferDrawBufferEXT.invokeExact(PFN_glFramebufferDrawBufferEXT, framebuffer, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferDrawBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferDrawBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferDrawBufferEXT"); } } public void FramebufferDrawBuffersEXT(@CType("GLuint") int framebuffer, @CType("GLsizei") int n, @CType("const GLenum *") java.lang.foreign.MemorySegment bufs) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferDrawBuffersEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferDrawBuffersEXT)) { try { MH_glFramebufferDrawBuffersEXT.invokeExact(PFN_glFramebufferDrawBuffersEXT, framebuffer, n, bufs); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferDrawBuffersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferDrawBuffersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferDrawBuffersEXT"); } } public void FramebufferReadBufferEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferReadBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferReadBufferEXT)) { try { MH_glFramebufferReadBufferEXT.invokeExact(PFN_glFramebufferReadBufferEXT, framebuffer, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferReadBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferReadBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferReadBufferEXT"); } } public void GetFramebufferParameterivEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterivEXT)) { try { MH_glGetFramebufferParameterivEXT.invokeExact(PFN_glGetFramebufferParameterivEXT, framebuffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferParameterivEXT"); } } public void NamedCopyBufferSubDataEXT(@CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedCopyBufferSubDataEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedCopyBufferSubDataEXT)) { try { MH_glNamedCopyBufferSubDataEXT.invokeExact(PFN_glNamedCopyBufferSubDataEXT, readBuffer, writeBuffer, readOffset, writeOffset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedCopyBufferSubDataEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedCopyBufferSubDataEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedCopyBufferSubDataEXT"); } } public void NamedFramebufferTextureEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureEXT)) { try { MH_glNamedFramebufferTextureEXT.invokeExact(PFN_glNamedFramebufferTextureEXT, framebuffer, attachment, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTextureEXT"); } } public void NamedFramebufferTextureLayerEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayerEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureLayerEXT)) { try { MH_glNamedFramebufferTextureLayerEXT.invokeExact(PFN_glNamedFramebufferTextureLayerEXT, framebuffer, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureLayerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTextureLayerEXT"); } } public void NamedFramebufferTextureFaceEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int face) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureFaceEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureFaceEXT)) { try { MH_glNamedFramebufferTextureFaceEXT.invokeExact(PFN_glNamedFramebufferTextureFaceEXT, framebuffer, attachment, texture, level, face); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureFaceEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureFaceEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTextureFaceEXT"); } } public void TextureRenderbufferEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureRenderbufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureRenderbufferEXT)) { try { MH_glTextureRenderbufferEXT.invokeExact(PFN_glTextureRenderbufferEXT, texture, target, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureRenderbufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureRenderbufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureRenderbufferEXT"); } } public void MultiTexRenderbufferEXT(@CType("GLenum") int texunit, @CType("GLenum") int target, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexRenderbufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexRenderbufferEXT)) { try { MH_glMultiTexRenderbufferEXT.invokeExact(PFN_glMultiTexRenderbufferEXT, texunit, target, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexRenderbufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexRenderbufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexRenderbufferEXT"); } } public void VertexArrayVertexOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexOffsetEXT)) { try { MH_glVertexArrayVertexOffsetEXT.invokeExact(PFN_glVertexArrayVertexOffsetEXT, vaobj, buffer, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexOffsetEXT"); } } public void VertexArrayColorOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayColorOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayColorOffsetEXT)) { try { MH_glVertexArrayColorOffsetEXT.invokeExact(PFN_glVertexArrayColorOffsetEXT, vaobj, buffer, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayColorOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayColorOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayColorOffsetEXT"); } } public void VertexArrayEdgeFlagOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayEdgeFlagOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayEdgeFlagOffsetEXT)) { try { MH_glVertexArrayEdgeFlagOffsetEXT.invokeExact(PFN_glVertexArrayEdgeFlagOffsetEXT, vaobj, buffer, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayEdgeFlagOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayEdgeFlagOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayEdgeFlagOffsetEXT"); } } public void VertexArrayIndexOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayIndexOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayIndexOffsetEXT)) { try { MH_glVertexArrayIndexOffsetEXT.invokeExact(PFN_glVertexArrayIndexOffsetEXT, vaobj, buffer, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayIndexOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayIndexOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayIndexOffsetEXT"); } } public void VertexArrayNormalOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayNormalOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayNormalOffsetEXT)) { try { MH_glVertexArrayNormalOffsetEXT.invokeExact(PFN_glVertexArrayNormalOffsetEXT, vaobj, buffer, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayNormalOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayNormalOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayNormalOffsetEXT"); } } public void VertexArrayTexCoordOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayTexCoordOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayTexCoordOffsetEXT)) { try { MH_glVertexArrayTexCoordOffsetEXT.invokeExact(PFN_glVertexArrayTexCoordOffsetEXT, vaobj, buffer, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayTexCoordOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayTexCoordOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayTexCoordOffsetEXT"); } } public void VertexArrayMultiTexCoordOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int texunit, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayMultiTexCoordOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayMultiTexCoordOffsetEXT)) { try { MH_glVertexArrayMultiTexCoordOffsetEXT.invokeExact(PFN_glVertexArrayMultiTexCoordOffsetEXT, vaobj, buffer, texunit, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayMultiTexCoordOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayMultiTexCoordOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayMultiTexCoordOffsetEXT"); } } public void VertexArrayFogCoordOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayFogCoordOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayFogCoordOffsetEXT)) { try { MH_glVertexArrayFogCoordOffsetEXT.invokeExact(PFN_glVertexArrayFogCoordOffsetEXT, vaobj, buffer, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayFogCoordOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayFogCoordOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayFogCoordOffsetEXT"); } } public void VertexArraySecondaryColorOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArraySecondaryColorOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArraySecondaryColorOffsetEXT)) { try { MH_glVertexArraySecondaryColorOffsetEXT.invokeExact(PFN_glVertexArraySecondaryColorOffsetEXT, vaobj, buffer, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArraySecondaryColorOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArraySecondaryColorOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArraySecondaryColorOffsetEXT"); } } public void VertexArrayVertexAttribOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribOffsetEXT)) { try { MH_glVertexArrayVertexAttribOffsetEXT.invokeExact(PFN_glVertexArrayVertexAttribOffsetEXT, vaobj, buffer, index, size, type, normalized, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribOffsetEXT"); } } public void VertexArrayVertexAttribIOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribIOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribIOffsetEXT)) { try { MH_glVertexArrayVertexAttribIOffsetEXT.invokeExact(PFN_glVertexArrayVertexAttribIOffsetEXT, vaobj, buffer, index, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribIOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribIOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribIOffsetEXT"); } } public void EnableVertexArrayEXT(@CType("GLuint") int vaobj, @CType("GLenum") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayEXT)) { try { MH_glEnableVertexArrayEXT.invokeExact(PFN_glEnableVertexArrayEXT, vaobj, array); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexArrayEXT"); } } public void DisableVertexArrayEXT(@CType("GLuint") int vaobj, @CType("GLenum") int array) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayEXT)) { try { MH_glDisableVertexArrayEXT.invokeExact(PFN_glDisableVertexArrayEXT, vaobj, array); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexArrayEXT"); } } public void EnableVertexArrayAttribEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttribEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableVertexArrayAttribEXT)) { try { MH_glEnableVertexArrayAttribEXT.invokeExact(PFN_glEnableVertexArrayAttribEXT, vaobj, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttribEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVertexArrayAttribEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVertexArrayAttribEXT"); } } public void DisableVertexArrayAttribEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttribEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableVertexArrayAttribEXT)) { try { MH_glDisableVertexArrayAttribEXT.invokeExact(PFN_glDisableVertexArrayAttribEXT, vaobj, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttribEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVertexArrayAttribEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVertexArrayAttribEXT"); } } public void GetVertexArrayIntegervEXT(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIntegervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIntegervEXT)) { try { MH_glGetVertexArrayIntegervEXT.invokeExact(PFN_glGetVertexArrayIntegervEXT, vaobj, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIntegervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIntegervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayIntegervEXT"); } } public void GetVertexArrayPointervEXT(@CType("GLuint") int vaobj, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayPointervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayPointervEXT)) { try { MH_glGetVertexArrayPointervEXT.invokeExact(PFN_glGetVertexArrayPointervEXT, vaobj, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayPointervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayPointervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayPointervEXT"); } } public void GetVertexArrayIntegeri_vEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIntegeri_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayIntegeri_vEXT)) { try { MH_glGetVertexArrayIntegeri_vEXT.invokeExact(PFN_glGetVertexArrayIntegeri_vEXT, vaobj, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIntegeri_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayIntegeri_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayIntegeri_vEXT"); } } public void GetVertexArrayPointeri_vEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayPointeri_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexArrayPointeri_vEXT)) { try { MH_glGetVertexArrayPointeri_vEXT.invokeExact(PFN_glGetVertexArrayPointeri_vEXT, vaobj, index, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayPointeri_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexArrayPointeri_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexArrayPointeri_vEXT"); } } public @CType("void*") java.lang.foreign.MemorySegment MapNamedBufferRangeEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length, @CType("GLbitfield") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRangeEXT)) + if (!Unmarshal.isNullPointer(PFN_glMapNamedBufferRangeEXT)) { try { return (java.lang.foreign.MemorySegment) MH_glMapNamedBufferRangeEXT.invokeExact(PFN_glMapNamedBufferRangeEXT, buffer, offset, length, access); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRangeEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapNamedBufferRangeEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapNamedBufferRangeEXT"); } } public void FlushMappedNamedBufferRangeEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRangeEXT)) + if (!Unmarshal.isNullPointer(PFN_glFlushMappedNamedBufferRangeEXT)) { try { MH_glFlushMappedNamedBufferRangeEXT.invokeExact(PFN_glFlushMappedNamedBufferRangeEXT, buffer, offset, length); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRangeEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushMappedNamedBufferRangeEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushMappedNamedBufferRangeEXT"); } } public void NamedBufferStorageEXT(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageEXT)) { try { MH_glNamedBufferStorageEXT.invokeExact(PFN_glNamedBufferStorageEXT, buffer, size, data, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferStorageEXT"); } } public void ClearNamedBufferDataEXT(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferDataEXT)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferDataEXT)) { try { MH_glClearNamedBufferDataEXT.invokeExact(PFN_glClearNamedBufferDataEXT, buffer, internalformat, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferDataEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferDataEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedBufferDataEXT"); } } public void ClearNamedBufferSubDataEXT(@CType("GLuint") int buffer, @CType("GLenum") int internalformat, @CType("GLsizeiptr") long offset, @CType("GLsizeiptr") long size, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubDataEXT)) + if (!Unmarshal.isNullPointer(PFN_glClearNamedBufferSubDataEXT)) { try { MH_glClearNamedBufferSubDataEXT.invokeExact(PFN_glClearNamedBufferSubDataEXT, buffer, internalformat, offset, size, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubDataEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearNamedBufferSubDataEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearNamedBufferSubDataEXT"); } } public void NamedFramebufferParameteriEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferParameteriEXT)) { try { MH_glNamedFramebufferParameteriEXT.invokeExact(PFN_glNamedFramebufferParameteriEXT, framebuffer, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferParameteriEXT"); } } public void GetNamedFramebufferParameterivEXT(@CType("GLuint") int framebuffer, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedFramebufferParameterivEXT)) { try { MH_glGetNamedFramebufferParameterivEXT.invokeExact(PFN_glGetNamedFramebufferParameterivEXT, framebuffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedFramebufferParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedFramebufferParameterivEXT"); } } public void ProgramUniform1dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dEXT)) { try { MH_glProgramUniform1dEXT.invokeExact(PFN_glProgramUniform1dEXT, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1dEXT"); } } public void ProgramUniform2dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dEXT)) { try { MH_glProgramUniform2dEXT.invokeExact(PFN_glProgramUniform2dEXT, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2dEXT"); } } public void ProgramUniform3dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dEXT)) { try { MH_glProgramUniform3dEXT.invokeExact(PFN_glProgramUniform3dEXT, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3dEXT"); } } public void ProgramUniform4dEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dEXT)) { try { MH_glProgramUniform4dEXT.invokeExact(PFN_glProgramUniform4dEXT, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4dEXT"); } } public void ProgramUniform1dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1dvEXT)) { try { MH_glProgramUniform1dvEXT.invokeExact(PFN_glProgramUniform1dvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1dvEXT"); } } public void ProgramUniform2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2dvEXT)) { try { MH_glProgramUniform2dvEXT.invokeExact(PFN_glProgramUniform2dvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2dvEXT"); } } public void ProgramUniform3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3dvEXT)) { try { MH_glProgramUniform3dvEXT.invokeExact(PFN_glProgramUniform3dvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3dvEXT"); } } public void ProgramUniform4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4dvEXT)) { try { MH_glProgramUniform4dvEXT.invokeExact(PFN_glProgramUniform4dvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4dvEXT"); } } public void ProgramUniformMatrix2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2dvEXT)) { try { MH_glProgramUniformMatrix2dvEXT.invokeExact(PFN_glProgramUniformMatrix2dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2dvEXT"); } } public void ProgramUniformMatrix3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3dvEXT)) { try { MH_glProgramUniformMatrix3dvEXT.invokeExact(PFN_glProgramUniformMatrix3dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3dvEXT"); } } public void ProgramUniformMatrix4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4dvEXT)) { try { MH_glProgramUniformMatrix4dvEXT.invokeExact(PFN_glProgramUniformMatrix4dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4dvEXT"); } } public void ProgramUniformMatrix2x3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3dvEXT)) { try { MH_glProgramUniformMatrix2x3dvEXT.invokeExact(PFN_glProgramUniformMatrix2x3dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3dvEXT"); } } public void ProgramUniformMatrix2x4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4dvEXT)) { try { MH_glProgramUniformMatrix2x4dvEXT.invokeExact(PFN_glProgramUniformMatrix2x4dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4dvEXT"); } } public void ProgramUniformMatrix3x2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2dvEXT)) { try { MH_glProgramUniformMatrix3x2dvEXT.invokeExact(PFN_glProgramUniformMatrix3x2dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2dvEXT"); } } public void ProgramUniformMatrix3x4dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4dvEXT)) { try { MH_glProgramUniformMatrix3x4dvEXT.invokeExact(PFN_glProgramUniformMatrix3x4dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4dvEXT"); } } public void ProgramUniformMatrix4x2dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2dvEXT)) { try { MH_glProgramUniformMatrix4x2dvEXT.invokeExact(PFN_glProgramUniformMatrix4x2dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2dvEXT"); } } public void ProgramUniformMatrix4x3dvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLdouble *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3dvEXT)) { try { MH_glProgramUniformMatrix4x3dvEXT.invokeExact(PFN_glProgramUniformMatrix4x3dvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3dvEXT"); } } public void TextureBufferRangeEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBufferRangeEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureBufferRangeEXT)) { try { MH_glTextureBufferRangeEXT.invokeExact(PFN_glTextureBufferRangeEXT, texture, target, internalformat, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRangeEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBufferRangeEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBufferRangeEXT"); } } public void TextureStorage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage1DEXT)) { try { MH_glTextureStorage1DEXT.invokeExact(PFN_glTextureStorage1DEXT, texture, target, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage1DEXT"); } } public void TextureStorage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DEXT)) { try { MH_glTextureStorage2DEXT.invokeExact(PFN_glTextureStorage2DEXT, texture, target, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2DEXT"); } } public void TextureStorage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DEXT)) { try { MH_glTextureStorage3DEXT.invokeExact(PFN_glTextureStorage3DEXT, texture, target, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3DEXT"); } } public void TextureStorage2DMultisampleEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DMultisampleEXT)) { try { MH_glTextureStorage2DMultisampleEXT.invokeExact(PFN_glTextureStorage2DMultisampleEXT, texture, target, samples, internalformat, width, height, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2DMultisampleEXT"); } } public void TextureStorage3DMultisampleEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DMultisampleEXT)) { try { MH_glTextureStorage3DMultisampleEXT.invokeExact(PFN_glTextureStorage3DMultisampleEXT, texture, target, samples, internalformat, width, height, depth, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3DMultisampleEXT"); } } public void VertexArrayBindVertexBufferEXT(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindVertexBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayBindVertexBufferEXT)) { try { MH_glVertexArrayBindVertexBufferEXT.invokeExact(PFN_glVertexArrayBindVertexBufferEXT, vaobj, bindingindex, buffer, offset, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindVertexBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayBindVertexBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayBindVertexBufferEXT"); } } public void VertexArrayVertexAttribFormatEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribFormatEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribFormatEXT)) { try { MH_glVertexArrayVertexAttribFormatEXT.invokeExact(PFN_glVertexArrayVertexAttribFormatEXT, vaobj, attribindex, size, type, normalized, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribFormatEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribFormatEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribFormatEXT"); } } public void VertexArrayVertexAttribIFormatEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribIFormatEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribIFormatEXT)) { try { MH_glVertexArrayVertexAttribIFormatEXT.invokeExact(PFN_glVertexArrayVertexAttribIFormatEXT, vaobj, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribIFormatEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribIFormatEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribIFormatEXT"); } } public void VertexArrayVertexAttribLFormatEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLuint") int relativeoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribLFormatEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribLFormatEXT)) { try { MH_glVertexArrayVertexAttribLFormatEXT.invokeExact(PFN_glVertexArrayVertexAttribLFormatEXT, vaobj, attribindex, size, type, relativeoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribLFormatEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribLFormatEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribLFormatEXT"); } } public void VertexArrayVertexAttribBindingEXT(@CType("GLuint") int vaobj, @CType("GLuint") int attribindex, @CType("GLuint") int bindingindex) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribBindingEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribBindingEXT)) { try { MH_glVertexArrayVertexAttribBindingEXT.invokeExact(PFN_glVertexArrayVertexAttribBindingEXT, vaobj, attribindex, bindingindex); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribBindingEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribBindingEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribBindingEXT"); } } public void VertexArrayVertexBindingDivisorEXT(@CType("GLuint") int vaobj, @CType("GLuint") int bindingindex, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBindingDivisorEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexBindingDivisorEXT)) { try { MH_glVertexArrayVertexBindingDivisorEXT.invokeExact(PFN_glVertexArrayVertexBindingDivisorEXT, vaobj, bindingindex, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBindingDivisorEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexBindingDivisorEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexBindingDivisorEXT"); } } public void VertexArrayVertexAttribLOffsetEXT(@CType("GLuint") int vaobj, @CType("GLuint") int buffer, @CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribLOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribLOffsetEXT)) { try { MH_glVertexArrayVertexAttribLOffsetEXT.invokeExact(PFN_glVertexArrayVertexAttribLOffsetEXT, vaobj, buffer, index, size, type, stride, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribLOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribLOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribLOffsetEXT"); } } public void TexturePageCommitmentEXT(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glTexturePageCommitmentEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexturePageCommitmentEXT)) { try { MH_glTexturePageCommitmentEXT.invokeExact(PFN_glTexturePageCommitmentEXT, texture, level, xoffset, yoffset, zoffset, width, height, depth, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glTexturePageCommitmentEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexturePageCommitmentEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexturePageCommitmentEXT"); } } public void VertexArrayVertexAttribDivisorEXT(@CType("GLuint") int vaobj, @CType("GLuint") int index, @CType("GLuint") int divisor) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribDivisorEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayVertexAttribDivisorEXT)) { try { MH_glVertexArrayVertexAttribDivisorEXT.invokeExact(PFN_glVertexArrayVertexAttribDivisorEXT, vaobj, index, divisor); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribDivisorEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayVertexAttribDivisorEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayVertexAttribDivisorEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java index 402e9555..e098c7a2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawBuffers2.java @@ -47,46 +47,45 @@ public GLEXTDrawBuffers2(overrungl.opengl.GLLoadFunc func) { } public void ColorMaskIndexedEXT(@CType("GLuint") int index, @CType("GLboolean") boolean r, @CType("GLboolean") boolean g, @CType("GLboolean") boolean b, @CType("GLboolean") boolean a) { - try { if (!Unmarshal.isNullPointer(PFN_glColorMaskIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glColorMaskIndexedEXT)) { try { MH_glColorMaskIndexedEXT.invokeExact(PFN_glColorMaskIndexedEXT, index, r, g, b, a); - } - catch (Throwable e) { throw new RuntimeException("error in glColorMaskIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorMaskIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorMaskIndexedEXT"); } } public void GetBooleanIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBooleanIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetBooleanIndexedvEXT)) { try { MH_glGetBooleanIndexedvEXT.invokeExact(PFN_glGetBooleanIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBooleanIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBooleanIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBooleanIndexedvEXT"); } } public void GetIntegerIndexedvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerIndexedvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegerIndexedvEXT)) { try { MH_glGetIntegerIndexedvEXT.invokeExact(PFN_glGetIntegerIndexedvEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegerIndexedvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegerIndexedvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegerIndexedvEXT"); } } public void EnableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableIndexedEXT)) { try { MH_glEnableIndexedEXT.invokeExact(PFN_glEnableIndexedEXT, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableIndexedEXT"); } } public void DisableIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableIndexedEXT)) { try { MH_glDisableIndexedEXT.invokeExact(PFN_glDisableIndexedEXT, target, index); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableIndexedEXT"); } } public @CType("GLboolean") boolean IsEnabledIndexedEXT(@CType("GLenum") int target, @CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glIsEnabledIndexedEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsEnabledIndexedEXT)) { try { return (boolean) MH_glIsEnabledIndexedEXT.invokeExact(PFN_glIsEnabledIndexedEXT, target, index); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsEnabledIndexedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsEnabledIndexedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsEnabledIndexedEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java index 82d0e1a5..af2db7ab 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawInstanced.java @@ -35,17 +35,17 @@ public GLEXTDrawInstanced(overrungl.opengl.GLLoadFunc func) { } public void DrawArraysInstancedEXT(@CType("GLenum") int mode, @CType("GLint") int start, @CType("GLsizei") int count, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedEXT)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysInstancedEXT)) { try { MH_glDrawArraysInstancedEXT.invokeExact(PFN_glDrawArraysInstancedEXT, mode, start, count, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysInstancedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysInstancedEXT"); } } public void DrawElementsInstancedEXT(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedEXT)) + if (!Unmarshal.isNullPointer(PFN_glDrawElementsInstancedEXT)) { try { MH_glDrawElementsInstancedEXT.invokeExact(PFN_glDrawElementsInstancedEXT, mode, count, type, indices, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawElementsInstancedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawElementsInstancedEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java index 6d414d8e..e905f17e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTDrawRangeElements.java @@ -34,10 +34,10 @@ public GLEXTDrawRangeElements(overrungl.opengl.GLLoadFunc func) { } public void DrawRangeElementsEXT(@CType("GLenum") int mode, @CType("GLuint") int start, @CType("GLuint") int end, @CType("GLsizei") int count, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indices) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsEXT)) + if (!Unmarshal.isNullPointer(PFN_glDrawRangeElementsEXT)) { try { MH_glDrawRangeElementsEXT.invokeExact(PFN_glDrawRangeElementsEXT, mode, start, end, count, type, indices); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawRangeElementsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawRangeElementsEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java index d0928379..76844222 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTEGLImageStorage.java @@ -34,17 +34,17 @@ public GLEXTEGLImageStorage(overrungl.opengl.GLLoadFunc func) { } public void EGLImageTargetTexStorageEXT(@CType("GLenum") int target, @CType("GLeglImageOES") java.lang.foreign.MemorySegment image, @CType("const GLint *") java.lang.foreign.MemorySegment attrib_list) { - try { if (!Unmarshal.isNullPointer(PFN_glEGLImageTargetTexStorageEXT)) + if (!Unmarshal.isNullPointer(PFN_glEGLImageTargetTexStorageEXT)) { try { MH_glEGLImageTargetTexStorageEXT.invokeExact(PFN_glEGLImageTargetTexStorageEXT, target, image, attrib_list); - } - catch (Throwable e) { throw new RuntimeException("error in glEGLImageTargetTexStorageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEGLImageTargetTexStorageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEGLImageTargetTexStorageEXT"); } } public void EGLImageTargetTextureStorageEXT(@CType("GLuint") int texture, @CType("GLeglImageOES") java.lang.foreign.MemorySegment image, @CType("const GLint *") java.lang.foreign.MemorySegment attrib_list) { - try { if (!Unmarshal.isNullPointer(PFN_glEGLImageTargetTextureStorageEXT)) + if (!Unmarshal.isNullPointer(PFN_glEGLImageTargetTextureStorageEXT)) { try { MH_glEGLImageTargetTextureStorageEXT.invokeExact(PFN_glEGLImageTargetTextureStorageEXT, texture, image, attrib_list); - } - catch (Throwable e) { throw new RuntimeException("error in glEGLImageTargetTextureStorageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEGLImageTargetTextureStorageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEGLImageTargetTextureStorageEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java index 60c34b71..c40e62e9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTExternalBuffer.java @@ -35,17 +35,17 @@ public GLEXTExternalBuffer(overrungl.opengl.GLLoadFunc func) { } public void BufferStorageExternalEXT(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLeglClientBufferEXT") java.lang.foreign.MemorySegment clientBuffer, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferStorageExternalEXT)) + if (!Unmarshal.isNullPointer(PFN_glBufferStorageExternalEXT)) { try { MH_glBufferStorageExternalEXT.invokeExact(PFN_glBufferStorageExternalEXT, target, offset, size, clientBuffer, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferStorageExternalEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferStorageExternalEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferStorageExternalEXT"); } } public void NamedBufferStorageExternalEXT(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLeglClientBufferEXT") java.lang.foreign.MemorySegment clientBuffer, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageExternalEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageExternalEXT)) { try { MH_glNamedBufferStorageExternalEXT.invokeExact(PFN_glNamedBufferStorageExternalEXT, buffer, offset, size, clientBuffer, flags); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageExternalEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageExternalEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferStorageExternalEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java index cb96cb38..9f99b7bd 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFogCoord.java @@ -52,38 +52,38 @@ public GLEXTFogCoord(overrungl.opengl.GLLoadFunc func) { } public void FogCoordfEXT(@CType("GLfloat") float coord) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordfEXT)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordfEXT)) { try { MH_glFogCoordfEXT.invokeExact(PFN_glFogCoordfEXT, coord); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordfEXT"); } } public void FogCoordfvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment coord) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordfvEXT)) { try { MH_glFogCoordfvEXT.invokeExact(PFN_glFogCoordfvEXT, coord); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordfvEXT"); } } public void FogCoorddEXT(@CType("GLdouble") double coord) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoorddEXT)) + if (!Unmarshal.isNullPointer(PFN_glFogCoorddEXT)) { try { MH_glFogCoorddEXT.invokeExact(PFN_glFogCoorddEXT, coord); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoorddEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoorddEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoorddEXT"); } } public void FogCoorddvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment coord) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoorddvEXT)) + if (!Unmarshal.isNullPointer(PFN_glFogCoorddvEXT)) { try { MH_glFogCoorddvEXT.invokeExact(PFN_glFogCoorddvEXT, coord); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoorddvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoorddvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoorddvEXT"); } } public void FogCoordPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordPointerEXT)) { try { MH_glFogCoordPointerEXT.invokeExact(PFN_glFogCoordPointerEXT, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordPointerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java index 0e552f1e..4f633a0d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlit.java @@ -36,10 +36,10 @@ public GLEXTFramebufferBlit(overrungl.opengl.GLLoadFunc func) { } public void BlitFramebufferEXT(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferEXT)) { try { MH_glBlitFramebufferEXT.invokeExact(PFN_glBlitFramebufferEXT, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitFramebufferEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java index 1f3e62d9..14c4ef28 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferBlitLayers.java @@ -35,17 +35,17 @@ public GLEXTFramebufferBlitLayers(overrungl.opengl.GLLoadFunc func) { } public void BlitFramebufferLayersEXT(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferLayersEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferLayersEXT)) { try { MH_glBlitFramebufferLayersEXT.invokeExact(PFN_glBlitFramebufferLayersEXT, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferLayersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferLayersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitFramebufferLayersEXT"); } } public void BlitFramebufferLayerEXT(@CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int srcLayer, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLint") int dstLayer, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferLayerEXT)) + if (!Unmarshal.isNullPointer(PFN_glBlitFramebufferLayerEXT)) { try { MH_glBlitFramebufferLayerEXT.invokeExact(PFN_glBlitFramebufferLayerEXT, srcX0, srcY0, srcX1, srcY1, srcLayer, dstX0, dstY0, dstX1, dstY1, dstLayer, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferLayerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlitFramebufferLayerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlitFramebufferLayerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java index b83a8f06..a4a903e8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferMultisample.java @@ -35,10 +35,10 @@ public GLEXTFramebufferMultisample(overrungl.opengl.GLLoadFunc func) { } public void RenderbufferStorageMultisampleEXT(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleEXT)) { try { MH_glRenderbufferStorageMultisampleEXT.invokeExact(PFN_glRenderbufferStorageMultisampleEXT, target, samples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorageMultisampleEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java index 05291a12..bc9c0b9e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTFramebufferObject.java @@ -131,125 +131,122 @@ public GLEXTFramebufferObject(overrungl.opengl.GLLoadFunc func) { } public @CType("GLboolean") boolean IsRenderbufferEXT(@CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsRenderbufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsRenderbufferEXT)) { try { return (boolean) MH_glIsRenderbufferEXT.invokeExact(PFN_glIsRenderbufferEXT, renderbuffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsRenderbufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsRenderbufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsRenderbufferEXT"); } } public void BindRenderbufferEXT(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindRenderbufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindRenderbufferEXT)) { try { MH_glBindRenderbufferEXT.invokeExact(PFN_glBindRenderbufferEXT, target, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindRenderbufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindRenderbufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindRenderbufferEXT"); } } public void DeleteRenderbuffersEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffersEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteRenderbuffersEXT)) { try { MH_glDeleteRenderbuffersEXT.invokeExact(PFN_glDeleteRenderbuffersEXT, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteRenderbuffersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteRenderbuffersEXT"); } } public void GenRenderbuffersEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment renderbuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffersEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenRenderbuffersEXT)) { try { MH_glGenRenderbuffersEXT.invokeExact(PFN_glGenRenderbuffersEXT, n, renderbuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenRenderbuffersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenRenderbuffersEXT"); } } public void RenderbufferStorageEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageEXT)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageEXT)) { try { MH_glRenderbufferStorageEXT.invokeExact(PFN_glRenderbufferStorageEXT, target, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorageEXT"); } } public void GetRenderbufferParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetRenderbufferParameterivEXT)) { try { MH_glGetRenderbufferParameterivEXT.invokeExact(PFN_glGetRenderbufferParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetRenderbufferParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetRenderbufferParameterivEXT"); } } public @CType("GLboolean") boolean IsFramebufferEXT(@CType("GLuint") int framebuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsFramebufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsFramebufferEXT)) { try { return (boolean) MH_glIsFramebufferEXT.invokeExact(PFN_glIsFramebufferEXT, framebuffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsFramebufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsFramebufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsFramebufferEXT"); } } public void BindFramebufferEXT(@CType("GLenum") int target, @CType("GLuint") int framebuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFramebufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindFramebufferEXT)) { try { MH_glBindFramebufferEXT.invokeExact(PFN_glBindFramebufferEXT, target, framebuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFramebufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFramebufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFramebufferEXT"); } } public void DeleteFramebuffersEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffersEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteFramebuffersEXT)) { try { MH_glDeleteFramebuffersEXT.invokeExact(PFN_glDeleteFramebuffersEXT, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteFramebuffersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteFramebuffersEXT"); } } public void GenFramebuffersEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment framebuffers) { - try { if (!Unmarshal.isNullPointer(PFN_glGenFramebuffersEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenFramebuffersEXT)) { try { MH_glGenFramebuffersEXT.invokeExact(PFN_glGenFramebuffersEXT, n, framebuffers); - } - catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenFramebuffersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenFramebuffersEXT"); } } public @CType("GLenum") int CheckFramebufferStatusEXT(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatusEXT)) + if (!Unmarshal.isNullPointer(PFN_glCheckFramebufferStatusEXT)) { try { return (int) MH_glCheckFramebufferStatusEXT.invokeExact(PFN_glCheckFramebufferStatusEXT, target); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatusEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCheckFramebufferStatusEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCheckFramebufferStatusEXT"); } } public void FramebufferTexture1DEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture1DEXT)) { try { MH_glFramebufferTexture1DEXT.invokeExact(PFN_glFramebufferTexture1DEXT, target, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture1DEXT"); } } public void FramebufferTexture2DEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture2DEXT)) { try { MH_glFramebufferTexture2DEXT.invokeExact(PFN_glFramebufferTexture2DEXT, target, attachment, textarget, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture2DEXT"); } } public void FramebufferTexture3DEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int textarget, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int zoffset) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTexture3DEXT)) { try { MH_glFramebufferTexture3DEXT.invokeExact(PFN_glFramebufferTexture3DEXT, target, attachment, textarget, texture, level, zoffset); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTexture3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTexture3DEXT"); } } public void FramebufferRenderbufferEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int renderbuffertarget, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferRenderbufferEXT)) { try { MH_glFramebufferRenderbufferEXT.invokeExact(PFN_glFramebufferRenderbufferEXT, target, attachment, renderbuffertarget, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferRenderbufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferRenderbufferEXT"); } } public void GetFramebufferAttachmentParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferAttachmentParameterivEXT)) { try { MH_glGetFramebufferAttachmentParameterivEXT.invokeExact(PFN_glGetFramebufferAttachmentParameterivEXT, target, attachment, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferAttachmentParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferAttachmentParameterivEXT"); } } public void GenerateMipmapEXT(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glGenerateMipmapEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenerateMipmapEXT)) { try { MH_glGenerateMipmapEXT.invokeExact(PFN_glGenerateMipmapEXT, target); - } - catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmapEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenerateMipmapEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenerateMipmapEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java index 84d4a02d..368b0cb6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGeometryShader4.java @@ -52,10 +52,10 @@ public GLEXTGeometryShader4(overrungl.opengl.GLLoadFunc func) { } public void ProgramParameteriEXT(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameteriEXT)) { try { MH_glProgramParameteriEXT.invokeExact(PFN_glProgramParameteriEXT, program, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameteriEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java index 6205499b..f5190c00 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuProgramParameters.java @@ -35,17 +35,17 @@ public GLEXTGpuProgramParameters(overrungl.opengl.GLLoadFunc func) { } public void ProgramEnvParameters4fvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameters4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameters4fvEXT)) { try { MH_glProgramEnvParameters4fvEXT.invokeExact(PFN_glProgramEnvParameters4fvEXT, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameters4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameters4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameters4fvEXT"); } } public void ProgramLocalParameters4fvEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameters4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameters4fvEXT)) { try { MH_glProgramLocalParameters4fvEXT.invokeExact(PFN_glProgramLocalParameters4fvEXT, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameters4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameters4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameters4fvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java index 1138448e..5a44137d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTGpuShader4.java @@ -158,242 +158,241 @@ public GLEXTGpuShader4(overrungl.opengl.GLLoadFunc func) { } public void GetUniformuivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformuivEXT)) { try { MH_glGetUniformuivEXT.invokeExact(PFN_glGetUniformuivEXT, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformuivEXT"); } } public void BindFragDataLocationEXT(@CType("GLuint") int program, @CType("GLuint") int color, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindFragDataLocationEXT)) { try { MH_glBindFragDataLocationEXT.invokeExact(PFN_glBindFragDataLocationEXT, program, color, name); - } - catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindFragDataLocationEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindFragDataLocationEXT"); } } public @CType("GLint") int GetFragDataLocationEXT(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragDataLocationEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetFragDataLocationEXT)) { try { return (int) MH_glGetFragDataLocationEXT.invokeExact(PFN_glGetFragDataLocationEXT, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragDataLocationEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragDataLocationEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragDataLocationEXT"); } } public void Uniform1uiEXT(@CType("GLint") int location, @CType("GLuint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform1uiEXT)) { try { MH_glUniform1uiEXT.invokeExact(PFN_glUniform1uiEXT, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1uiEXT"); } } public void Uniform2uiEXT(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform2uiEXT)) { try { MH_glUniform2uiEXT.invokeExact(PFN_glUniform2uiEXT, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2uiEXT"); } } public void Uniform3uiEXT(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform3uiEXT)) { try { MH_glUniform3uiEXT.invokeExact(PFN_glUniform3uiEXT, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3uiEXT"); } } public void Uniform4uiEXT(@CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform4uiEXT)) { try { MH_glUniform4uiEXT.invokeExact(PFN_glUniform4uiEXT, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4uiEXT"); } } public void Uniform1uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform1uivEXT)) { try { MH_glUniform1uivEXT.invokeExact(PFN_glUniform1uivEXT, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1uivEXT"); } } public void Uniform2uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform2uivEXT)) { try { MH_glUniform2uivEXT.invokeExact(PFN_glUniform2uivEXT, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2uivEXT"); } } public void Uniform3uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform3uivEXT)) { try { MH_glUniform3uivEXT.invokeExact(PFN_glUniform3uivEXT, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3uivEXT"); } } public void Uniform4uivEXT(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glUniform4uivEXT)) { try { MH_glUniform4uivEXT.invokeExact(PFN_glUniform4uivEXT, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4uivEXT"); } } public void VertexAttribI1iEXT(@CType("GLuint") int index, @CType("GLint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iEXT)) { try { MH_glVertexAttribI1iEXT.invokeExact(PFN_glVertexAttribI1iEXT, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1iEXT"); } } public void VertexAttribI2iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iEXT)) { try { MH_glVertexAttribI2iEXT.invokeExact(PFN_glVertexAttribI2iEXT, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2iEXT"); } } public void VertexAttribI3iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iEXT)) { try { MH_glVertexAttribI3iEXT.invokeExact(PFN_glVertexAttribI3iEXT, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3iEXT"); } } public void VertexAttribI4iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iEXT)) { try { MH_glVertexAttribI4iEXT.invokeExact(PFN_glVertexAttribI4iEXT, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4iEXT"); } } public void VertexAttribI1uiEXT(@CType("GLuint") int index, @CType("GLuint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiEXT)) { try { MH_glVertexAttribI1uiEXT.invokeExact(PFN_glVertexAttribI1uiEXT, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1uiEXT"); } } public void VertexAttribI2uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiEXT)) { try { MH_glVertexAttribI2uiEXT.invokeExact(PFN_glVertexAttribI2uiEXT, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2uiEXT"); } } public void VertexAttribI3uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiEXT)) { try { MH_glVertexAttribI3uiEXT.invokeExact(PFN_glVertexAttribI3uiEXT, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3uiEXT"); } } public void VertexAttribI4uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiEXT)) { try { MH_glVertexAttribI4uiEXT.invokeExact(PFN_glVertexAttribI4uiEXT, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4uiEXT"); } } public void VertexAttribI1ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ivEXT)) { try { MH_glVertexAttribI1ivEXT.invokeExact(PFN_glVertexAttribI1ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1ivEXT"); } } public void VertexAttribI2ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ivEXT)) { try { MH_glVertexAttribI2ivEXT.invokeExact(PFN_glVertexAttribI2ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2ivEXT"); } } public void VertexAttribI3ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ivEXT)) { try { MH_glVertexAttribI3ivEXT.invokeExact(PFN_glVertexAttribI3ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3ivEXT"); } } public void VertexAttribI4ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ivEXT)) { try { MH_glVertexAttribI4ivEXT.invokeExact(PFN_glVertexAttribI4ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4ivEXT"); } } public void VertexAttribI1uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uivEXT)) { try { MH_glVertexAttribI1uivEXT.invokeExact(PFN_glVertexAttribI1uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1uivEXT"); } } public void VertexAttribI2uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uivEXT)) { try { MH_glVertexAttribI2uivEXT.invokeExact(PFN_glVertexAttribI2uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2uivEXT"); } } public void VertexAttribI3uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uivEXT)) { try { MH_glVertexAttribI3uivEXT.invokeExact(PFN_glVertexAttribI3uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3uivEXT"); } } public void VertexAttribI4uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uivEXT)) { try { MH_glVertexAttribI4uivEXT.invokeExact(PFN_glVertexAttribI4uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4uivEXT"); } } public void VertexAttribI4bvEXT(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bvEXT)) { try { MH_glVertexAttribI4bvEXT.invokeExact(PFN_glVertexAttribI4bvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4bvEXT"); } } public void VertexAttribI4svEXT(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4svEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4svEXT)) { try { MH_glVertexAttribI4svEXT.invokeExact(PFN_glVertexAttribI4svEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4svEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4svEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4svEXT"); } } public void VertexAttribI4ubvEXT(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubvEXT)) { try { MH_glVertexAttribI4ubvEXT.invokeExact(PFN_glVertexAttribI4ubvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4ubvEXT"); } } public void VertexAttribI4usvEXT(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usvEXT)) { try { MH_glVertexAttribI4usvEXT.invokeExact(PFN_glVertexAttribI4usvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4usvEXT"); } } public void VertexAttribIPointerEXT(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointerEXT)) { try { MH_glVertexAttribIPointerEXT.invokeExact(PFN_glVertexAttribIPointerEXT, index, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribIPointerEXT"); } } public void GetVertexAttribIivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIivEXT)) { try { MH_glGetVertexAttribIivEXT.invokeExact(PFN_glGetVertexAttribIivEXT, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribIivEXT"); } } public void GetVertexAttribIuivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuivEXT)) { try { MH_glGetVertexAttribIuivEXT.invokeExact(PFN_glGetVertexAttribIuivEXT, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribIuivEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java index cdca9575..fc1d24fe 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTHistogram.java @@ -73,73 +73,73 @@ public GLEXTHistogram(overrungl.opengl.GLLoadFunc func) { } public void GetHistogramEXT(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogramEXT)) { try { MH_glGetHistogramEXT.invokeExact(PFN_glGetHistogramEXT, target, reset, format, type, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogramEXT"); } } public void GetHistogramParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterfvEXT)) { try { MH_glGetHistogramParameterfvEXT.invokeExact(PFN_glGetHistogramParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogramParameterfvEXT"); } } public void GetHistogramParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterivEXT)) { try { MH_glGetHistogramParameterivEXT.invokeExact(PFN_glGetHistogramParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogramParameterivEXT"); } } public void GetMinmaxEXT(@CType("GLenum") int target, @CType("GLboolean") boolean reset, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMinmaxEXT)) { try { MH_glGetMinmaxEXT.invokeExact(PFN_glGetMinmaxEXT, target, reset, format, type, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMinmaxEXT"); } } public void GetMinmaxParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterfvEXT)) { try { MH_glGetMinmaxParameterfvEXT.invokeExact(PFN_glGetMinmaxParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMinmaxParameterfvEXT"); } } public void GetMinmaxParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMinmaxParameterivEXT)) { try { MH_glGetMinmaxParameterivEXT.invokeExact(PFN_glGetMinmaxParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMinmaxParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMinmaxParameterivEXT"); } } public void HistogramEXT(@CType("GLenum") int target, @CType("GLsizei") int width, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { - try { if (!Unmarshal.isNullPointer(PFN_glHistogramEXT)) + if (!Unmarshal.isNullPointer(PFN_glHistogramEXT)) { try { MH_glHistogramEXT.invokeExact(PFN_glHistogramEXT, target, width, internalformat, sink); - } - catch (Throwable e) { throw new RuntimeException("error in glHistogramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glHistogramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glHistogramEXT"); } } public void MinmaxEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLboolean") boolean sink) { - try { if (!Unmarshal.isNullPointer(PFN_glMinmaxEXT)) + if (!Unmarshal.isNullPointer(PFN_glMinmaxEXT)) { try { MH_glMinmaxEXT.invokeExact(PFN_glMinmaxEXT, target, internalformat, sink); - } - catch (Throwable e) { throw new RuntimeException("error in glMinmaxEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMinmaxEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMinmaxEXT"); } } public void ResetHistogramEXT(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glResetHistogramEXT)) + if (!Unmarshal.isNullPointer(PFN_glResetHistogramEXT)) { try { MH_glResetHistogramEXT.invokeExact(PFN_glResetHistogramEXT, target); - } - catch (Throwable e) { throw new RuntimeException("error in glResetHistogramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResetHistogramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResetHistogramEXT"); } } public void ResetMinmaxEXT(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glResetMinmaxEXT)) + if (!Unmarshal.isNullPointer(PFN_glResetMinmaxEXT)) { try { MH_glResetMinmaxEXT.invokeExact(PFN_glResetMinmaxEXT, target); - } - catch (Throwable e) { throw new RuntimeException("error in glResetMinmaxEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResetMinmaxEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResetMinmaxEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java index 66f534d2..6db47f32 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexFunc.java @@ -35,10 +35,10 @@ public GLEXTIndexFunc(overrungl.opengl.GLLoadFunc func) { } public void IndexFuncEXT(@CType("GLenum") int func, @CType("GLclampf") float ref) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexFuncEXT)) + if (!Unmarshal.isNullPointer(PFN_glIndexFuncEXT)) { try { MH_glIndexFuncEXT.invokeExact(PFN_glIndexFuncEXT, func, ref); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexFuncEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexFuncEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexFuncEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java index 9dd917b5..1eabf3c9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTIndexMaterial.java @@ -35,10 +35,10 @@ public GLEXTIndexMaterial(overrungl.opengl.GLLoadFunc func) { } public void IndexMaterialEXT(@CType("GLenum") int face, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexMaterialEXT)) + if (!Unmarshal.isNullPointer(PFN_glIndexMaterialEXT)) { try { MH_glIndexMaterialEXT.invokeExact(PFN_glIndexMaterialEXT, face, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexMaterialEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexMaterialEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexMaterialEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java index fc75e2e8..c44a53f2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTLightTexture.java @@ -48,24 +48,24 @@ public GLEXTLightTexture(overrungl.opengl.GLLoadFunc func) { } public void ApplyTextureEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glApplyTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glApplyTextureEXT)) { try { MH_glApplyTextureEXT.invokeExact(PFN_glApplyTextureEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glApplyTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glApplyTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glApplyTextureEXT"); } } public void TextureLightEXT(@CType("GLenum") int pname) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureLightEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureLightEXT)) { try { MH_glTextureLightEXT.invokeExact(PFN_glTextureLightEXT, pname); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureLightEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureLightEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureLightEXT"); } } public void TextureMaterialEXT(@CType("GLenum") int face, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureMaterialEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureMaterialEXT)) { try { MH_glTextureMaterialEXT.invokeExact(PFN_glTextureMaterialEXT, face, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureMaterialEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureMaterialEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureMaterialEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java index b8bc8127..8b2e28c0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObject.java @@ -94,137 +94,136 @@ public GLEXTMemoryObject(overrungl.opengl.GLLoadFunc func) { } public void GetUnsignedBytevEXT(@CType("GLenum") int pname, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytevEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytevEXT)) { try { MH_glGetUnsignedBytevEXT.invokeExact(PFN_glGetUnsignedBytevEXT, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytevEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytevEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUnsignedBytevEXT"); } } public void GetUnsignedBytei_vEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytei_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytei_vEXT)) { try { MH_glGetUnsignedBytei_vEXT.invokeExact(PFN_glGetUnsignedBytei_vEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytei_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytei_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUnsignedBytei_vEXT"); } } public void DeleteMemoryObjectsEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment memoryObjects) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteMemoryObjectsEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteMemoryObjectsEXT)) { try { MH_glDeleteMemoryObjectsEXT.invokeExact(PFN_glDeleteMemoryObjectsEXT, n, memoryObjects); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteMemoryObjectsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteMemoryObjectsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteMemoryObjectsEXT"); } } public @CType("GLboolean") boolean IsMemoryObjectEXT(@CType("GLuint") int memoryObject) { - try { if (!Unmarshal.isNullPointer(PFN_glIsMemoryObjectEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsMemoryObjectEXT)) { try { return (boolean) MH_glIsMemoryObjectEXT.invokeExact(PFN_glIsMemoryObjectEXT, memoryObject); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsMemoryObjectEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsMemoryObjectEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsMemoryObjectEXT"); } } public void CreateMemoryObjectsEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment memoryObjects) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateMemoryObjectsEXT)) + if (!Unmarshal.isNullPointer(PFN_glCreateMemoryObjectsEXT)) { try { MH_glCreateMemoryObjectsEXT.invokeExact(PFN_glCreateMemoryObjectsEXT, n, memoryObjects); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateMemoryObjectsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateMemoryObjectsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateMemoryObjectsEXT"); } } public void MemoryObjectParameterivEXT(@CType("GLuint") int memoryObject, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMemoryObjectParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glMemoryObjectParameterivEXT)) { try { MH_glMemoryObjectParameterivEXT.invokeExact(PFN_glMemoryObjectParameterivEXT, memoryObject, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMemoryObjectParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMemoryObjectParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMemoryObjectParameterivEXT"); } } public void GetMemoryObjectParameterivEXT(@CType("GLuint") int memoryObject, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMemoryObjectParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetMemoryObjectParameterivEXT)) { try { MH_glGetMemoryObjectParameterivEXT.invokeExact(PFN_glGetMemoryObjectParameterivEXT, memoryObject, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMemoryObjectParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMemoryObjectParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMemoryObjectParameterivEXT"); } } public void TexStorageMem2DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorageMem2DEXT)) { try { MH_glTexStorageMem2DEXT.invokeExact(PFN_glTexStorageMem2DEXT, target, levels, internalFormat, width, height, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorageMem2DEXT"); } } public void TexStorageMem2DMultisampleEXT(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem2DMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorageMem2DMultisampleEXT)) { try { MH_glTexStorageMem2DMultisampleEXT.invokeExact(PFN_glTexStorageMem2DMultisampleEXT, target, samples, internalFormat, width, height, fixedSampleLocations, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem2DMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem2DMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorageMem2DMultisampleEXT"); } } public void TexStorageMem3DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorageMem3DEXT)) { try { MH_glTexStorageMem3DEXT.invokeExact(PFN_glTexStorageMem3DEXT, target, levels, internalFormat, width, height, depth, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorageMem3DEXT"); } } public void TexStorageMem3DMultisampleEXT(@CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem3DMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorageMem3DMultisampleEXT)) { try { MH_glTexStorageMem3DMultisampleEXT.invokeExact(PFN_glTexStorageMem3DMultisampleEXT, target, samples, internalFormat, width, height, depth, fixedSampleLocations, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem3DMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem3DMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorageMem3DMultisampleEXT"); } } public void BufferStorageMemEXT(@CType("GLenum") int target, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferStorageMemEXT)) + if (!Unmarshal.isNullPointer(PFN_glBufferStorageMemEXT)) { try { MH_glBufferStorageMemEXT.invokeExact(PFN_glBufferStorageMemEXT, target, size, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferStorageMemEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferStorageMemEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferStorageMemEXT"); } } public void TextureStorageMem2DEXT(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem2DEXT)) { try { MH_glTextureStorageMem2DEXT.invokeExact(PFN_glTextureStorageMem2DEXT, texture, levels, internalFormat, width, height, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorageMem2DEXT"); } } public void TextureStorageMem2DMultisampleEXT(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem2DMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem2DMultisampleEXT)) { try { MH_glTextureStorageMem2DMultisampleEXT.invokeExact(PFN_glTextureStorageMem2DMultisampleEXT, texture, samples, internalFormat, width, height, fixedSampleLocations, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem2DMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem2DMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorageMem2DMultisampleEXT"); } } public void TextureStorageMem3DEXT(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem3DEXT)) { try { MH_glTextureStorageMem3DEXT.invokeExact(PFN_glTextureStorageMem3DEXT, texture, levels, internalFormat, width, height, depth, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorageMem3DEXT"); } } public void TextureStorageMem3DMultisampleEXT(@CType("GLuint") int texture, @CType("GLsizei") int samples, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem3DMultisampleEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem3DMultisampleEXT)) { try { MH_glTextureStorageMem3DMultisampleEXT.invokeExact(PFN_glTextureStorageMem3DMultisampleEXT, texture, samples, internalFormat, width, height, depth, fixedSampleLocations, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem3DMultisampleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem3DMultisampleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorageMem3DMultisampleEXT"); } } public void NamedBufferStorageMemEXT(@CType("GLuint") int buffer, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageMemEXT)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferStorageMemEXT)) { try { MH_glNamedBufferStorageMemEXT.invokeExact(PFN_glNamedBufferStorageMemEXT, buffer, size, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageMemEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferStorageMemEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferStorageMemEXT"); } } public void TexStorageMem1DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorageMem1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorageMem1DEXT)) { try { MH_glTexStorageMem1DEXT.invokeExact(PFN_glTexStorageMem1DEXT, target, levels, internalFormat, width, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorageMem1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorageMem1DEXT"); } } public void TextureStorageMem1DEXT(@CType("GLuint") int texture, @CType("GLsizei") int levels, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorageMem1DEXT)) { try { MH_glTextureStorageMem1DEXT.invokeExact(PFN_glTextureStorageMem1DEXT, texture, levels, internalFormat, width, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorageMem1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorageMem1DEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java index acf5fb5a..91c0c599 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectFd.java @@ -33,10 +33,10 @@ public GLEXTMemoryObjectFd(overrungl.opengl.GLLoadFunc func) { } public void ImportMemoryFdEXT(@CType("GLuint") int memory, @CType("GLuint64") long size, @CType("GLenum") int handleType, @CType("GLint") int fd) { - try { if (!Unmarshal.isNullPointer(PFN_glImportMemoryFdEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportMemoryFdEXT)) { try { MH_glImportMemoryFdEXT.invokeExact(PFN_glImportMemoryFdEXT, memory, size, handleType, fd); - } - catch (Throwable e) { throw new RuntimeException("error in glImportMemoryFdEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportMemoryFdEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportMemoryFdEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java index 583150c2..1d814bdd 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMemoryObjectWin32.java @@ -44,17 +44,17 @@ public GLEXTMemoryObjectWin32(overrungl.opengl.GLLoadFunc func) { } public void ImportMemoryWin32HandleEXT(@CType("GLuint") int memory, @CType("GLuint64") long size, @CType("GLenum") int handleType, @CType("void*") java.lang.foreign.MemorySegment handle) { - try { if (!Unmarshal.isNullPointer(PFN_glImportMemoryWin32HandleEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportMemoryWin32HandleEXT)) { try { MH_glImportMemoryWin32HandleEXT.invokeExact(PFN_glImportMemoryWin32HandleEXT, memory, size, handleType, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glImportMemoryWin32HandleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportMemoryWin32HandleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportMemoryWin32HandleEXT"); } } public void ImportMemoryWin32NameEXT(@CType("GLuint") int memory, @CType("GLuint64") long size, @CType("GLenum") int handleType, @CType("const void *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glImportMemoryWin32NameEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportMemoryWin32NameEXT)) { try { MH_glImportMemoryWin32NameEXT.invokeExact(PFN_glImportMemoryWin32NameEXT, memory, size, handleType, name); - } - catch (Throwable e) { throw new RuntimeException("error in glImportMemoryWin32NameEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportMemoryWin32NameEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportMemoryWin32NameEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java index 2dd181f8..05c509c8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultiDrawArrays.java @@ -35,17 +35,17 @@ public GLEXTMultiDrawArrays(overrungl.opengl.GLLoadFunc func) { } public void MultiDrawArraysEXT(@CType("GLenum") int mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysEXT)) { try { MH_glMultiDrawArraysEXT.invokeExact(PFN_glMultiDrawArraysEXT, mode, first, count, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysEXT"); } } public void MultiDrawElementsEXT(@CType("GLenum") int mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsEXT)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsEXT)) { try { MH_glMultiDrawElementsEXT.invokeExact(PFN_glMultiDrawElementsEXT, mode, count, type, indices, primcount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java index 5d48333d..5e5171f6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTMultisample.java @@ -52,17 +52,17 @@ public GLEXTMultisample(overrungl.opengl.GLLoadFunc func) { } public void SampleMaskEXT(@CType("GLclampf") float value, @CType("GLboolean") boolean invert) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleMaskEXT)) + if (!Unmarshal.isNullPointer(PFN_glSampleMaskEXT)) { try { MH_glSampleMaskEXT.invokeExact(PFN_glSampleMaskEXT, value, invert); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleMaskEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleMaskEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleMaskEXT"); } } public void SamplePatternEXT(@CType("GLenum") int pattern) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplePatternEXT)) + if (!Unmarshal.isNullPointer(PFN_glSamplePatternEXT)) { try { MH_glSamplePatternEXT.invokeExact(PFN_glSamplePatternEXT, pattern); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplePatternEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplePatternEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplePatternEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java index 3f03e469..62e59baf 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPalettedTexture.java @@ -48,31 +48,31 @@ public GLEXTPalettedTexture(overrungl.opengl.GLLoadFunc func) { } public void ColorTableEXT(@CType("GLenum") int target, @CType("GLenum") int internalFormat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment table) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTableEXT)) + if (!Unmarshal.isNullPointer(PFN_glColorTableEXT)) { try { MH_glColorTableEXT.invokeExact(PFN_glColorTableEXT, target, internalFormat, width, format, type, table); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTableEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTableEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTableEXT"); } } public void GetColorTableEXT(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableEXT)) { try { MH_glGetColorTableEXT.invokeExact(PFN_glGetColorTableEXT, target, format, type, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableEXT"); } } public void GetColorTableParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterivEXT)) { try { MH_glGetColorTableParameterivEXT.invokeExact(PFN_glGetColorTableParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableParameterivEXT"); } } public void GetColorTableParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfvEXT)) { try { MH_glGetColorTableParameterfvEXT.invokeExact(PFN_glGetColorTableParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableParameterfvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java index 60b41ec1..6946e2d1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPixelTransform.java @@ -56,45 +56,45 @@ public GLEXTPixelTransform(overrungl.opengl.GLLoadFunc func) { } public void PixelTransformParameteriEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameteriEXT)) { try { MH_glPixelTransformParameteriEXT.invokeExact(PFN_glPixelTransformParameteriEXT, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTransformParameteriEXT"); } } public void PixelTransformParameterfEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterfEXT)) + if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterfEXT)) { try { MH_glPixelTransformParameterfEXT.invokeExact(PFN_glPixelTransformParameterfEXT, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTransformParameterfEXT"); } } public void PixelTransformParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterivEXT)) { try { MH_glPixelTransformParameterivEXT.invokeExact(PFN_glPixelTransformParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTransformParameterivEXT"); } } public void PixelTransformParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glPixelTransformParameterfvEXT)) { try { MH_glPixelTransformParameterfvEXT.invokeExact(PFN_glPixelTransformParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTransformParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTransformParameterfvEXT"); } } public void GetPixelTransformParameterivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTransformParameterivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetPixelTransformParameterivEXT)) { try { MH_glGetPixelTransformParameterivEXT.invokeExact(PFN_glGetPixelTransformParameterivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPixelTransformParameterivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPixelTransformParameterivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPixelTransformParameterivEXT"); } } public void GetPixelTransformParameterfvEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTransformParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetPixelTransformParameterfvEXT)) { try { MH_glGetPixelTransformParameterfvEXT.invokeExact(PFN_glGetPixelTransformParameterfvEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPixelTransformParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPixelTransformParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPixelTransformParameterfvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java index 0ec307b1..be02f71e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPointParameters.java @@ -39,17 +39,17 @@ public GLEXTPointParameters(overrungl.opengl.GLLoadFunc func) { } public void PointParameterfEXT(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfEXT)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfEXT)) { try { MH_glPointParameterfEXT.invokeExact(PFN_glPointParameterfEXT, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfEXT"); } } public void PointParameterfvEXT(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfvEXT)) { try { MH_glPointParameterfvEXT.invokeExact(PFN_glPointParameterfvEXT, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java index f96f7f0e..f7a35ab9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffset.java @@ -35,10 +35,10 @@ public GLEXTPolygonOffset(overrungl.opengl.GLLoadFunc func) { } public void PolygonOffsetEXT(@CType("GLfloat") float factor, @CType("GLfloat") float bias) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetEXT)) { try { MH_glPolygonOffsetEXT.invokeExact(PFN_glPolygonOffsetEXT, factor, bias); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonOffsetEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java index 7aca8162..ba7db8ee 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTPolygonOffsetClamp.java @@ -33,10 +33,10 @@ public GLEXTPolygonOffsetClamp(overrungl.opengl.GLLoadFunc func) { } public void PolygonOffsetClampEXT(@CType("GLfloat") float factor, @CType("GLfloat") float units, @CType("GLfloat") float clamp) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClampEXT)) + if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetClampEXT)) { try { MH_glPolygonOffsetClampEXT.invokeExact(PFN_glPolygonOffsetClampEXT, factor, units, clamp); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClampEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetClampEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonOffsetClampEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java index d4549438..f3e1d5f7 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTProvokingVertex.java @@ -36,10 +36,10 @@ public GLEXTProvokingVertex(overrungl.opengl.GLLoadFunc func) { } public void ProvokingVertexEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glProvokingVertexEXT)) + if (!Unmarshal.isNullPointer(PFN_glProvokingVertexEXT)) { try { MH_glProvokingVertexEXT.invokeExact(PFN_glProvokingVertexEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glProvokingVertexEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProvokingVertexEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProvokingVertexEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java index dfc35892..12aa5a2a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTRasterMultisample.java @@ -38,10 +38,10 @@ public GLEXTRasterMultisample(overrungl.opengl.GLLoadFunc func) { } public void RasterSamplesEXT(@CType("GLuint") int samples, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterSamplesEXT)) + if (!Unmarshal.isNullPointer(PFN_glRasterSamplesEXT)) { try { MH_glRasterSamplesEXT.invokeExact(PFN_glRasterSamplesEXT, samples, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterSamplesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterSamplesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterSamplesEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java index 09bbb16f..91911e78 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSecondaryColor.java @@ -87,122 +87,122 @@ public GLEXTSecondaryColor(overrungl.opengl.GLLoadFunc func) { } public void SecondaryColor3bEXT(@CType("GLbyte") byte red, @CType("GLbyte") byte green, @CType("GLbyte") byte blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3bEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3bEXT)) { try { MH_glSecondaryColor3bEXT.invokeExact(PFN_glSecondaryColor3bEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3bEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3bEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3bEXT"); } } public void SecondaryColor3bvEXT(@CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3bvEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3bvEXT)) { try { MH_glSecondaryColor3bvEXT.invokeExact(PFN_glSecondaryColor3bvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3bvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3bvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3bvEXT"); } } public void SecondaryColor3dEXT(@CType("GLdouble") double red, @CType("GLdouble") double green, @CType("GLdouble") double blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3dEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3dEXT)) { try { MH_glSecondaryColor3dEXT.invokeExact(PFN_glSecondaryColor3dEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3dEXT"); } } public void SecondaryColor3dvEXT(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3dvEXT)) { try { MH_glSecondaryColor3dvEXT.invokeExact(PFN_glSecondaryColor3dvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3dvEXT"); } } public void SecondaryColor3fEXT(@CType("GLfloat") float red, @CType("GLfloat") float green, @CType("GLfloat") float blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3fEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3fEXT)) { try { MH_glSecondaryColor3fEXT.invokeExact(PFN_glSecondaryColor3fEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3fEXT"); } } public void SecondaryColor3fvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3fvEXT)) { try { MH_glSecondaryColor3fvEXT.invokeExact(PFN_glSecondaryColor3fvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3fvEXT"); } } public void SecondaryColor3iEXT(@CType("GLint") int red, @CType("GLint") int green, @CType("GLint") int blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3iEXT)) { try { MH_glSecondaryColor3iEXT.invokeExact(PFN_glSecondaryColor3iEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3iEXT"); } } public void SecondaryColor3ivEXT(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ivEXT)) { try { MH_glSecondaryColor3ivEXT.invokeExact(PFN_glSecondaryColor3ivEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3ivEXT"); } } public void SecondaryColor3sEXT(@CType("GLshort") short red, @CType("GLshort") short green, @CType("GLshort") short blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3sEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3sEXT)) { try { MH_glSecondaryColor3sEXT.invokeExact(PFN_glSecondaryColor3sEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3sEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3sEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3sEXT"); } } public void SecondaryColor3svEXT(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3svEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3svEXT)) { try { MH_glSecondaryColor3svEXT.invokeExact(PFN_glSecondaryColor3svEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3svEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3svEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3svEXT"); } } public void SecondaryColor3ubEXT(@CType("GLubyte") byte red, @CType("GLubyte") byte green, @CType("GLubyte") byte blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ubEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ubEXT)) { try { MH_glSecondaryColor3ubEXT.invokeExact(PFN_glSecondaryColor3ubEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ubEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ubEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3ubEXT"); } } public void SecondaryColor3ubvEXT(@CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ubvEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3ubvEXT)) { try { MH_glSecondaryColor3ubvEXT.invokeExact(PFN_glSecondaryColor3ubvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ubvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3ubvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3ubvEXT"); } } public void SecondaryColor3uiEXT(@CType("GLuint") int red, @CType("GLuint") int green, @CType("GLuint") int blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3uiEXT)) { try { MH_glSecondaryColor3uiEXT.invokeExact(PFN_glSecondaryColor3uiEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3uiEXT"); } } public void SecondaryColor3uivEXT(@CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3uivEXT)) { try { MH_glSecondaryColor3uivEXT.invokeExact(PFN_glSecondaryColor3uivEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3uivEXT"); } } public void SecondaryColor3usEXT(@CType("GLushort") short red, @CType("GLushort") short green, @CType("GLushort") short blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3usEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3usEXT)) { try { MH_glSecondaryColor3usEXT.invokeExact(PFN_glSecondaryColor3usEXT, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3usEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3usEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3usEXT"); } } public void SecondaryColor3usvEXT(@CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3usvEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3usvEXT)) { try { MH_glSecondaryColor3usvEXT.invokeExact(PFN_glSecondaryColor3usvEXT, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3usvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3usvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3usvEXT"); } } public void SecondaryColorPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColorPointerEXT)) { try { MH_glSecondaryColorPointerEXT.invokeExact(PFN_glSecondaryColorPointerEXT, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColorPointerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java index dd897a05..a7661269 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphore.java @@ -69,67 +69,66 @@ public GLEXTSemaphore(overrungl.opengl.GLLoadFunc func) { } public void GetUnsignedBytevEXT(@CType("GLenum") int pname, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytevEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytevEXT)) { try { MH_glGetUnsignedBytevEXT.invokeExact(PFN_glGetUnsignedBytevEXT, pname, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytevEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytevEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUnsignedBytevEXT"); } } public void GetUnsignedBytei_vEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLubyte *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytei_vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetUnsignedBytei_vEXT)) { try { MH_glGetUnsignedBytei_vEXT.invokeExact(PFN_glGetUnsignedBytei_vEXT, target, index, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytei_vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUnsignedBytei_vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUnsignedBytei_vEXT"); } } public void GenSemaphoresEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment semaphores) { - try { if (!Unmarshal.isNullPointer(PFN_glGenSemaphoresEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenSemaphoresEXT)) { try { MH_glGenSemaphoresEXT.invokeExact(PFN_glGenSemaphoresEXT, n, semaphores); - } - catch (Throwable e) { throw new RuntimeException("error in glGenSemaphoresEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenSemaphoresEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenSemaphoresEXT"); } } public void DeleteSemaphoresEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphores) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteSemaphoresEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteSemaphoresEXT)) { try { MH_glDeleteSemaphoresEXT.invokeExact(PFN_glDeleteSemaphoresEXT, n, semaphores); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteSemaphoresEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteSemaphoresEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteSemaphoresEXT"); } } public @CType("GLboolean") boolean IsSemaphoreEXT(@CType("GLuint") int semaphore) { - try { if (!Unmarshal.isNullPointer(PFN_glIsSemaphoreEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsSemaphoreEXT)) { try { return (boolean) MH_glIsSemaphoreEXT.invokeExact(PFN_glIsSemaphoreEXT, semaphore); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsSemaphoreEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsSemaphoreEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsSemaphoreEXT"); } } public void SemaphoreParameterui64vEXT(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("const GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glSemaphoreParameterui64vEXT)) + if (!Unmarshal.isNullPointer(PFN_glSemaphoreParameterui64vEXT)) { try { MH_glSemaphoreParameterui64vEXT.invokeExact(PFN_glSemaphoreParameterui64vEXT, semaphore, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glSemaphoreParameterui64vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSemaphoreParameterui64vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSemaphoreParameterui64vEXT"); } } public void GetSemaphoreParameterui64vEXT(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSemaphoreParameterui64vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetSemaphoreParameterui64vEXT)) { try { MH_glGetSemaphoreParameterui64vEXT.invokeExact(PFN_glGetSemaphoreParameterui64vEXT, semaphore, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSemaphoreParameterui64vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSemaphoreParameterui64vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSemaphoreParameterui64vEXT"); } } public void WaitSemaphoreEXT(@CType("GLuint") int semaphore, @CType("GLuint") int numBufferBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("GLuint") int numTextureBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLenum *") java.lang.foreign.MemorySegment srcLayouts) { - try { if (!Unmarshal.isNullPointer(PFN_glWaitSemaphoreEXT)) + if (!Unmarshal.isNullPointer(PFN_glWaitSemaphoreEXT)) { try { MH_glWaitSemaphoreEXT.invokeExact(PFN_glWaitSemaphoreEXT, semaphore, numBufferBarriers, buffers, numTextureBarriers, textures, srcLayouts); - } - catch (Throwable e) { throw new RuntimeException("error in glWaitSemaphoreEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWaitSemaphoreEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWaitSemaphoreEXT"); } } public void SignalSemaphoreEXT(@CType("GLuint") int semaphore, @CType("GLuint") int numBufferBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment buffers, @CType("GLuint") int numTextureBarriers, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLenum *") java.lang.foreign.MemorySegment dstLayouts) { - try { if (!Unmarshal.isNullPointer(PFN_glSignalSemaphoreEXT)) + if (!Unmarshal.isNullPointer(PFN_glSignalSemaphoreEXT)) { try { MH_glSignalSemaphoreEXT.invokeExact(PFN_glSignalSemaphoreEXT, semaphore, numBufferBarriers, buffers, numTextureBarriers, textures, dstLayouts); - } - catch (Throwable e) { throw new RuntimeException("error in glSignalSemaphoreEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSignalSemaphoreEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSignalSemaphoreEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java index 8353c1f0..c1dff312 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreFd.java @@ -33,10 +33,10 @@ public GLEXTSemaphoreFd(overrungl.opengl.GLLoadFunc func) { } public void ImportSemaphoreFdEXT(@CType("GLuint") int semaphore, @CType("GLenum") int handleType, @CType("GLint") int fd) { - try { if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreFdEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreFdEXT)) { try { MH_glImportSemaphoreFdEXT.invokeExact(PFN_glImportSemaphoreFdEXT, semaphore, handleType, fd); - } - catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreFdEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreFdEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportSemaphoreFdEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java index 171fc16a..04e50b1e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSemaphoreWin32.java @@ -42,17 +42,17 @@ public GLEXTSemaphoreWin32(overrungl.opengl.GLLoadFunc func) { } public void ImportSemaphoreWin32HandleEXT(@CType("GLuint") int semaphore, @CType("GLenum") int handleType, @CType("void*") java.lang.foreign.MemorySegment handle) { - try { if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreWin32HandleEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreWin32HandleEXT)) { try { MH_glImportSemaphoreWin32HandleEXT.invokeExact(PFN_glImportSemaphoreWin32HandleEXT, semaphore, handleType, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreWin32HandleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreWin32HandleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportSemaphoreWin32HandleEXT"); } } public void ImportSemaphoreWin32NameEXT(@CType("GLuint") int semaphore, @CType("GLenum") int handleType, @CType("const void *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreWin32NameEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportSemaphoreWin32NameEXT)) { try { MH_glImportSemaphoreWin32NameEXT.invokeExact(PFN_glImportSemaphoreWin32NameEXT, semaphore, handleType, name); - } - catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreWin32NameEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportSemaphoreWin32NameEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportSemaphoreWin32NameEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java index b0cae41d..5c2a3470 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSeparateShaderObjects.java @@ -174,335 +174,332 @@ public GLEXTSeparateShaderObjects(overrungl.opengl.GLLoadFunc func) { } public void UseShaderProgramEXT(@CType("GLenum") int type, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glUseShaderProgramEXT)) + if (!Unmarshal.isNullPointer(PFN_glUseShaderProgramEXT)) { try { MH_glUseShaderProgramEXT.invokeExact(PFN_glUseShaderProgramEXT, type, program); - } - catch (Throwable e) { throw new RuntimeException("error in glUseShaderProgramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUseShaderProgramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUseShaderProgramEXT"); } } public void ActiveProgramEXT(@CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveProgramEXT)) + if (!Unmarshal.isNullPointer(PFN_glActiveProgramEXT)) { try { MH_glActiveProgramEXT.invokeExact(PFN_glActiveProgramEXT, program); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveProgramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveProgramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveProgramEXT"); } } public @CType("GLuint") int CreateShaderProgramEXT(@CType("GLenum") int type, @CType("const GLchar *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramEXT)) + if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramEXT)) { try { return (int) MH_glCreateShaderProgramEXT.invokeExact(PFN_glCreateShaderProgramEXT, type, string); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateShaderProgramEXT"); } } public void ActiveShaderProgramEXT(@CType("GLuint") int pipeline, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgramEXT)) + if (!Unmarshal.isNullPointer(PFN_glActiveShaderProgramEXT)) { try { MH_glActiveShaderProgramEXT.invokeExact(PFN_glActiveShaderProgramEXT, pipeline, program); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgramEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveShaderProgramEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveShaderProgramEXT"); } } public void BindProgramPipelineEXT(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glBindProgramPipelineEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindProgramPipelineEXT)) { try { MH_glBindProgramPipelineEXT.invokeExact(PFN_glBindProgramPipelineEXT, pipeline); - } - catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipelineEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindProgramPipelineEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindProgramPipelineEXT"); } } public @CType("GLuint") int CreateShaderProgramvEXT(@CType("GLenum") int type, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment strings) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramvEXT)) + if (!Unmarshal.isNullPointer(PFN_glCreateShaderProgramvEXT)) { try { return (int) MH_glCreateShaderProgramvEXT.invokeExact(PFN_glCreateShaderProgramvEXT, type, count, strings); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateShaderProgramvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateShaderProgramvEXT"); } } public void DeleteProgramPipelinesEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelinesEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgramPipelinesEXT)) { try { MH_glDeleteProgramPipelinesEXT.invokeExact(PFN_glDeleteProgramPipelinesEXT, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelinesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramPipelinesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgramPipelinesEXT"); } } public void GenProgramPipelinesEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment pipelines) { - try { if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelinesEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenProgramPipelinesEXT)) { try { MH_glGenProgramPipelinesEXT.invokeExact(PFN_glGenProgramPipelinesEXT, n, pipelines); - } - catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelinesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenProgramPipelinesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenProgramPipelinesEXT"); } } public void GetProgramPipelineInfoLogEXT(@CType("GLuint") int pipeline, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment infoLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLogEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineInfoLogEXT)) { try { MH_glGetProgramPipelineInfoLogEXT.invokeExact(PFN_glGetProgramPipelineInfoLogEXT, pipeline, bufSize, length, infoLog); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLogEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineInfoLogEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramPipelineInfoLogEXT"); } } public void GetProgramPipelineivEXT(@CType("GLuint") int pipeline, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramPipelineivEXT)) { try { MH_glGetProgramPipelineivEXT.invokeExact(PFN_glGetProgramPipelineivEXT, pipeline, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramPipelineivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramPipelineivEXT"); } } public @CType("GLboolean") boolean IsProgramPipelineEXT(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgramPipelineEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsProgramPipelineEXT)) { try { return (boolean) MH_glIsProgramPipelineEXT.invokeExact(PFN_glIsProgramPipelineEXT, pipeline); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipelineEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgramPipelineEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgramPipelineEXT"); } } public void ProgramParameteriEXT(@CType("GLuint") int program, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameteriEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameteriEXT)) { try { MH_glProgramParameteriEXT.invokeExact(PFN_glProgramParameteriEXT, program, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameteriEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameteriEXT"); } } public void ProgramUniform1fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fEXT)) { try { MH_glProgramUniform1fEXT.invokeExact(PFN_glProgramUniform1fEXT, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1fEXT"); } } public void ProgramUniform1fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1fvEXT)) { try { MH_glProgramUniform1fvEXT.invokeExact(PFN_glProgramUniform1fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1fvEXT"); } } public void ProgramUniform1iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1iEXT)) { try { MH_glProgramUniform1iEXT.invokeExact(PFN_glProgramUniform1iEXT, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1iEXT"); } } public void ProgramUniform1ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ivEXT)) { try { MH_glProgramUniform1ivEXT.invokeExact(PFN_glProgramUniform1ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ivEXT"); } } public void ProgramUniform2fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fEXT)) { try { MH_glProgramUniform2fEXT.invokeExact(PFN_glProgramUniform2fEXT, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2fEXT"); } } public void ProgramUniform2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2fvEXT)) { try { MH_glProgramUniform2fvEXT.invokeExact(PFN_glProgramUniform2fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2fvEXT"); } } public void ProgramUniform2iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2iEXT)) { try { MH_glProgramUniform2iEXT.invokeExact(PFN_glProgramUniform2iEXT, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2iEXT"); } } public void ProgramUniform2ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ivEXT)) { try { MH_glProgramUniform2ivEXT.invokeExact(PFN_glProgramUniform2ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ivEXT"); } } public void ProgramUniform3fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fEXT)) { try { MH_glProgramUniform3fEXT.invokeExact(PFN_glProgramUniform3fEXT, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3fEXT"); } } public void ProgramUniform3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3fvEXT)) { try { MH_glProgramUniform3fvEXT.invokeExact(PFN_glProgramUniform3fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3fvEXT"); } } public void ProgramUniform3iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3iEXT)) { try { MH_glProgramUniform3iEXT.invokeExact(PFN_glProgramUniform3iEXT, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3iEXT"); } } public void ProgramUniform3ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ivEXT)) { try { MH_glProgramUniform3ivEXT.invokeExact(PFN_glProgramUniform3ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ivEXT"); } } public void ProgramUniform4fEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLfloat") float v0, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLfloat") float v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fEXT)) { try { MH_glProgramUniform4fEXT.invokeExact(PFN_glProgramUniform4fEXT, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4fEXT"); } } public void ProgramUniform4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4fvEXT)) { try { MH_glProgramUniform4fvEXT.invokeExact(PFN_glProgramUniform4fvEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4fvEXT"); } } public void ProgramUniform4iEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint") int v0, @CType("GLint") int v1, @CType("GLint") int v2, @CType("GLint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4iEXT)) { try { MH_glProgramUniform4iEXT.invokeExact(PFN_glProgramUniform4iEXT, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4iEXT"); } } public void ProgramUniform4ivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ivEXT)) { try { MH_glProgramUniform4ivEXT.invokeExact(PFN_glProgramUniform4ivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ivEXT"); } } public void ProgramUniformMatrix2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2fvEXT)) { try { MH_glProgramUniformMatrix2fvEXT.invokeExact(PFN_glProgramUniformMatrix2fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2fvEXT"); } } public void ProgramUniformMatrix3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3fvEXT)) { try { MH_glProgramUniformMatrix3fvEXT.invokeExact(PFN_glProgramUniformMatrix3fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3fvEXT"); } } public void ProgramUniformMatrix4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4fvEXT)) { try { MH_glProgramUniformMatrix4fvEXT.invokeExact(PFN_glProgramUniformMatrix4fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4fvEXT"); } } public void UseProgramStagesEXT(@CType("GLuint") int pipeline, @CType("GLbitfield") int stages, @CType("GLuint") int program) { - try { if (!Unmarshal.isNullPointer(PFN_glUseProgramStagesEXT)) + if (!Unmarshal.isNullPointer(PFN_glUseProgramStagesEXT)) { try { MH_glUseProgramStagesEXT.invokeExact(PFN_glUseProgramStagesEXT, pipeline, stages, program); - } - catch (Throwable e) { throw new RuntimeException("error in glUseProgramStagesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUseProgramStagesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUseProgramStagesEXT"); } } public void ValidateProgramPipelineEXT(@CType("GLuint") int pipeline) { - try { if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipelineEXT)) + if (!Unmarshal.isNullPointer(PFN_glValidateProgramPipelineEXT)) { try { MH_glValidateProgramPipelineEXT.invokeExact(PFN_glValidateProgramPipelineEXT, pipeline); - } - catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipelineEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glValidateProgramPipelineEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glValidateProgramPipelineEXT"); } } public void ProgramUniform1uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uiEXT)) { try { MH_glProgramUniform1uiEXT.invokeExact(PFN_glProgramUniform1uiEXT, program, location, v0); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1uiEXT"); } } public void ProgramUniform2uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uiEXT)) { try { MH_glProgramUniform2uiEXT.invokeExact(PFN_glProgramUniform2uiEXT, program, location, v0, v1); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2uiEXT"); } } public void ProgramUniform3uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uiEXT)) { try { MH_glProgramUniform3uiEXT.invokeExact(PFN_glProgramUniform3uiEXT, program, location, v0, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3uiEXT"); } } public void ProgramUniform4uiEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint") int v0, @CType("GLuint") int v1, @CType("GLuint") int v2, @CType("GLuint") int v3) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uiEXT)) { try { MH_glProgramUniform4uiEXT.invokeExact(PFN_glProgramUniform4uiEXT, program, location, v0, v1, v2, v3); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4uiEXT"); } } public void ProgramUniform1uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1uivEXT)) { try { MH_glProgramUniform1uivEXT.invokeExact(PFN_glProgramUniform1uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1uivEXT"); } } public void ProgramUniform2uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2uivEXT)) { try { MH_glProgramUniform2uivEXT.invokeExact(PFN_glProgramUniform2uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2uivEXT"); } } public void ProgramUniform3uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3uivEXT)) { try { MH_glProgramUniform3uivEXT.invokeExact(PFN_glProgramUniform3uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3uivEXT"); } } public void ProgramUniform4uivEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4uivEXT)) { try { MH_glProgramUniform4uivEXT.invokeExact(PFN_glProgramUniform4uivEXT, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4uivEXT"); } } public void ProgramUniformMatrix2x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x3fvEXT)) { try { MH_glProgramUniformMatrix2x3fvEXT.invokeExact(PFN_glProgramUniformMatrix2x3fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x3fvEXT"); } } public void ProgramUniformMatrix3x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x2fvEXT)) { try { MH_glProgramUniformMatrix3x2fvEXT.invokeExact(PFN_glProgramUniformMatrix3x2fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x2fvEXT"); } } public void ProgramUniformMatrix2x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix2x4fvEXT)) { try { MH_glProgramUniformMatrix2x4fvEXT.invokeExact(PFN_glProgramUniformMatrix2x4fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix2x4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix2x4fvEXT"); } } public void ProgramUniformMatrix4x2fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x2fvEXT)) { try { MH_glProgramUniformMatrix4x2fvEXT.invokeExact(PFN_glProgramUniformMatrix4x2fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x2fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x2fvEXT"); } } public void ProgramUniformMatrix3x4fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix3x4fvEXT)) { try { MH_glProgramUniformMatrix3x4fvEXT.invokeExact(PFN_glProgramUniformMatrix3x4fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix3x4fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix3x4fvEXT"); } } public void ProgramUniformMatrix4x3fvEXT(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("GLboolean") boolean transpose, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fvEXT)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformMatrix4x3fvEXT)) { try { MH_glProgramUniformMatrix4x3fvEXT.invokeExact(PFN_glProgramUniformMatrix4x3fvEXT, program, location, count, transpose, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformMatrix4x3fvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformMatrix4x3fvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java index 5877e7ba..c0b563ae 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderFramebufferFetchNonCoherent.java @@ -33,10 +33,10 @@ public GLEXTShaderFramebufferFetchNonCoherent(overrungl.opengl.GLLoadFunc func) } public void FramebufferFetchBarrierEXT() { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferFetchBarrierEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferFetchBarrierEXT)) { try { MH_glFramebufferFetchBarrierEXT.invokeExact(PFN_glFramebufferFetchBarrierEXT); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferFetchBarrierEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferFetchBarrierEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferFetchBarrierEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java index 7bf6e327..24ac5ab0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTShaderImageLoadStore.java @@ -90,17 +90,17 @@ public GLEXTShaderImageLoadStore(overrungl.opengl.GLLoadFunc func) { } public void BindImageTextureEXT(@CType("GLuint") int index, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int access, @CType("GLint") int format) { - try { if (!Unmarshal.isNullPointer(PFN_glBindImageTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindImageTextureEXT)) { try { MH_glBindImageTextureEXT.invokeExact(PFN_glBindImageTextureEXT, index, texture, level, layered, layer, access, format); - } - catch (Throwable e) { throw new RuntimeException("error in glBindImageTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindImageTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindImageTextureEXT"); } } public void MemoryBarrierEXT(@CType("GLbitfield") int barriers) { - try { if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierEXT)) + if (!Unmarshal.isNullPointer(PFN_glMemoryBarrierEXT)) { try { MH_glMemoryBarrierEXT.invokeExact(PFN_glMemoryBarrierEXT, barriers); - } - catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMemoryBarrierEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMemoryBarrierEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java index ecadb205..3578b16e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilClearTag.java @@ -34,10 +34,10 @@ public GLEXTStencilClearTag(overrungl.opengl.GLLoadFunc func) { } public void StencilClearTagEXT(@CType("GLsizei") int stencilTagBits, @CType("GLuint") int stencilClearTag) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilClearTagEXT)) + if (!Unmarshal.isNullPointer(PFN_glStencilClearTagEXT)) { try { MH_glStencilClearTagEXT.invokeExact(PFN_glStencilClearTagEXT, stencilTagBits, stencilClearTag); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilClearTagEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilClearTagEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilClearTagEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java index 0e464f89..8edc83d5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTStencilTwoSide.java @@ -34,10 +34,10 @@ public GLEXTStencilTwoSide(overrungl.opengl.GLLoadFunc func) { } public void ActiveStencilFaceEXT(@CType("GLenum") int face) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveStencilFaceEXT)) + if (!Unmarshal.isNullPointer(PFN_glActiveStencilFaceEXT)) { try { MH_glActiveStencilFaceEXT.invokeExact(PFN_glActiveStencilFaceEXT, face); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveStencilFaceEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveStencilFaceEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveStencilFaceEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java index fd49ede6..996da8e5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTSubtexture.java @@ -35,17 +35,17 @@ public GLEXTSubtexture(overrungl.opengl.GLLoadFunc func) { } public void TexSubImage1DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage1DEXT)) { try { MH_glTexSubImage1DEXT.invokeExact(PFN_glTexSubImage1DEXT, target, level, xoffset, width, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage1DEXT"); } } public void TexSubImage2DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage2DEXT)) { try { MH_glTexSubImage2DEXT.invokeExact(PFN_glTexSubImage2DEXT, target, level, xoffset, yoffset, width, height, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage2DEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java index 38683c07..5d4c1959 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexture3D.java @@ -44,17 +44,17 @@ public GLEXTTexture3D(overrungl.opengl.GLLoadFunc func) { } public void TexImage3DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexImage3DEXT)) { try { MH_glTexImage3DEXT.invokeExact(PFN_glTexImage3DEXT, target, level, internalformat, width, height, depth, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage3DEXT"); } } public void TexSubImage3DEXT(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage3DEXT)) { try { MH_glTexSubImage3DEXT.invokeExact(PFN_glTexSubImage3DEXT, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage3DEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java index 28d99c32..cd52cb5a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureArray.java @@ -41,10 +41,10 @@ public GLEXTTextureArray(overrungl.opengl.GLLoadFunc func) { } public void FramebufferTextureLayerEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerEXT)) { try { MH_glFramebufferTextureLayerEXT.invokeExact(PFN_glFramebufferTextureLayerEXT, target, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureLayerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java index 19a0c984..512a1152 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureBufferObject.java @@ -37,10 +37,10 @@ public GLEXTTextureBufferObject(overrungl.opengl.GLLoadFunc func) { } public void TexBufferEXT(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTexBufferEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexBufferEXT)) { try { MH_glTexBufferEXT.invokeExact(PFN_glTexBufferEXT, target, internalformat, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTexBufferEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexBufferEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexBufferEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java index 7cee066c..250a0649 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureInteger.java @@ -94,45 +94,45 @@ public GLEXTTextureInteger(overrungl.opengl.GLLoadFunc func) { } public void TexParameterIivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterIivEXT)) { try { MH_glTexParameterIivEXT.invokeExact(PFN_glTexParameterIivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterIivEXT"); } } public void TexParameterIuivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterIuivEXT)) { try { MH_glTexParameterIuivEXT.invokeExact(PFN_glTexParameterIuivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterIuivEXT"); } } public void GetTexParameterIivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIivEXT)) { try { MH_glGetTexParameterIivEXT.invokeExact(PFN_glGetTexParameterIivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterIivEXT"); } } public void GetTexParameterIuivEXT(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterIuivEXT)) { try { MH_glGetTexParameterIuivEXT.invokeExact(PFN_glGetTexParameterIuivEXT, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterIuivEXT"); } } public void ClearColorIiEXT(@CType("GLint") int red, @CType("GLint") int green, @CType("GLint") int blue, @CType("GLint") int alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glClearColorIiEXT)) + if (!Unmarshal.isNullPointer(PFN_glClearColorIiEXT)) { try { MH_glClearColorIiEXT.invokeExact(PFN_glClearColorIiEXT, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glClearColorIiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearColorIiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearColorIiEXT"); } } public void ClearColorIuiEXT(@CType("GLuint") int red, @CType("GLuint") int green, @CType("GLuint") int blue, @CType("GLuint") int alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glClearColorIuiEXT)) + if (!Unmarshal.isNullPointer(PFN_glClearColorIuiEXT)) { try { MH_glClearColorIuiEXT.invokeExact(PFN_glClearColorIuiEXT, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glClearColorIuiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearColorIuiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearColorIuiEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java index 4e9086e1..e4e231c3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureObject.java @@ -52,47 +52,45 @@ public GLEXTTextureObject(overrungl.opengl.GLLoadFunc func) { } public @CType("GLboolean") boolean AreTexturesResidentEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("GLboolean *") java.lang.foreign.MemorySegment residences) { - try { if (!Unmarshal.isNullPointer(PFN_glAreTexturesResidentEXT)) + if (!Unmarshal.isNullPointer(PFN_glAreTexturesResidentEXT)) { try { return (boolean) MH_glAreTexturesResidentEXT.invokeExact(PFN_glAreTexturesResidentEXT, n, textures, residences); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glAreTexturesResidentEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAreTexturesResidentEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAreTexturesResidentEXT"); } } public void BindTextureEXT(@CType("GLenum") int target, @CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindTextureEXT)) { try { MH_glBindTextureEXT.invokeExact(PFN_glBindTextureEXT, target, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTextureEXT"); } } public void DeleteTexturesEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteTexturesEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteTexturesEXT)) { try { MH_glDeleteTexturesEXT.invokeExact(PFN_glDeleteTexturesEXT, n, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteTexturesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteTexturesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteTexturesEXT"); } } public void GenTexturesEXT(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment textures) { - try { if (!Unmarshal.isNullPointer(PFN_glGenTexturesEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenTexturesEXT)) { try { MH_glGenTexturesEXT.invokeExact(PFN_glGenTexturesEXT, n, textures); - } - catch (Throwable e) { throw new RuntimeException("error in glGenTexturesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenTexturesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenTexturesEXT"); } } public @CType("GLboolean") boolean IsTextureEXT(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsTextureEXT)) { try { return (boolean) MH_glIsTextureEXT.invokeExact(PFN_glIsTextureEXT, texture); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTextureEXT"); } } public void PrioritizeTexturesEXT(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLclampf *") java.lang.foreign.MemorySegment priorities) { - try { if (!Unmarshal.isNullPointer(PFN_glPrioritizeTexturesEXT)) + if (!Unmarshal.isNullPointer(PFN_glPrioritizeTexturesEXT)) { try { MH_glPrioritizeTexturesEXT.invokeExact(PFN_glPrioritizeTexturesEXT, n, textures, priorities); - } - catch (Throwable e) { throw new RuntimeException("error in glPrioritizeTexturesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPrioritizeTexturesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPrioritizeTexturesEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java index 9d126188..25d17496 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTexturePerturbNormal.java @@ -34,10 +34,10 @@ public GLEXTTexturePerturbNormal(overrungl.opengl.GLLoadFunc func) { } public void TextureNormalEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureNormalEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureNormalEXT)) { try { MH_glTextureNormalEXT.invokeExact(PFN_glTextureNormalEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureNormalEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureNormalEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureNormalEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java index c7ac54ae..c6119abb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTextureStorage.java @@ -69,45 +69,45 @@ public GLEXTTextureStorage(overrungl.opengl.GLLoadFunc func) { } public void TexStorage1DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage1DEXT)) { try { MH_glTexStorage1DEXT.invokeExact(PFN_glTexStorage1DEXT, target, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage1DEXT"); } } public void TexStorage2DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage2DEXT)) { try { MH_glTexStorage2DEXT.invokeExact(PFN_glTexStorage2DEXT, target, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage2DEXT"); } } public void TexStorage3DEXT(@CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTexStorage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexStorage3DEXT)) { try { MH_glTexStorage3DEXT.invokeExact(PFN_glTexStorage3DEXT, target, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexStorage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexStorage3DEXT"); } } public void TextureStorage1DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage1DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage1DEXT)) { try { MH_glTextureStorage1DEXT.invokeExact(PFN_glTextureStorage1DEXT, texture, target, levels, internalformat, width); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage1DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage1DEXT"); } } public void TextureStorage2DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage2DEXT)) { try { MH_glTextureStorage2DEXT.invokeExact(PFN_glTextureStorage2DEXT, texture, target, levels, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage2DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage2DEXT"); } } public void TextureStorage3DEXT(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int levels, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DEXT)) + if (!Unmarshal.isNullPointer(PFN_glTextureStorage3DEXT)) { try { MH_glTextureStorage3DEXT.invokeExact(PFN_glTextureStorage3DEXT, texture, target, levels, internalformat, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureStorage3DEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureStorage3DEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java index 1ec1cbf6..c136bda6 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTimerQuery.java @@ -36,17 +36,17 @@ public GLEXTTimerQuery(overrungl.opengl.GLLoadFunc func) { } public void GetQueryObjecti64vEXT(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjecti64vEXT)) { try { MH_glGetQueryObjecti64vEXT.invokeExact(PFN_glGetQueryObjecti64vEXT, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjecti64vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjecti64vEXT"); } } public void GetQueryObjectui64vEXT(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64vEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetQueryObjectui64vEXT)) { try { MH_glGetQueryObjectui64vEXT.invokeExact(PFN_glGetQueryObjectui64vEXT, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64vEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetQueryObjectui64vEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetQueryObjectui64vEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java index 29ec8dec..7bd948ef 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTTransformFeedback.java @@ -65,52 +65,52 @@ public GLEXTTransformFeedback(overrungl.opengl.GLLoadFunc func) { } public void BeginTransformFeedbackEXT(@CType("GLenum") int primitiveMode) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedbackEXT)) + if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedbackEXT)) { try { MH_glBeginTransformFeedbackEXT.invokeExact(PFN_glBeginTransformFeedbackEXT, primitiveMode); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedbackEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedbackEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginTransformFeedbackEXT"); } } public void EndTransformFeedbackEXT() { - try { if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedbackEXT)) + if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedbackEXT)) { try { MH_glEndTransformFeedbackEXT.invokeExact(PFN_glEndTransformFeedbackEXT); - } - catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedbackEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedbackEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndTransformFeedbackEXT"); } } public void BindBufferRangeEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRangeEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferRangeEXT)) { try { MH_glBindBufferRangeEXT.invokeExact(PFN_glBindBufferRangeEXT, target, index, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferRangeEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferRangeEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferRangeEXT"); } } public void BindBufferOffsetEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferOffsetEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferOffsetEXT)) { try { MH_glBindBufferOffsetEXT.invokeExact(PFN_glBindBufferOffsetEXT, target, index, buffer, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferOffsetEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferOffsetEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferOffsetEXT"); } } public void BindBufferBaseEXT(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBaseEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferBaseEXT)) { try { MH_glBindBufferBaseEXT.invokeExact(PFN_glBindBufferBaseEXT, target, index, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferBaseEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferBaseEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferBaseEXT"); } } public void TransformFeedbackVaryingsEXT(@CType("GLuint") int program, @CType("GLsizei") int count, @CType("const GLchar *const*") java.lang.foreign.MemorySegment varyings, @CType("GLenum") int bufferMode) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryingsEXT)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryingsEXT)) { try { MH_glTransformFeedbackVaryingsEXT.invokeExact(PFN_glTransformFeedbackVaryingsEXT, program, count, varyings, bufferMode); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryingsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryingsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackVaryingsEXT"); } } public void GetTransformFeedbackVaryingEXT(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLsizei *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVaryingEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVaryingEXT)) { try { MH_glGetTransformFeedbackVaryingEXT.invokeExact(PFN_glGetTransformFeedbackVaryingEXT, program, index, bufSize, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVaryingEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVaryingEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbackVaryingEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java index 2f2ceb86..8d6269a1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexArray.java @@ -88,66 +88,66 @@ public GLEXTVertexArray(overrungl.opengl.GLLoadFunc func) { } public void ArrayElementEXT(@CType("GLint") int i) { - try { if (!Unmarshal.isNullPointer(PFN_glArrayElementEXT)) + if (!Unmarshal.isNullPointer(PFN_glArrayElementEXT)) { try { MH_glArrayElementEXT.invokeExact(PFN_glArrayElementEXT, i); - } - catch (Throwable e) { throw new RuntimeException("error in glArrayElementEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glArrayElementEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glArrayElementEXT"); } } public void ColorPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glColorPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glColorPointerEXT)) { try { MH_glColorPointerEXT.invokeExact(PFN_glColorPointerEXT, size, type, stride, count, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glColorPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorPointerEXT"); } } public void DrawArraysEXT(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawArraysEXT)) + if (!Unmarshal.isNullPointer(PFN_glDrawArraysEXT)) { try { MH_glDrawArraysEXT.invokeExact(PFN_glDrawArraysEXT, mode, first, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawArraysEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawArraysEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawArraysEXT"); } } public void EdgeFlagPointerEXT(@CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const GLboolean *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glEdgeFlagPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glEdgeFlagPointerEXT)) { try { MH_glEdgeFlagPointerEXT.invokeExact(PFN_glEdgeFlagPointerEXT, stride, count, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEdgeFlagPointerEXT"); } } public void GetPointervEXT(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPointervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetPointervEXT)) { try { MH_glGetPointervEXT.invokeExact(PFN_glGetPointervEXT, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPointervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPointervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPointervEXT"); } } public void IndexPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glIndexPointerEXT)) { try { MH_glIndexPointerEXT.invokeExact(PFN_glIndexPointerEXT, type, stride, count, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexPointerEXT"); } } public void NormalPointerEXT(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glNormalPointerEXT)) { try { MH_glNormalPointerEXT.invokeExact(PFN_glNormalPointerEXT, type, stride, count, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalPointerEXT"); } } public void TexCoordPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordPointerEXT)) { try { MH_glTexCoordPointerEXT.invokeExact(PFN_glTexCoordPointerEXT, size, type, stride, count, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordPointerEXT"); } } public void VertexPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("GLsizei") int count, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexPointerEXT)) { try { MH_glVertexPointerEXT.invokeExact(PFN_glVertexPointerEXT, size, type, stride, count, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexPointerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java index 798b872f..70835c7a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexAttrib64bit.java @@ -72,73 +72,73 @@ public GLEXTVertexAttrib64bit(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribL1dEXT(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dEXT)) { try { MH_glVertexAttribL1dEXT.invokeExact(PFN_glVertexAttribL1dEXT, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1dEXT"); } } public void VertexAttribL2dEXT(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dEXT)) { try { MH_glVertexAttribL2dEXT.invokeExact(PFN_glVertexAttribL2dEXT, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2dEXT"); } } public void VertexAttribL3dEXT(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dEXT)) { try { MH_glVertexAttribL3dEXT.invokeExact(PFN_glVertexAttribL3dEXT, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3dEXT"); } } public void VertexAttribL4dEXT(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dEXT)) { try { MH_glVertexAttribL4dEXT.invokeExact(PFN_glVertexAttribL4dEXT, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4dEXT"); } } public void VertexAttribL1dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1dvEXT)) { try { MH_glVertexAttribL1dvEXT.invokeExact(PFN_glVertexAttribL1dvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1dvEXT"); } } public void VertexAttribL2dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2dvEXT)) { try { MH_glVertexAttribL2dvEXT.invokeExact(PFN_glVertexAttribL2dvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2dvEXT"); } } public void VertexAttribL3dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3dvEXT)) { try { MH_glVertexAttribL3dvEXT.invokeExact(PFN_glVertexAttribL3dvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3dvEXT"); } } public void VertexAttribL4dvEXT(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4dvEXT)) { try { MH_glVertexAttribL4dvEXT.invokeExact(PFN_glVertexAttribL4dvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4dvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4dvEXT"); } } public void VertexAttribLPointerEXT(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribLPointerEXT)) { try { MH_glVertexAttribLPointerEXT.invokeExact(PFN_glVertexAttribLPointerEXT, index, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribLPointerEXT"); } } public void GetVertexAttribLdvEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLdvEXT)) { try { MH_glGetVertexAttribLdvEXT.invokeExact(PFN_glGetVertexAttribLdvEXT, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLdvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribLdvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java index 4273a22c..68f60f74 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexShader.java @@ -265,305 +265,297 @@ public GLEXTVertexShader(overrungl.opengl.GLLoadFunc func) { } public void BeginVertexShaderEXT() { - try { if (!Unmarshal.isNullPointer(PFN_glBeginVertexShaderEXT)) + if (!Unmarshal.isNullPointer(PFN_glBeginVertexShaderEXT)) { try { MH_glBeginVertexShaderEXT.invokeExact(PFN_glBeginVertexShaderEXT); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginVertexShaderEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginVertexShaderEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginVertexShaderEXT"); } } public void EndVertexShaderEXT() { - try { if (!Unmarshal.isNullPointer(PFN_glEndVertexShaderEXT)) + if (!Unmarshal.isNullPointer(PFN_glEndVertexShaderEXT)) { try { MH_glEndVertexShaderEXT.invokeExact(PFN_glEndVertexShaderEXT); - } - catch (Throwable e) { throw new RuntimeException("error in glEndVertexShaderEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndVertexShaderEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndVertexShaderEXT"); } } public void BindVertexShaderEXT(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVertexShaderEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindVertexShaderEXT)) { try { MH_glBindVertexShaderEXT.invokeExact(PFN_glBindVertexShaderEXT, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVertexShaderEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVertexShaderEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVertexShaderEXT"); } } public @CType("GLuint") int GenVertexShadersEXT(@CType("GLuint") int range) { - try { if (!Unmarshal.isNullPointer(PFN_glGenVertexShadersEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenVertexShadersEXT)) { try { return (int) MH_glGenVertexShadersEXT.invokeExact(PFN_glGenVertexShadersEXT, range); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGenVertexShadersEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenVertexShadersEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenVertexShadersEXT"); } } public void DeleteVertexShaderEXT(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteVertexShaderEXT)) + if (!Unmarshal.isNullPointer(PFN_glDeleteVertexShaderEXT)) { try { MH_glDeleteVertexShaderEXT.invokeExact(PFN_glDeleteVertexShaderEXT, id); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexShaderEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteVertexShaderEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteVertexShaderEXT"); } } public void ShaderOp1EXT(@CType("GLenum") int op, @CType("GLuint") int res, @CType("GLuint") int arg1) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderOp1EXT)) + if (!Unmarshal.isNullPointer(PFN_glShaderOp1EXT)) { try { MH_glShaderOp1EXT.invokeExact(PFN_glShaderOp1EXT, op, res, arg1); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderOp1EXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderOp1EXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderOp1EXT"); } } public void ShaderOp2EXT(@CType("GLenum") int op, @CType("GLuint") int res, @CType("GLuint") int arg1, @CType("GLuint") int arg2) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderOp2EXT)) + if (!Unmarshal.isNullPointer(PFN_glShaderOp2EXT)) { try { MH_glShaderOp2EXT.invokeExact(PFN_glShaderOp2EXT, op, res, arg1, arg2); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderOp2EXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderOp2EXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderOp2EXT"); } } public void ShaderOp3EXT(@CType("GLenum") int op, @CType("GLuint") int res, @CType("GLuint") int arg1, @CType("GLuint") int arg2, @CType("GLuint") int arg3) { - try { if (!Unmarshal.isNullPointer(PFN_glShaderOp3EXT)) + if (!Unmarshal.isNullPointer(PFN_glShaderOp3EXT)) { try { MH_glShaderOp3EXT.invokeExact(PFN_glShaderOp3EXT, op, res, arg1, arg2, arg3); - } - catch (Throwable e) { throw new RuntimeException("error in glShaderOp3EXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShaderOp3EXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShaderOp3EXT"); } } public void SwizzleEXT(@CType("GLuint") int res, @CType("GLuint") int in, @CType("GLenum") int outX, @CType("GLenum") int outY, @CType("GLenum") int outZ, @CType("GLenum") int outW) { - try { if (!Unmarshal.isNullPointer(PFN_glSwizzleEXT)) + if (!Unmarshal.isNullPointer(PFN_glSwizzleEXT)) { try { MH_glSwizzleEXT.invokeExact(PFN_glSwizzleEXT, res, in, outX, outY, outZ, outW); - } - catch (Throwable e) { throw new RuntimeException("error in glSwizzleEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSwizzleEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSwizzleEXT"); } } public void WriteMaskEXT(@CType("GLuint") int res, @CType("GLuint") int in, @CType("GLenum") int outX, @CType("GLenum") int outY, @CType("GLenum") int outZ, @CType("GLenum") int outW) { - try { if (!Unmarshal.isNullPointer(PFN_glWriteMaskEXT)) + if (!Unmarshal.isNullPointer(PFN_glWriteMaskEXT)) { try { MH_glWriteMaskEXT.invokeExact(PFN_glWriteMaskEXT, res, in, outX, outY, outZ, outW); - } - catch (Throwable e) { throw new RuntimeException("error in glWriteMaskEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWriteMaskEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWriteMaskEXT"); } } public void InsertComponentEXT(@CType("GLuint") int res, @CType("GLuint") int src, @CType("GLuint") int num) { - try { if (!Unmarshal.isNullPointer(PFN_glInsertComponentEXT)) + if (!Unmarshal.isNullPointer(PFN_glInsertComponentEXT)) { try { MH_glInsertComponentEXT.invokeExact(PFN_glInsertComponentEXT, res, src, num); - } - catch (Throwable e) { throw new RuntimeException("error in glInsertComponentEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInsertComponentEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInsertComponentEXT"); } } public void ExtractComponentEXT(@CType("GLuint") int res, @CType("GLuint") int src, @CType("GLuint") int num) { - try { if (!Unmarshal.isNullPointer(PFN_glExtractComponentEXT)) + if (!Unmarshal.isNullPointer(PFN_glExtractComponentEXT)) { try { MH_glExtractComponentEXT.invokeExact(PFN_glExtractComponentEXT, res, src, num); - } - catch (Throwable e) { throw new RuntimeException("error in glExtractComponentEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glExtractComponentEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glExtractComponentEXT"); } } public @CType("GLuint") int GenSymbolsEXT(@CType("GLenum") int datatype, @CType("GLenum") int storagetype, @CType("GLenum") int range, @CType("GLuint") int components) { - try { if (!Unmarshal.isNullPointer(PFN_glGenSymbolsEXT)) + if (!Unmarshal.isNullPointer(PFN_glGenSymbolsEXT)) { try { return (int) MH_glGenSymbolsEXT.invokeExact(PFN_glGenSymbolsEXT, datatype, storagetype, range, components); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGenSymbolsEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenSymbolsEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenSymbolsEXT"); } } public void SetInvariantEXT(@CType("GLuint") int id, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glSetInvariantEXT)) + if (!Unmarshal.isNullPointer(PFN_glSetInvariantEXT)) { try { MH_glSetInvariantEXT.invokeExact(PFN_glSetInvariantEXT, id, type, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glSetInvariantEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSetInvariantEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSetInvariantEXT"); } } public void SetLocalConstantEXT(@CType("GLuint") int id, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glSetLocalConstantEXT)) + if (!Unmarshal.isNullPointer(PFN_glSetLocalConstantEXT)) { try { MH_glSetLocalConstantEXT.invokeExact(PFN_glSetLocalConstantEXT, id, type, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glSetLocalConstantEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSetLocalConstantEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSetLocalConstantEXT"); } } public void VariantbvEXT(@CType("GLuint") int id, @CType("const GLbyte *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantbvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantbvEXT)) { try { MH_glVariantbvEXT.invokeExact(PFN_glVariantbvEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantbvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantbvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantbvEXT"); } } public void VariantsvEXT(@CType("GLuint") int id, @CType("const GLshort *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantsvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantsvEXT)) { try { MH_glVariantsvEXT.invokeExact(PFN_glVariantsvEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantsvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantsvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantsvEXT"); } } public void VariantivEXT(@CType("GLuint") int id, @CType("const GLint *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantivEXT)) { try { MH_glVariantivEXT.invokeExact(PFN_glVariantivEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantivEXT"); } } public void VariantfvEXT(@CType("GLuint") int id, @CType("const GLfloat *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantfvEXT)) { try { MH_glVariantfvEXT.invokeExact(PFN_glVariantfvEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantfvEXT"); } } public void VariantdvEXT(@CType("GLuint") int id, @CType("const GLdouble *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantdvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantdvEXT)) { try { MH_glVariantdvEXT.invokeExact(PFN_glVariantdvEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantdvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantdvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantdvEXT"); } } public void VariantubvEXT(@CType("GLuint") int id, @CType("const GLubyte *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantubvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantubvEXT)) { try { MH_glVariantubvEXT.invokeExact(PFN_glVariantubvEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantubvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantubvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantubvEXT"); } } public void VariantusvEXT(@CType("GLuint") int id, @CType("const GLushort *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantusvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantusvEXT)) { try { MH_glVariantusvEXT.invokeExact(PFN_glVariantusvEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantusvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantusvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantusvEXT"); } } public void VariantuivEXT(@CType("GLuint") int id, @CType("const GLuint *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantuivEXT)) { try { MH_glVariantuivEXT.invokeExact(PFN_glVariantuivEXT, id, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantuivEXT"); } } public void VariantPointerEXT(@CType("GLuint") int id, @CType("GLenum") int type, @CType("GLuint") int stride, @CType("const void *") java.lang.foreign.MemorySegment addr) { - try { if (!Unmarshal.isNullPointer(PFN_glVariantPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glVariantPointerEXT)) { try { MH_glVariantPointerEXT.invokeExact(PFN_glVariantPointerEXT, id, type, stride, addr); - } - catch (Throwable e) { throw new RuntimeException("error in glVariantPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVariantPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVariantPointerEXT"); } } public void EnableVariantClientStateEXT(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glEnableVariantClientStateEXT)) + if (!Unmarshal.isNullPointer(PFN_glEnableVariantClientStateEXT)) { try { MH_glEnableVariantClientStateEXT.invokeExact(PFN_glEnableVariantClientStateEXT, id); - } - catch (Throwable e) { throw new RuntimeException("error in glEnableVariantClientStateEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEnableVariantClientStateEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEnableVariantClientStateEXT"); } } public void DisableVariantClientStateEXT(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glDisableVariantClientStateEXT)) + if (!Unmarshal.isNullPointer(PFN_glDisableVariantClientStateEXT)) { try { MH_glDisableVariantClientStateEXT.invokeExact(PFN_glDisableVariantClientStateEXT, id); - } - catch (Throwable e) { throw new RuntimeException("error in glDisableVariantClientStateEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDisableVariantClientStateEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDisableVariantClientStateEXT"); } } public @CType("GLuint") int BindLightParameterEXT(@CType("GLenum") int light, @CType("GLenum") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glBindLightParameterEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindLightParameterEXT)) { try { return (int) MH_glBindLightParameterEXT.invokeExact(PFN_glBindLightParameterEXT, light, value); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glBindLightParameterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindLightParameterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindLightParameterEXT"); } } public @CType("GLuint") int BindMaterialParameterEXT(@CType("GLenum") int face, @CType("GLenum") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glBindMaterialParameterEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindMaterialParameterEXT)) { try { return (int) MH_glBindMaterialParameterEXT.invokeExact(PFN_glBindMaterialParameterEXT, face, value); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glBindMaterialParameterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindMaterialParameterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindMaterialParameterEXT"); } } public @CType("GLuint") int BindTexGenParameterEXT(@CType("GLenum") int unit, @CType("GLenum") int coord, @CType("GLenum") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTexGenParameterEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindTexGenParameterEXT)) { try { return (int) MH_glBindTexGenParameterEXT.invokeExact(PFN_glBindTexGenParameterEXT, unit, coord, value); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glBindTexGenParameterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTexGenParameterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTexGenParameterEXT"); } } public @CType("GLuint") int BindTextureUnitParameterEXT(@CType("GLenum") int unit, @CType("GLenum") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTextureUnitParameterEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindTextureUnitParameterEXT)) { try { return (int) MH_glBindTextureUnitParameterEXT.invokeExact(PFN_glBindTextureUnitParameterEXT, unit, value); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnitParameterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTextureUnitParameterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTextureUnitParameterEXT"); } } public @CType("GLuint") int BindParameterEXT(@CType("GLenum") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glBindParameterEXT)) + if (!Unmarshal.isNullPointer(PFN_glBindParameterEXT)) { try { return (int) MH_glBindParameterEXT.invokeExact(PFN_glBindParameterEXT, value); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glBindParameterEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindParameterEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindParameterEXT"); } } public @CType("GLboolean") boolean IsVariantEnabledEXT(@CType("GLuint") int id, @CType("GLenum") int cap) { - try { if (!Unmarshal.isNullPointer(PFN_glIsVariantEnabledEXT)) + if (!Unmarshal.isNullPointer(PFN_glIsVariantEnabledEXT)) { try { return (boolean) MH_glIsVariantEnabledEXT.invokeExact(PFN_glIsVariantEnabledEXT, id, cap); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsVariantEnabledEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsVariantEnabledEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsVariantEnabledEXT"); } } public void GetVariantBooleanvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVariantBooleanvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVariantBooleanvEXT)) { try { MH_glGetVariantBooleanvEXT.invokeExact(PFN_glGetVariantBooleanvEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVariantBooleanvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVariantBooleanvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVariantBooleanvEXT"); } } public void GetVariantIntegervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVariantIntegervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVariantIntegervEXT)) { try { MH_glGetVariantIntegervEXT.invokeExact(PFN_glGetVariantIntegervEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVariantIntegervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVariantIntegervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVariantIntegervEXT"); } } public void GetVariantFloatvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVariantFloatvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVariantFloatvEXT)) { try { MH_glGetVariantFloatvEXT.invokeExact(PFN_glGetVariantFloatvEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVariantFloatvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVariantFloatvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVariantFloatvEXT"); } } public void GetVariantPointervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("void **") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVariantPointervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVariantPointervEXT)) { try { MH_glGetVariantPointervEXT.invokeExact(PFN_glGetVariantPointervEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVariantPointervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVariantPointervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVariantPointervEXT"); } } public void GetInvariantBooleanvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInvariantBooleanvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetInvariantBooleanvEXT)) { try { MH_glGetInvariantBooleanvEXT.invokeExact(PFN_glGetInvariantBooleanvEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInvariantBooleanvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInvariantBooleanvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInvariantBooleanvEXT"); } } public void GetInvariantIntegervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInvariantIntegervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetInvariantIntegervEXT)) { try { MH_glGetInvariantIntegervEXT.invokeExact(PFN_glGetInvariantIntegervEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInvariantIntegervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInvariantIntegervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInvariantIntegervEXT"); } } public void GetInvariantFloatvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInvariantFloatvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetInvariantFloatvEXT)) { try { MH_glGetInvariantFloatvEXT.invokeExact(PFN_glGetInvariantFloatvEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInvariantFloatvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInvariantFloatvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInvariantFloatvEXT"); } } public void GetLocalConstantBooleanvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLboolean *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantBooleanvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantBooleanvEXT)) { try { MH_glGetLocalConstantBooleanvEXT.invokeExact(PFN_glGetLocalConstantBooleanvEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantBooleanvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantBooleanvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetLocalConstantBooleanvEXT"); } } public void GetLocalConstantIntegervEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLint *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantIntegervEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantIntegervEXT)) { try { MH_glGetLocalConstantIntegervEXT.invokeExact(PFN_glGetLocalConstantIntegervEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantIntegervEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantIntegervEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetLocalConstantIntegervEXT"); } } public void GetLocalConstantFloatvEXT(@CType("GLuint") int id, @CType("GLenum") int value, @CType("GLfloat *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantFloatvEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetLocalConstantFloatvEXT)) { try { MH_glGetLocalConstantFloatvEXT.invokeExact(PFN_glGetLocalConstantFloatvEXT, id, value, data); - } - catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantFloatvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetLocalConstantFloatvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetLocalConstantFloatvEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java index bad00913..23f6d988 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTVertexWeighting.java @@ -51,24 +51,24 @@ public GLEXTVertexWeighting(overrungl.opengl.GLLoadFunc func) { } public void VertexWeightfEXT(@CType("GLfloat") float weight) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexWeightfEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexWeightfEXT)) { try { MH_glVertexWeightfEXT.invokeExact(PFN_glVertexWeightfEXT, weight); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexWeightfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexWeightfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexWeightfEXT"); } } public void VertexWeightfvEXT(@CType("const GLfloat *") java.lang.foreign.MemorySegment weight) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexWeightfvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexWeightfvEXT)) { try { MH_glVertexWeightfvEXT.invokeExact(PFN_glVertexWeightfvEXT, weight); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexWeightfvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexWeightfvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexWeightfvEXT"); } } public void VertexWeightPointerEXT(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexWeightPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexWeightPointerEXT)) { try { MH_glVertexWeightPointerEXT.invokeExact(PFN_glVertexWeightPointerEXT, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexWeightPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexWeightPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexWeightPointerEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java index a6c4dc91..dd34aeed 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWin32KeyedMutex.java @@ -35,19 +35,17 @@ public GLEXTWin32KeyedMutex(overrungl.opengl.GLLoadFunc func) { } public @CType("GLboolean") boolean AcquireKeyedMutexWin32EXT(@CType("GLuint") int memory, @CType("GLuint64") long key, @CType("GLuint") int timeout) { - try { if (!Unmarshal.isNullPointer(PFN_glAcquireKeyedMutexWin32EXT)) + if (!Unmarshal.isNullPointer(PFN_glAcquireKeyedMutexWin32EXT)) { try { return (boolean) MH_glAcquireKeyedMutexWin32EXT.invokeExact(PFN_glAcquireKeyedMutexWin32EXT, memory, key, timeout); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glAcquireKeyedMutexWin32EXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAcquireKeyedMutexWin32EXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAcquireKeyedMutexWin32EXT"); } } public @CType("GLboolean") boolean ReleaseKeyedMutexWin32EXT(@CType("GLuint") int memory, @CType("GLuint64") long key) { - try { if (!Unmarshal.isNullPointer(PFN_glReleaseKeyedMutexWin32EXT)) + if (!Unmarshal.isNullPointer(PFN_glReleaseKeyedMutexWin32EXT)) { try { return (boolean) MH_glReleaseKeyedMutexWin32EXT.invokeExact(PFN_glReleaseKeyedMutexWin32EXT, memory, key); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glReleaseKeyedMutexWin32EXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReleaseKeyedMutexWin32EXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReleaseKeyedMutexWin32EXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java index 64576165..293699ec 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTWindowRectangles.java @@ -38,10 +38,10 @@ public GLEXTWindowRectangles(overrungl.opengl.GLLoadFunc func) { } public void WindowRectanglesEXT(@CType("GLenum") int mode, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment box) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowRectanglesEXT)) + if (!Unmarshal.isNullPointer(PFN_glWindowRectanglesEXT)) { try { MH_glWindowRectanglesEXT.invokeExact(PFN_glWindowRectanglesEXT, mode, count, box); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowRectanglesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowRectanglesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowRectanglesEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java index 598a289c..090751a2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ext/GLEXTX11SyncObject.java @@ -33,11 +33,10 @@ public GLEXTX11SyncObject(overrungl.opengl.GLLoadFunc func) { } public @CType("GLsync") java.lang.foreign.MemorySegment ImportSyncEXT(@CType("GLenum") int external_sync_type, @CType("GLintptr") long external_sync, @CType("GLbitfield") int flags) { - try { if (!Unmarshal.isNullPointer(PFN_glImportSyncEXT)) + if (!Unmarshal.isNullPointer(PFN_glImportSyncEXT)) { try { return (java.lang.foreign.MemorySegment) MH_glImportSyncEXT.invokeExact(PFN_glImportSyncEXT, external_sync_type, external_sync, flags); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glImportSyncEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImportSyncEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImportSyncEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java index b1b0a9ce..5d0e6257 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYFrameTerminator.java @@ -32,10 +32,10 @@ public GLGREMEDYFrameTerminator(overrungl.opengl.GLLoadFunc func) { } public void FrameTerminatorGREMEDY() { - try { if (!Unmarshal.isNullPointer(PFN_glFrameTerminatorGREMEDY)) + if (!Unmarshal.isNullPointer(PFN_glFrameTerminatorGREMEDY)) { try { MH_glFrameTerminatorGREMEDY.invokeExact(PFN_glFrameTerminatorGREMEDY); - } - catch (Throwable e) { throw new RuntimeException("error in glFrameTerminatorGREMEDY", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFrameTerminatorGREMEDY", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFrameTerminatorGREMEDY"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java index 019f6b99..b1bacbcf 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/gremedy/GLGREMEDYStringMarker.java @@ -32,10 +32,10 @@ public GLGREMEDYStringMarker(overrungl.opengl.GLLoadFunc func) { } public void StringMarkerGREMEDY(@CType("GLsizei") int len, @CType("const void *") java.lang.foreign.MemorySegment string) { - try { if (!Unmarshal.isNullPointer(PFN_glStringMarkerGREMEDY)) + if (!Unmarshal.isNullPointer(PFN_glStringMarkerGREMEDY)) { try { MH_glStringMarkerGREMEDY.invokeExact(PFN_glStringMarkerGREMEDY, len, string); - } - catch (Throwable e) { throw new RuntimeException("error in glStringMarkerGREMEDY", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStringMarkerGREMEDY", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStringMarkerGREMEDY"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java index 29940fac..b193f5f9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/hp/GLHPImageTransform.java @@ -62,45 +62,45 @@ public GLHPImageTransform(overrungl.opengl.GLLoadFunc func) { } public void ImageTransformParameteriHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameteriHP)) + if (!Unmarshal.isNullPointer(PFN_glImageTransformParameteriHP)) { try { MH_glImageTransformParameteriHP.invokeExact(PFN_glImageTransformParameteriHP, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameteriHP", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameteriHP", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImageTransformParameteriHP"); } } public void ImageTransformParameterfHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterfHP)) + if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterfHP)) { try { MH_glImageTransformParameterfHP.invokeExact(PFN_glImageTransformParameterfHP, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterfHP", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterfHP", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImageTransformParameterfHP"); } } public void ImageTransformParameterivHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterivHP)) + if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterivHP)) { try { MH_glImageTransformParameterivHP.invokeExact(PFN_glImageTransformParameterivHP, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterivHP", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterivHP", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImageTransformParameterivHP"); } } public void ImageTransformParameterfvHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterfvHP)) + if (!Unmarshal.isNullPointer(PFN_glImageTransformParameterfvHP)) { try { MH_glImageTransformParameterfvHP.invokeExact(PFN_glImageTransformParameterfvHP, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterfvHP", e); } + } catch (Throwable e) { throw new RuntimeException("error in glImageTransformParameterfvHP", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glImageTransformParameterfvHP"); } } public void GetImageTransformParameterivHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetImageTransformParameterivHP)) + if (!Unmarshal.isNullPointer(PFN_glGetImageTransformParameterivHP)) { try { MH_glGetImageTransformParameterivHP.invokeExact(PFN_glGetImageTransformParameterivHP, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetImageTransformParameterivHP", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetImageTransformParameterivHP", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetImageTransformParameterivHP"); } } public void GetImageTransformParameterfvHP(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetImageTransformParameterfvHP)) + if (!Unmarshal.isNullPointer(PFN_glGetImageTransformParameterfvHP)) { try { MH_glGetImageTransformParameterfvHP.invokeExact(PFN_glGetImageTransformParameterfvHP, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetImageTransformParameterfvHP", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetImageTransformParameterfvHP", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetImageTransformParameterfvHP"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java index 8f86c45d..f0dbd6a5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMMultimodeDrawArrays.java @@ -35,17 +35,17 @@ public GLIBMMultimodeDrawArrays(overrungl.opengl.GLLoadFunc func) { } public void MultiModeDrawArraysIBM(@CType("const GLenum *") java.lang.foreign.MemorySegment mode, @CType("const GLint *") java.lang.foreign.MemorySegment first, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLsizei") int primcount, @CType("GLint") int modestride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiModeDrawArraysIBM)) + if (!Unmarshal.isNullPointer(PFN_glMultiModeDrawArraysIBM)) { try { MH_glMultiModeDrawArraysIBM.invokeExact(PFN_glMultiModeDrawArraysIBM, mode, first, count, primcount, modestride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiModeDrawArraysIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiModeDrawArraysIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiModeDrawArraysIBM"); } } public void MultiModeDrawElementsIBM(@CType("const GLenum *") java.lang.foreign.MemorySegment mode, @CType("const GLsizei *") java.lang.foreign.MemorySegment count, @CType("GLenum") int type, @CType("const void *const*") java.lang.foreign.MemorySegment indices, @CType("GLsizei") int primcount, @CType("GLint") int modestride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiModeDrawElementsIBM)) + if (!Unmarshal.isNullPointer(PFN_glMultiModeDrawElementsIBM)) { try { MH_glMultiModeDrawElementsIBM.invokeExact(PFN_glMultiModeDrawElementsIBM, mode, count, type, indices, primcount, modestride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiModeDrawElementsIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiModeDrawElementsIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiModeDrawElementsIBM"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java index 9ca2a4fd..d3269def 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMStaticData.java @@ -34,10 +34,10 @@ public GLIBMStaticData(overrungl.opengl.GLLoadFunc func) { } public void FlushStaticDataIBM(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushStaticDataIBM)) + if (!Unmarshal.isNullPointer(PFN_glFlushStaticDataIBM)) { try { MH_glFlushStaticDataIBM.invokeExact(PFN_glFlushStaticDataIBM, target); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushStaticDataIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushStaticDataIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushStaticDataIBM"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java index cc8075ea..0a47e49a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ibm/GLIBMVertexArrayLists.java @@ -69,59 +69,59 @@ public GLIBMVertexArrayLists(overrungl.opengl.GLLoadFunc func) { } public void ColorPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glColorPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glColorPointerListIBM)) { try { MH_glColorPointerListIBM.invokeExact(PFN_glColorPointerListIBM, size, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glColorPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorPointerListIBM"); } } public void SecondaryColorPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColorPointerListIBM)) { try { MH_glSecondaryColorPointerListIBM.invokeExact(PFN_glSecondaryColorPointerListIBM, size, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColorPointerListIBM"); } } public void EdgeFlagPointerListIBM(@CType("GLint") int stride, @CType("const GLboolean **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glEdgeFlagPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glEdgeFlagPointerListIBM)) { try { MH_glEdgeFlagPointerListIBM.invokeExact(PFN_glEdgeFlagPointerListIBM, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEdgeFlagPointerListIBM"); } } public void FogCoordPointerListIBM(@CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordPointerListIBM)) { try { MH_glFogCoordPointerListIBM.invokeExact(PFN_glFogCoordPointerListIBM, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordPointerListIBM"); } } public void IndexPointerListIBM(@CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glIndexPointerListIBM)) { try { MH_glIndexPointerListIBM.invokeExact(PFN_glIndexPointerListIBM, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexPointerListIBM"); } } public void NormalPointerListIBM(@CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glNormalPointerListIBM)) { try { MH_glNormalPointerListIBM.invokeExact(PFN_glNormalPointerListIBM, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalPointerListIBM"); } } public void TexCoordPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordPointerListIBM)) { try { MH_glTexCoordPointerListIBM.invokeExact(PFN_glTexCoordPointerListIBM, size, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordPointerListIBM"); } } public void VertexPointerListIBM(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLint") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer, @CType("GLint") int ptrstride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexPointerListIBM)) + if (!Unmarshal.isNullPointer(PFN_glVertexPointerListIBM)) { try { MH_glVertexPointerListIBM.invokeExact(PFN_glVertexPointerListIBM, size, type, stride, pointer, ptrstride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexPointerListIBM", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexPointerListIBM", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexPointerListIBM"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java index 078397c2..9bf83d7d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ingr/GLINGRBlendFuncSeparate.java @@ -32,10 +32,10 @@ public GLINGRBlendFuncSeparate(overrungl.opengl.GLLoadFunc func) { } public void BlendFuncSeparateINGR(@CType("GLenum") int sfactorRGB, @CType("GLenum") int dfactorRGB, @CType("GLenum") int sfactorAlpha, @CType("GLenum") int dfactorAlpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateINGR)) + if (!Unmarshal.isNullPointer(PFN_glBlendFuncSeparateINGR)) { try { MH_glBlendFuncSeparateINGR.invokeExact(PFN_glBlendFuncSeparateINGR, sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateINGR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendFuncSeparateINGR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendFuncSeparateINGR"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java index de416729..1ca7d6f7 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELFramebufferCMAA.java @@ -32,10 +32,10 @@ public GLINTELFramebufferCMAA(overrungl.opengl.GLLoadFunc func) { } public void ApplyFramebufferAttachmentCMAAINTEL() { - try { if (!Unmarshal.isNullPointer(PFN_glApplyFramebufferAttachmentCMAAINTEL)) + if (!Unmarshal.isNullPointer(PFN_glApplyFramebufferAttachmentCMAAINTEL)) { try { MH_glApplyFramebufferAttachmentCMAAINTEL.invokeExact(PFN_glApplyFramebufferAttachmentCMAAINTEL); - } - catch (Throwable e) { throw new RuntimeException("error in glApplyFramebufferAttachmentCMAAINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glApplyFramebufferAttachmentCMAAINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glApplyFramebufferAttachmentCMAAINTEL"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java index e676e948..890ac670 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELMapTexture.java @@ -42,25 +42,24 @@ public GLINTELMapTexture(overrungl.opengl.GLLoadFunc func) { } public void SyncTextureINTEL(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glSyncTextureINTEL)) + if (!Unmarshal.isNullPointer(PFN_glSyncTextureINTEL)) { try { MH_glSyncTextureINTEL.invokeExact(PFN_glSyncTextureINTEL, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glSyncTextureINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSyncTextureINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSyncTextureINTEL"); } } public void UnmapTexture2DINTEL(@CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glUnmapTexture2DINTEL)) + if (!Unmarshal.isNullPointer(PFN_glUnmapTexture2DINTEL)) { try { MH_glUnmapTexture2DINTEL.invokeExact(PFN_glUnmapTexture2DINTEL, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glUnmapTexture2DINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUnmapTexture2DINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUnmapTexture2DINTEL"); } } public @CType("void*") java.lang.foreign.MemorySegment MapTexture2DINTEL(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLbitfield") int access, @CType("GLint *") java.lang.foreign.MemorySegment stride, @CType("GLenum *") java.lang.foreign.MemorySegment layout) { - try { if (!Unmarshal.isNullPointer(PFN_glMapTexture2DINTEL)) + if (!Unmarshal.isNullPointer(PFN_glMapTexture2DINTEL)) { try { return (java.lang.foreign.MemorySegment) MH_glMapTexture2DINTEL.invokeExact(PFN_glMapTexture2DINTEL, texture, level, access, stride, layout); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glMapTexture2DINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapTexture2DINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapTexture2DINTEL"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java index 2df1a45c..d91810a2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELParallelArrays.java @@ -46,31 +46,31 @@ public GLINTELParallelArrays(overrungl.opengl.GLLoadFunc func) { } public void VertexPointervINTEL(@CType("GLint") int size, @CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexPointervINTEL)) + if (!Unmarshal.isNullPointer(PFN_glVertexPointervINTEL)) { try { MH_glVertexPointervINTEL.invokeExact(PFN_glVertexPointervINTEL, size, type, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexPointervINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexPointervINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexPointervINTEL"); } } public void NormalPointervINTEL(@CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalPointervINTEL)) + if (!Unmarshal.isNullPointer(PFN_glNormalPointervINTEL)) { try { MH_glNormalPointervINTEL.invokeExact(PFN_glNormalPointervINTEL, type, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalPointervINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalPointervINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalPointervINTEL"); } } public void ColorPointervINTEL(@CType("GLint") int size, @CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glColorPointervINTEL)) + if (!Unmarshal.isNullPointer(PFN_glColorPointervINTEL)) { try { MH_glColorPointervINTEL.invokeExact(PFN_glColorPointervINTEL, size, type, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glColorPointervINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorPointervINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorPointervINTEL"); } } public void TexCoordPointervINTEL(@CType("GLint") int size, @CType("GLenum") int type, @CType("const void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordPointervINTEL)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordPointervINTEL)) { try { MH_glTexCoordPointervINTEL.invokeExact(PFN_glTexCoordPointervINTEL, size, type, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointervINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordPointervINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordPointervINTEL"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java index ae9b7545..8f3632d2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/intel/GLINTELPerformanceQuery.java @@ -79,73 +79,73 @@ public GLINTELPerformanceQuery(overrungl.opengl.GLLoadFunc func) { } public void BeginPerfQueryINTEL(@CType("GLuint") int queryHandle) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginPerfQueryINTEL)) + if (!Unmarshal.isNullPointer(PFN_glBeginPerfQueryINTEL)) { try { MH_glBeginPerfQueryINTEL.invokeExact(PFN_glBeginPerfQueryINTEL, queryHandle); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginPerfQueryINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginPerfQueryINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginPerfQueryINTEL"); } } public void CreatePerfQueryINTEL(@CType("GLuint") int queryId, @CType("GLuint *") java.lang.foreign.MemorySegment queryHandle) { - try { if (!Unmarshal.isNullPointer(PFN_glCreatePerfQueryINTEL)) + if (!Unmarshal.isNullPointer(PFN_glCreatePerfQueryINTEL)) { try { MH_glCreatePerfQueryINTEL.invokeExact(PFN_glCreatePerfQueryINTEL, queryId, queryHandle); - } - catch (Throwable e) { throw new RuntimeException("error in glCreatePerfQueryINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreatePerfQueryINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreatePerfQueryINTEL"); } } public void DeletePerfQueryINTEL(@CType("GLuint") int queryHandle) { - try { if (!Unmarshal.isNullPointer(PFN_glDeletePerfQueryINTEL)) + if (!Unmarshal.isNullPointer(PFN_glDeletePerfQueryINTEL)) { try { MH_glDeletePerfQueryINTEL.invokeExact(PFN_glDeletePerfQueryINTEL, queryHandle); - } - catch (Throwable e) { throw new RuntimeException("error in glDeletePerfQueryINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeletePerfQueryINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeletePerfQueryINTEL"); } } public void EndPerfQueryINTEL(@CType("GLuint") int queryHandle) { - try { if (!Unmarshal.isNullPointer(PFN_glEndPerfQueryINTEL)) + if (!Unmarshal.isNullPointer(PFN_glEndPerfQueryINTEL)) { try { MH_glEndPerfQueryINTEL.invokeExact(PFN_glEndPerfQueryINTEL, queryHandle); - } - catch (Throwable e) { throw new RuntimeException("error in glEndPerfQueryINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndPerfQueryINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndPerfQueryINTEL"); } } public void GetFirstPerfQueryIdINTEL(@CType("GLuint *") java.lang.foreign.MemorySegment queryId) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFirstPerfQueryIdINTEL)) + if (!Unmarshal.isNullPointer(PFN_glGetFirstPerfQueryIdINTEL)) { try { MH_glGetFirstPerfQueryIdINTEL.invokeExact(PFN_glGetFirstPerfQueryIdINTEL, queryId); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFirstPerfQueryIdINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFirstPerfQueryIdINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFirstPerfQueryIdINTEL"); } } public void GetNextPerfQueryIdINTEL(@CType("GLuint") int queryId, @CType("GLuint *") java.lang.foreign.MemorySegment nextQueryId) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNextPerfQueryIdINTEL)) + if (!Unmarshal.isNullPointer(PFN_glGetNextPerfQueryIdINTEL)) { try { MH_glGetNextPerfQueryIdINTEL.invokeExact(PFN_glGetNextPerfQueryIdINTEL, queryId, nextQueryId); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNextPerfQueryIdINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNextPerfQueryIdINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNextPerfQueryIdINTEL"); } } public void GetPerfCounterInfoINTEL(@CType("GLuint") int queryId, @CType("GLuint") int counterId, @CType("GLuint") int counterNameLength, @CType("GLchar *") java.lang.foreign.MemorySegment counterName, @CType("GLuint") int counterDescLength, @CType("GLchar *") java.lang.foreign.MemorySegment counterDesc, @CType("GLuint *") java.lang.foreign.MemorySegment counterOffset, @CType("GLuint *") java.lang.foreign.MemorySegment counterDataSize, @CType("GLuint *") java.lang.foreign.MemorySegment counterTypeEnum, @CType("GLuint *") java.lang.foreign.MemorySegment counterDataTypeEnum, @CType("GLuint64 *") java.lang.foreign.MemorySegment rawCounterMaxValue) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfCounterInfoINTEL)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfCounterInfoINTEL)) { try { MH_glGetPerfCounterInfoINTEL.invokeExact(PFN_glGetPerfCounterInfoINTEL, queryId, counterId, counterNameLength, counterName, counterDescLength, counterDesc, counterOffset, counterDataSize, counterTypeEnum, counterDataTypeEnum, rawCounterMaxValue); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfCounterInfoINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfCounterInfoINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfCounterInfoINTEL"); } } public void GetPerfQueryDataINTEL(@CType("GLuint") int queryHandle, @CType("GLuint") int flags, @CType("GLsizei") int dataSize, @CType("void*") java.lang.foreign.MemorySegment data, @CType("GLuint *") java.lang.foreign.MemorySegment bytesWritten) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryDataINTEL)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryDataINTEL)) { try { MH_glGetPerfQueryDataINTEL.invokeExact(PFN_glGetPerfQueryDataINTEL, queryHandle, flags, dataSize, data, bytesWritten); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryDataINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryDataINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfQueryDataINTEL"); } } public void GetPerfQueryIdByNameINTEL(@CType("GLchar *") java.lang.foreign.MemorySegment queryName, @CType("GLuint *") java.lang.foreign.MemorySegment queryId) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryIdByNameINTEL)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryIdByNameINTEL)) { try { MH_glGetPerfQueryIdByNameINTEL.invokeExact(PFN_glGetPerfQueryIdByNameINTEL, queryName, queryId); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryIdByNameINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryIdByNameINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfQueryIdByNameINTEL"); } } public void GetPerfQueryInfoINTEL(@CType("GLuint") int queryId, @CType("GLuint") int queryNameLength, @CType("GLchar *") java.lang.foreign.MemorySegment queryName, @CType("GLuint *") java.lang.foreign.MemorySegment dataSize, @CType("GLuint *") java.lang.foreign.MemorySegment noCounters, @CType("GLuint *") java.lang.foreign.MemorySegment noInstances, @CType("GLuint *") java.lang.foreign.MemorySegment capsMask) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryInfoINTEL)) + if (!Unmarshal.isNullPointer(PFN_glGetPerfQueryInfoINTEL)) { try { MH_glGetPerfQueryInfoINTEL.invokeExact(PFN_glGetPerfQueryInfoINTEL, queryId, queryNameLength, queryName, dataSize, noCounters, noInstances, capsMask); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryInfoINTEL", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPerfQueryInfoINTEL", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPerfQueryInfoINTEL"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java index b6385da8..1ad0f916 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRBlendEquationAdvanced.java @@ -47,10 +47,10 @@ public GLKHRBlendEquationAdvanced(overrungl.opengl.GLLoadFunc func) { } public void BlendBarrierKHR() { - try { if (!Unmarshal.isNullPointer(PFN_glBlendBarrierKHR)) + if (!Unmarshal.isNullPointer(PFN_glBlendBarrierKHR)) { try { MH_glBlendBarrierKHR.invokeExact(PFN_glBlendBarrierKHR); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendBarrierKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendBarrierKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendBarrierKHR"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java index 16d440ba..06dd1165 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRDebug.java @@ -175,159 +175,157 @@ public GLKHRDebug(overrungl.opengl.GLLoadFunc func) { } public void DebugMessageControl(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControl)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageControl)) { try { MH_glDebugMessageControl.invokeExact(PFN_glDebugMessageControl, source, type, severity, count, ids, enabled); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControl", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControl", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageControl"); } } public void DebugMessageInsert(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsert)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsert)) { try { MH_glDebugMessageInsert.invokeExact(PFN_glDebugMessageInsert, source, type, id, severity, length, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsert", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsert", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageInsert"); } } public void DebugMessageCallback(@CType("GLDEBUGPROC") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallback)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallback)) { try { MH_glDebugMessageCallback.invokeExact(PFN_glDebugMessageCallback, callback, userParam); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallback", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallback", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageCallback"); } } public @CType("GLuint") int GetDebugMessageLog(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLog)) + if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLog)) { try { return (int) MH_glGetDebugMessageLog.invokeExact(PFN_glGetDebugMessageLog, count, bufSize, sources, types, ids, severities, lengths, messageLog); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLog", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLog", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDebugMessageLog"); } } public void PushDebugGroup(@CType("GLenum") int source, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message) { - try { if (!Unmarshal.isNullPointer(PFN_glPushDebugGroup)) + if (!Unmarshal.isNullPointer(PFN_glPushDebugGroup)) { try { MH_glPushDebugGroup.invokeExact(PFN_glPushDebugGroup, source, id, length, message); - } - catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroup", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroup", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPushDebugGroup"); } } public void PopDebugGroup() { - try { if (!Unmarshal.isNullPointer(PFN_glPopDebugGroup)) + if (!Unmarshal.isNullPointer(PFN_glPopDebugGroup)) { try { MH_glPopDebugGroup.invokeExact(PFN_glPopDebugGroup); - } - catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroup", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroup", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPopDebugGroup"); } } public void ObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectLabel)) + if (!Unmarshal.isNullPointer(PFN_glObjectLabel)) { try { MH_glObjectLabel.invokeExact(PFN_glObjectLabel, identifier, name, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glObjectLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectLabel"); } } public void GetObjectLabel(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabel)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectLabel)) { try { MH_glGetObjectLabel.invokeExact(PFN_glGetObjectLabel, identifier, name, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectLabel"); } } public void ObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabel)) + if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabel)) { try { MH_glObjectPtrLabel.invokeExact(PFN_glObjectPtrLabel, ptr, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectPtrLabel"); } } public void GetObjectPtrLabel(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabel)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabel)) { try { MH_glGetObjectPtrLabel.invokeExact(PFN_glGetObjectPtrLabel, ptr, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabel", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabel", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectPtrLabel"); } } public void GetPointerv(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPointerv)) + if (!Unmarshal.isNullPointer(PFN_glGetPointerv)) { try { MH_glGetPointerv.invokeExact(PFN_glGetPointerv, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPointerv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPointerv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPointerv"); } } public void DebugMessageControlKHR(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLenum") int severity, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLboolean") boolean enabled) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageControlKHR)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageControlKHR)) { try { MH_glDebugMessageControlKHR.invokeExact(PFN_glDebugMessageControlKHR, source, type, severity, count, ids, enabled); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControlKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageControlKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageControlKHR"); } } public void DebugMessageInsertKHR(@CType("GLenum") int source, @CType("GLenum") int type, @CType("GLuint") int id, @CType("GLenum") int severity, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment buf) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertKHR)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageInsertKHR)) { try { MH_glDebugMessageInsertKHR.invokeExact(PFN_glDebugMessageInsertKHR, source, type, id, severity, length, buf); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageInsertKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageInsertKHR"); } } public void DebugMessageCallbackKHR(@CType("GLDEBUGPROCKHR") java.lang.foreign.MemorySegment callback, @CType("const void *") java.lang.foreign.MemorySegment userParam) { - try { if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackKHR)) + if (!Unmarshal.isNullPointer(PFN_glDebugMessageCallbackKHR)) { try { MH_glDebugMessageCallbackKHR.invokeExact(PFN_glDebugMessageCallbackKHR, callback, userParam); - } - catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDebugMessageCallbackKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDebugMessageCallbackKHR"); } } public @CType("GLuint") int GetDebugMessageLogKHR(@CType("GLuint") int count, @CType("GLsizei") int bufSize, @CType("GLenum *") java.lang.foreign.MemorySegment sources, @CType("GLenum *") java.lang.foreign.MemorySegment types, @CType("GLuint *") java.lang.foreign.MemorySegment ids, @CType("GLenum *") java.lang.foreign.MemorySegment severities, @CType("GLsizei *") java.lang.foreign.MemorySegment lengths, @CType("GLchar *") java.lang.foreign.MemorySegment messageLog) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetDebugMessageLogKHR)) { try { return (int) MH_glGetDebugMessageLogKHR.invokeExact(PFN_glGetDebugMessageLogKHR, count, bufSize, sources, types, ids, severities, lengths, messageLog); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDebugMessageLogKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDebugMessageLogKHR"); } } public void PushDebugGroupKHR(@CType("GLenum") int source, @CType("GLuint") int id, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment message) { - try { if (!Unmarshal.isNullPointer(PFN_glPushDebugGroupKHR)) + if (!Unmarshal.isNullPointer(PFN_glPushDebugGroupKHR)) { try { MH_glPushDebugGroupKHR.invokeExact(PFN_glPushDebugGroupKHR, source, id, length, message); - } - catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroupKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPushDebugGroupKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPushDebugGroupKHR"); } } public void PopDebugGroupKHR() { - try { if (!Unmarshal.isNullPointer(PFN_glPopDebugGroupKHR)) + if (!Unmarshal.isNullPointer(PFN_glPopDebugGroupKHR)) { try { MH_glPopDebugGroupKHR.invokeExact(PFN_glPopDebugGroupKHR); - } - catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroupKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPopDebugGroupKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPopDebugGroupKHR"); } } public void ObjectLabelKHR(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectLabelKHR)) + if (!Unmarshal.isNullPointer(PFN_glObjectLabelKHR)) { try { MH_glObjectLabelKHR.invokeExact(PFN_glObjectLabelKHR, identifier, name, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glObjectLabelKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectLabelKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectLabelKHR"); } } public void GetObjectLabelKHR(@CType("GLenum") int identifier, @CType("GLuint") int name, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectLabelKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectLabelKHR)) { try { MH_glGetObjectLabelKHR.invokeExact(PFN_glGetObjectLabelKHR, identifier, name, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabelKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectLabelKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectLabelKHR"); } } public void ObjectPtrLabelKHR(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int length, @CType("const GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabelKHR)) + if (!Unmarshal.isNullPointer(PFN_glObjectPtrLabelKHR)) { try { MH_glObjectPtrLabelKHR.invokeExact(PFN_glObjectPtrLabelKHR, ptr, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabelKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glObjectPtrLabelKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glObjectPtrLabelKHR"); } } public void GetObjectPtrLabelKHR(@CType("const void *") java.lang.foreign.MemorySegment ptr, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLchar *") java.lang.foreign.MemorySegment label) { - try { if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabelKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetObjectPtrLabelKHR)) { try { MH_glGetObjectPtrLabelKHR.invokeExact(PFN_glGetObjectPtrLabelKHR, ptr, bufSize, length, label); - } - catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabelKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetObjectPtrLabelKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetObjectPtrLabelKHR"); } } public void GetPointervKHR(@CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPointervKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetPointervKHR)) { try { MH_glGetPointervKHR.invokeExact(PFN_glGetPointervKHR, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPointervKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPointervKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPointervKHR"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java index cbf92bc2..0cb1bfa8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRParallelShaderCompile.java @@ -34,10 +34,10 @@ public GLKHRParallelShaderCompile(overrungl.opengl.GLLoadFunc func) { } public void MaxShaderCompilerThreadsKHR(@CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glMaxShaderCompilerThreadsKHR)) + if (!Unmarshal.isNullPointer(PFN_glMaxShaderCompilerThreadsKHR)) { try { MH_glMaxShaderCompilerThreadsKHR.invokeExact(PFN_glMaxShaderCompilerThreadsKHR, count); - } - catch (Throwable e) { throw new RuntimeException("error in glMaxShaderCompilerThreadsKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMaxShaderCompilerThreadsKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMaxShaderCompilerThreadsKHR"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java index 9b59238d..7ea88551 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/khr/GLKHRRobustness.java @@ -75,75 +75,73 @@ public GLKHRRobustness(overrungl.opengl.GLLoadFunc func) { } public @CType("GLenum") int GetGraphicsResetStatus() { - try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatus)) + if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatus)) { try { return (int) MH_glGetGraphicsResetStatus.invokeExact(PFN_glGetGraphicsResetStatus); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatus", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatus", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetGraphicsResetStatus"); } } public void ReadnPixels(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glReadnPixels)) + if (!Unmarshal.isNullPointer(PFN_glReadnPixels)) { try { MH_glReadnPixels.invokeExact(PFN_glReadnPixels, x, y, width, height, format, type, bufSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glReadnPixels", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadnPixels", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadnPixels"); } } public void GetnUniformfv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformfv)) { try { MH_glGetnUniformfv.invokeExact(PFN_glGetnUniformfv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformfv"); } } public void GetnUniformiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformiv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformiv)) { try { MH_glGetnUniformiv.invokeExact(PFN_glGetnUniformiv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformiv"); } } public void GetnUniformuiv(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuiv)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformuiv)) { try { MH_glGetnUniformuiv.invokeExact(PFN_glGetnUniformuiv, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuiv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuiv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformuiv"); } } public @CType("GLenum") int GetGraphicsResetStatusKHR() { - try { if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatusKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetGraphicsResetStatusKHR)) { try { return (int) MH_glGetGraphicsResetStatusKHR.invokeExact(PFN_glGetGraphicsResetStatusKHR); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatusKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetGraphicsResetStatusKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetGraphicsResetStatusKHR"); } } public void ReadnPixelsKHR(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLenum") int format, @CType("GLenum") int type, @CType("GLsizei") int bufSize, @CType("void*") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glReadnPixelsKHR)) + if (!Unmarshal.isNullPointer(PFN_glReadnPixelsKHR)) { try { MH_glReadnPixelsKHR.invokeExact(PFN_glReadnPixelsKHR, x, y, width, height, format, type, bufSize, data); - } - catch (Throwable e) { throw new RuntimeException("error in glReadnPixelsKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadnPixelsKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadnPixelsKHR"); } } public void GetnUniformfvKHR(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformfvKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformfvKHR)) { try { MH_glGetnUniformfvKHR.invokeExact(PFN_glGetnUniformfvKHR, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfvKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformfvKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformfvKHR"); } } public void GetnUniformivKHR(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformivKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformivKHR)) { try { MH_glGetnUniformivKHR.invokeExact(PFN_glGetnUniformivKHR, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformivKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformivKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformivKHR"); } } public void GetnUniformuivKHR(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int bufSize, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetnUniformuivKHR)) + if (!Unmarshal.isNullPointer(PFN_glGetnUniformuivKHR)) { try { MH_glGetnUniformuivKHR.invokeExact(PFN_glGetnUniformuivKHR, program, location, bufSize, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuivKHR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetnUniformuivKHR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetnUniformuivKHR"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java index 3e249d35..adf0ded1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAFramebufferFlipY.java @@ -36,17 +36,17 @@ public GLMESAFramebufferFlipY(overrungl.opengl.GLLoadFunc func) { } public void FramebufferParameteriMESA(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteriMESA)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferParameteriMESA)) { try { MH_glFramebufferParameteriMESA.invokeExact(PFN_glFramebufferParameteriMESA, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteriMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferParameteriMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferParameteriMESA"); } } public void GetFramebufferParameterivMESA(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterivMESA)) + if (!Unmarshal.isNullPointer(PFN_glGetFramebufferParameterivMESA)) { try { MH_glGetFramebufferParameterivMESA.invokeExact(PFN_glGetFramebufferParameterivMESA, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterivMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFramebufferParameterivMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFramebufferParameterivMESA"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java index 7ff8bac4..6ad6625f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAResizeBuffers.java @@ -32,10 +32,10 @@ public GLMESAResizeBuffers(overrungl.opengl.GLLoadFunc func) { } public void ResizeBuffersMESA() { - try { if (!Unmarshal.isNullPointer(PFN_glResizeBuffersMESA)) + if (!Unmarshal.isNullPointer(PFN_glResizeBuffersMESA)) { try { MH_glResizeBuffersMESA.invokeExact(PFN_glResizeBuffersMESA); - } - catch (Throwable e) { throw new RuntimeException("error in glResizeBuffersMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResizeBuffersMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResizeBuffersMESA"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java index 14500039..58ecfbb8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/mesa/GLMESAWindowPos.java @@ -101,171 +101,171 @@ public GLMESAWindowPos(overrungl.opengl.GLLoadFunc func) { } public void WindowPos2dMESA(@CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2dMESA)) { try { MH_glWindowPos2dMESA.invokeExact(PFN_glWindowPos2dMESA, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2dMESA"); } } public void WindowPos2dvMESA(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2dvMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2dvMESA)) { try { MH_glWindowPos2dvMESA.invokeExact(PFN_glWindowPos2dvMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dvMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2dvMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2dvMESA"); } } public void WindowPos2fMESA(@CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2fMESA)) { try { MH_glWindowPos2fMESA.invokeExact(PFN_glWindowPos2fMESA, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2fMESA"); } } public void WindowPos2fvMESA(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2fvMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2fvMESA)) { try { MH_glWindowPos2fvMESA.invokeExact(PFN_glWindowPos2fvMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fvMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2fvMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2fvMESA"); } } public void WindowPos2iMESA(@CType("GLint") int x, @CType("GLint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2iMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2iMESA)) { try { MH_glWindowPos2iMESA.invokeExact(PFN_glWindowPos2iMESA, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2iMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2iMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2iMESA"); } } public void WindowPos2ivMESA(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2ivMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2ivMESA)) { try { MH_glWindowPos2ivMESA.invokeExact(PFN_glWindowPos2ivMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2ivMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2ivMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2ivMESA"); } } public void WindowPos2sMESA(@CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2sMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2sMESA)) { try { MH_glWindowPos2sMESA.invokeExact(PFN_glWindowPos2sMESA, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2sMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2sMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2sMESA"); } } public void WindowPos2svMESA(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos2svMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos2svMESA)) { try { MH_glWindowPos2svMESA.invokeExact(PFN_glWindowPos2svMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos2svMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos2svMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos2svMESA"); } } public void WindowPos3dMESA(@CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3dMESA)) { try { MH_glWindowPos3dMESA.invokeExact(PFN_glWindowPos3dMESA, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3dMESA"); } } public void WindowPos3dvMESA(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3dvMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3dvMESA)) { try { MH_glWindowPos3dvMESA.invokeExact(PFN_glWindowPos3dvMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dvMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3dvMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3dvMESA"); } } public void WindowPos3fMESA(@CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3fMESA)) { try { MH_glWindowPos3fMESA.invokeExact(PFN_glWindowPos3fMESA, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3fMESA"); } } public void WindowPos3fvMESA(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3fvMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3fvMESA)) { try { MH_glWindowPos3fvMESA.invokeExact(PFN_glWindowPos3fvMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fvMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3fvMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3fvMESA"); } } public void WindowPos3iMESA(@CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3iMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3iMESA)) { try { MH_glWindowPos3iMESA.invokeExact(PFN_glWindowPos3iMESA, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3iMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3iMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3iMESA"); } } public void WindowPos3ivMESA(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3ivMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3ivMESA)) { try { MH_glWindowPos3ivMESA.invokeExact(PFN_glWindowPos3ivMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3ivMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3ivMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3ivMESA"); } } public void WindowPos3sMESA(@CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3sMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3sMESA)) { try { MH_glWindowPos3sMESA.invokeExact(PFN_glWindowPos3sMESA, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3sMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3sMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3sMESA"); } } public void WindowPos3svMESA(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos3svMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos3svMESA)) { try { MH_glWindowPos3svMESA.invokeExact(PFN_glWindowPos3svMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos3svMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos3svMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos3svMESA"); } } public void WindowPos4dMESA(@CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4dMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4dMESA)) { try { MH_glWindowPos4dMESA.invokeExact(PFN_glWindowPos4dMESA, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4dMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4dMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4dMESA"); } } public void WindowPos4dvMESA(@CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4dvMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4dvMESA)) { try { MH_glWindowPos4dvMESA.invokeExact(PFN_glWindowPos4dvMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4dvMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4dvMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4dvMESA"); } } public void WindowPos4fMESA(@CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4fMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4fMESA)) { try { MH_glWindowPos4fMESA.invokeExact(PFN_glWindowPos4fMESA, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4fMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4fMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4fMESA"); } } public void WindowPos4fvMESA(@CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4fvMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4fvMESA)) { try { MH_glWindowPos4fvMESA.invokeExact(PFN_glWindowPos4fvMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4fvMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4fvMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4fvMESA"); } } public void WindowPos4iMESA(@CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4iMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4iMESA)) { try { MH_glWindowPos4iMESA.invokeExact(PFN_glWindowPos4iMESA, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4iMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4iMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4iMESA"); } } public void WindowPos4ivMESA(@CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4ivMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4ivMESA)) { try { MH_glWindowPos4ivMESA.invokeExact(PFN_glWindowPos4ivMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4ivMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4ivMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4ivMESA"); } } public void WindowPos4sMESA(@CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4sMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4sMESA)) { try { MH_glWindowPos4sMESA.invokeExact(PFN_glWindowPos4sMESA, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4sMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4sMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4sMESA"); } } public void WindowPos4svMESA(@CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glWindowPos4svMESA)) + if (!Unmarshal.isNullPointer(PFN_glWindowPos4svMESA)) { try { MH_glWindowPos4svMESA.invokeExact(PFN_glWindowPos4svMESA, v); - } - catch (Throwable e) { throw new RuntimeException("error in glWindowPos4svMESA", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWindowPos4svMESA", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWindowPos4svMESA"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java index 7b81e5e2..c9a5d3f8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVAlphaToCoverageDitherControl.java @@ -36,10 +36,10 @@ public GLNVAlphaToCoverageDitherControl(overrungl.opengl.GLLoadFunc func) { } public void AlphaToCoverageDitherControlNV(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glAlphaToCoverageDitherControlNV)) + if (!Unmarshal.isNullPointer(PFN_glAlphaToCoverageDitherControlNV)) { try { MH_glAlphaToCoverageDitherControlNV.invokeExact(PFN_glAlphaToCoverageDitherControlNV, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glAlphaToCoverageDitherControlNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAlphaToCoverageDitherControlNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAlphaToCoverageDitherControlNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java index 6fff43cb..46cd2b4d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirect.java @@ -35,17 +35,17 @@ public GLNVBindlessMultiDrawIndirect(overrungl.opengl.GLLoadFunc func) { } public void MultiDrawArraysIndirectBindlessNV(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectBindlessNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectBindlessNV)) { try { MH_glMultiDrawArraysIndirectBindlessNV.invokeExact(PFN_glMultiDrawArraysIndirectBindlessNV, mode, indirect, drawCount, stride, vertexBufferCount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectBindlessNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectBindlessNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirectBindlessNV"); } } public void MultiDrawElementsIndirectBindlessNV(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectBindlessNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectBindlessNV)) { try { MH_glMultiDrawElementsIndirectBindlessNV.invokeExact(PFN_glMultiDrawElementsIndirectBindlessNV, mode, type, indirect, drawCount, stride, vertexBufferCount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectBindlessNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectBindlessNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirectBindlessNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java index 8e3cb892..d08285a5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessMultiDrawIndirectCount.java @@ -35,17 +35,17 @@ public GLNVBindlessMultiDrawIndirectCount(overrungl.opengl.GLLoadFunc func) { } public void MultiDrawArraysIndirectBindlessCountNV(@CType("GLenum") int mode, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int maxDrawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectBindlessCountNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawArraysIndirectBindlessCountNV)) { try { MH_glMultiDrawArraysIndirectBindlessCountNV.invokeExact(PFN_glMultiDrawArraysIndirectBindlessCountNV, mode, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectBindlessCountNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawArraysIndirectBindlessCountNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawArraysIndirectBindlessCountNV"); } } public void MultiDrawElementsIndirectBindlessCountNV(@CType("GLenum") int mode, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment indirect, @CType("GLsizei") int drawCount, @CType("GLsizei") int maxDrawCount, @CType("GLsizei") int stride, @CType("GLint") int vertexBufferCount) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectBindlessCountNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawElementsIndirectBindlessCountNV)) { try { MH_glMultiDrawElementsIndirectBindlessCountNV.invokeExact(PFN_glMultiDrawElementsIndirectBindlessCountNV, mode, type, indirect, drawCount, maxDrawCount, stride, vertexBufferCount); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectBindlessCountNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawElementsIndirectBindlessCountNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawElementsIndirectBindlessCountNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java index 36693aea..eac247c3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBindlessTexture.java @@ -68,99 +68,94 @@ public GLNVBindlessTexture(overrungl.opengl.GLLoadFunc func) { } public @CType("GLuint64") long GetTextureHandleNV(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureHandleNV)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureHandleNV)) { try { return (long) MH_glGetTextureHandleNV.invokeExact(PFN_glGetTextureHandleNV, texture); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureHandleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureHandleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureHandleNV"); } } public @CType("GLuint64") long GetTextureSamplerHandleNV(@CType("GLuint") int texture, @CType("GLuint") int sampler) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTextureSamplerHandleNV)) + if (!Unmarshal.isNullPointer(PFN_glGetTextureSamplerHandleNV)) { try { return (long) MH_glGetTextureSamplerHandleNV.invokeExact(PFN_glGetTextureSamplerHandleNV, texture, sampler); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetTextureSamplerHandleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTextureSamplerHandleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTextureSamplerHandleNV"); } } public void MakeTextureHandleResidentNV(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleResidentNV)) { try { MH_glMakeTextureHandleResidentNV.invokeExact(PFN_glMakeTextureHandleResidentNV, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeTextureHandleResidentNV"); } } public void MakeTextureHandleNonResidentNV(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleNonResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeTextureHandleNonResidentNV)) { try { MH_glMakeTextureHandleNonResidentNV.invokeExact(PFN_glMakeTextureHandleNonResidentNV, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleNonResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeTextureHandleNonResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeTextureHandleNonResidentNV"); } } public @CType("GLuint64") long GetImageHandleNV(@CType("GLuint") int texture, @CType("GLint") int level, @CType("GLboolean") boolean layered, @CType("GLint") int layer, @CType("GLenum") int format) { - try { if (!Unmarshal.isNullPointer(PFN_glGetImageHandleNV)) + if (!Unmarshal.isNullPointer(PFN_glGetImageHandleNV)) { try { return (long) MH_glGetImageHandleNV.invokeExact(PFN_glGetImageHandleNV, texture, level, layered, layer, format); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glGetImageHandleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetImageHandleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetImageHandleNV"); } } public void MakeImageHandleResidentNV(@CType("GLuint64") long handle, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleResidentNV)) { try { MH_glMakeImageHandleResidentNV.invokeExact(PFN_glMakeImageHandleResidentNV, handle, access); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeImageHandleResidentNV"); } } public void MakeImageHandleNonResidentNV(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleNonResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeImageHandleNonResidentNV)) { try { MH_glMakeImageHandleNonResidentNV.invokeExact(PFN_glMakeImageHandleNonResidentNV, handle); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleNonResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeImageHandleNonResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeImageHandleNonResidentNV"); } } public void UniformHandleui64NV(@CType("GLint") int location, @CType("GLuint64") long value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64NV)) { try { MH_glUniformHandleui64NV.invokeExact(PFN_glUniformHandleui64NV, location, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformHandleui64NV"); } } public void UniformHandleui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniformHandleui64vNV)) { try { MH_glUniformHandleui64vNV.invokeExact(PFN_glUniformHandleui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformHandleui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformHandleui64vNV"); } } public void ProgramUniformHandleui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64") long value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64NV)) { try { MH_glProgramUniformHandleui64NV.invokeExact(PFN_glProgramUniformHandleui64NV, program, location, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformHandleui64NV"); } } public void ProgramUniformHandleui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64 *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformHandleui64vNV)) { try { MH_glProgramUniformHandleui64vNV.invokeExact(PFN_glProgramUniformHandleui64vNV, program, location, count, values); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformHandleui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformHandleui64vNV"); } } public @CType("GLboolean") boolean IsTextureHandleResidentNV(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTextureHandleResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glIsTextureHandleResidentNV)) { try { return (boolean) MH_glIsTextureHandleResidentNV.invokeExact(PFN_glIsTextureHandleResidentNV, handle); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTextureHandleResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTextureHandleResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTextureHandleResidentNV"); } } public @CType("GLboolean") boolean IsImageHandleResidentNV(@CType("GLuint64") long handle) { - try { if (!Unmarshal.isNullPointer(PFN_glIsImageHandleResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glIsImageHandleResidentNV)) { try { return (boolean) MH_glIsImageHandleResidentNV.invokeExact(PFN_glIsImageHandleResidentNV, handle); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsImageHandleResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsImageHandleResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsImageHandleResidentNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java index 77d11466..0bf32a8c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVBlendEquationAdvanced.java @@ -86,17 +86,17 @@ public GLNVBlendEquationAdvanced(overrungl.opengl.GLLoadFunc func) { } public void BlendParameteriNV(@CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendParameteriNV)) + if (!Unmarshal.isNullPointer(PFN_glBlendParameteriNV)) { try { MH_glBlendParameteriNV.invokeExact(PFN_glBlendParameteriNV, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendParameteriNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendParameteriNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendParameteriNV"); } } public void BlendBarrierNV() { - try { if (!Unmarshal.isNullPointer(PFN_glBlendBarrierNV)) + if (!Unmarshal.isNullPointer(PFN_glBlendBarrierNV)) { try { MH_glBlendBarrierNV.invokeExact(PFN_glBlendBarrierNV); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendBarrierNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendBarrierNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendBarrierNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java index 106444ad..d7756dd3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVClipSpaceWScaling.java @@ -35,10 +35,10 @@ public GLNVClipSpaceWScaling(overrungl.opengl.GLLoadFunc func) { } public void ViewportPositionWScaleNV(@CType("GLuint") int index, @CType("GLfloat") float xcoeff, @CType("GLfloat") float ycoeff) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportPositionWScaleNV)) + if (!Unmarshal.isNullPointer(PFN_glViewportPositionWScaleNV)) { try { MH_glViewportPositionWScaleNV.invokeExact(PFN_glViewportPositionWScaleNV, index, xcoeff, ycoeff); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportPositionWScaleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportPositionWScaleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportPositionWScaleNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java index 1178f084..b016b660 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCommandList.java @@ -99,126 +99,122 @@ public GLNVCommandList(overrungl.opengl.GLLoadFunc func) { } public void CreateStatesNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment states) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateStatesNV)) + if (!Unmarshal.isNullPointer(PFN_glCreateStatesNV)) { try { MH_glCreateStatesNV.invokeExact(PFN_glCreateStatesNV, n, states); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateStatesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateStatesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateStatesNV"); } } public void DeleteStatesNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment states) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteStatesNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteStatesNV)) { try { MH_glDeleteStatesNV.invokeExact(PFN_glDeleteStatesNV, n, states); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteStatesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteStatesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteStatesNV"); } } public @CType("GLboolean") boolean IsStateNV(@CType("GLuint") int state) { - try { if (!Unmarshal.isNullPointer(PFN_glIsStateNV)) + if (!Unmarshal.isNullPointer(PFN_glIsStateNV)) { try { return (boolean) MH_glIsStateNV.invokeExact(PFN_glIsStateNV, state); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsStateNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsStateNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsStateNV"); } } public void StateCaptureNV(@CType("GLuint") int state, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glStateCaptureNV)) + if (!Unmarshal.isNullPointer(PFN_glStateCaptureNV)) { try { MH_glStateCaptureNV.invokeExact(PFN_glStateCaptureNV, state, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glStateCaptureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStateCaptureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStateCaptureNV"); } } public @CType("GLuint") int GetCommandHeaderNV(@CType("GLenum") int tokenID, @CType("GLuint") int size) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCommandHeaderNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCommandHeaderNV)) { try { return (int) MH_glGetCommandHeaderNV.invokeExact(PFN_glGetCommandHeaderNV, tokenID, size); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetCommandHeaderNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCommandHeaderNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCommandHeaderNV"); } } public @CType("GLushort") short GetStageIndexNV(@CType("GLenum") int shadertype) { - try { if (!Unmarshal.isNullPointer(PFN_glGetStageIndexNV)) + if (!Unmarshal.isNullPointer(PFN_glGetStageIndexNV)) { try { return (short) MH_glGetStageIndexNV.invokeExact(PFN_glGetStageIndexNV, shadertype); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetStageIndexNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetStageIndexNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetStageIndexNV"); } } public void DrawCommandsNV(@CType("GLenum") int primitiveMode, @CType("GLuint") int buffer, @CType("const GLintptr *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawCommandsNV)) { try { MH_glDrawCommandsNV.invokeExact(PFN_glDrawCommandsNV, primitiveMode, buffer, indirects, sizes, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawCommandsNV"); } } public void DrawCommandsAddressNV(@CType("GLenum") int primitiveMode, @CType("const GLuint64 *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsAddressNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawCommandsAddressNV)) { try { MH_glDrawCommandsAddressNV.invokeExact(PFN_glDrawCommandsAddressNV, primitiveMode, indirects, sizes, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsAddressNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsAddressNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawCommandsAddressNV"); } } public void DrawCommandsStatesNV(@CType("GLuint") int buffer, @CType("const GLintptr *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("const GLuint *") java.lang.foreign.MemorySegment states, @CType("const GLuint *") java.lang.foreign.MemorySegment fbos, @CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsStatesNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawCommandsStatesNV)) { try { MH_glDrawCommandsStatesNV.invokeExact(PFN_glDrawCommandsStatesNV, buffer, indirects, sizes, states, fbos, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsStatesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsStatesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawCommandsStatesNV"); } } public void DrawCommandsStatesAddressNV(@CType("const GLuint64 *") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("const GLuint *") java.lang.foreign.MemorySegment states, @CType("const GLuint *") java.lang.foreign.MemorySegment fbos, @CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawCommandsStatesAddressNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawCommandsStatesAddressNV)) { try { MH_glDrawCommandsStatesAddressNV.invokeExact(PFN_glDrawCommandsStatesAddressNV, indirects, sizes, states, fbos, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsStatesAddressNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawCommandsStatesAddressNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawCommandsStatesAddressNV"); } } public void CreateCommandListsNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment lists) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateCommandListsNV)) + if (!Unmarshal.isNullPointer(PFN_glCreateCommandListsNV)) { try { MH_glCreateCommandListsNV.invokeExact(PFN_glCreateCommandListsNV, n, lists); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateCommandListsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateCommandListsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateCommandListsNV"); } } public void DeleteCommandListsNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment lists) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteCommandListsNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteCommandListsNV)) { try { MH_glDeleteCommandListsNV.invokeExact(PFN_glDeleteCommandListsNV, n, lists); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteCommandListsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteCommandListsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteCommandListsNV"); } } public @CType("GLboolean") boolean IsCommandListNV(@CType("GLuint") int list) { - try { if (!Unmarshal.isNullPointer(PFN_glIsCommandListNV)) + if (!Unmarshal.isNullPointer(PFN_glIsCommandListNV)) { try { return (boolean) MH_glIsCommandListNV.invokeExact(PFN_glIsCommandListNV, list); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsCommandListNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsCommandListNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsCommandListNV"); } } public void ListDrawCommandsStatesClientNV(@CType("GLuint") int list, @CType("GLuint") int segment, @CType("const void **") java.lang.foreign.MemorySegment indirects, @CType("const GLsizei *") java.lang.foreign.MemorySegment sizes, @CType("const GLuint *") java.lang.foreign.MemorySegment states, @CType("const GLuint *") java.lang.foreign.MemorySegment fbos, @CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glListDrawCommandsStatesClientNV)) + if (!Unmarshal.isNullPointer(PFN_glListDrawCommandsStatesClientNV)) { try { MH_glListDrawCommandsStatesClientNV.invokeExact(PFN_glListDrawCommandsStatesClientNV, list, segment, indirects, sizes, states, fbos, count); - } - catch (Throwable e) { throw new RuntimeException("error in glListDrawCommandsStatesClientNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glListDrawCommandsStatesClientNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glListDrawCommandsStatesClientNV"); } } public void CommandListSegmentsNV(@CType("GLuint") int list, @CType("GLuint") int segments) { - try { if (!Unmarshal.isNullPointer(PFN_glCommandListSegmentsNV)) + if (!Unmarshal.isNullPointer(PFN_glCommandListSegmentsNV)) { try { MH_glCommandListSegmentsNV.invokeExact(PFN_glCommandListSegmentsNV, list, segments); - } - catch (Throwable e) { throw new RuntimeException("error in glCommandListSegmentsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCommandListSegmentsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCommandListSegmentsNV"); } } public void CompileCommandListNV(@CType("GLuint") int list) { - try { if (!Unmarshal.isNullPointer(PFN_glCompileCommandListNV)) + if (!Unmarshal.isNullPointer(PFN_glCompileCommandListNV)) { try { MH_glCompileCommandListNV.invokeExact(PFN_glCompileCommandListNV, list); - } - catch (Throwable e) { throw new RuntimeException("error in glCompileCommandListNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCompileCommandListNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCompileCommandListNV"); } } public void CallCommandListNV(@CType("GLuint") int list) { - try { if (!Unmarshal.isNullPointer(PFN_glCallCommandListNV)) + if (!Unmarshal.isNullPointer(PFN_glCallCommandListNV)) { try { MH_glCallCommandListNV.invokeExact(PFN_glCallCommandListNV, list); - } - catch (Throwable e) { throw new RuntimeException("error in glCallCommandListNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCallCommandListNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCallCommandListNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java index 7eebc313..860bb5a1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConditionalRender.java @@ -39,17 +39,17 @@ public GLNVConditionalRender(overrungl.opengl.GLLoadFunc func) { } public void BeginConditionalRenderNV(@CType("GLuint") int id, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRenderNV)) + if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRenderNV)) { try { MH_glBeginConditionalRenderNV.invokeExact(PFN_glBeginConditionalRenderNV, id, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRenderNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRenderNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginConditionalRenderNV"); } } public void EndConditionalRenderNV() { - try { if (!Unmarshal.isNullPointer(PFN_glEndConditionalRenderNV)) + if (!Unmarshal.isNullPointer(PFN_glEndConditionalRenderNV)) { try { MH_glEndConditionalRenderNV.invokeExact(PFN_glEndConditionalRenderNV); - } - catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRenderNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRenderNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndConditionalRenderNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java index fd93517c..ebce5a18 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRaster.java @@ -36,10 +36,10 @@ public GLNVConservativeRaster(overrungl.opengl.GLLoadFunc func) { } public void SubpixelPrecisionBiasNV(@CType("GLuint") int xbits, @CType("GLuint") int ybits) { - try { if (!Unmarshal.isNullPointer(PFN_glSubpixelPrecisionBiasNV)) + if (!Unmarshal.isNullPointer(PFN_glSubpixelPrecisionBiasNV)) { try { MH_glSubpixelPrecisionBiasNV.invokeExact(PFN_glSubpixelPrecisionBiasNV, xbits, ybits); - } - catch (Throwable e) { throw new RuntimeException("error in glSubpixelPrecisionBiasNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSubpixelPrecisionBiasNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSubpixelPrecisionBiasNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java index c90e348c..a04ac1cb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterDilate.java @@ -35,10 +35,10 @@ public GLNVConservativeRasterDilate(overrungl.opengl.GLLoadFunc func) { } public void ConservativeRasterParameterfNV(@CType("GLenum") int pname, @CType("GLfloat") float value) { - try { if (!Unmarshal.isNullPointer(PFN_glConservativeRasterParameterfNV)) + if (!Unmarshal.isNullPointer(PFN_glConservativeRasterParameterfNV)) { try { MH_glConservativeRasterParameterfNV.invokeExact(PFN_glConservativeRasterParameterfNV, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glConservativeRasterParameterfNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConservativeRasterParameterfNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConservativeRasterParameterfNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java index abf01b2a..556b5bab 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVConservativeRasterPreSnapTriangles.java @@ -35,10 +35,10 @@ public GLNVConservativeRasterPreSnapTriangles(overrungl.opengl.GLLoadFunc func) } public void ConservativeRasterParameteriNV(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glConservativeRasterParameteriNV)) + if (!Unmarshal.isNullPointer(PFN_glConservativeRasterParameteriNV)) { try { MH_glConservativeRasterParameteriNV.invokeExact(PFN_glConservativeRasterParameteriNV, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glConservativeRasterParameteriNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConservativeRasterParameteriNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConservativeRasterParameteriNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java index 2ba9ec51..6ab0eeb4 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVCopyImage.java @@ -32,10 +32,10 @@ public GLNVCopyImage(overrungl.opengl.GLLoadFunc func) { } public void CopyImageSubDataNV(@CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyImageSubDataNV)) + if (!Unmarshal.isNullPointer(PFN_glCopyImageSubDataNV)) { try { MH_glCopyImageSubDataNV.invokeExact(PFN_glCopyImageSubDataNV, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubDataNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyImageSubDataNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyImageSubDataNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java index 7de41c73..b6ec5fd0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDepthBufferFloat.java @@ -42,24 +42,24 @@ public GLNVDepthBufferFloat(overrungl.opengl.GLLoadFunc func) { } public void DepthRangedNV(@CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangedNV)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangedNV)) { try { MH_glDepthRangedNV.invokeExact(PFN_glDepthRangedNV, zNear, zFar); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangedNV"); } } public void ClearDepthdNV(@CType("GLdouble") double depth) { - try { if (!Unmarshal.isNullPointer(PFN_glClearDepthdNV)) + if (!Unmarshal.isNullPointer(PFN_glClearDepthdNV)) { try { MH_glClearDepthdNV.invokeExact(PFN_glClearDepthdNV, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glClearDepthdNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearDepthdNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearDepthdNV"); } } public void DepthBoundsdNV(@CType("GLdouble") double zmin, @CType("GLdouble") double zmax) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthBoundsdNV)) + if (!Unmarshal.isNullPointer(PFN_glDepthBoundsdNV)) { try { MH_glDepthBoundsdNV.invokeExact(PFN_glDepthBoundsdNV, zmin, zmax); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthBoundsdNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthBoundsdNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthBoundsdNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java index ce9adcd9..4e982d38 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawTexture.java @@ -32,10 +32,10 @@ public GLNVDrawTexture(overrungl.opengl.GLLoadFunc func) { } public void DrawTextureNV(@CType("GLuint") int texture, @CType("GLuint") int sampler, @CType("GLfloat") float x0, @CType("GLfloat") float y0, @CType("GLfloat") float x1, @CType("GLfloat") float y1, @CType("GLfloat") float z, @CType("GLfloat") float s0, @CType("GLfloat") float t0, @CType("GLfloat") float s1, @CType("GLfloat") float t1) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTextureNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawTextureNV)) { try { MH_glDrawTextureNV.invokeExact(PFN_glDrawTextureNV, texture, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTextureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTextureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTextureNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java index 9c603ab9..e1825d25 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVDrawVulkanImage.java @@ -44,39 +44,38 @@ public GLNVDrawVulkanImage(overrungl.opengl.GLLoadFunc func) { } public void DrawVkImageNV(@CType("GLuint64") long vkImage, @CType("GLuint") int sampler, @CType("GLfloat") float x0, @CType("GLfloat") float y0, @CType("GLfloat") float x1, @CType("GLfloat") float y1, @CType("GLfloat") float z, @CType("GLfloat") float s0, @CType("GLfloat") float t0, @CType("GLfloat") float s1, @CType("GLfloat") float t1) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawVkImageNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawVkImageNV)) { try { MH_glDrawVkImageNV.invokeExact(PFN_glDrawVkImageNV, vkImage, sampler, x0, y0, x1, y1, z, s0, t0, s1, t1); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawVkImageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawVkImageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawVkImageNV"); } } public @CType("GLVULKANPROCNV") java.lang.foreign.MemorySegment GetVkProcAddrNV(@CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVkProcAddrNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVkProcAddrNV)) { try { return (java.lang.foreign.MemorySegment) MH_glGetVkProcAddrNV.invokeExact(PFN_glGetVkProcAddrNV, name); - else return MemorySegment.NULL; - } - catch (Throwable e) { throw new RuntimeException("error in glGetVkProcAddrNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVkProcAddrNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVkProcAddrNV"); } } public void WaitVkSemaphoreNV(@CType("GLuint64") long vkSemaphore) { - try { if (!Unmarshal.isNullPointer(PFN_glWaitVkSemaphoreNV)) + if (!Unmarshal.isNullPointer(PFN_glWaitVkSemaphoreNV)) { try { MH_glWaitVkSemaphoreNV.invokeExact(PFN_glWaitVkSemaphoreNV, vkSemaphore); - } - catch (Throwable e) { throw new RuntimeException("error in glWaitVkSemaphoreNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWaitVkSemaphoreNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWaitVkSemaphoreNV"); } } public void SignalVkSemaphoreNV(@CType("GLuint64") long vkSemaphore) { - try { if (!Unmarshal.isNullPointer(PFN_glSignalVkSemaphoreNV)) + if (!Unmarshal.isNullPointer(PFN_glSignalVkSemaphoreNV)) { try { MH_glSignalVkSemaphoreNV.invokeExact(PFN_glSignalVkSemaphoreNV, vkSemaphore); - } - catch (Throwable e) { throw new RuntimeException("error in glSignalVkSemaphoreNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSignalVkSemaphoreNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSignalVkSemaphoreNV"); } } public void SignalVkFenceNV(@CType("GLuint64") long vkFence) { - try { if (!Unmarshal.isNullPointer(PFN_glSignalVkFenceNV)) + if (!Unmarshal.isNullPointer(PFN_glSignalVkFenceNV)) { try { MH_glSignalVkFenceNV.invokeExact(PFN_glSignalVkFenceNV, vkFence); - } - catch (Throwable e) { throw new RuntimeException("error in glSignalVkFenceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSignalVkFenceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSignalVkFenceNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java index a66d74b2..c9b039e4 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVEvaluators.java @@ -80,66 +80,66 @@ public GLNVEvaluators(overrungl.opengl.GLLoadFunc func) { } public void MapControlPointsNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int type, @CType("GLsizei") int ustride, @CType("GLsizei") int vstride, @CType("GLint") int uorder, @CType("GLint") int vorder, @CType("GLboolean") boolean packed, @CType("const void *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glMapControlPointsNV)) + if (!Unmarshal.isNullPointer(PFN_glMapControlPointsNV)) { try { MH_glMapControlPointsNV.invokeExact(PFN_glMapControlPointsNV, target, index, type, ustride, vstride, uorder, vorder, packed, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMapControlPointsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapControlPointsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapControlPointsNV"); } } public void MapParameterivNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMapParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glMapParameterivNV)) { try { MH_glMapParameterivNV.invokeExact(PFN_glMapParameterivNV, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMapParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapParameterivNV"); } } public void MapParameterfvNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMapParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glMapParameterfvNV)) { try { MH_glMapParameterfvNV.invokeExact(PFN_glMapParameterfvNV, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMapParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapParameterfvNV"); } } public void GetMapControlPointsNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int type, @CType("GLsizei") int ustride, @CType("GLsizei") int vstride, @CType("GLboolean") boolean packed, @CType("void*") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMapControlPointsNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMapControlPointsNV)) { try { MH_glGetMapControlPointsNV.invokeExact(PFN_glGetMapControlPointsNV, target, index, type, ustride, vstride, packed, points); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMapControlPointsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMapControlPointsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMapControlPointsNV"); } } public void GetMapParameterivNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMapParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMapParameterivNV)) { try { MH_glGetMapParameterivNV.invokeExact(PFN_glGetMapParameterivNV, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMapParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMapParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMapParameterivNV"); } } public void GetMapParameterfvNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMapParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMapParameterfvNV)) { try { MH_glGetMapParameterfvNV.invokeExact(PFN_glGetMapParameterfvNV, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMapParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMapParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMapParameterfvNV"); } } public void GetMapAttribParameterivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMapAttribParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMapAttribParameterivNV)) { try { MH_glGetMapAttribParameterivNV.invokeExact(PFN_glGetMapAttribParameterivNV, target, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMapAttribParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMapAttribParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMapAttribParameterivNV"); } } public void GetMapAttribParameterfvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMapAttribParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMapAttribParameterfvNV)) { try { MH_glGetMapAttribParameterfvNV.invokeExact(PFN_glGetMapAttribParameterfvNV, target, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMapAttribParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMapAttribParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMapAttribParameterfvNV"); } } public void EvalMapsNV(@CType("GLenum") int target, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glEvalMapsNV)) + if (!Unmarshal.isNullPointer(PFN_glEvalMapsNV)) { try { MH_glEvalMapsNV.invokeExact(PFN_glEvalMapsNV, target, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glEvalMapsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEvalMapsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEvalMapsNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java index 4ec15979..97bff6c0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVExplicitMultisample.java @@ -48,24 +48,24 @@ public GLNVExplicitMultisample(overrungl.opengl.GLLoadFunc func) { } public void GetMultisamplefvNV(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLfloat *") java.lang.foreign.MemorySegment val) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMultisamplefvNV)) { try { MH_glGetMultisamplefvNV.invokeExact(PFN_glGetMultisamplefvNV, pname, index, val); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMultisamplefvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMultisamplefvNV"); } } public void SampleMaskIndexedNV(@CType("GLuint") int index, @CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleMaskIndexedNV)) + if (!Unmarshal.isNullPointer(PFN_glSampleMaskIndexedNV)) { try { MH_glSampleMaskIndexedNV.invokeExact(PFN_glSampleMaskIndexedNV, index, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleMaskIndexedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleMaskIndexedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleMaskIndexedNV"); } } public void TexRenderbufferNV(@CType("GLenum") int target, @CType("GLuint") int renderbuffer) { - try { if (!Unmarshal.isNullPointer(PFN_glTexRenderbufferNV)) + if (!Unmarshal.isNullPointer(PFN_glTexRenderbufferNV)) { try { MH_glTexRenderbufferNV.invokeExact(PFN_glTexRenderbufferNV, target, renderbuffer); - } - catch (Throwable e) { throw new RuntimeException("error in glTexRenderbufferNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexRenderbufferNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexRenderbufferNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java index 3f8dc44a..5f52ce34 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFence.java @@ -53,54 +53,52 @@ public GLNVFence(overrungl.opengl.GLLoadFunc func) { } public void DeleteFencesNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment fences) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteFencesNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteFencesNV)) { try { MH_glDeleteFencesNV.invokeExact(PFN_glDeleteFencesNV, n, fences); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteFencesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteFencesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteFencesNV"); } } public void GenFencesNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment fences) { - try { if (!Unmarshal.isNullPointer(PFN_glGenFencesNV)) + if (!Unmarshal.isNullPointer(PFN_glGenFencesNV)) { try { MH_glGenFencesNV.invokeExact(PFN_glGenFencesNV, n, fences); - } - catch (Throwable e) { throw new RuntimeException("error in glGenFencesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenFencesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenFencesNV"); } } public @CType("GLboolean") boolean IsFenceNV(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glIsFenceNV)) + if (!Unmarshal.isNullPointer(PFN_glIsFenceNV)) { try { return (boolean) MH_glIsFenceNV.invokeExact(PFN_glIsFenceNV, fence); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsFenceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsFenceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsFenceNV"); } } public @CType("GLboolean") boolean TestFenceNV(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glTestFenceNV)) + if (!Unmarshal.isNullPointer(PFN_glTestFenceNV)) { try { return (boolean) MH_glTestFenceNV.invokeExact(PFN_glTestFenceNV, fence); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glTestFenceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTestFenceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTestFenceNV"); } } public void GetFenceivNV(@CType("GLuint") int fence, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFenceivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetFenceivNV)) { try { MH_glGetFenceivNV.invokeExact(PFN_glGetFenceivNV, fence, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFenceivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFenceivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFenceivNV"); } } public void FinishFenceNV(@CType("GLuint") int fence) { - try { if (!Unmarshal.isNullPointer(PFN_glFinishFenceNV)) + if (!Unmarshal.isNullPointer(PFN_glFinishFenceNV)) { try { MH_glFinishFenceNV.invokeExact(PFN_glFinishFenceNV, fence); - } - catch (Throwable e) { throw new RuntimeException("error in glFinishFenceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinishFenceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinishFenceNV"); } } public void SetFenceNV(@CType("GLuint") int fence, @CType("GLenum") int condition) { - try { if (!Unmarshal.isNullPointer(PFN_glSetFenceNV)) + if (!Unmarshal.isNullPointer(PFN_glSetFenceNV)) { try { MH_glSetFenceNV.invokeExact(PFN_glSetFenceNV, fence, condition); - } - catch (Throwable e) { throw new RuntimeException("error in glSetFenceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSetFenceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSetFenceNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java index 85a2f448..dfa49b62 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentCoverageToColor.java @@ -34,10 +34,10 @@ public GLNVFragmentCoverageToColor(overrungl.opengl.GLLoadFunc func) { } public void FragmentCoverageColorNV(@CType("GLuint") int color) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentCoverageColorNV)) + if (!Unmarshal.isNullPointer(PFN_glFragmentCoverageColorNV)) { try { MH_glFragmentCoverageColorNV.invokeExact(PFN_glFragmentCoverageColorNV, color); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentCoverageColorNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentCoverageColorNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentCoverageColorNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java index 5a25393c..09bb9721 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFragmentProgram.java @@ -53,45 +53,45 @@ public GLNVFragmentProgram(overrungl.opengl.GLLoadFunc func) { } public void ProgramNamedParameter4fNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4fNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4fNV)) { try { MH_glProgramNamedParameter4fNV.invokeExact(PFN_glProgramNamedParameter4fNV, id, len, name, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramNamedParameter4fNV"); } } public void ProgramNamedParameter4fvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4fvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4fvNV)) { try { MH_glProgramNamedParameter4fvNV.invokeExact(PFN_glProgramNamedParameter4fvNV, id, len, name, v); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramNamedParameter4fvNV"); } } public void ProgramNamedParameter4dNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4dNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4dNV)) { try { MH_glProgramNamedParameter4dNV.invokeExact(PFN_glProgramNamedParameter4dNV, id, len, name, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4dNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4dNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramNamedParameter4dNV"); } } public void ProgramNamedParameter4dvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4dvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramNamedParameter4dvNV)) { try { MH_glProgramNamedParameter4dvNV.invokeExact(PFN_glProgramNamedParameter4dvNV, id, len, name, v); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramNamedParameter4dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramNamedParameter4dvNV"); } } public void GetProgramNamedParameterfvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramNamedParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramNamedParameterfvNV)) { try { MH_glGetProgramNamedParameterfvNV.invokeExact(PFN_glGetProgramNamedParameterfvNV, id, len, name, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramNamedParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramNamedParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramNamedParameterfvNV"); } } public void GetProgramNamedParameterdvNV(@CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment name, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramNamedParameterdvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramNamedParameterdvNV)) { try { MH_glGetProgramNamedParameterdvNV.invokeExact(PFN_glGetProgramNamedParameterdvNV, id, len, name, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramNamedParameterdvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramNamedParameterdvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramNamedParameterdvNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java index e2517e87..73052034 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMixedSamples.java @@ -55,31 +55,31 @@ public GLNVFramebufferMixedSamples(overrungl.opengl.GLLoadFunc func) { } public void RasterSamplesEXT(@CType("GLuint") int samples, @CType("GLboolean") boolean fixedsamplelocations) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterSamplesEXT)) + if (!Unmarshal.isNullPointer(PFN_glRasterSamplesEXT)) { try { MH_glRasterSamplesEXT.invokeExact(PFN_glRasterSamplesEXT, samples, fixedsamplelocations); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterSamplesEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterSamplesEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterSamplesEXT"); } } public void CoverageModulationTableNV(@CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glCoverageModulationTableNV)) + if (!Unmarshal.isNullPointer(PFN_glCoverageModulationTableNV)) { try { MH_glCoverageModulationTableNV.invokeExact(PFN_glCoverageModulationTableNV, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glCoverageModulationTableNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCoverageModulationTableNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCoverageModulationTableNV"); } } public void GetCoverageModulationTableNV(@CType("GLsizei") int bufSize, @CType("GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCoverageModulationTableNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCoverageModulationTableNV)) { try { MH_glGetCoverageModulationTableNV.invokeExact(PFN_glGetCoverageModulationTableNV, bufSize, v); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCoverageModulationTableNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCoverageModulationTableNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCoverageModulationTableNV"); } } public void CoverageModulationNV(@CType("GLenum") int components) { - try { if (!Unmarshal.isNullPointer(PFN_glCoverageModulationNV)) + if (!Unmarshal.isNullPointer(PFN_glCoverageModulationNV)) { try { MH_glCoverageModulationNV.invokeExact(PFN_glCoverageModulationNV, components); - } - catch (Throwable e) { throw new RuntimeException("error in glCoverageModulationNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCoverageModulationNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCoverageModulationNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java index 68537cb1..f7cdbfe1 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVFramebufferMultisampleCoverage.java @@ -36,10 +36,10 @@ public GLNVFramebufferMultisampleCoverage(overrungl.opengl.GLLoadFunc func) { } public void RenderbufferStorageMultisampleCoverageNV(@CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleCoverageNV)) + if (!Unmarshal.isNullPointer(PFN_glRenderbufferStorageMultisampleCoverageNV)) { try { MH_glRenderbufferStorageMultisampleCoverageNV.invokeExact(PFN_glRenderbufferStorageMultisampleCoverageNV, target, coverageSamples, colorSamples, internalformat, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleCoverageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderbufferStorageMultisampleCoverageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderbufferStorageMultisampleCoverageNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java index e269f122..81de0c27 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGeometryProgram4.java @@ -57,31 +57,31 @@ public GLNVGeometryProgram4(overrungl.opengl.GLLoadFunc func) { } public void ProgramVertexLimitNV(@CType("GLenum") int target, @CType("GLint") int limit) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramVertexLimitNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramVertexLimitNV)) { try { MH_glProgramVertexLimitNV.invokeExact(PFN_glProgramVertexLimitNV, target, limit); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramVertexLimitNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramVertexLimitNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramVertexLimitNV"); } } public void FramebufferTextureEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureEXT)) { try { MH_glFramebufferTextureEXT.invokeExact(PFN_glFramebufferTextureEXT, target, attachment, texture, level); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureEXT"); } } public void FramebufferTextureLayerEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int layer) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureLayerEXT)) { try { MH_glFramebufferTextureLayerEXT.invokeExact(PFN_glFramebufferTextureLayerEXT, target, attachment, texture, level, layer); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureLayerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureLayerEXT"); } } public void FramebufferTextureFaceEXT(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLenum") int face) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureFaceEXT)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureFaceEXT)) { try { MH_glFramebufferTextureFaceEXT.invokeExact(PFN_glFramebufferTextureFaceEXT, target, attachment, texture, level, face); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureFaceEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureFaceEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureFaceEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java index 3eaa86c1..483096b3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuMulticast.java @@ -70,87 +70,87 @@ public GLNVGpuMulticast(overrungl.opengl.GLLoadFunc func) { } public void RenderGpuMaskNV(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glRenderGpuMaskNV)) + if (!Unmarshal.isNullPointer(PFN_glRenderGpuMaskNV)) { try { MH_glRenderGpuMaskNV.invokeExact(PFN_glRenderGpuMaskNV, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glRenderGpuMaskNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRenderGpuMaskNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRenderGpuMaskNV"); } } public void MulticastBufferSubDataNV(@CType("GLbitfield") int gpuMask, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastBufferSubDataNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastBufferSubDataNV)) { try { MH_glMulticastBufferSubDataNV.invokeExact(PFN_glMulticastBufferSubDataNV, gpuMask, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastBufferSubDataNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastBufferSubDataNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastBufferSubDataNV"); } } public void MulticastCopyBufferSubDataNV(@CType("GLuint") int readGpu, @CType("GLbitfield") int writeGpuMask, @CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastCopyBufferSubDataNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastCopyBufferSubDataNV)) { try { MH_glMulticastCopyBufferSubDataNV.invokeExact(PFN_glMulticastCopyBufferSubDataNV, readGpu, writeGpuMask, readBuffer, writeBuffer, readOffset, writeOffset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastCopyBufferSubDataNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastCopyBufferSubDataNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastCopyBufferSubDataNV"); } } public void MulticastCopyImageSubDataNV(@CType("GLuint") int srcGpu, @CType("GLbitfield") int dstGpuMask, @CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastCopyImageSubDataNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastCopyImageSubDataNV)) { try { MH_glMulticastCopyImageSubDataNV.invokeExact(PFN_glMulticastCopyImageSubDataNV, srcGpu, dstGpuMask, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastCopyImageSubDataNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastCopyImageSubDataNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastCopyImageSubDataNV"); } } public void MulticastBlitFramebufferNV(@CType("GLuint") int srcGpu, @CType("GLuint") int dstGpu, @CType("GLint") int srcX0, @CType("GLint") int srcY0, @CType("GLint") int srcX1, @CType("GLint") int srcY1, @CType("GLint") int dstX0, @CType("GLint") int dstY0, @CType("GLint") int dstX1, @CType("GLint") int dstY1, @CType("GLbitfield") int mask, @CType("GLenum") int filter) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastBlitFramebufferNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastBlitFramebufferNV)) { try { MH_glMulticastBlitFramebufferNV.invokeExact(PFN_glMulticastBlitFramebufferNV, srcGpu, dstGpu, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastBlitFramebufferNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastBlitFramebufferNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastBlitFramebufferNV"); } } public void MulticastFramebufferSampleLocationsfvNV(@CType("GLuint") int gpu, @CType("GLuint") int framebuffer, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastFramebufferSampleLocationsfvNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastFramebufferSampleLocationsfvNV)) { try { MH_glMulticastFramebufferSampleLocationsfvNV.invokeExact(PFN_glMulticastFramebufferSampleLocationsfvNV, gpu, framebuffer, start, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastFramebufferSampleLocationsfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastFramebufferSampleLocationsfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastFramebufferSampleLocationsfvNV"); } } public void MulticastBarrierNV() { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastBarrierNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastBarrierNV)) { try { MH_glMulticastBarrierNV.invokeExact(PFN_glMulticastBarrierNV); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastBarrierNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastBarrierNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastBarrierNV"); } } public void MulticastWaitSyncNV(@CType("GLuint") int signalGpu, @CType("GLbitfield") int waitGpuMask) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastWaitSyncNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastWaitSyncNV)) { try { MH_glMulticastWaitSyncNV.invokeExact(PFN_glMulticastWaitSyncNV, signalGpu, waitGpuMask); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastWaitSyncNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastWaitSyncNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastWaitSyncNV"); } } public void MulticastGetQueryObjectivNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectivNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectivNV)) { try { MH_glMulticastGetQueryObjectivNV.invokeExact(PFN_glMulticastGetQueryObjectivNV, gpu, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastGetQueryObjectivNV"); } } public void MulticastGetQueryObjectuivNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectuivNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectuivNV)) { try { MH_glMulticastGetQueryObjectuivNV.invokeExact(PFN_glMulticastGetQueryObjectuivNV, gpu, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastGetQueryObjectuivNV"); } } public void MulticastGetQueryObjecti64vNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjecti64vNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjecti64vNV)) { try { MH_glMulticastGetQueryObjecti64vNV.invokeExact(PFN_glMulticastGetQueryObjecti64vNV, gpu, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjecti64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjecti64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastGetQueryObjecti64vNV"); } } public void MulticastGetQueryObjectui64vNV(@CType("GLuint") int gpu, @CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint64 *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glMulticastGetQueryObjectui64vNV)) { try { MH_glMulticastGetQueryObjectui64vNV.invokeExact(PFN_glMulticastGetQueryObjectui64vNV, gpu, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastGetQueryObjectui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastGetQueryObjectui64vNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java index 2e497642..7c8a98b7 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram4.java @@ -85,115 +85,115 @@ public GLNVGpuProgram4(overrungl.opengl.GLLoadFunc func) { } public void ProgramLocalParameterI4iNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4iNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4iNV)) { try { MH_glProgramLocalParameterI4iNV.invokeExact(PFN_glProgramLocalParameterI4iNV, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4iNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4iNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameterI4iNV"); } } public void ProgramLocalParameterI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4ivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4ivNV)) { try { MH_glProgramLocalParameterI4ivNV.invokeExact(PFN_glProgramLocalParameterI4ivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4ivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4ivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameterI4ivNV"); } } public void ProgramLocalParametersI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParametersI4ivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParametersI4ivNV)) { try { MH_glProgramLocalParametersI4ivNV.invokeExact(PFN_glProgramLocalParametersI4ivNV, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParametersI4ivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParametersI4ivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParametersI4ivNV"); } } public void ProgramLocalParameterI4uiNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4uiNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4uiNV)) { try { MH_glProgramLocalParameterI4uiNV.invokeExact(PFN_glProgramLocalParameterI4uiNV, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4uiNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4uiNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameterI4uiNV"); } } public void ProgramLocalParameterI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4uivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParameterI4uivNV)) { try { MH_glProgramLocalParameterI4uivNV.invokeExact(PFN_glProgramLocalParameterI4uivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4uivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParameterI4uivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParameterI4uivNV"); } } public void ProgramLocalParametersI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramLocalParametersI4uivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramLocalParametersI4uivNV)) { try { MH_glProgramLocalParametersI4uivNV.invokeExact(PFN_glProgramLocalParametersI4uivNV, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParametersI4uivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramLocalParametersI4uivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramLocalParametersI4uivNV"); } } public void ProgramEnvParameterI4iNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4iNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4iNV)) { try { MH_glProgramEnvParameterI4iNV.invokeExact(PFN_glProgramEnvParameterI4iNV, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4iNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4iNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameterI4iNV"); } } public void ProgramEnvParameterI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4ivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4ivNV)) { try { MH_glProgramEnvParameterI4ivNV.invokeExact(PFN_glProgramEnvParameterI4ivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4ivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4ivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameterI4ivNV"); } } public void ProgramEnvParametersI4ivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParametersI4ivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParametersI4ivNV)) { try { MH_glProgramEnvParametersI4ivNV.invokeExact(PFN_glProgramEnvParametersI4ivNV, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParametersI4ivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParametersI4ivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParametersI4ivNV"); } } public void ProgramEnvParameterI4uiNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4uiNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4uiNV)) { try { MH_glProgramEnvParameterI4uiNV.invokeExact(PFN_glProgramEnvParameterI4uiNV, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4uiNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4uiNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameterI4uiNV"); } } public void ProgramEnvParameterI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4uivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParameterI4uivNV)) { try { MH_glProgramEnvParameterI4uivNV.invokeExact(PFN_glProgramEnvParameterI4uivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4uivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParameterI4uivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParameterI4uivNV"); } } public void ProgramEnvParametersI4uivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramEnvParametersI4uivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramEnvParametersI4uivNV)) { try { MH_glProgramEnvParametersI4uivNV.invokeExact(PFN_glProgramEnvParametersI4uivNV, target, index, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParametersI4uivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramEnvParametersI4uivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramEnvParametersI4uivNV"); } } public void GetProgramLocalParameterIivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterIivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterIivNV)) { try { MH_glGetProgramLocalParameterIivNV.invokeExact(PFN_glGetProgramLocalParameterIivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterIivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterIivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramLocalParameterIivNV"); } } public void GetProgramLocalParameterIuivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterIuivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramLocalParameterIuivNV)) { try { MH_glGetProgramLocalParameterIuivNV.invokeExact(PFN_glGetProgramLocalParameterIuivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterIuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramLocalParameterIuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramLocalParameterIuivNV"); } } public void GetProgramEnvParameterIivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterIivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterIivNV)) { try { MH_glGetProgramEnvParameterIivNV.invokeExact(PFN_glGetProgramEnvParameterIivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterIivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterIivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramEnvParameterIivNV"); } } public void GetProgramEnvParameterIuivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterIuivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramEnvParameterIuivNV)) { try { MH_glGetProgramEnvParameterIuivNV.invokeExact(PFN_glGetProgramEnvParameterIuivNV, target, index, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterIuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramEnvParameterIuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramEnvParameterIuivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java index 371c945a..4cea0113 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuProgram5.java @@ -43,17 +43,17 @@ public GLNVGpuProgram5(overrungl.opengl.GLLoadFunc func) { } public void ProgramSubroutineParametersuivNV(@CType("GLenum") int target, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramSubroutineParametersuivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramSubroutineParametersuivNV)) { try { MH_glProgramSubroutineParametersuivNV.invokeExact(PFN_glProgramSubroutineParametersuivNV, target, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramSubroutineParametersuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramSubroutineParametersuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramSubroutineParametersuivNV"); } } public void GetProgramSubroutineParameteruivNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramSubroutineParameteruivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramSubroutineParameteruivNV)) { try { MH_glGetProgramSubroutineParameteruivNV.invokeExact(PFN_glGetProgramSubroutineParameteruivNV, target, index, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramSubroutineParameteruivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramSubroutineParameteruivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramSubroutineParameteruivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java index 09fbea14..d1f59990 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVGpuShader5.java @@ -156,234 +156,234 @@ public GLNVGpuShader5(overrungl.opengl.GLLoadFunc func) { } public void Uniform1i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i64NV)) { try { MH_glUniform1i64NV.invokeExact(PFN_glUniform1i64NV, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i64NV"); } } public void Uniform2i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i64NV)) { try { MH_glUniform2i64NV.invokeExact(PFN_glUniform2i64NV, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i64NV"); } } public void Uniform3i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i64NV)) { try { MH_glUniform3i64NV.invokeExact(PFN_glUniform3i64NV, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i64NV"); } } public void Uniform4i64NV(@CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i64NV)) { try { MH_glUniform4i64NV.invokeExact(PFN_glUniform4i64NV, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i64NV"); } } public void Uniform1i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1i64vNV)) { try { MH_glUniform1i64vNV.invokeExact(PFN_glUniform1i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1i64vNV"); } } public void Uniform2i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2i64vNV)) { try { MH_glUniform2i64vNV.invokeExact(PFN_glUniform2i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2i64vNV"); } } public void Uniform3i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3i64vNV)) { try { MH_glUniform3i64vNV.invokeExact(PFN_glUniform3i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3i64vNV"); } } public void Uniform4i64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4i64vNV)) { try { MH_glUniform4i64vNV.invokeExact(PFN_glUniform4i64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4i64vNV"); } } public void Uniform1ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui64NV)) { try { MH_glUniform1ui64NV.invokeExact(PFN_glUniform1ui64NV, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui64NV"); } } public void Uniform2ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui64NV)) { try { MH_glUniform2ui64NV.invokeExact(PFN_glUniform2ui64NV, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui64NV"); } } public void Uniform3ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui64NV)) { try { MH_glUniform3ui64NV.invokeExact(PFN_glUniform3ui64NV, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui64NV"); } } public void Uniform4ui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui64NV)) { try { MH_glUniform4ui64NV.invokeExact(PFN_glUniform4ui64NV, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui64NV"); } } public void Uniform1ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform1ui64vNV)) { try { MH_glUniform1ui64vNV.invokeExact(PFN_glUniform1ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform1ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform1ui64vNV"); } } public void Uniform2ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform2ui64vNV)) { try { MH_glUniform2ui64vNV.invokeExact(PFN_glUniform2ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform2ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform2ui64vNV"); } } public void Uniform3ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform3ui64vNV)) { try { MH_glUniform3ui64vNV.invokeExact(PFN_glUniform3ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform3ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform3ui64vNV"); } } public void Uniform4ui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniform4ui64vNV)) { try { MH_glUniform4ui64vNV.invokeExact(PFN_glUniform4ui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniform4ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniform4ui64vNV"); } } public void GetUniformi64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformi64vNV)) { try { MH_glGetUniformi64vNV.invokeExact(PFN_glGetUniformi64vNV, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformi64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformi64vNV"); } } public void ProgramUniform1i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64NV)) { try { MH_glProgramUniform1i64NV.invokeExact(PFN_glProgramUniform1i64NV, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i64NV"); } } public void ProgramUniform2i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64NV)) { try { MH_glProgramUniform2i64NV.invokeExact(PFN_glProgramUniform2i64NV, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i64NV"); } } public void ProgramUniform3i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64NV)) { try { MH_glProgramUniform3i64NV.invokeExact(PFN_glProgramUniform3i64NV, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i64NV"); } } public void ProgramUniform4i64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64NV)) { try { MH_glProgramUniform4i64NV.invokeExact(PFN_glProgramUniform4i64NV, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i64NV"); } } public void ProgramUniform1i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1i64vNV)) { try { MH_glProgramUniform1i64vNV.invokeExact(PFN_glProgramUniform1i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1i64vNV"); } } public void ProgramUniform2i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2i64vNV)) { try { MH_glProgramUniform2i64vNV.invokeExact(PFN_glProgramUniform2i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2i64vNV"); } } public void ProgramUniform3i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3i64vNV)) { try { MH_glProgramUniform3i64vNV.invokeExact(PFN_glProgramUniform3i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3i64vNV"); } } public void ProgramUniform4i64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4i64vNV)) { try { MH_glProgramUniform4i64vNV.invokeExact(PFN_glProgramUniform4i64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4i64vNV"); } } public void ProgramUniform1ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64NV)) { try { MH_glProgramUniform1ui64NV.invokeExact(PFN_glProgramUniform1ui64NV, program, location, x); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui64NV"); } } public void ProgramUniform2ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64NV)) { try { MH_glProgramUniform2ui64NV.invokeExact(PFN_glProgramUniform2ui64NV, program, location, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui64NV"); } } public void ProgramUniform3ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64NV)) { try { MH_glProgramUniform3ui64NV.invokeExact(PFN_glProgramUniform3ui64NV, program, location, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui64NV"); } } public void ProgramUniform4ui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64NV)) { try { MH_glProgramUniform4ui64NV.invokeExact(PFN_glProgramUniform4ui64NV, program, location, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui64NV"); } } public void ProgramUniform1ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform1ui64vNV)) { try { MH_glProgramUniform1ui64vNV.invokeExact(PFN_glProgramUniform1ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform1ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform1ui64vNV"); } } public void ProgramUniform2ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform2ui64vNV)) { try { MH_glProgramUniform2ui64vNV.invokeExact(PFN_glProgramUniform2ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform2ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform2ui64vNV"); } } public void ProgramUniform3ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform3ui64vNV)) { try { MH_glProgramUniform3ui64vNV.invokeExact(PFN_glProgramUniform3ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform3ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform3ui64vNV"); } } public void ProgramUniform4ui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniform4ui64vNV)) { try { MH_glProgramUniform4ui64vNV.invokeExact(PFN_glProgramUniform4ui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniform4ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniform4ui64vNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java index b6d789e1..ee57a0af 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVHalfFloat.java @@ -165,325 +165,325 @@ public GLNVHalfFloat(overrungl.opengl.GLLoadFunc func) { } public void Vertex2hNV(@CType("GLhalfNV") short x, @CType("GLhalfNV") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex2hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertex2hNV)) { try { MH_glVertex2hNV.invokeExact(PFN_glVertex2hNV, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex2hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex2hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex2hNV"); } } public void Vertex2hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex2hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertex2hvNV)) { try { MH_glVertex2hvNV.invokeExact(PFN_glVertex2hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex2hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex2hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex2hvNV"); } } public void Vertex3hNV(@CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex3hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertex3hNV)) { try { MH_glVertex3hNV.invokeExact(PFN_glVertex3hNV, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex3hNV"); } } public void Vertex3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertex3hvNV)) { try { MH_glVertex3hvNV.invokeExact(PFN_glVertex3hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex3hvNV"); } } public void Vertex4hNV(@CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z, @CType("GLhalfNV") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex4hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertex4hNV)) { try { MH_glVertex4hNV.invokeExact(PFN_glVertex4hNV, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex4hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex4hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex4hNV"); } } public void Vertex4hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex4hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertex4hvNV)) { try { MH_glVertex4hvNV.invokeExact(PFN_glVertex4hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex4hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex4hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex4hvNV"); } } public void Normal3hNV(@CType("GLhalfNV") short nx, @CType("GLhalfNV") short ny, @CType("GLhalfNV") short nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormal3hNV)) + if (!Unmarshal.isNullPointer(PFN_glNormal3hNV)) { try { MH_glNormal3hNV.invokeExact(PFN_glNormal3hNV, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormal3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormal3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormal3hNV"); } } public void Normal3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glNormal3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glNormal3hvNV)) { try { MH_glNormal3hvNV.invokeExact(PFN_glNormal3hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glNormal3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormal3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormal3hvNV"); } } public void Color3hNV(@CType("GLhalfNV") short red, @CType("GLhalfNV") short green, @CType("GLhalfNV") short blue) { - try { if (!Unmarshal.isNullPointer(PFN_glColor3hNV)) + if (!Unmarshal.isNullPointer(PFN_glColor3hNV)) { try { MH_glColor3hNV.invokeExact(PFN_glColor3hNV, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glColor3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor3hNV"); } } public void Color3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glColor3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glColor3hvNV)) { try { MH_glColor3hvNV.invokeExact(PFN_glColor3hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glColor3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor3hvNV"); } } public void Color4hNV(@CType("GLhalfNV") short red, @CType("GLhalfNV") short green, @CType("GLhalfNV") short blue, @CType("GLhalfNV") short alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4hNV)) + if (!Unmarshal.isNullPointer(PFN_glColor4hNV)) { try { MH_glColor4hNV.invokeExact(PFN_glColor4hNV, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4hNV"); } } public void Color4hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4hvNV)) + if (!Unmarshal.isNullPointer(PFN_glColor4hvNV)) { try { MH_glColor4hvNV.invokeExact(PFN_glColor4hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4hvNV"); } } public void TexCoord1hNV(@CType("GLhalfNV") short s) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1hNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord1hNV)) { try { MH_glTexCoord1hNV.invokeExact(PFN_glTexCoord1hNV, s); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord1hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord1hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord1hNV"); } } public void TexCoord1hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1hvNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord1hvNV)) { try { MH_glTexCoord1hvNV.invokeExact(PFN_glTexCoord1hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord1hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord1hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord1hvNV"); } } public void TexCoord2hNV(@CType("GLhalfNV") short s, @CType("GLhalfNV") short t) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2hNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2hNV)) { try { MH_glTexCoord2hNV.invokeExact(PFN_glTexCoord2hNV, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2hNV"); } } public void TexCoord2hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2hvNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2hvNV)) { try { MH_glTexCoord2hvNV.invokeExact(PFN_glTexCoord2hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2hvNV"); } } public void TexCoord3hNV(@CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3hNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord3hNV)) { try { MH_glTexCoord3hNV.invokeExact(PFN_glTexCoord3hNV, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord3hNV"); } } public void TexCoord3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord3hvNV)) { try { MH_glTexCoord3hvNV.invokeExact(PFN_glTexCoord3hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord3hvNV"); } } public void TexCoord4hNV(@CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r, @CType("GLhalfNV") short q) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4hNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4hNV)) { try { MH_glTexCoord4hNV.invokeExact(PFN_glTexCoord4hNV, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4hNV"); } } public void TexCoord4hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4hvNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4hvNV)) { try { MH_glTexCoord4hvNV.invokeExact(PFN_glTexCoord4hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4hvNV"); } } public void MultiTexCoord1hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1hNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1hNV)) { try { MH_glMultiTexCoord1hNV.invokeExact(PFN_glMultiTexCoord1hNV, target, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1hNV"); } } public void MultiTexCoord1hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1hvNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1hvNV)) { try { MH_glMultiTexCoord1hvNV.invokeExact(PFN_glMultiTexCoord1hvNV, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1hvNV"); } } public void MultiTexCoord2hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s, @CType("GLhalfNV") short t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2hNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2hNV)) { try { MH_glMultiTexCoord2hNV.invokeExact(PFN_glMultiTexCoord2hNV, target, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2hNV"); } } public void MultiTexCoord2hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2hvNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2hvNV)) { try { MH_glMultiTexCoord2hvNV.invokeExact(PFN_glMultiTexCoord2hvNV, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2hvNV"); } } public void MultiTexCoord3hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3hNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3hNV)) { try { MH_glMultiTexCoord3hNV.invokeExact(PFN_glMultiTexCoord3hNV, target, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3hNV"); } } public void MultiTexCoord3hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3hvNV)) { try { MH_glMultiTexCoord3hvNV.invokeExact(PFN_glMultiTexCoord3hvNV, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3hvNV"); } } public void MultiTexCoord4hNV(@CType("GLenum") int target, @CType("GLhalfNV") short s, @CType("GLhalfNV") short t, @CType("GLhalfNV") short r, @CType("GLhalfNV") short q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4hNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4hNV)) { try { MH_glMultiTexCoord4hNV.invokeExact(PFN_glMultiTexCoord4hNV, target, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4hNV"); } } public void MultiTexCoord4hvNV(@CType("GLenum") int target, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4hvNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4hvNV)) { try { MH_glMultiTexCoord4hvNV.invokeExact(PFN_glMultiTexCoord4hvNV, target, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4hvNV"); } } public void VertexAttrib1hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1hNV)) { try { MH_glVertexAttrib1hNV.invokeExact(PFN_glVertexAttrib1hNV, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1hNV"); } } public void VertexAttrib1hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1hvNV)) { try { MH_glVertexAttrib1hvNV.invokeExact(PFN_glVertexAttrib1hvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1hvNV"); } } public void VertexAttrib2hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x, @CType("GLhalfNV") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2hNV)) { try { MH_glVertexAttrib2hNV.invokeExact(PFN_glVertexAttrib2hNV, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2hNV"); } } public void VertexAttrib2hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2hvNV)) { try { MH_glVertexAttrib2hvNV.invokeExact(PFN_glVertexAttrib2hvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2hvNV"); } } public void VertexAttrib3hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3hNV)) { try { MH_glVertexAttrib3hNV.invokeExact(PFN_glVertexAttrib3hNV, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3hNV"); } } public void VertexAttrib3hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3hvNV)) { try { MH_glVertexAttrib3hvNV.invokeExact(PFN_glVertexAttrib3hvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3hvNV"); } } public void VertexAttrib4hNV(@CType("GLuint") int index, @CType("GLhalfNV") short x, @CType("GLhalfNV") short y, @CType("GLhalfNV") short z, @CType("GLhalfNV") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4hNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4hNV)) { try { MH_glVertexAttrib4hNV.invokeExact(PFN_glVertexAttrib4hNV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4hNV"); } } public void VertexAttrib4hvNV(@CType("GLuint") int index, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4hvNV)) { try { MH_glVertexAttrib4hvNV.invokeExact(PFN_glVertexAttrib4hvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4hvNV"); } } public void VertexAttribs1hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1hvNV)) { try { MH_glVertexAttribs1hvNV.invokeExact(PFN_glVertexAttribs1hvNV, index, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs1hvNV"); } } public void VertexAttribs2hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2hvNV)) { try { MH_glVertexAttribs2hvNV.invokeExact(PFN_glVertexAttribs2hvNV, index, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs2hvNV"); } } public void VertexAttribs3hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3hvNV)) { try { MH_glVertexAttribs3hvNV.invokeExact(PFN_glVertexAttribs3hvNV, index, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs3hvNV"); } } public void VertexAttribs4hvNV(@CType("GLuint") int index, @CType("GLsizei") int n, @CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4hvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4hvNV)) { try { MH_glVertexAttribs4hvNV.invokeExact(PFN_glVertexAttribs4hvNV, index, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs4hvNV"); } } public void FogCoordhNV(@CType("GLhalfNV") short fog) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordhNV)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordhNV)) { try { MH_glFogCoordhNV.invokeExact(PFN_glFogCoordhNV, fog); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordhNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordhNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordhNV"); } } public void FogCoordhvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment fog) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordhvNV)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordhvNV)) { try { MH_glFogCoordhvNV.invokeExact(PFN_glFogCoordhvNV, fog); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordhvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordhvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordhvNV"); } } public void SecondaryColor3hNV(@CType("GLhalfNV") short red, @CType("GLhalfNV") short green, @CType("GLhalfNV") short blue) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3hNV)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3hNV)) { try { MH_glSecondaryColor3hNV.invokeExact(PFN_glSecondaryColor3hNV, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3hNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3hNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3hNV"); } } public void SecondaryColor3hvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3hvNV)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColor3hvNV)) { try { MH_glSecondaryColor3hvNV.invokeExact(PFN_glSecondaryColor3hvNV, v); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3hvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColor3hvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColor3hvNV"); } } public void VertexWeighthNV(@CType("GLhalfNV") short weight) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexWeighthNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexWeighthNV)) { try { MH_glVertexWeighthNV.invokeExact(PFN_glVertexWeighthNV, weight); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexWeighthNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexWeighthNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexWeighthNV"); } } public void VertexWeighthvNV(@CType("const GLhalfNV *") java.lang.foreign.MemorySegment weight) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexWeighthvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexWeighthvNV)) { try { MH_glVertexWeighthvNV.invokeExact(PFN_glVertexWeighthvNV, weight); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexWeighthvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexWeighthvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexWeighthvNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java index 39908b0c..8c3e848a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVInternalformatSampleQuery.java @@ -39,10 +39,10 @@ public GLNVInternalformatSampleQuery(overrungl.opengl.GLLoadFunc func) { } public void GetInternalformatSampleivNV(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int samples, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetInternalformatSampleivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetInternalformatSampleivNV)) { try { MH_glGetInternalformatSampleivNV.invokeExact(PFN_glGetInternalformatSampleivNV, target, internalformat, samples, pname, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetInternalformatSampleivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInternalformatSampleivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInternalformatSampleivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java index 7beb1e9a..5d712f6d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryAttachment.java @@ -56,45 +56,45 @@ public GLNVMemoryAttachment(overrungl.opengl.GLLoadFunc func) { } public void GetMemoryObjectDetachedResourcesuivNV(@CType("GLuint") int memory, @CType("GLenum") int pname, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMemoryObjectDetachedResourcesuivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetMemoryObjectDetachedResourcesuivNV)) { try { MH_glGetMemoryObjectDetachedResourcesuivNV.invokeExact(PFN_glGetMemoryObjectDetachedResourcesuivNV, memory, pname, first, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMemoryObjectDetachedResourcesuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMemoryObjectDetachedResourcesuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMemoryObjectDetachedResourcesuivNV"); } } public void ResetMemoryObjectParameterNV(@CType("GLuint") int memory, @CType("GLenum") int pname) { - try { if (!Unmarshal.isNullPointer(PFN_glResetMemoryObjectParameterNV)) + if (!Unmarshal.isNullPointer(PFN_glResetMemoryObjectParameterNV)) { try { MH_glResetMemoryObjectParameterNV.invokeExact(PFN_glResetMemoryObjectParameterNV, memory, pname); - } - catch (Throwable e) { throw new RuntimeException("error in glResetMemoryObjectParameterNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResetMemoryObjectParameterNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResetMemoryObjectParameterNV"); } } public void TexAttachMemoryNV(@CType("GLenum") int target, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTexAttachMemoryNV)) + if (!Unmarshal.isNullPointer(PFN_glTexAttachMemoryNV)) { try { MH_glTexAttachMemoryNV.invokeExact(PFN_glTexAttachMemoryNV, target, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTexAttachMemoryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexAttachMemoryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexAttachMemoryNV"); } } public void BufferAttachMemoryNV(@CType("GLenum") int target, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferAttachMemoryNV)) + if (!Unmarshal.isNullPointer(PFN_glBufferAttachMemoryNV)) { try { MH_glBufferAttachMemoryNV.invokeExact(PFN_glBufferAttachMemoryNV, target, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferAttachMemoryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferAttachMemoryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferAttachMemoryNV"); } } public void TextureAttachMemoryNV(@CType("GLuint") int texture, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureAttachMemoryNV)) + if (!Unmarshal.isNullPointer(PFN_glTextureAttachMemoryNV)) { try { MH_glTextureAttachMemoryNV.invokeExact(PFN_glTextureAttachMemoryNV, texture, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureAttachMemoryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureAttachMemoryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureAttachMemoryNV"); } } public void NamedBufferAttachMemoryNV(@CType("GLuint") int buffer, @CType("GLuint") int memory, @CType("GLuint64") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferAttachMemoryNV)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferAttachMemoryNV)) { try { MH_glNamedBufferAttachMemoryNV.invokeExact(PFN_glNamedBufferAttachMemoryNV, buffer, memory, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferAttachMemoryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferAttachMemoryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferAttachMemoryNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java index 9d04248e..81533d19 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMemoryObjectSparse.java @@ -40,31 +40,31 @@ public GLNVMemoryObjectSparse(overrungl.opengl.GLLoadFunc func) { } public void BufferPageCommitmentMemNV(@CType("GLenum") int target, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long memOffset, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferPageCommitmentMemNV)) + if (!Unmarshal.isNullPointer(PFN_glBufferPageCommitmentMemNV)) { try { MH_glBufferPageCommitmentMemNV.invokeExact(PFN_glBufferPageCommitmentMemNV, target, offset, size, memory, memOffset, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferPageCommitmentMemNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferPageCommitmentMemNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferPageCommitmentMemNV"); } } public void TexPageCommitmentMemNV(@CType("GLenum") int target, @CType("GLint") int layer, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glTexPageCommitmentMemNV)) + if (!Unmarshal.isNullPointer(PFN_glTexPageCommitmentMemNV)) { try { MH_glTexPageCommitmentMemNV.invokeExact(PFN_glTexPageCommitmentMemNV, target, layer, level, xoffset, yoffset, zoffset, width, height, depth, memory, offset, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glTexPageCommitmentMemNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexPageCommitmentMemNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexPageCommitmentMemNV"); } } public void NamedBufferPageCommitmentMemNV(@CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("GLuint") int memory, @CType("GLuint64") long memOffset, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentMemNV)) + if (!Unmarshal.isNullPointer(PFN_glNamedBufferPageCommitmentMemNV)) { try { MH_glNamedBufferPageCommitmentMemNV.invokeExact(PFN_glNamedBufferPageCommitmentMemNV, buffer, offset, size, memory, memOffset, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentMemNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedBufferPageCommitmentMemNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedBufferPageCommitmentMemNV"); } } public void TexturePageCommitmentMemNV(@CType("GLuint") int texture, @CType("GLint") int layer, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLuint") int memory, @CType("GLuint64") long offset, @CType("GLboolean") boolean commit) { - try { if (!Unmarshal.isNullPointer(PFN_glTexturePageCommitmentMemNV)) + if (!Unmarshal.isNullPointer(PFN_glTexturePageCommitmentMemNV)) { try { MH_glTexturePageCommitmentMemNV.invokeExact(PFN_glTexturePageCommitmentMemNV, texture, layer, level, xoffset, yoffset, zoffset, width, height, depth, memory, offset, commit); - } - catch (Throwable e) { throw new RuntimeException("error in glTexturePageCommitmentMemNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexturePageCommitmentMemNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexturePageCommitmentMemNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java index 4d78b1f5..5848768e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVMeshShader.java @@ -89,31 +89,31 @@ public GLNVMeshShader(overrungl.opengl.GLLoadFunc func) { } public void DrawMeshTasksNV(@CType("GLuint") int first, @CType("GLuint") int count) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawMeshTasksNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawMeshTasksNV)) { try { MH_glDrawMeshTasksNV.invokeExact(PFN_glDrawMeshTasksNV, first, count); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawMeshTasksNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawMeshTasksNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawMeshTasksNV"); } } public void DrawMeshTasksIndirectNV(@CType("GLintptr") long indirect) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawMeshTasksIndirectNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawMeshTasksIndirectNV)) { try { MH_glDrawMeshTasksIndirectNV.invokeExact(PFN_glDrawMeshTasksIndirectNV, indirect); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawMeshTasksIndirectNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawMeshTasksIndirectNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawMeshTasksIndirectNV"); } } public void MultiDrawMeshTasksIndirectNV(@CType("GLintptr") long indirect, @CType("GLsizei") int drawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawMeshTasksIndirectNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawMeshTasksIndirectNV)) { try { MH_glMultiDrawMeshTasksIndirectNV.invokeExact(PFN_glMultiDrawMeshTasksIndirectNV, indirect, drawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawMeshTasksIndirectNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawMeshTasksIndirectNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawMeshTasksIndirectNV"); } } public void MultiDrawMeshTasksIndirectCountNV(@CType("GLintptr") long indirect, @CType("GLintptr") long drawcount, @CType("GLsizei") int maxdrawcount, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiDrawMeshTasksIndirectCountNV)) + if (!Unmarshal.isNullPointer(PFN_glMultiDrawMeshTasksIndirectCountNV)) { try { MH_glMultiDrawMeshTasksIndirectCountNV.invokeExact(PFN_glMultiDrawMeshTasksIndirectCountNV, indirect, drawcount, maxdrawcount, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiDrawMeshTasksIndirectCountNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiDrawMeshTasksIndirectCountNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiDrawMeshTasksIndirectCountNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java index 25c52851..feb1424e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVOcclusionQuery.java @@ -54,53 +54,52 @@ public GLNVOcclusionQuery(overrungl.opengl.GLLoadFunc func) { } public void GenOcclusionQueriesNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glGenOcclusionQueriesNV)) + if (!Unmarshal.isNullPointer(PFN_glGenOcclusionQueriesNV)) { try { MH_glGenOcclusionQueriesNV.invokeExact(PFN_glGenOcclusionQueriesNV, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glGenOcclusionQueriesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenOcclusionQueriesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenOcclusionQueriesNV"); } } public void DeleteOcclusionQueriesNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteOcclusionQueriesNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteOcclusionQueriesNV)) { try { MH_glDeleteOcclusionQueriesNV.invokeExact(PFN_glDeleteOcclusionQueriesNV, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteOcclusionQueriesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteOcclusionQueriesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteOcclusionQueriesNV"); } } public @CType("GLboolean") boolean IsOcclusionQueryNV(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsOcclusionQueryNV)) + if (!Unmarshal.isNullPointer(PFN_glIsOcclusionQueryNV)) { try { return (boolean) MH_glIsOcclusionQueryNV.invokeExact(PFN_glIsOcclusionQueryNV, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsOcclusionQueryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsOcclusionQueryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsOcclusionQueryNV"); } } public void BeginOcclusionQueryNV(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginOcclusionQueryNV)) + if (!Unmarshal.isNullPointer(PFN_glBeginOcclusionQueryNV)) { try { MH_glBeginOcclusionQueryNV.invokeExact(PFN_glBeginOcclusionQueryNV, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginOcclusionQueryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginOcclusionQueryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginOcclusionQueryNV"); } } public void EndOcclusionQueryNV() { - try { if (!Unmarshal.isNullPointer(PFN_glEndOcclusionQueryNV)) + if (!Unmarshal.isNullPointer(PFN_glEndOcclusionQueryNV)) { try { MH_glEndOcclusionQueryNV.invokeExact(PFN_glEndOcclusionQueryNV); - } - catch (Throwable e) { throw new RuntimeException("error in glEndOcclusionQueryNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndOcclusionQueryNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndOcclusionQueryNV"); } } public void GetOcclusionQueryivNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetOcclusionQueryivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetOcclusionQueryivNV)) { try { MH_glGetOcclusionQueryivNV.invokeExact(PFN_glGetOcclusionQueryivNV, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetOcclusionQueryivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetOcclusionQueryivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetOcclusionQueryivNV"); } } public void GetOcclusionQueryuivNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetOcclusionQueryuivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetOcclusionQueryuivNV)) { try { MH_glGetOcclusionQueryuivNV.invokeExact(PFN_glGetOcclusionQueryuivNV, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetOcclusionQueryuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetOcclusionQueryuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetOcclusionQueryuivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java index 08b937a2..9e17e513 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVParameterBufferObject.java @@ -43,24 +43,24 @@ public GLNVParameterBufferObject(overrungl.opengl.GLLoadFunc func) { } public void ProgramBufferParametersfvNV(@CType("GLenum") int target, @CType("GLuint") int bindingIndex, @CType("GLuint") int wordIndex, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersfvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersfvNV)) { try { MH_glProgramBufferParametersfvNV.invokeExact(PFN_glProgramBufferParametersfvNV, target, bindingIndex, wordIndex, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramBufferParametersfvNV"); } } public void ProgramBufferParametersIivNV(@CType("GLenum") int target, @CType("GLuint") int bindingIndex, @CType("GLuint") int wordIndex, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersIivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersIivNV)) { try { MH_glProgramBufferParametersIivNV.invokeExact(PFN_glProgramBufferParametersIivNV, target, bindingIndex, wordIndex, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersIivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersIivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramBufferParametersIivNV"); } } public void ProgramBufferParametersIuivNV(@CType("GLenum") int target, @CType("GLuint") int bindingIndex, @CType("GLuint") int wordIndex, @CType("GLsizei") int count, @CType("const GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersIuivNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramBufferParametersIuivNV)) { try { MH_glProgramBufferParametersIuivNV.invokeExact(PFN_glProgramBufferParametersIuivNV, target, bindingIndex, wordIndex, count, params); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersIuivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramBufferParametersIuivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramBufferParametersIuivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java index 812a9d6c..16ba7983 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPathRendering.java @@ -438,593 +438,584 @@ public GLNVPathRendering(overrungl.opengl.GLLoadFunc func) { } public @CType("GLuint") int GenPathsNV(@CType("GLsizei") int range) { - try { if (!Unmarshal.isNullPointer(PFN_glGenPathsNV)) + if (!Unmarshal.isNullPointer(PFN_glGenPathsNV)) { try { return (int) MH_glGenPathsNV.invokeExact(PFN_glGenPathsNV, range); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGenPathsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenPathsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenPathsNV"); } } public void DeletePathsNV(@CType("GLuint") int path, @CType("GLsizei") int range) { - try { if (!Unmarshal.isNullPointer(PFN_glDeletePathsNV)) + if (!Unmarshal.isNullPointer(PFN_glDeletePathsNV)) { try { MH_glDeletePathsNV.invokeExact(PFN_glDeletePathsNV, path, range); - } - catch (Throwable e) { throw new RuntimeException("error in glDeletePathsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeletePathsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeletePathsNV"); } } public @CType("GLboolean") boolean IsPathNV(@CType("GLuint") int path) { - try { if (!Unmarshal.isNullPointer(PFN_glIsPathNV)) + if (!Unmarshal.isNullPointer(PFN_glIsPathNV)) { try { return (boolean) MH_glIsPathNV.invokeExact(PFN_glIsPathNV, path); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsPathNV"); } } public void PathCommandsNV(@CType("GLuint") int path, @CType("GLsizei") int numCommands, @CType("const GLubyte *") java.lang.foreign.MemorySegment commands, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glPathCommandsNV)) + if (!Unmarshal.isNullPointer(PFN_glPathCommandsNV)) { try { MH_glPathCommandsNV.invokeExact(PFN_glPathCommandsNV, path, numCommands, commands, numCoords, coordType, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glPathCommandsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathCommandsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathCommandsNV"); } } public void PathCoordsNV(@CType("GLuint") int path, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glPathCoordsNV)) + if (!Unmarshal.isNullPointer(PFN_glPathCoordsNV)) { try { MH_glPathCoordsNV.invokeExact(PFN_glPathCoordsNV, path, numCoords, coordType, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glPathCoordsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathCoordsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathCoordsNV"); } } public void PathSubCommandsNV(@CType("GLuint") int path, @CType("GLsizei") int commandStart, @CType("GLsizei") int commandsToDelete, @CType("GLsizei") int numCommands, @CType("const GLubyte *") java.lang.foreign.MemorySegment commands, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glPathSubCommandsNV)) + if (!Unmarshal.isNullPointer(PFN_glPathSubCommandsNV)) { try { MH_glPathSubCommandsNV.invokeExact(PFN_glPathSubCommandsNV, path, commandStart, commandsToDelete, numCommands, commands, numCoords, coordType, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glPathSubCommandsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathSubCommandsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathSubCommandsNV"); } } public void PathSubCoordsNV(@CType("GLuint") int path, @CType("GLsizei") int coordStart, @CType("GLsizei") int numCoords, @CType("GLenum") int coordType, @CType("const void *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glPathSubCoordsNV)) + if (!Unmarshal.isNullPointer(PFN_glPathSubCoordsNV)) { try { MH_glPathSubCoordsNV.invokeExact(PFN_glPathSubCoordsNV, path, coordStart, numCoords, coordType, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glPathSubCoordsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathSubCoordsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathSubCoordsNV"); } } public void PathStringNV(@CType("GLuint") int path, @CType("GLenum") int format, @CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pathString) { - try { if (!Unmarshal.isNullPointer(PFN_glPathStringNV)) + if (!Unmarshal.isNullPointer(PFN_glPathStringNV)) { try { MH_glPathStringNV.invokeExact(PFN_glPathStringNV, path, format, length, pathString); - } - catch (Throwable e) { throw new RuntimeException("error in glPathStringNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathStringNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathStringNV"); } } public void PathGlyphsNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLsizei") int numGlyphs, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment charcodes, @CType("GLenum") int handleMissingGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { - try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphsNV)) + if (!Unmarshal.isNullPointer(PFN_glPathGlyphsNV)) { try { MH_glPathGlyphsNV.invokeExact(PFN_glPathGlyphsNV, firstPathName, fontTarget, fontName, fontStyle, numGlyphs, type, charcodes, handleMissingGlyphs, pathParameterTemplate, emScale); - } - catch (Throwable e) { throw new RuntimeException("error in glPathGlyphsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathGlyphsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathGlyphsNV"); } } public void PathGlyphRangeNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLuint") int firstGlyph, @CType("GLsizei") int numGlyphs, @CType("GLenum") int handleMissingGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { - try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glPathGlyphRangeNV)) { try { MH_glPathGlyphRangeNV.invokeExact(PFN_glPathGlyphRangeNV, firstPathName, fontTarget, fontName, fontStyle, firstGlyph, numGlyphs, handleMissingGlyphs, pathParameterTemplate, emScale); - } - catch (Throwable e) { throw new RuntimeException("error in glPathGlyphRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathGlyphRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathGlyphRangeNV"); } } public void WeightPathsNV(@CType("GLuint") int resultPath, @CType("GLsizei") int numPaths, @CType("const GLuint *") java.lang.foreign.MemorySegment paths, @CType("const GLfloat *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glWeightPathsNV)) + if (!Unmarshal.isNullPointer(PFN_glWeightPathsNV)) { try { MH_glWeightPathsNV.invokeExact(PFN_glWeightPathsNV, resultPath, numPaths, paths, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glWeightPathsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWeightPathsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWeightPathsNV"); } } public void CopyPathNV(@CType("GLuint") int resultPath, @CType("GLuint") int srcPath) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyPathNV)) + if (!Unmarshal.isNullPointer(PFN_glCopyPathNV)) { try { MH_glCopyPathNV.invokeExact(PFN_glCopyPathNV, resultPath, srcPath); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyPathNV"); } } public void InterpolatePathsNV(@CType("GLuint") int resultPath, @CType("GLuint") int pathA, @CType("GLuint") int pathB, @CType("GLfloat") float weight) { - try { if (!Unmarshal.isNullPointer(PFN_glInterpolatePathsNV)) + if (!Unmarshal.isNullPointer(PFN_glInterpolatePathsNV)) { try { MH_glInterpolatePathsNV.invokeExact(PFN_glInterpolatePathsNV, resultPath, pathA, pathB, weight); - } - catch (Throwable e) { throw new RuntimeException("error in glInterpolatePathsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInterpolatePathsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInterpolatePathsNV"); } } public void TransformPathNV(@CType("GLuint") int resultPath, @CType("GLuint") int srcPath, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformPathNV)) + if (!Unmarshal.isNullPointer(PFN_glTransformPathNV)) { try { MH_glTransformPathNV.invokeExact(PFN_glTransformPathNV, resultPath, srcPath, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformPathNV"); } } public void PathParameterivNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glPathParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glPathParameterivNV)) { try { MH_glPathParameterivNV.invokeExact(PFN_glPathParameterivNV, path, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glPathParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathParameterivNV"); } } public void PathParameteriNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLint") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glPathParameteriNV)) + if (!Unmarshal.isNullPointer(PFN_glPathParameteriNV)) { try { MH_glPathParameteriNV.invokeExact(PFN_glPathParameteriNV, path, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glPathParameteriNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathParameteriNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathParameteriNV"); } } public void PathParameterfvNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glPathParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glPathParameterfvNV)) { try { MH_glPathParameterfvNV.invokeExact(PFN_glPathParameterfvNV, path, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glPathParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathParameterfvNV"); } } public void PathParameterfNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLfloat") float value) { - try { if (!Unmarshal.isNullPointer(PFN_glPathParameterfNV)) + if (!Unmarshal.isNullPointer(PFN_glPathParameterfNV)) { try { MH_glPathParameterfNV.invokeExact(PFN_glPathParameterfNV, path, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glPathParameterfNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathParameterfNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathParameterfNV"); } } public void PathDashArrayNV(@CType("GLuint") int path, @CType("GLsizei") int dashCount, @CType("const GLfloat *") java.lang.foreign.MemorySegment dashArray) { - try { if (!Unmarshal.isNullPointer(PFN_glPathDashArrayNV)) + if (!Unmarshal.isNullPointer(PFN_glPathDashArrayNV)) { try { MH_glPathDashArrayNV.invokeExact(PFN_glPathDashArrayNV, path, dashCount, dashArray); - } - catch (Throwable e) { throw new RuntimeException("error in glPathDashArrayNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathDashArrayNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathDashArrayNV"); } } public void PathStencilFuncNV(@CType("GLenum") int func, @CType("GLint") int ref, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glPathStencilFuncNV)) + if (!Unmarshal.isNullPointer(PFN_glPathStencilFuncNV)) { try { MH_glPathStencilFuncNV.invokeExact(PFN_glPathStencilFuncNV, func, ref, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glPathStencilFuncNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathStencilFuncNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathStencilFuncNV"); } } public void PathStencilDepthOffsetNV(@CType("GLfloat") float factor, @CType("GLfloat") float units) { - try { if (!Unmarshal.isNullPointer(PFN_glPathStencilDepthOffsetNV)) + if (!Unmarshal.isNullPointer(PFN_glPathStencilDepthOffsetNV)) { try { MH_glPathStencilDepthOffsetNV.invokeExact(PFN_glPathStencilDepthOffsetNV, factor, units); - } - catch (Throwable e) { throw new RuntimeException("error in glPathStencilDepthOffsetNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathStencilDepthOffsetNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathStencilDepthOffsetNV"); } } public void StencilFillPathNV(@CType("GLuint") int path, @CType("GLenum") int fillMode, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilFillPathNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilFillPathNV)) { try { MH_glStencilFillPathNV.invokeExact(PFN_glStencilFillPathNV, path, fillMode, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilFillPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilFillPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilFillPathNV"); } } public void StencilStrokePathNV(@CType("GLuint") int path, @CType("GLint") int reference, @CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilStrokePathNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilStrokePathNV)) { try { MH_glStencilStrokePathNV.invokeExact(PFN_glStencilStrokePathNV, path, reference, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilStrokePathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilStrokePathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilStrokePathNV"); } } public void StencilFillPathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int fillMode, @CType("GLuint") int mask, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilFillPathInstancedNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilFillPathInstancedNV)) { try { MH_glStencilFillPathInstancedNV.invokeExact(PFN_glStencilFillPathInstancedNV, numPaths, pathNameType, paths, pathBase, fillMode, mask, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilFillPathInstancedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilFillPathInstancedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilFillPathInstancedNV"); } } public void StencilStrokePathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLint") int reference, @CType("GLuint") int mask, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilStrokePathInstancedNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilStrokePathInstancedNV)) { try { MH_glStencilStrokePathInstancedNV.invokeExact(PFN_glStencilStrokePathInstancedNV, numPaths, pathNameType, paths, pathBase, reference, mask, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilStrokePathInstancedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilStrokePathInstancedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilStrokePathInstancedNV"); } } public void PathCoverDepthFuncNV(@CType("GLenum") int func) { - try { if (!Unmarshal.isNullPointer(PFN_glPathCoverDepthFuncNV)) + if (!Unmarshal.isNullPointer(PFN_glPathCoverDepthFuncNV)) { try { MH_glPathCoverDepthFuncNV.invokeExact(PFN_glPathCoverDepthFuncNV, func); - } - catch (Throwable e) { throw new RuntimeException("error in glPathCoverDepthFuncNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathCoverDepthFuncNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathCoverDepthFuncNV"); } } public void CoverFillPathNV(@CType("GLuint") int path, @CType("GLenum") int coverMode) { - try { if (!Unmarshal.isNullPointer(PFN_glCoverFillPathNV)) + if (!Unmarshal.isNullPointer(PFN_glCoverFillPathNV)) { try { MH_glCoverFillPathNV.invokeExact(PFN_glCoverFillPathNV, path, coverMode); - } - catch (Throwable e) { throw new RuntimeException("error in glCoverFillPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCoverFillPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCoverFillPathNV"); } } public void CoverStrokePathNV(@CType("GLuint") int path, @CType("GLenum") int coverMode) { - try { if (!Unmarshal.isNullPointer(PFN_glCoverStrokePathNV)) + if (!Unmarshal.isNullPointer(PFN_glCoverStrokePathNV)) { try { MH_glCoverStrokePathNV.invokeExact(PFN_glCoverStrokePathNV, path, coverMode); - } - catch (Throwable e) { throw new RuntimeException("error in glCoverStrokePathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCoverStrokePathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCoverStrokePathNV"); } } public void CoverFillPathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glCoverFillPathInstancedNV)) + if (!Unmarshal.isNullPointer(PFN_glCoverFillPathInstancedNV)) { try { MH_glCoverFillPathInstancedNV.invokeExact(PFN_glCoverFillPathInstancedNV, numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glCoverFillPathInstancedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCoverFillPathInstancedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCoverFillPathInstancedNV"); } } public void CoverStrokePathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glCoverStrokePathInstancedNV)) + if (!Unmarshal.isNullPointer(PFN_glCoverStrokePathInstancedNV)) { try { MH_glCoverStrokePathInstancedNV.invokeExact(PFN_glCoverStrokePathInstancedNV, numPaths, pathNameType, paths, pathBase, coverMode, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glCoverStrokePathInstancedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCoverStrokePathInstancedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCoverStrokePathInstancedNV"); } } public void GetPathParameterivNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathParameterivNV)) { try { MH_glGetPathParameterivNV.invokeExact(PFN_glGetPathParameterivNV, path, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathParameterivNV"); } } public void GetPathParameterfvNV(@CType("GLuint") int path, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathParameterfvNV)) { try { MH_glGetPathParameterfvNV.invokeExact(PFN_glGetPathParameterfvNV, path, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathParameterfvNV"); } } public void GetPathCommandsNV(@CType("GLuint") int path, @CType("GLubyte *") java.lang.foreign.MemorySegment commands) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathCommandsNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathCommandsNV)) { try { MH_glGetPathCommandsNV.invokeExact(PFN_glGetPathCommandsNV, path, commands); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathCommandsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathCommandsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathCommandsNV"); } } public void GetPathCoordsNV(@CType("GLuint") int path, @CType("GLfloat *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathCoordsNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathCoordsNV)) { try { MH_glGetPathCoordsNV.invokeExact(PFN_glGetPathCoordsNV, path, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathCoordsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathCoordsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathCoordsNV"); } } public void GetPathDashArrayNV(@CType("GLuint") int path, @CType("GLfloat *") java.lang.foreign.MemorySegment dashArray) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathDashArrayNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathDashArrayNV)) { try { MH_glGetPathDashArrayNV.invokeExact(PFN_glGetPathDashArrayNV, path, dashArray); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathDashArrayNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathDashArrayNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathDashArrayNV"); } } public void GetPathMetricsNV(@CType("GLbitfield") int metricQueryMask, @CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLsizei") int stride, @CType("GLfloat *") java.lang.foreign.MemorySegment metrics) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathMetricsNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathMetricsNV)) { try { MH_glGetPathMetricsNV.invokeExact(PFN_glGetPathMetricsNV, metricQueryMask, numPaths, pathNameType, paths, pathBase, stride, metrics); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathMetricsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathMetricsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathMetricsNV"); } } public void GetPathMetricRangeNV(@CType("GLbitfield") int metricQueryMask, @CType("GLuint") int firstPathName, @CType("GLsizei") int numPaths, @CType("GLsizei") int stride, @CType("GLfloat *") java.lang.foreign.MemorySegment metrics) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathMetricRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathMetricRangeNV)) { try { MH_glGetPathMetricRangeNV.invokeExact(PFN_glGetPathMetricRangeNV, metricQueryMask, firstPathName, numPaths, stride, metrics); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathMetricRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathMetricRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathMetricRangeNV"); } } public void GetPathSpacingNV(@CType("GLenum") int pathListMode, @CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLfloat") float advanceScale, @CType("GLfloat") float kerningScale, @CType("GLenum") int transformType, @CType("GLfloat *") java.lang.foreign.MemorySegment returnedSpacing) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathSpacingNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathSpacingNV)) { try { MH_glGetPathSpacingNV.invokeExact(PFN_glGetPathSpacingNV, pathListMode, numPaths, pathNameType, paths, pathBase, advanceScale, kerningScale, transformType, returnedSpacing); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathSpacingNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathSpacingNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathSpacingNV"); } } public @CType("GLboolean") boolean IsPointInFillPathNV(@CType("GLuint") int path, @CType("GLuint") int mask, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glIsPointInFillPathNV)) + if (!Unmarshal.isNullPointer(PFN_glIsPointInFillPathNV)) { try { return (boolean) MH_glIsPointInFillPathNV.invokeExact(PFN_glIsPointInFillPathNV, path, mask, x, y); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsPointInFillPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsPointInFillPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsPointInFillPathNV"); } } public @CType("GLboolean") boolean IsPointInStrokePathNV(@CType("GLuint") int path, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glIsPointInStrokePathNV)) + if (!Unmarshal.isNullPointer(PFN_glIsPointInStrokePathNV)) { try { return (boolean) MH_glIsPointInStrokePathNV.invokeExact(PFN_glIsPointInStrokePathNV, path, x, y); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsPointInStrokePathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsPointInStrokePathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsPointInStrokePathNV"); } } public @CType("GLfloat") float GetPathLengthNV(@CType("GLuint") int path, @CType("GLsizei") int startSegment, @CType("GLsizei") int numSegments) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathLengthNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathLengthNV)) { try { return (float) MH_glGetPathLengthNV.invokeExact(PFN_glGetPathLengthNV, path, startSegment, numSegments); - else return 0.0f; - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathLengthNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathLengthNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathLengthNV"); } } public @CType("GLboolean") boolean PointAlongPathNV(@CType("GLuint") int path, @CType("GLsizei") int startSegment, @CType("GLsizei") int numSegments, @CType("GLfloat") float distance, @CType("GLfloat *") java.lang.foreign.MemorySegment x, @CType("GLfloat *") java.lang.foreign.MemorySegment y, @CType("GLfloat *") java.lang.foreign.MemorySegment tangentX, @CType("GLfloat *") java.lang.foreign.MemorySegment tangentY) { - try { if (!Unmarshal.isNullPointer(PFN_glPointAlongPathNV)) + if (!Unmarshal.isNullPointer(PFN_glPointAlongPathNV)) { try { return (boolean) MH_glPointAlongPathNV.invokeExact(PFN_glPointAlongPathNV, path, startSegment, numSegments, distance, x, y, tangentX, tangentY); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glPointAlongPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointAlongPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointAlongPathNV"); } } public void MatrixLoad3x2fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoad3x2fNV)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoad3x2fNV)) { try { MH_glMatrixLoad3x2fNV.invokeExact(PFN_glMatrixLoad3x2fNV, matrixMode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoad3x2fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoad3x2fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoad3x2fNV"); } } public void MatrixLoad3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoad3x3fNV)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoad3x3fNV)) { try { MH_glMatrixLoad3x3fNV.invokeExact(PFN_glMatrixLoad3x3fNV, matrixMode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoad3x3fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoad3x3fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoad3x3fNV"); } } public void MatrixLoadTranspose3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTranspose3x3fNV)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTranspose3x3fNV)) { try { MH_glMatrixLoadTranspose3x3fNV.invokeExact(PFN_glMatrixLoadTranspose3x3fNV, matrixMode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTranspose3x3fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTranspose3x3fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadTranspose3x3fNV"); } } public void MatrixMult3x2fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMult3x2fNV)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMult3x2fNV)) { try { MH_glMatrixMult3x2fNV.invokeExact(PFN_glMatrixMult3x2fNV, matrixMode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMult3x2fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMult3x2fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMult3x2fNV"); } } public void MatrixMult3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMult3x3fNV)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMult3x3fNV)) { try { MH_glMatrixMult3x3fNV.invokeExact(PFN_glMatrixMult3x3fNV, matrixMode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMult3x3fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMult3x3fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMult3x3fNV"); } } public void MatrixMultTranspose3x3fNV(@CType("GLenum") int matrixMode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTranspose3x3fNV)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultTranspose3x3fNV)) { try { MH_glMatrixMultTranspose3x3fNV.invokeExact(PFN_glMatrixMultTranspose3x3fNV, matrixMode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTranspose3x3fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTranspose3x3fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultTranspose3x3fNV"); } } public void StencilThenCoverFillPathNV(@CType("GLuint") int path, @CType("GLenum") int fillMode, @CType("GLuint") int mask, @CType("GLenum") int coverMode) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverFillPathNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverFillPathNV)) { try { MH_glStencilThenCoverFillPathNV.invokeExact(PFN_glStencilThenCoverFillPathNV, path, fillMode, mask, coverMode); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverFillPathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverFillPathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilThenCoverFillPathNV"); } } public void StencilThenCoverStrokePathNV(@CType("GLuint") int path, @CType("GLint") int reference, @CType("GLuint") int mask, @CType("GLenum") int coverMode) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverStrokePathNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverStrokePathNV)) { try { MH_glStencilThenCoverStrokePathNV.invokeExact(PFN_glStencilThenCoverStrokePathNV, path, reference, mask, coverMode); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverStrokePathNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverStrokePathNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilThenCoverStrokePathNV"); } } public void StencilThenCoverFillPathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLenum") int fillMode, @CType("GLuint") int mask, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverFillPathInstancedNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverFillPathInstancedNV)) { try { MH_glStencilThenCoverFillPathInstancedNV.invokeExact(PFN_glStencilThenCoverFillPathInstancedNV, numPaths, pathNameType, paths, pathBase, fillMode, mask, coverMode, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverFillPathInstancedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverFillPathInstancedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilThenCoverFillPathInstancedNV"); } } public void StencilThenCoverStrokePathInstancedNV(@CType("GLsizei") int numPaths, @CType("GLenum") int pathNameType, @CType("const void *") java.lang.foreign.MemorySegment paths, @CType("GLuint") int pathBase, @CType("GLint") int reference, @CType("GLuint") int mask, @CType("GLenum") int coverMode, @CType("GLenum") int transformType, @CType("const GLfloat *") java.lang.foreign.MemorySegment transformValues) { - try { if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverStrokePathInstancedNV)) + if (!Unmarshal.isNullPointer(PFN_glStencilThenCoverStrokePathInstancedNV)) { try { MH_glStencilThenCoverStrokePathInstancedNV.invokeExact(PFN_glStencilThenCoverStrokePathInstancedNV, numPaths, pathNameType, paths, pathBase, reference, mask, coverMode, transformType, transformValues); - } - catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverStrokePathInstancedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStencilThenCoverStrokePathInstancedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStencilThenCoverStrokePathInstancedNV"); } } public @CType("GLenum") int PathGlyphIndexRangeNV(@CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale, @CType("GLuint *") java.lang.foreign.MemorySegment baseAndCount) { - try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphIndexRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glPathGlyphIndexRangeNV)) { try { return (int) MH_glPathGlyphIndexRangeNV.invokeExact(PFN_glPathGlyphIndexRangeNV, fontTarget, fontName, fontStyle, pathParameterTemplate, emScale, baseAndCount); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glPathGlyphIndexRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathGlyphIndexRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathGlyphIndexRangeNV"); } } public @CType("GLenum") int PathGlyphIndexArrayNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("const void *") java.lang.foreign.MemorySegment fontName, @CType("GLbitfield") int fontStyle, @CType("GLuint") int firstGlyphIndex, @CType("GLsizei") int numGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { - try { if (!Unmarshal.isNullPointer(PFN_glPathGlyphIndexArrayNV)) + if (!Unmarshal.isNullPointer(PFN_glPathGlyphIndexArrayNV)) { try { return (int) MH_glPathGlyphIndexArrayNV.invokeExact(PFN_glPathGlyphIndexArrayNV, firstPathName, fontTarget, fontName, fontStyle, firstGlyphIndex, numGlyphs, pathParameterTemplate, emScale); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glPathGlyphIndexArrayNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathGlyphIndexArrayNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathGlyphIndexArrayNV"); } } public @CType("GLenum") int PathMemoryGlyphIndexArrayNV(@CType("GLuint") int firstPathName, @CType("GLenum") int fontTarget, @CType("GLsizeiptr") long fontSize, @CType("const void *") java.lang.foreign.MemorySegment fontData, @CType("GLsizei") int faceIndex, @CType("GLuint") int firstGlyphIndex, @CType("GLsizei") int numGlyphs, @CType("GLuint") int pathParameterTemplate, @CType("GLfloat") float emScale) { - try { if (!Unmarshal.isNullPointer(PFN_glPathMemoryGlyphIndexArrayNV)) + if (!Unmarshal.isNullPointer(PFN_glPathMemoryGlyphIndexArrayNV)) { try { return (int) MH_glPathMemoryGlyphIndexArrayNV.invokeExact(PFN_glPathMemoryGlyphIndexArrayNV, firstPathName, fontTarget, fontSize, fontData, faceIndex, firstGlyphIndex, numGlyphs, pathParameterTemplate, emScale); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glPathMemoryGlyphIndexArrayNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathMemoryGlyphIndexArrayNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathMemoryGlyphIndexArrayNV"); } } public void ProgramPathFragmentInputGenNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLenum") int genMode, @CType("GLint") int components, @CType("const GLfloat *") java.lang.foreign.MemorySegment coeffs) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramPathFragmentInputGenNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramPathFragmentInputGenNV)) { try { MH_glProgramPathFragmentInputGenNV.invokeExact(PFN_glProgramPathFragmentInputGenNV, program, location, genMode, components, coeffs); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramPathFragmentInputGenNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramPathFragmentInputGenNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramPathFragmentInputGenNV"); } } public void GetProgramResourcefvNV(@CType("GLuint") int program, @CType("GLenum") int programInterface, @CType("GLuint") int index, @CType("GLsizei") int propCount, @CType("const GLenum *") java.lang.foreign.MemorySegment props, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramResourcefvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramResourcefvNV)) { try { MH_glGetProgramResourcefvNV.invokeExact(PFN_glGetProgramResourcefvNV, program, programInterface, index, propCount, props, count, length, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourcefvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramResourcefvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramResourcefvNV"); } } public void PathColorGenNV(@CType("GLenum") int color, @CType("GLenum") int genMode, @CType("GLenum") int colorFormat, @CType("const GLfloat *") java.lang.foreign.MemorySegment coeffs) { - try { if (!Unmarshal.isNullPointer(PFN_glPathColorGenNV)) + if (!Unmarshal.isNullPointer(PFN_glPathColorGenNV)) { try { MH_glPathColorGenNV.invokeExact(PFN_glPathColorGenNV, color, genMode, colorFormat, coeffs); - } - catch (Throwable e) { throw new RuntimeException("error in glPathColorGenNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathColorGenNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathColorGenNV"); } } public void PathTexGenNV(@CType("GLenum") int texCoordSet, @CType("GLenum") int genMode, @CType("GLint") int components, @CType("const GLfloat *") java.lang.foreign.MemorySegment coeffs) { - try { if (!Unmarshal.isNullPointer(PFN_glPathTexGenNV)) + if (!Unmarshal.isNullPointer(PFN_glPathTexGenNV)) { try { MH_glPathTexGenNV.invokeExact(PFN_glPathTexGenNV, texCoordSet, genMode, components, coeffs); - } - catch (Throwable e) { throw new RuntimeException("error in glPathTexGenNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathTexGenNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathTexGenNV"); } } public void PathFogGenNV(@CType("GLenum") int genMode) { - try { if (!Unmarshal.isNullPointer(PFN_glPathFogGenNV)) + if (!Unmarshal.isNullPointer(PFN_glPathFogGenNV)) { try { MH_glPathFogGenNV.invokeExact(PFN_glPathFogGenNV, genMode); - } - catch (Throwable e) { throw new RuntimeException("error in glPathFogGenNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPathFogGenNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPathFogGenNV"); } } public void GetPathColorGenivNV(@CType("GLenum") int color, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathColorGenivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathColorGenivNV)) { try { MH_glGetPathColorGenivNV.invokeExact(PFN_glGetPathColorGenivNV, color, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathColorGenivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathColorGenivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathColorGenivNV"); } } public void GetPathColorGenfvNV(@CType("GLenum") int color, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathColorGenfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathColorGenfvNV)) { try { MH_glGetPathColorGenfvNV.invokeExact(PFN_glGetPathColorGenfvNV, color, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathColorGenfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathColorGenfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathColorGenfvNV"); } } public void GetPathTexGenivNV(@CType("GLenum") int texCoordSet, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathTexGenivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathTexGenivNV)) { try { MH_glGetPathTexGenivNV.invokeExact(PFN_glGetPathTexGenivNV, texCoordSet, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathTexGenivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathTexGenivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathTexGenivNV"); } } public void GetPathTexGenfvNV(@CType("GLenum") int texCoordSet, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPathTexGenfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetPathTexGenfvNV)) { try { MH_glGetPathTexGenfvNV.invokeExact(PFN_glGetPathTexGenfvNV, texCoordSet, pname, value); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPathTexGenfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPathTexGenfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPathTexGenfvNV"); } } public void MatrixFrustumEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixFrustumEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixFrustumEXT)) { try { MH_glMatrixFrustumEXT.invokeExact(PFN_glMatrixFrustumEXT, mode, left, right, bottom, top, zNear, zFar); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixFrustumEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixFrustumEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixFrustumEXT"); } } public void MatrixLoadIdentityEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadIdentityEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadIdentityEXT)) { try { MH_glMatrixLoadIdentityEXT.invokeExact(PFN_glMatrixLoadIdentityEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadIdentityEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadIdentityEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadIdentityEXT"); } } public void MatrixLoadTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposefEXT)) { try { MH_glMatrixLoadTransposefEXT.invokeExact(PFN_glMatrixLoadTransposefEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadTransposefEXT"); } } public void MatrixLoadTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadTransposedEXT)) { try { MH_glMatrixLoadTransposedEXT.invokeExact(PFN_glMatrixLoadTransposedEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadTransposedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadTransposedEXT"); } } public void MatrixLoadfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoadfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoadfEXT)) { try { MH_glMatrixLoadfEXT.invokeExact(PFN_glMatrixLoadfEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoadfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoadfEXT"); } } public void MatrixLoaddEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixLoaddEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixLoaddEXT)) { try { MH_glMatrixLoaddEXT.invokeExact(PFN_glMatrixLoaddEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixLoaddEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixLoaddEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixLoaddEXT"); } } public void MatrixMultTransposefEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposefEXT)) { try { MH_glMatrixMultTransposefEXT.invokeExact(PFN_glMatrixMultTransposefEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultTransposefEXT"); } } public void MatrixMultTransposedEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultTransposedEXT)) { try { MH_glMatrixMultTransposedEXT.invokeExact(PFN_glMatrixMultTransposedEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultTransposedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultTransposedEXT"); } } public void MatrixMultfEXT(@CType("GLenum") int mode, @CType("const GLfloat *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultfEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultfEXT)) { try { MH_glMatrixMultfEXT.invokeExact(PFN_glMatrixMultfEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultfEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultfEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultfEXT"); } } public void MatrixMultdEXT(@CType("GLenum") int mode, @CType("const GLdouble *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixMultdEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixMultdEXT)) { try { MH_glMatrixMultdEXT.invokeExact(PFN_glMatrixMultdEXT, mode, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixMultdEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixMultdEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixMultdEXT"); } } public void MatrixOrthoEXT(@CType("GLenum") int mode, @CType("GLdouble") double left, @CType("GLdouble") double right, @CType("GLdouble") double bottom, @CType("GLdouble") double top, @CType("GLdouble") double zNear, @CType("GLdouble") double zFar) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixOrthoEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixOrthoEXT)) { try { MH_glMatrixOrthoEXT.invokeExact(PFN_glMatrixOrthoEXT, mode, left, right, bottom, top, zNear, zFar); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixOrthoEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixOrthoEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixOrthoEXT"); } } public void MatrixPopEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixPopEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixPopEXT)) { try { MH_glMatrixPopEXT.invokeExact(PFN_glMatrixPopEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixPopEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixPopEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixPopEXT"); } } public void MatrixPushEXT(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixPushEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixPushEXT)) { try { MH_glMatrixPushEXT.invokeExact(PFN_glMatrixPushEXT, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixPushEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixPushEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixPushEXT"); } } public void MatrixRotatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float angle, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixRotatefEXT)) { try { MH_glMatrixRotatefEXT.invokeExact(PFN_glMatrixRotatefEXT, mode, angle, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixRotatefEXT"); } } public void MatrixRotatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double angle, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixRotatedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixRotatedEXT)) { try { MH_glMatrixRotatedEXT.invokeExact(PFN_glMatrixRotatedEXT, mode, angle, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixRotatedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixRotatedEXT"); } } public void MatrixScalefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixScalefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixScalefEXT)) { try { MH_glMatrixScalefEXT.invokeExact(PFN_glMatrixScalefEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixScalefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixScalefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixScalefEXT"); } } public void MatrixScaledEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixScaledEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixScaledEXT)) { try { MH_glMatrixScaledEXT.invokeExact(PFN_glMatrixScaledEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixScaledEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixScaledEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixScaledEXT"); } } public void MatrixTranslatefEXT(@CType("GLenum") int mode, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatefEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatefEXT)) { try { MH_glMatrixTranslatefEXT.invokeExact(PFN_glMatrixTranslatefEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatefEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatefEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixTranslatefEXT"); } } public void MatrixTranslatedEXT(@CType("GLenum") int mode, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatedEXT)) + if (!Unmarshal.isNullPointer(PFN_glMatrixTranslatedEXT)) { try { MH_glMatrixTranslatedEXT.invokeExact(PFN_glMatrixTranslatedEXT, mode, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatedEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMatrixTranslatedEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMatrixTranslatedEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java index 3d54b9a8..f2773018 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPixelDataRange.java @@ -41,17 +41,17 @@ public GLNVPixelDataRange(overrungl.opengl.GLLoadFunc func) { } public void PixelDataRangeNV(@CType("GLenum") int target, @CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelDataRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glPixelDataRangeNV)) { try { MH_glPixelDataRangeNV.invokeExact(PFN_glPixelDataRangeNV, target, length, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelDataRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelDataRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelDataRangeNV"); } } public void FlushPixelDataRangeNV(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glFlushPixelDataRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glFlushPixelDataRangeNV)) { try { MH_glFlushPixelDataRangeNV.invokeExact(PFN_glFlushPixelDataRangeNV, target); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushPixelDataRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushPixelDataRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushPixelDataRangeNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java index ce5ece60..376ce2ea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPointSprite.java @@ -38,17 +38,17 @@ public GLNVPointSprite(overrungl.opengl.GLLoadFunc func) { } public void PointParameteriNV(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameteriNV)) + if (!Unmarshal.isNullPointer(PFN_glPointParameteriNV)) { try { MH_glPointParameteriNV.invokeExact(PFN_glPointParameteriNV, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameteriNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameteriNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameteriNV"); } } public void PointParameterivNV(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterivNV)) { try { MH_glPointParameterivNV.invokeExact(PFN_glPointParameterivNV, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java index e8e55b64..e0059b5d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPresentVideo.java @@ -53,45 +53,45 @@ public GLNVPresentVideo(overrungl.opengl.GLLoadFunc func) { } public void PresentFrameKeyedNV(@CType("GLuint") int video_slot, @CType("GLuint64EXT") long minPresentTime, @CType("GLuint") int beginPresentTimeId, @CType("GLuint") int presentDurationId, @CType("GLenum") int type, @CType("GLenum") int target0, @CType("GLuint") int fill0, @CType("GLuint") int key0, @CType("GLenum") int target1, @CType("GLuint") int fill1, @CType("GLuint") int key1) { - try { if (!Unmarshal.isNullPointer(PFN_glPresentFrameKeyedNV)) + if (!Unmarshal.isNullPointer(PFN_glPresentFrameKeyedNV)) { try { MH_glPresentFrameKeyedNV.invokeExact(PFN_glPresentFrameKeyedNV, video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, key0, target1, fill1, key1); - } - catch (Throwable e) { throw new RuntimeException("error in glPresentFrameKeyedNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPresentFrameKeyedNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPresentFrameKeyedNV"); } } public void PresentFrameDualFillNV(@CType("GLuint") int video_slot, @CType("GLuint64EXT") long minPresentTime, @CType("GLuint") int beginPresentTimeId, @CType("GLuint") int presentDurationId, @CType("GLenum") int type, @CType("GLenum") int target0, @CType("GLuint") int fill0, @CType("GLenum") int target1, @CType("GLuint") int fill1, @CType("GLenum") int target2, @CType("GLuint") int fill2, @CType("GLenum") int target3, @CType("GLuint") int fill3) { - try { if (!Unmarshal.isNullPointer(PFN_glPresentFrameDualFillNV)) + if (!Unmarshal.isNullPointer(PFN_glPresentFrameDualFillNV)) { try { MH_glPresentFrameDualFillNV.invokeExact(PFN_glPresentFrameDualFillNV, video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, target1, fill1, target2, fill2, target3, fill3); - } - catch (Throwable e) { throw new RuntimeException("error in glPresentFrameDualFillNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPresentFrameDualFillNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPresentFrameDualFillNV"); } } public void GetVideoivNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoivNV)) { try { MH_glGetVideoivNV.invokeExact(PFN_glGetVideoivNV, video_slot, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoivNV"); } } public void GetVideouivNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideouivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideouivNV)) { try { MH_glGetVideouivNV.invokeExact(PFN_glGetVideouivNV, video_slot, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideouivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideouivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideouivNV"); } } public void GetVideoi64vNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoi64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoi64vNV)) { try { MH_glGetVideoi64vNV.invokeExact(PFN_glGetVideoi64vNV, video_slot, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoi64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoi64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoi64vNV"); } } public void GetVideoui64vNV(@CType("GLuint") int video_slot, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoui64vNV)) { try { MH_glGetVideoui64vNV.invokeExact(PFN_glGetVideoui64vNV, video_slot, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoui64vNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java index e296176c..1eba870c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVPrimitiveRestart.java @@ -37,17 +37,17 @@ public GLNVPrimitiveRestart(overrungl.opengl.GLLoadFunc func) { } public void PrimitiveRestartNV() { - try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartNV)) + if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartNV)) { try { MH_glPrimitiveRestartNV.invokeExact(PFN_glPrimitiveRestartNV); - } - catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPrimitiveRestartNV"); } } public void PrimitiveRestartIndexNV(@CType("GLuint") int index) { - try { if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartIndexNV)) + if (!Unmarshal.isNullPointer(PFN_glPrimitiveRestartIndexNV)) { try { MH_glPrimitiveRestartIndexNV.invokeExact(PFN_glPrimitiveRestartIndexNV, index); - } - catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartIndexNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPrimitiveRestartIndexNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPrimitiveRestartIndexNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java index 7f3a5fc2..7c0227f9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResource.java @@ -38,11 +38,10 @@ public GLNVQueryResource(overrungl.opengl.GLLoadFunc func) { } public @CType("GLint") int QueryResourceNV(@CType("GLenum") int queryType, @CType("GLint") int tagId, @CType("GLuint") int count, @CType("GLint *") java.lang.foreign.MemorySegment buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glQueryResourceNV)) + if (!Unmarshal.isNullPointer(PFN_glQueryResourceNV)) { try { return (int) MH_glQueryResourceNV.invokeExact(PFN_glQueryResourceNV, queryType, tagId, count, buffer); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glQueryResourceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glQueryResourceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glQueryResourceNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java index 5c0d6b44..61aa23ac 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVQueryResourceTag.java @@ -38,24 +38,24 @@ public GLNVQueryResourceTag(overrungl.opengl.GLLoadFunc func) { } public void GenQueryResourceTagNV(@CType("GLsizei") int n, @CType("GLint *") java.lang.foreign.MemorySegment tagIds) { - try { if (!Unmarshal.isNullPointer(PFN_glGenQueryResourceTagNV)) + if (!Unmarshal.isNullPointer(PFN_glGenQueryResourceTagNV)) { try { MH_glGenQueryResourceTagNV.invokeExact(PFN_glGenQueryResourceTagNV, n, tagIds); - } - catch (Throwable e) { throw new RuntimeException("error in glGenQueryResourceTagNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenQueryResourceTagNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenQueryResourceTagNV"); } } public void DeleteQueryResourceTagNV(@CType("GLsizei") int n, @CType("const GLint *") java.lang.foreign.MemorySegment tagIds) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteQueryResourceTagNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteQueryResourceTagNV)) { try { MH_glDeleteQueryResourceTagNV.invokeExact(PFN_glDeleteQueryResourceTagNV, n, tagIds); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteQueryResourceTagNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteQueryResourceTagNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteQueryResourceTagNV"); } } public void QueryResourceTagNV(@CType("GLint") int tagId, @CType("const GLchar *") java.lang.foreign.MemorySegment tagString) { - try { if (!Unmarshal.isNullPointer(PFN_glQueryResourceTagNV)) + if (!Unmarshal.isNullPointer(PFN_glQueryResourceTagNV)) { try { MH_glQueryResourceTagNV.invokeExact(PFN_glQueryResourceTagNV, tagId, tagString); - } - catch (Throwable e) { throw new RuntimeException("error in glQueryResourceTagNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glQueryResourceTagNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glQueryResourceTagNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java index e6f11c8a..de0918ba 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners.java @@ -124,94 +124,94 @@ public GLNVRegisterCombiners(overrungl.opengl.GLLoadFunc func) { } public void CombinerParameterfvNV(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerParameterfvNV)) { try { MH_glCombinerParameterfvNV.invokeExact(PFN_glCombinerParameterfvNV, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerParameterfvNV"); } } public void CombinerParameterfNV(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameterfNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerParameterfNV)) { try { MH_glCombinerParameterfNV.invokeExact(PFN_glCombinerParameterfNV, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterfNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterfNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerParameterfNV"); } } public void CombinerParameterivNV(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerParameterivNV)) { try { MH_glCombinerParameterivNV.invokeExact(PFN_glCombinerParameterivNV, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerParameterivNV"); } } public void CombinerParameteriNV(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerParameteriNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerParameteriNV)) { try { MH_glCombinerParameteriNV.invokeExact(PFN_glCombinerParameteriNV, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerParameteriNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerParameteriNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerParameteriNV"); } } public void CombinerInputNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int variable, @CType("GLenum") int input, @CType("GLenum") int mapping, @CType("GLenum") int componentUsage) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerInputNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerInputNV)) { try { MH_glCombinerInputNV.invokeExact(PFN_glCombinerInputNV, stage, portion, variable, input, mapping, componentUsage); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerInputNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerInputNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerInputNV"); } } public void CombinerOutputNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int abOutput, @CType("GLenum") int cdOutput, @CType("GLenum") int sumOutput, @CType("GLenum") int scale, @CType("GLenum") int bias, @CType("GLboolean") boolean abDotProduct, @CType("GLboolean") boolean cdDotProduct, @CType("GLboolean") boolean muxSum) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerOutputNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerOutputNV)) { try { MH_glCombinerOutputNV.invokeExact(PFN_glCombinerOutputNV, stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerOutputNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerOutputNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerOutputNV"); } } public void FinalCombinerInputNV(@CType("GLenum") int variable, @CType("GLenum") int input, @CType("GLenum") int mapping, @CType("GLenum") int componentUsage) { - try { if (!Unmarshal.isNullPointer(PFN_glFinalCombinerInputNV)) + if (!Unmarshal.isNullPointer(PFN_glFinalCombinerInputNV)) { try { MH_glFinalCombinerInputNV.invokeExact(PFN_glFinalCombinerInputNV, variable, input, mapping, componentUsage); - } - catch (Throwable e) { throw new RuntimeException("error in glFinalCombinerInputNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinalCombinerInputNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinalCombinerInputNV"); } } public void GetCombinerInputParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerInputParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCombinerInputParameterfvNV)) { try { MH_glGetCombinerInputParameterfvNV.invokeExact(PFN_glGetCombinerInputParameterfvNV, stage, portion, variable, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCombinerInputParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCombinerInputParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCombinerInputParameterfvNV"); } } public void GetCombinerInputParameterivNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerInputParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCombinerInputParameterivNV)) { try { MH_glGetCombinerInputParameterivNV.invokeExact(PFN_glGetCombinerInputParameterivNV, stage, portion, variable, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCombinerInputParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCombinerInputParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCombinerInputParameterivNV"); } } public void GetCombinerOutputParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerOutputParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCombinerOutputParameterfvNV)) { try { MH_glGetCombinerOutputParameterfvNV.invokeExact(PFN_glGetCombinerOutputParameterfvNV, stage, portion, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCombinerOutputParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCombinerOutputParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCombinerOutputParameterfvNV"); } } public void GetCombinerOutputParameterivNV(@CType("GLenum") int stage, @CType("GLenum") int portion, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerOutputParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCombinerOutputParameterivNV)) { try { MH_glGetCombinerOutputParameterivNV.invokeExact(PFN_glGetCombinerOutputParameterivNV, stage, portion, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCombinerOutputParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCombinerOutputParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCombinerOutputParameterivNV"); } } public void GetFinalCombinerInputParameterfvNV(@CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFinalCombinerInputParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetFinalCombinerInputParameterfvNV)) { try { MH_glGetFinalCombinerInputParameterfvNV.invokeExact(PFN_glGetFinalCombinerInputParameterfvNV, variable, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFinalCombinerInputParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFinalCombinerInputParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFinalCombinerInputParameterfvNV"); } } public void GetFinalCombinerInputParameterivNV(@CType("GLenum") int variable, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFinalCombinerInputParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetFinalCombinerInputParameterivNV)) { try { MH_glGetFinalCombinerInputParameterivNV.invokeExact(PFN_glGetFinalCombinerInputParameterivNV, variable, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFinalCombinerInputParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFinalCombinerInputParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFinalCombinerInputParameterivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java index 21bc437a..63331b5f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVRegisterCombiners2.java @@ -36,17 +36,17 @@ public GLNVRegisterCombiners2(overrungl.opengl.GLLoadFunc func) { } public void CombinerStageParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glCombinerStageParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glCombinerStageParameterfvNV)) { try { MH_glCombinerStageParameterfvNV.invokeExact(PFN_glCombinerStageParameterfvNV, stage, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glCombinerStageParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCombinerStageParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCombinerStageParameterfvNV"); } } public void GetCombinerStageParameterfvNV(@CType("GLenum") int stage, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetCombinerStageParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetCombinerStageParameterfvNV)) { try { MH_glGetCombinerStageParameterfvNV.invokeExact(PFN_glGetCombinerStageParameterfvNV, stage, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetCombinerStageParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetCombinerStageParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetCombinerStageParameterfvNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java index 79d3d2ff..0d330225 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVSampleLocations.java @@ -46,24 +46,24 @@ public GLNVSampleLocations(overrungl.opengl.GLLoadFunc func) { } public void FramebufferSampleLocationsfvNV(@CType("GLenum") int target, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferSampleLocationsfvNV)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferSampleLocationsfvNV)) { try { MH_glFramebufferSampleLocationsfvNV.invokeExact(PFN_glFramebufferSampleLocationsfvNV, target, start, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferSampleLocationsfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferSampleLocationsfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferSampleLocationsfvNV"); } } public void NamedFramebufferSampleLocationsfvNV(@CType("GLuint") int framebuffer, @CType("GLuint") int start, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSampleLocationsfvNV)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferSampleLocationsfvNV)) { try { MH_glNamedFramebufferSampleLocationsfvNV.invokeExact(PFN_glNamedFramebufferSampleLocationsfvNV, framebuffer, start, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSampleLocationsfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferSampleLocationsfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferSampleLocationsfvNV"); } } public void ResolveDepthValuesNV() { - try { if (!Unmarshal.isNullPointer(PFN_glResolveDepthValuesNV)) + if (!Unmarshal.isNullPointer(PFN_glResolveDepthValuesNV)) { try { MH_glResolveDepthValuesNV.invokeExact(PFN_glResolveDepthValuesNV); - } - catch (Throwable e) { throw new RuntimeException("error in glResolveDepthValuesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResolveDepthValuesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResolveDepthValuesNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java index 2360e9f1..598b35d5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVScissorExclusive.java @@ -37,17 +37,17 @@ public GLNVScissorExclusive(overrungl.opengl.GLLoadFunc func) { } public void ScissorExclusiveNV(@CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width, @CType("GLsizei") int height) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorExclusiveNV)) + if (!Unmarshal.isNullPointer(PFN_glScissorExclusiveNV)) { try { MH_glScissorExclusiveNV.invokeExact(PFN_glScissorExclusiveNV, x, y, width, height); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorExclusiveNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorExclusiveNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorExclusiveNV"); } } public void ScissorExclusiveArrayvNV(@CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glScissorExclusiveArrayvNV)) + if (!Unmarshal.isNullPointer(PFN_glScissorExclusiveArrayvNV)) { try { MH_glScissorExclusiveArrayvNV.invokeExact(PFN_glScissorExclusiveArrayvNV, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glScissorExclusiveArrayvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScissorExclusiveArrayvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScissorExclusiveArrayvNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java index 6ee93a4d..8445788e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShaderBufferLoad.java @@ -74,103 +74,101 @@ public GLNVShaderBufferLoad(overrungl.opengl.GLLoadFunc func) { } public void MakeBufferResidentNV(@CType("GLenum") int target, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeBufferResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeBufferResidentNV)) { try { MH_glMakeBufferResidentNV.invokeExact(PFN_glMakeBufferResidentNV, target, access); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeBufferResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeBufferResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeBufferResidentNV"); } } public void MakeBufferNonResidentNV(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeBufferNonResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeBufferNonResidentNV)) { try { MH_glMakeBufferNonResidentNV.invokeExact(PFN_glMakeBufferNonResidentNV, target); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeBufferNonResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeBufferNonResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeBufferNonResidentNV"); } } public @CType("GLboolean") boolean IsBufferResidentNV(@CType("GLenum") int target) { - try { if (!Unmarshal.isNullPointer(PFN_glIsBufferResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glIsBufferResidentNV)) { try { return (boolean) MH_glIsBufferResidentNV.invokeExact(PFN_glIsBufferResidentNV, target); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsBufferResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsBufferResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsBufferResidentNV"); } } public void MakeNamedBufferResidentNV(@CType("GLuint") int buffer, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeNamedBufferResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeNamedBufferResidentNV)) { try { MH_glMakeNamedBufferResidentNV.invokeExact(PFN_glMakeNamedBufferResidentNV, buffer, access); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeNamedBufferResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeNamedBufferResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeNamedBufferResidentNV"); } } public void MakeNamedBufferNonResidentNV(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glMakeNamedBufferNonResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glMakeNamedBufferNonResidentNV)) { try { MH_glMakeNamedBufferNonResidentNV.invokeExact(PFN_glMakeNamedBufferNonResidentNV, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glMakeNamedBufferNonResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMakeNamedBufferNonResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMakeNamedBufferNonResidentNV"); } } public @CType("GLboolean") boolean IsNamedBufferResidentNV(@CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glIsNamedBufferResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glIsNamedBufferResidentNV)) { try { return (boolean) MH_glIsNamedBufferResidentNV.invokeExact(PFN_glIsNamedBufferResidentNV, buffer); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsNamedBufferResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsNamedBufferResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsNamedBufferResidentNV"); } } public void GetBufferParameterui64vNV(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetBufferParameterui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetBufferParameterui64vNV)) { try { MH_glGetBufferParameterui64vNV.invokeExact(PFN_glGetBufferParameterui64vNV, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameterui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetBufferParameterui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetBufferParameterui64vNV"); } } public void GetNamedBufferParameterui64vNV(@CType("GLuint") int buffer, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameterui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetNamedBufferParameterui64vNV)) { try { MH_glGetNamedBufferParameterui64vNV.invokeExact(PFN_glGetNamedBufferParameterui64vNV, buffer, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameterui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetNamedBufferParameterui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetNamedBufferParameterui64vNV"); } } public void GetIntegerui64vNV(@CType("GLenum") int value, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment result) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegerui64vNV)) { try { MH_glGetIntegerui64vNV.invokeExact(PFN_glGetIntegerui64vNV, value, result); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegerui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegerui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegerui64vNV"); } } public void Uniformui64NV(@CType("GLint") int location, @CType("GLuint64EXT") long value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformui64NV)) + if (!Unmarshal.isNullPointer(PFN_glUniformui64NV)) { try { MH_glUniformui64NV.invokeExact(PFN_glUniformui64NV, location, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformui64NV"); } } public void Uniformui64vNV(@CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glUniformui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glUniformui64vNV)) { try { MH_glUniformui64vNV.invokeExact(PFN_glUniformui64vNV, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glUniformui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUniformui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUniformui64vNV"); } } public void GetUniformui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetUniformui64vNV)) { try { MH_glGetUniformui64vNV.invokeExact(PFN_glGetUniformui64vNV, program, location, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetUniformui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetUniformui64vNV"); } } public void ProgramUniformui64NV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLuint64EXT") long value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformui64NV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformui64NV)) { try { MH_glProgramUniformui64NV.invokeExact(PFN_glProgramUniformui64NV, program, location, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformui64NV"); } } public void ProgramUniformui64vNV(@CType("GLuint") int program, @CType("GLint") int location, @CType("GLsizei") int count, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment value) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramUniformui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramUniformui64vNV)) { try { MH_glProgramUniformui64vNV.invokeExact(PFN_glProgramUniformui64vNV, program, location, count, value); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramUniformui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramUniformui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramUniformui64vNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java index 6297a6e4..66c4591a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVShadingRateImage.java @@ -71,52 +71,52 @@ public GLNVShadingRateImage(overrungl.opengl.GLLoadFunc func) { } public void BindShadingRateImageNV(@CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindShadingRateImageNV)) + if (!Unmarshal.isNullPointer(PFN_glBindShadingRateImageNV)) { try { MH_glBindShadingRateImageNV.invokeExact(PFN_glBindShadingRateImageNV, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindShadingRateImageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindShadingRateImageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindShadingRateImageNV"); } } public void GetShadingRateImagePaletteNV(@CType("GLuint") int viewport, @CType("GLuint") int entry, @CType("GLenum *") java.lang.foreign.MemorySegment rate) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShadingRateImagePaletteNV)) + if (!Unmarshal.isNullPointer(PFN_glGetShadingRateImagePaletteNV)) { try { MH_glGetShadingRateImagePaletteNV.invokeExact(PFN_glGetShadingRateImagePaletteNV, viewport, entry, rate); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShadingRateImagePaletteNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShadingRateImagePaletteNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShadingRateImagePaletteNV"); } } public void GetShadingRateSampleLocationivNV(@CType("GLenum") int rate, @CType("GLuint") int samples, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment location) { - try { if (!Unmarshal.isNullPointer(PFN_glGetShadingRateSampleLocationivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetShadingRateSampleLocationivNV)) { try { MH_glGetShadingRateSampleLocationivNV.invokeExact(PFN_glGetShadingRateSampleLocationivNV, rate, samples, index, location); - } - catch (Throwable e) { throw new RuntimeException("error in glGetShadingRateSampleLocationivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetShadingRateSampleLocationivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetShadingRateSampleLocationivNV"); } } public void ShadingRateImageBarrierNV(@CType("GLboolean") boolean synchronize) { - try { if (!Unmarshal.isNullPointer(PFN_glShadingRateImageBarrierNV)) + if (!Unmarshal.isNullPointer(PFN_glShadingRateImageBarrierNV)) { try { MH_glShadingRateImageBarrierNV.invokeExact(PFN_glShadingRateImageBarrierNV, synchronize); - } - catch (Throwable e) { throw new RuntimeException("error in glShadingRateImageBarrierNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShadingRateImageBarrierNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShadingRateImageBarrierNV"); } } public void ShadingRateImagePaletteNV(@CType("GLuint") int viewport, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLenum *") java.lang.foreign.MemorySegment rates) { - try { if (!Unmarshal.isNullPointer(PFN_glShadingRateImagePaletteNV)) + if (!Unmarshal.isNullPointer(PFN_glShadingRateImagePaletteNV)) { try { MH_glShadingRateImagePaletteNV.invokeExact(PFN_glShadingRateImagePaletteNV, viewport, first, count, rates); - } - catch (Throwable e) { throw new RuntimeException("error in glShadingRateImagePaletteNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShadingRateImagePaletteNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShadingRateImagePaletteNV"); } } public void ShadingRateSampleOrderNV(@CType("GLenum") int order) { - try { if (!Unmarshal.isNullPointer(PFN_glShadingRateSampleOrderNV)) + if (!Unmarshal.isNullPointer(PFN_glShadingRateSampleOrderNV)) { try { MH_glShadingRateSampleOrderNV.invokeExact(PFN_glShadingRateSampleOrderNV, order); - } - catch (Throwable e) { throw new RuntimeException("error in glShadingRateSampleOrderNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShadingRateSampleOrderNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShadingRateSampleOrderNV"); } } public void ShadingRateSampleOrderCustomNV(@CType("GLenum") int rate, @CType("GLuint") int samples, @CType("const GLint *") java.lang.foreign.MemorySegment locations) { - try { if (!Unmarshal.isNullPointer(PFN_glShadingRateSampleOrderCustomNV)) + if (!Unmarshal.isNullPointer(PFN_glShadingRateSampleOrderCustomNV)) { try { MH_glShadingRateSampleOrderCustomNV.invokeExact(PFN_glShadingRateSampleOrderCustomNV, rate, samples, locations); - } - catch (Throwable e) { throw new RuntimeException("error in glShadingRateSampleOrderCustomNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glShadingRateSampleOrderCustomNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glShadingRateSampleOrderCustomNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java index ccf199c3..06634241 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureBarrier.java @@ -32,10 +32,10 @@ public GLNVTextureBarrier(overrungl.opengl.GLLoadFunc func) { } public void TextureBarrierNV() { - try { if (!Unmarshal.isNullPointer(PFN_glTextureBarrierNV)) + if (!Unmarshal.isNullPointer(PFN_glTextureBarrierNV)) { try { MH_glTextureBarrierNV.invokeExact(PFN_glTextureBarrierNV); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureBarrierNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureBarrierNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureBarrierNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java index ba4c7f14..8788750f 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTextureMultisample.java @@ -48,45 +48,45 @@ public GLNVTextureMultisample(overrungl.opengl.GLLoadFunc func) { } public void TexImage2DMultisampleCoverageNV(@CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisampleCoverageNV)) + if (!Unmarshal.isNullPointer(PFN_glTexImage2DMultisampleCoverageNV)) { try { MH_glTexImage2DMultisampleCoverageNV.invokeExact(PFN_glTexImage2DMultisampleCoverageNV, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisampleCoverageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage2DMultisampleCoverageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage2DMultisampleCoverageNV"); } } public void TexImage3DMultisampleCoverageNV(@CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisampleCoverageNV)) + if (!Unmarshal.isNullPointer(PFN_glTexImage3DMultisampleCoverageNV)) { try { MH_glTexImage3DMultisampleCoverageNV.invokeExact(PFN_glTexImage3DMultisampleCoverageNV, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisampleCoverageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage3DMultisampleCoverageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage3DMultisampleCoverageNV"); } } public void TextureImage2DMultisampleNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage2DMultisampleNV)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage2DMultisampleNV)) { try { MH_glTextureImage2DMultisampleNV.invokeExact(PFN_glTextureImage2DMultisampleNV, texture, target, samples, internalFormat, width, height, fixedSampleLocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DMultisampleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DMultisampleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage2DMultisampleNV"); } } public void TextureImage3DMultisampleNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int samples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage3DMultisampleNV)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage3DMultisampleNV)) { try { MH_glTextureImage3DMultisampleNV.invokeExact(PFN_glTextureImage3DMultisampleNV, texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DMultisampleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DMultisampleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage3DMultisampleNV"); } } public void TextureImage2DMultisampleCoverageNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLboolean") boolean fixedSampleLocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage2DMultisampleCoverageNV)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage2DMultisampleCoverageNV)) { try { MH_glTextureImage2DMultisampleCoverageNV.invokeExact(PFN_glTextureImage2DMultisampleCoverageNV, texture, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DMultisampleCoverageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage2DMultisampleCoverageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage2DMultisampleCoverageNV"); } } public void TextureImage3DMultisampleCoverageNV(@CType("GLuint") int texture, @CType("GLenum") int target, @CType("GLsizei") int coverageSamples, @CType("GLsizei") int colorSamples, @CType("GLint") int internalFormat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLboolean") boolean fixedSampleLocations) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureImage3DMultisampleCoverageNV)) + if (!Unmarshal.isNullPointer(PFN_glTextureImage3DMultisampleCoverageNV)) { try { MH_glTextureImage3DMultisampleCoverageNV.invokeExact(PFN_glTextureImage3DMultisampleCoverageNV, texture, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DMultisampleCoverageNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureImage3DMultisampleCoverageNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureImage3DMultisampleCoverageNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java index 5c044dfc..7571b833 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTimelineSemaphore.java @@ -43,24 +43,24 @@ public GLNVTimelineSemaphore(overrungl.opengl.GLLoadFunc func) { } public void CreateSemaphoresNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment semaphores) { - try { if (!Unmarshal.isNullPointer(PFN_glCreateSemaphoresNV)) + if (!Unmarshal.isNullPointer(PFN_glCreateSemaphoresNV)) { try { MH_glCreateSemaphoresNV.invokeExact(PFN_glCreateSemaphoresNV, n, semaphores); - } - catch (Throwable e) { throw new RuntimeException("error in glCreateSemaphoresNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateSemaphoresNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateSemaphoresNV"); } } public void SemaphoreParameterivNV(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glSemaphoreParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glSemaphoreParameterivNV)) { try { MH_glSemaphoreParameterivNV.invokeExact(PFN_glSemaphoreParameterivNV, semaphore, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glSemaphoreParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSemaphoreParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSemaphoreParameterivNV"); } } public void GetSemaphoreParameterivNV(@CType("GLuint") int semaphore, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSemaphoreParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetSemaphoreParameterivNV)) { try { MH_glGetSemaphoreParameterivNV.invokeExact(PFN_glGetSemaphoreParameterivNV, semaphore, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSemaphoreParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSemaphoreParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSemaphoreParameterivNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java index e5a6ff5e..585019bb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback.java @@ -95,88 +95,87 @@ public GLNVTransformFeedback(overrungl.opengl.GLLoadFunc func) { } public void BeginTransformFeedbackNV(@CType("GLenum") int primitiveMode) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glBeginTransformFeedbackNV)) { try { MH_glBeginTransformFeedbackNV.invokeExact(PFN_glBeginTransformFeedbackNV, primitiveMode); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginTransformFeedbackNV"); } } public void EndTransformFeedbackNV() { - try { if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glEndTransformFeedbackNV)) { try { MH_glEndTransformFeedbackNV.invokeExact(PFN_glEndTransformFeedbackNV); - } - catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndTransformFeedbackNV"); } } public void TransformFeedbackAttribsNV(@CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment attribs, @CType("GLenum") int bufferMode) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackAttribsNV)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackAttribsNV)) { try { MH_glTransformFeedbackAttribsNV.invokeExact(PFN_glTransformFeedbackAttribsNV, count, attribs, bufferMode); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackAttribsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackAttribsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackAttribsNV"); } } public void BindBufferRangeNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferRangeNV)) { try { MH_glBindBufferRangeNV.invokeExact(PFN_glBindBufferRangeNV, target, index, buffer, offset, size); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferRangeNV"); } } public void BindBufferOffsetNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer, @CType("GLintptr") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferOffsetNV)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferOffsetNV)) { try { MH_glBindBufferOffsetNV.invokeExact(PFN_glBindBufferOffsetNV, target, index, buffer, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferOffsetNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferOffsetNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferOffsetNV"); } } public void BindBufferBaseNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLuint") int buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glBindBufferBaseNV)) + if (!Unmarshal.isNullPointer(PFN_glBindBufferBaseNV)) { try { MH_glBindBufferBaseNV.invokeExact(PFN_glBindBufferBaseNV, target, index, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glBindBufferBaseNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindBufferBaseNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindBufferBaseNV"); } } public void TransformFeedbackVaryingsNV(@CType("GLuint") int program, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment locations, @CType("GLenum") int bufferMode) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryingsNV)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackVaryingsNV)) { try { MH_glTransformFeedbackVaryingsNV.invokeExact(PFN_glTransformFeedbackVaryingsNV, program, count, locations, bufferMode); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryingsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackVaryingsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackVaryingsNV"); } } public void ActiveVaryingNV(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glActiveVaryingNV)) + if (!Unmarshal.isNullPointer(PFN_glActiveVaryingNV)) { try { MH_glActiveVaryingNV.invokeExact(PFN_glActiveVaryingNV, program, name); - } - catch (Throwable e) { throw new RuntimeException("error in glActiveVaryingNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glActiveVaryingNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glActiveVaryingNV"); } } public @CType("GLint") int GetVaryingLocationNV(@CType("GLuint") int program, @CType("const GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVaryingLocationNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVaryingLocationNV)) { try { return (int) MH_glGetVaryingLocationNV.invokeExact(PFN_glGetVaryingLocationNV, program, name); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetVaryingLocationNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVaryingLocationNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVaryingLocationNV"); } } public void GetActiveVaryingNV(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLsizei") int bufSize, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLsizei *") java.lang.foreign.MemorySegment size, @CType("GLenum *") java.lang.foreign.MemorySegment type, @CType("GLchar *") java.lang.foreign.MemorySegment name) { - try { if (!Unmarshal.isNullPointer(PFN_glGetActiveVaryingNV)) + if (!Unmarshal.isNullPointer(PFN_glGetActiveVaryingNV)) { try { MH_glGetActiveVaryingNV.invokeExact(PFN_glGetActiveVaryingNV, program, index, bufSize, length, size, type, name); - } - catch (Throwable e) { throw new RuntimeException("error in glGetActiveVaryingNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetActiveVaryingNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetActiveVaryingNV"); } } public void GetTransformFeedbackVaryingNV(@CType("GLuint") int program, @CType("GLuint") int index, @CType("GLint *") java.lang.foreign.MemorySegment location) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVaryingNV)) + if (!Unmarshal.isNullPointer(PFN_glGetTransformFeedbackVaryingNV)) { try { MH_glGetTransformFeedbackVaryingNV.invokeExact(PFN_glGetTransformFeedbackVaryingNV, program, index, location); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVaryingNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTransformFeedbackVaryingNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTransformFeedbackVaryingNV"); } } public void TransformFeedbackStreamAttribsNV(@CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment attribs, @CType("GLsizei") int nbuffers, @CType("const GLint *") java.lang.foreign.MemorySegment bufstreams, @CType("GLenum") int bufferMode) { - try { if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackStreamAttribsNV)) + if (!Unmarshal.isNullPointer(PFN_glTransformFeedbackStreamAttribsNV)) { try { MH_glTransformFeedbackStreamAttribsNV.invokeExact(PFN_glTransformFeedbackStreamAttribsNV, count, attribs, nbuffers, bufstreams, bufferMode); - } - catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackStreamAttribsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTransformFeedbackStreamAttribsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTransformFeedbackStreamAttribsNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java index 751b0fc1..a0c70b5a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVTransformFeedback2.java @@ -54,53 +54,52 @@ public GLNVTransformFeedback2(overrungl.opengl.GLLoadFunc func) { } public void BindTransformFeedbackNV(@CType("GLenum") int target, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glBindTransformFeedbackNV)) { try { MH_glBindTransformFeedbackNV.invokeExact(PFN_glBindTransformFeedbackNV, target, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindTransformFeedbackNV"); } } public void DeleteTransformFeedbacksNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacksNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteTransformFeedbacksNV)) { try { MH_glDeleteTransformFeedbacksNV.invokeExact(PFN_glDeleteTransformFeedbacksNV, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacksNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteTransformFeedbacksNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteTransformFeedbacksNV"); } } public void GenTransformFeedbacksNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment ids) { - try { if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacksNV)) + if (!Unmarshal.isNullPointer(PFN_glGenTransformFeedbacksNV)) { try { MH_glGenTransformFeedbacksNV.invokeExact(PFN_glGenTransformFeedbacksNV, n, ids); - } - catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacksNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenTransformFeedbacksNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenTransformFeedbacksNV"); } } public @CType("GLboolean") boolean IsTransformFeedbackNV(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glIsTransformFeedbackNV)) { try { return (boolean) MH_glIsTransformFeedbackNV.invokeExact(PFN_glIsTransformFeedbackNV, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsTransformFeedbackNV"); } } public void PauseTransformFeedbackNV() { - try { if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glPauseTransformFeedbackNV)) { try { MH_glPauseTransformFeedbackNV.invokeExact(PFN_glPauseTransformFeedbackNV); - } - catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPauseTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPauseTransformFeedbackNV"); } } public void ResumeTransformFeedbackNV() { - try { if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glResumeTransformFeedbackNV)) { try { MH_glResumeTransformFeedbackNV.invokeExact(PFN_glResumeTransformFeedbackNV); - } - catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glResumeTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glResumeTransformFeedbackNV"); } } public void DrawTransformFeedbackNV(@CType("GLenum") int mode, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackNV)) + if (!Unmarshal.isNullPointer(PFN_glDrawTransformFeedbackNV)) { try { MH_glDrawTransformFeedbackNV.invokeExact(PFN_glDrawTransformFeedbackNV, mode, id); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawTransformFeedbackNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawTransformFeedbackNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java index 4679773d..fa21b470 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop.java @@ -63,76 +63,73 @@ public GLNVVdpauInterop(overrungl.opengl.GLLoadFunc func) { } public void VDPAUInitNV(@CType("const void *") java.lang.foreign.MemorySegment vdpDevice, @CType("const void *") java.lang.foreign.MemorySegment getProcAddress) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUInitNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUInitNV)) { try { MH_glVDPAUInitNV.invokeExact(PFN_glVDPAUInitNV, vdpDevice, getProcAddress); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUInitNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUInitNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUInitNV"); } } public void VDPAUFiniNV() { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUFiniNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUFiniNV)) { try { MH_glVDPAUFiniNV.invokeExact(PFN_glVDPAUFiniNV); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUFiniNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUFiniNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUFiniNV"); } } public @CType("GLvdpauSurfaceNV") long VDPAURegisterVideoSurfaceNV(@CType("const void *") java.lang.foreign.MemorySegment vdpSurface, @CType("GLenum") int target, @CType("GLsizei") int numTextureNames, @CType("const GLuint *") java.lang.foreign.MemorySegment textureNames) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterVideoSurfaceNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterVideoSurfaceNV)) { try { return (long) MH_glVDPAURegisterVideoSurfaceNV.invokeExact(PFN_glVDPAURegisterVideoSurfaceNV, vdpSurface, target, numTextureNames, textureNames); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterVideoSurfaceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterVideoSurfaceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAURegisterVideoSurfaceNV"); } } public @CType("GLvdpauSurfaceNV") long VDPAURegisterOutputSurfaceNV(@CType("const void *") java.lang.foreign.MemorySegment vdpSurface, @CType("GLenum") int target, @CType("GLsizei") int numTextureNames, @CType("const GLuint *") java.lang.foreign.MemorySegment textureNames) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterOutputSurfaceNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterOutputSurfaceNV)) { try { return (long) MH_glVDPAURegisterOutputSurfaceNV.invokeExact(PFN_glVDPAURegisterOutputSurfaceNV, vdpSurface, target, numTextureNames, textureNames); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterOutputSurfaceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterOutputSurfaceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAURegisterOutputSurfaceNV"); } } public @CType("GLboolean") boolean VDPAUIsSurfaceNV(@CType("GLvdpauSurfaceNV") long surface) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUIsSurfaceNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUIsSurfaceNV)) { try { return (boolean) MH_glVDPAUIsSurfaceNV.invokeExact(PFN_glVDPAUIsSurfaceNV, surface); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUIsSurfaceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUIsSurfaceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUIsSurfaceNV"); } } public void VDPAUUnregisterSurfaceNV(@CType("GLvdpauSurfaceNV") long surface) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUUnregisterSurfaceNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUUnregisterSurfaceNV)) { try { MH_glVDPAUUnregisterSurfaceNV.invokeExact(PFN_glVDPAUUnregisterSurfaceNV, surface); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUUnregisterSurfaceNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUUnregisterSurfaceNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUUnregisterSurfaceNV"); } } public void VDPAUGetSurfaceivNV(@CType("GLvdpauSurfaceNV") long surface, @CType("GLenum") int pname, @CType("GLsizei") int count, @CType("GLsizei *") java.lang.foreign.MemorySegment length, @CType("GLint *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUGetSurfaceivNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUGetSurfaceivNV)) { try { MH_glVDPAUGetSurfaceivNV.invokeExact(PFN_glVDPAUGetSurfaceivNV, surface, pname, count, length, values); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUGetSurfaceivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUGetSurfaceivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUGetSurfaceivNV"); } } public void VDPAUSurfaceAccessNV(@CType("GLvdpauSurfaceNV") long surface, @CType("GLenum") int access) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUSurfaceAccessNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUSurfaceAccessNV)) { try { MH_glVDPAUSurfaceAccessNV.invokeExact(PFN_glVDPAUSurfaceAccessNV, surface, access); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUSurfaceAccessNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUSurfaceAccessNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUSurfaceAccessNV"); } } public void VDPAUMapSurfacesNV(@CType("GLsizei") int numSurfaces, @CType("const GLvdpauSurfaceNV *") java.lang.foreign.MemorySegment surfaces) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUMapSurfacesNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUMapSurfacesNV)) { try { MH_glVDPAUMapSurfacesNV.invokeExact(PFN_glVDPAUMapSurfacesNV, numSurfaces, surfaces); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUMapSurfacesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUMapSurfacesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUMapSurfacesNV"); } } public void VDPAUUnmapSurfacesNV(@CType("GLsizei") int numSurface, @CType("const GLvdpauSurfaceNV *") java.lang.foreign.MemorySegment surfaces) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAUUnmapSurfacesNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAUUnmapSurfacesNV)) { try { MH_glVDPAUUnmapSurfacesNV.invokeExact(PFN_glVDPAUUnmapSurfacesNV, numSurface, surfaces); - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAUUnmapSurfacesNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAUUnmapSurfacesNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAUUnmapSurfacesNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java index 785dbb64..dec4bae5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVdpauInterop2.java @@ -32,11 +32,10 @@ public GLNVVdpauInterop2(overrungl.opengl.GLLoadFunc func) { } public @CType("GLvdpauSurfaceNV") long VDPAURegisterVideoSurfaceWithPictureStructureNV(@CType("const void *") java.lang.foreign.MemorySegment vdpSurface, @CType("GLenum") int target, @CType("GLsizei") int numTextureNames, @CType("const GLuint *") java.lang.foreign.MemorySegment textureNames, @CType("GLboolean") boolean isFrameStructure) { - try { if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV)) + if (!Unmarshal.isNullPointer(PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV)) { try { return (long) MH_glVDPAURegisterVideoSurfaceWithPictureStructureNV.invokeExact(PFN_glVDPAURegisterVideoSurfaceWithPictureStructureNV, vdpSurface, target, numTextureNames, textureNames, isFrameStructure); - else return 0L; - } - catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterVideoSurfaceWithPictureStructureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVDPAURegisterVideoSurfaceWithPictureStructureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVDPAURegisterVideoSurfaceWithPictureStructureNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java index a7298b28..b58bde9d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexArrayRange.java @@ -40,17 +40,17 @@ public GLNVVertexArrayRange(overrungl.opengl.GLLoadFunc func) { } public void FlushVertexArrayRangeNV() { - try { if (!Unmarshal.isNullPointer(PFN_glFlushVertexArrayRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glFlushVertexArrayRangeNV)) { try { MH_glFlushVertexArrayRangeNV.invokeExact(PFN_glFlushVertexArrayRangeNV); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushVertexArrayRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushVertexArrayRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushVertexArrayRangeNV"); } } public void VertexArrayRangeNV(@CType("GLsizei") int length, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexArrayRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexArrayRangeNV)) { try { MH_glVertexArrayRangeNV.invokeExact(PFN_glVertexArrayRangeNV, length, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexArrayRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexArrayRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexArrayRangeNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java index 6aa62773..94a6c62b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexAttribInteger64bit.java @@ -88,136 +88,136 @@ public GLNVVertexAttribInteger64bit(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribL1i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1i64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1i64NV)) { try { MH_glVertexAttribL1i64NV.invokeExact(PFN_glVertexAttribL1i64NV, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1i64NV"); } } public void VertexAttribL2i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2i64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2i64NV)) { try { MH_glVertexAttribL2i64NV.invokeExact(PFN_glVertexAttribL2i64NV, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2i64NV"); } } public void VertexAttribL3i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3i64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3i64NV)) { try { MH_glVertexAttribL3i64NV.invokeExact(PFN_glVertexAttribL3i64NV, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3i64NV"); } } public void VertexAttribL4i64NV(@CType("GLuint") int index, @CType("GLint64EXT") long x, @CType("GLint64EXT") long y, @CType("GLint64EXT") long z, @CType("GLint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4i64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4i64NV)) { try { MH_glVertexAttribL4i64NV.invokeExact(PFN_glVertexAttribL4i64NV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4i64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4i64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4i64NV"); } } public void VertexAttribL1i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1i64vNV)) { try { MH_glVertexAttribL1i64vNV.invokeExact(PFN_glVertexAttribL1i64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1i64vNV"); } } public void VertexAttribL2i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2i64vNV)) { try { MH_glVertexAttribL2i64vNV.invokeExact(PFN_glVertexAttribL2i64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2i64vNV"); } } public void VertexAttribL3i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3i64vNV)) { try { MH_glVertexAttribL3i64vNV.invokeExact(PFN_glVertexAttribL3i64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3i64vNV"); } } public void VertexAttribL4i64vNV(@CType("GLuint") int index, @CType("const GLint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4i64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4i64vNV)) { try { MH_glVertexAttribL4i64vNV.invokeExact(PFN_glVertexAttribL4i64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4i64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4i64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4i64vNV"); } } public void VertexAttribL1ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64NV)) { try { MH_glVertexAttribL1ui64NV.invokeExact(PFN_glVertexAttribL1ui64NV, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1ui64NV"); } } public void VertexAttribL2ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2ui64NV)) { try { MH_glVertexAttribL2ui64NV.invokeExact(PFN_glVertexAttribL2ui64NV, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2ui64NV"); } } public void VertexAttribL3ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3ui64NV)) { try { MH_glVertexAttribL3ui64NV.invokeExact(PFN_glVertexAttribL3ui64NV, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3ui64NV"); } } public void VertexAttribL4ui64NV(@CType("GLuint") int index, @CType("GLuint64EXT") long x, @CType("GLuint64EXT") long y, @CType("GLuint64EXT") long z, @CType("GLuint64EXT") long w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4ui64NV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4ui64NV)) { try { MH_glVertexAttribL4ui64NV.invokeExact(PFN_glVertexAttribL4ui64NV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4ui64NV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4ui64NV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4ui64NV"); } } public void VertexAttribL1ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL1ui64vNV)) { try { MH_glVertexAttribL1ui64vNV.invokeExact(PFN_glVertexAttribL1ui64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL1ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL1ui64vNV"); } } public void VertexAttribL2ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL2ui64vNV)) { try { MH_glVertexAttribL2ui64vNV.invokeExact(PFN_glVertexAttribL2ui64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL2ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL2ui64vNV"); } } public void VertexAttribL3ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL3ui64vNV)) { try { MH_glVertexAttribL3ui64vNV.invokeExact(PFN_glVertexAttribL3ui64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL3ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL3ui64vNV"); } } public void VertexAttribL4ui64vNV(@CType("GLuint") int index, @CType("const GLuint64EXT *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4ui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribL4ui64vNV)) { try { MH_glVertexAttribL4ui64vNV.invokeExact(PFN_glVertexAttribL4ui64vNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4ui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribL4ui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribL4ui64vNV"); } } public void GetVertexAttribLi64vNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLi64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLi64vNV)) { try { MH_glGetVertexAttribLi64vNV.invokeExact(PFN_glGetVertexAttribLi64vNV, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLi64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLi64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribLi64vNV"); } } public void GetVertexAttribLui64vNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLui64vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribLui64vNV)) { try { MH_glGetVertexAttribLui64vNV.invokeExact(PFN_glGetVertexAttribLui64vNV, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLui64vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribLui64vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribLui64vNV"); } } public void VertexAttribLFormatNV(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribLFormatNV)) { try { MH_glVertexAttribLFormatNV.invokeExact(PFN_glVertexAttribLFormatNV, index, size, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribLFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribLFormatNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java index 2e760c88..a374c948 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexBufferUnifiedMemory.java @@ -90,87 +90,87 @@ public GLNVVertexBufferUnifiedMemory(overrungl.opengl.GLLoadFunc func) { } public void BufferAddressRangeNV(@CType("GLenum") int pname, @CType("GLuint") int index, @CType("GLuint64EXT") long address, @CType("GLsizeiptr") long length) { - try { if (!Unmarshal.isNullPointer(PFN_glBufferAddressRangeNV)) + if (!Unmarshal.isNullPointer(PFN_glBufferAddressRangeNV)) { try { MH_glBufferAddressRangeNV.invokeExact(PFN_glBufferAddressRangeNV, pname, index, address, length); - } - catch (Throwable e) { throw new RuntimeException("error in glBufferAddressRangeNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBufferAddressRangeNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBufferAddressRangeNV"); } } public void VertexFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexFormatNV)) { try { MH_glVertexFormatNV.invokeExact(PFN_glVertexFormatNV, size, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexFormatNV"); } } public void NormalFormatNV(@CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glNormalFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glNormalFormatNV)) { try { MH_glNormalFormatNV.invokeExact(PFN_glNormalFormatNV, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glNormalFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormalFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormalFormatNV"); } } public void ColorFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glColorFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glColorFormatNV)) { try { MH_glColorFormatNV.invokeExact(PFN_glColorFormatNV, size, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glColorFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorFormatNV"); } } public void IndexFormatNV(@CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glIndexFormatNV)) { try { MH_glIndexFormatNV.invokeExact(PFN_glIndexFormatNV, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexFormatNV"); } } public void TexCoordFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoordFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glTexCoordFormatNV)) { try { MH_glTexCoordFormatNV.invokeExact(PFN_glTexCoordFormatNV, size, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoordFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoordFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoordFormatNV"); } } public void EdgeFlagFormatNV(@CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glEdgeFlagFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glEdgeFlagFormatNV)) { try { MH_glEdgeFlagFormatNV.invokeExact(PFN_glEdgeFlagFormatNV, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEdgeFlagFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEdgeFlagFormatNV"); } } public void SecondaryColorFormatNV(@CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glSecondaryColorFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glSecondaryColorFormatNV)) { try { MH_glSecondaryColorFormatNV.invokeExact(PFN_glSecondaryColorFormatNV, size, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSecondaryColorFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSecondaryColorFormatNV"); } } public void FogCoordFormatNV(@CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glFogCoordFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glFogCoordFormatNV)) { try { MH_glFogCoordFormatNV.invokeExact(PFN_glFogCoordFormatNV, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glFogCoordFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogCoordFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogCoordFormatNV"); } } public void VertexAttribFormatNV(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLboolean") boolean normalized, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribFormatNV)) { try { MH_glVertexAttribFormatNV.invokeExact(PFN_glVertexAttribFormatNV, index, size, type, normalized, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribFormatNV"); } } public void VertexAttribIFormatNV(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormatNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribIFormatNV)) { try { MH_glVertexAttribIFormatNV.invokeExact(PFN_glVertexAttribIFormatNV, index, size, type, stride); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormatNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIFormatNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribIFormatNV"); } } public void GetIntegerui64i_vNV(@CType("GLenum") int value, @CType("GLuint") int index, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment result) { - try { if (!Unmarshal.isNullPointer(PFN_glGetIntegerui64i_vNV)) + if (!Unmarshal.isNullPointer(PFN_glGetIntegerui64i_vNV)) { try { MH_glGetIntegerui64i_vNV.invokeExact(PFN_glGetIntegerui64i_vNV, value, index, result); - } - catch (Throwable e) { throw new RuntimeException("error in glGetIntegerui64i_vNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetIntegerui64i_vNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetIntegerui64i_vNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java index 3fb697a2..5da8d8fd 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram.java @@ -304,453 +304,451 @@ public GLNVVertexProgram(overrungl.opengl.GLLoadFunc func) { } public @CType("GLboolean") boolean AreProgramsResidentNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs, @CType("GLboolean *") java.lang.foreign.MemorySegment residences) { - try { if (!Unmarshal.isNullPointer(PFN_glAreProgramsResidentNV)) + if (!Unmarshal.isNullPointer(PFN_glAreProgramsResidentNV)) { try { return (boolean) MH_glAreProgramsResidentNV.invokeExact(PFN_glAreProgramsResidentNV, n, programs, residences); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glAreProgramsResidentNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAreProgramsResidentNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAreProgramsResidentNV"); } } public void BindProgramNV(@CType("GLenum") int target, @CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBindProgramNV)) + if (!Unmarshal.isNullPointer(PFN_glBindProgramNV)) { try { MH_glBindProgramNV.invokeExact(PFN_glBindProgramNV, target, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBindProgramNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindProgramNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindProgramNV"); } } public void DeleteProgramsNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsNV)) + if (!Unmarshal.isNullPointer(PFN_glDeleteProgramsNV)) { try { MH_glDeleteProgramsNV.invokeExact(PFN_glDeleteProgramsNV, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteProgramsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteProgramsNV"); } } public void ExecuteProgramNV(@CType("GLenum") int target, @CType("GLuint") int id, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glExecuteProgramNV)) + if (!Unmarshal.isNullPointer(PFN_glExecuteProgramNV)) { try { MH_glExecuteProgramNV.invokeExact(PFN_glExecuteProgramNV, target, id, params); - } - catch (Throwable e) { throw new RuntimeException("error in glExecuteProgramNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glExecuteProgramNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glExecuteProgramNV"); } } public void GenProgramsNV(@CType("GLsizei") int n, @CType("GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glGenProgramsNV)) + if (!Unmarshal.isNullPointer(PFN_glGenProgramsNV)) { try { MH_glGenProgramsNV.invokeExact(PFN_glGenProgramsNV, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glGenProgramsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenProgramsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenProgramsNV"); } } public void GetProgramParameterdvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramParameterdvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramParameterdvNV)) { try { MH_glGetProgramParameterdvNV.invokeExact(PFN_glGetProgramParameterdvNV, target, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramParameterdvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramParameterdvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramParameterdvNV"); } } public void GetProgramParameterfvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramParameterfvNV)) { try { MH_glGetProgramParameterfvNV.invokeExact(PFN_glGetProgramParameterfvNV, target, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramParameterfvNV"); } } public void GetProgramivNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramivNV)) { try { MH_glGetProgramivNV.invokeExact(PFN_glGetProgramivNV, id, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramivNV"); } } public void GetProgramStringNV(@CType("GLuint") int id, @CType("GLenum") int pname, @CType("GLubyte *") java.lang.foreign.MemorySegment program) { - try { if (!Unmarshal.isNullPointer(PFN_glGetProgramStringNV)) + if (!Unmarshal.isNullPointer(PFN_glGetProgramStringNV)) { try { MH_glGetProgramStringNV.invokeExact(PFN_glGetProgramStringNV, id, pname, program); - } - catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetProgramStringNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetProgramStringNV"); } } public void GetTrackMatrixivNV(@CType("GLenum") int target, @CType("GLuint") int address, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTrackMatrixivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetTrackMatrixivNV)) { try { MH_glGetTrackMatrixivNV.invokeExact(PFN_glGetTrackMatrixivNV, target, address, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTrackMatrixivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTrackMatrixivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTrackMatrixivNV"); } } public void GetVertexAttribdvNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribdvNV)) { try { MH_glGetVertexAttribdvNV.invokeExact(PFN_glGetVertexAttribdvNV, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribdvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribdvNV"); } } public void GetVertexAttribfvNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribfvNV)) { try { MH_glGetVertexAttribfvNV.invokeExact(PFN_glGetVertexAttribfvNV, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribfvNV"); } } public void GetVertexAttribivNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribivNV)) { try { MH_glGetVertexAttribivNV.invokeExact(PFN_glGetVertexAttribivNV, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribivNV"); } } public void GetVertexAttribPointervNV(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribPointervNV)) { try { MH_glGetVertexAttribPointervNV.invokeExact(PFN_glGetVertexAttribPointervNV, index, pname, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribPointervNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribPointervNV"); } } public @CType("GLboolean") boolean IsProgramNV(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glIsProgramNV)) + if (!Unmarshal.isNullPointer(PFN_glIsProgramNV)) { try { return (boolean) MH_glIsProgramNV.invokeExact(PFN_glIsProgramNV, id); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsProgramNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsProgramNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsProgramNV"); } } public void LoadProgramNV(@CType("GLenum") int target, @CType("GLuint") int id, @CType("GLsizei") int len, @CType("const GLubyte *") java.lang.foreign.MemorySegment program) { - try { if (!Unmarshal.isNullPointer(PFN_glLoadProgramNV)) + if (!Unmarshal.isNullPointer(PFN_glLoadProgramNV)) { try { MH_glLoadProgramNV.invokeExact(PFN_glLoadProgramNV, target, id, len, program); - } - catch (Throwable e) { throw new RuntimeException("error in glLoadProgramNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLoadProgramNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLoadProgramNV"); } } public void ProgramParameter4dNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4dNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameter4dNV)) { try { MH_glProgramParameter4dNV.invokeExact(PFN_glProgramParameter4dNV, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4dNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4dNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameter4dNV"); } } public void ProgramParameter4dvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4dvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameter4dvNV)) { try { MH_glProgramParameter4dvNV.invokeExact(PFN_glProgramParameter4dvNV, target, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameter4dvNV"); } } public void ProgramParameter4fNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4fNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameter4fNV)) { try { MH_glProgramParameter4fNV.invokeExact(PFN_glProgramParameter4fNV, target, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameter4fNV"); } } public void ProgramParameter4fvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameter4fvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameter4fvNV)) { try { MH_glProgramParameter4fvNV.invokeExact(PFN_glProgramParameter4fvNV, target, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameter4fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameter4fvNV"); } } public void ProgramParameters4dvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameters4dvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameters4dvNV)) { try { MH_glProgramParameters4dvNV.invokeExact(PFN_glProgramParameters4dvNV, target, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameters4dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameters4dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameters4dvNV"); } } public void ProgramParameters4fvNV(@CType("GLenum") int target, @CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glProgramParameters4fvNV)) + if (!Unmarshal.isNullPointer(PFN_glProgramParameters4fvNV)) { try { MH_glProgramParameters4fvNV.invokeExact(PFN_glProgramParameters4fvNV, target, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glProgramParameters4fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glProgramParameters4fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glProgramParameters4fvNV"); } } public void RequestResidentProgramsNV(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment programs) { - try { if (!Unmarshal.isNullPointer(PFN_glRequestResidentProgramsNV)) + if (!Unmarshal.isNullPointer(PFN_glRequestResidentProgramsNV)) { try { MH_glRequestResidentProgramsNV.invokeExact(PFN_glRequestResidentProgramsNV, n, programs); - } - catch (Throwable e) { throw new RuntimeException("error in glRequestResidentProgramsNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRequestResidentProgramsNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRequestResidentProgramsNV"); } } public void TrackMatrixNV(@CType("GLenum") int target, @CType("GLuint") int address, @CType("GLenum") int matrix, @CType("GLenum") int transform) { - try { if (!Unmarshal.isNullPointer(PFN_glTrackMatrixNV)) + if (!Unmarshal.isNullPointer(PFN_glTrackMatrixNV)) { try { MH_glTrackMatrixNV.invokeExact(PFN_glTrackMatrixNV, target, address, matrix, transform); - } - catch (Throwable e) { throw new RuntimeException("error in glTrackMatrixNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTrackMatrixNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTrackMatrixNV"); } } public void VertexAttribPointerNV(@CType("GLuint") int index, @CType("GLint") int fsize, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribPointerNV)) { try { MH_glVertexAttribPointerNV.invokeExact(PFN_glVertexAttribPointerNV, index, fsize, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribPointerNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribPointerNV"); } } public void VertexAttrib1dNV(@CType("GLuint") int index, @CType("GLdouble") double x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dNV)) { try { MH_glVertexAttrib1dNV.invokeExact(PFN_glVertexAttrib1dNV, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dNV"); } } public void VertexAttrib1dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1dvNV)) { try { MH_glVertexAttrib1dvNV.invokeExact(PFN_glVertexAttrib1dvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1dvNV"); } } public void VertexAttrib1fNV(@CType("GLuint") int index, @CType("GLfloat") float x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fNV)) { try { MH_glVertexAttrib1fNV.invokeExact(PFN_glVertexAttrib1fNV, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fNV"); } } public void VertexAttrib1fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1fvNV)) { try { MH_glVertexAttrib1fvNV.invokeExact(PFN_glVertexAttrib1fvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1fvNV"); } } public void VertexAttrib1sNV(@CType("GLuint") int index, @CType("GLshort") short x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1sNV)) { try { MH_glVertexAttrib1sNV.invokeExact(PFN_glVertexAttrib1sNV, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1sNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1sNV"); } } public void VertexAttrib1svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib1svNV)) { try { MH_glVertexAttrib1svNV.invokeExact(PFN_glVertexAttrib1svNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib1svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib1svNV"); } } public void VertexAttrib2dNV(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dNV)) { try { MH_glVertexAttrib2dNV.invokeExact(PFN_glVertexAttrib2dNV, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dNV"); } } public void VertexAttrib2dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2dvNV)) { try { MH_glVertexAttrib2dvNV.invokeExact(PFN_glVertexAttrib2dvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2dvNV"); } } public void VertexAttrib2fNV(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fNV)) { try { MH_glVertexAttrib2fNV.invokeExact(PFN_glVertexAttrib2fNV, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fNV"); } } public void VertexAttrib2fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2fvNV)) { try { MH_glVertexAttrib2fvNV.invokeExact(PFN_glVertexAttrib2fvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2fvNV"); } } public void VertexAttrib2sNV(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2sNV)) { try { MH_glVertexAttrib2sNV.invokeExact(PFN_glVertexAttrib2sNV, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2sNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2sNV"); } } public void VertexAttrib2svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib2svNV)) { try { MH_glVertexAttrib2svNV.invokeExact(PFN_glVertexAttrib2svNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib2svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib2svNV"); } } public void VertexAttrib3dNV(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dNV)) { try { MH_glVertexAttrib3dNV.invokeExact(PFN_glVertexAttrib3dNV, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dNV"); } } public void VertexAttrib3dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3dvNV)) { try { MH_glVertexAttrib3dvNV.invokeExact(PFN_glVertexAttrib3dvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3dvNV"); } } public void VertexAttrib3fNV(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fNV)) { try { MH_glVertexAttrib3fNV.invokeExact(PFN_glVertexAttrib3fNV, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fNV"); } } public void VertexAttrib3fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3fvNV)) { try { MH_glVertexAttrib3fvNV.invokeExact(PFN_glVertexAttrib3fvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3fvNV"); } } public void VertexAttrib3sNV(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3sNV)) { try { MH_glVertexAttrib3sNV.invokeExact(PFN_glVertexAttrib3sNV, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3sNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3sNV"); } } public void VertexAttrib3svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib3svNV)) { try { MH_glVertexAttrib3svNV.invokeExact(PFN_glVertexAttrib3svNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib3svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib3svNV"); } } public void VertexAttrib4dNV(@CType("GLuint") int index, @CType("GLdouble") double x, @CType("GLdouble") double y, @CType("GLdouble") double z, @CType("GLdouble") double w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dNV)) { try { MH_glVertexAttrib4dNV.invokeExact(PFN_glVertexAttrib4dNV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dNV"); } } public void VertexAttrib4dvNV(@CType("GLuint") int index, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4dvNV)) { try { MH_glVertexAttrib4dvNV.invokeExact(PFN_glVertexAttrib4dvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4dvNV"); } } public void VertexAttrib4fNV(@CType("GLuint") int index, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fNV)) { try { MH_glVertexAttrib4fNV.invokeExact(PFN_glVertexAttrib4fNV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fNV"); } } public void VertexAttrib4fvNV(@CType("GLuint") int index, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4fvNV)) { try { MH_glVertexAttrib4fvNV.invokeExact(PFN_glVertexAttrib4fvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4fvNV"); } } public void VertexAttrib4sNV(@CType("GLuint") int index, @CType("GLshort") short x, @CType("GLshort") short y, @CType("GLshort") short z, @CType("GLshort") short w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4sNV)) { try { MH_glVertexAttrib4sNV.invokeExact(PFN_glVertexAttrib4sNV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4sNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4sNV"); } } public void VertexAttrib4svNV(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4svNV)) { try { MH_glVertexAttrib4svNV.invokeExact(PFN_glVertexAttrib4svNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4svNV"); } } public void VertexAttrib4ubNV(@CType("GLuint") int index, @CType("GLubyte") byte x, @CType("GLubyte") byte y, @CType("GLubyte") byte z, @CType("GLubyte") byte w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubNV)) { try { MH_glVertexAttrib4ubNV.invokeExact(PFN_glVertexAttrib4ubNV, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ubNV"); } } public void VertexAttrib4ubvNV(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttrib4ubvNV)) { try { MH_glVertexAttrib4ubvNV.invokeExact(PFN_glVertexAttrib4ubvNV, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttrib4ubvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttrib4ubvNV"); } } public void VertexAttribs1dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1dvNV)) { try { MH_glVertexAttribs1dvNV.invokeExact(PFN_glVertexAttribs1dvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs1dvNV"); } } public void VertexAttribs1fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1fvNV)) { try { MH_glVertexAttribs1fvNV.invokeExact(PFN_glVertexAttribs1fvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs1fvNV"); } } public void VertexAttribs1svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs1svNV)) { try { MH_glVertexAttribs1svNV.invokeExact(PFN_glVertexAttribs1svNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs1svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs1svNV"); } } public void VertexAttribs2dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2dvNV)) { try { MH_glVertexAttribs2dvNV.invokeExact(PFN_glVertexAttribs2dvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs2dvNV"); } } public void VertexAttribs2fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2fvNV)) { try { MH_glVertexAttribs2fvNV.invokeExact(PFN_glVertexAttribs2fvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs2fvNV"); } } public void VertexAttribs2svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs2svNV)) { try { MH_glVertexAttribs2svNV.invokeExact(PFN_glVertexAttribs2svNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs2svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs2svNV"); } } public void VertexAttribs3dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3dvNV)) { try { MH_glVertexAttribs3dvNV.invokeExact(PFN_glVertexAttribs3dvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs3dvNV"); } } public void VertexAttribs3fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3fvNV)) { try { MH_glVertexAttribs3fvNV.invokeExact(PFN_glVertexAttribs3fvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs3fvNV"); } } public void VertexAttribs3svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs3svNV)) { try { MH_glVertexAttribs3svNV.invokeExact(PFN_glVertexAttribs3svNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs3svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs3svNV"); } } public void VertexAttribs4dvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLdouble *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4dvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4dvNV)) { try { MH_glVertexAttribs4dvNV.invokeExact(PFN_glVertexAttribs4dvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4dvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4dvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs4dvNV"); } } public void VertexAttribs4fvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4fvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4fvNV)) { try { MH_glVertexAttribs4fvNV.invokeExact(PFN_glVertexAttribs4fvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4fvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4fvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs4fvNV"); } } public void VertexAttribs4svNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4svNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4svNV)) { try { MH_glVertexAttribs4svNV.invokeExact(PFN_glVertexAttribs4svNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4svNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4svNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs4svNV"); } } public void VertexAttribs4ubvNV(@CType("GLuint") int index, @CType("GLsizei") int count, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4ubvNV)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribs4ubvNV)) { try { MH_glVertexAttribs4ubvNV.invokeExact(PFN_glVertexAttribs4ubvNV, index, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4ubvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribs4ubvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribs4ubvNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java index a83a12e6..b520bfe3 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVertexProgram4.java @@ -99,164 +99,164 @@ public GLNVVertexProgram4(overrungl.opengl.GLLoadFunc func) { } public void VertexAttribI1iEXT(@CType("GLuint") int index, @CType("GLint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1iEXT)) { try { MH_glVertexAttribI1iEXT.invokeExact(PFN_glVertexAttribI1iEXT, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1iEXT"); } } public void VertexAttribI2iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2iEXT)) { try { MH_glVertexAttribI2iEXT.invokeExact(PFN_glVertexAttribI2iEXT, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2iEXT"); } } public void VertexAttribI3iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3iEXT)) { try { MH_glVertexAttribI3iEXT.invokeExact(PFN_glVertexAttribI3iEXT, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3iEXT"); } } public void VertexAttribI4iEXT(@CType("GLuint") int index, @CType("GLint") int x, @CType("GLint") int y, @CType("GLint") int z, @CType("GLint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4iEXT)) { try { MH_glVertexAttribI4iEXT.invokeExact(PFN_glVertexAttribI4iEXT, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4iEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4iEXT"); } } public void VertexAttribI1uiEXT(@CType("GLuint") int index, @CType("GLuint") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uiEXT)) { try { MH_glVertexAttribI1uiEXT.invokeExact(PFN_glVertexAttribI1uiEXT, index, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1uiEXT"); } } public void VertexAttribI2uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uiEXT)) { try { MH_glVertexAttribI2uiEXT.invokeExact(PFN_glVertexAttribI2uiEXT, index, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2uiEXT"); } } public void VertexAttribI3uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uiEXT)) { try { MH_glVertexAttribI3uiEXT.invokeExact(PFN_glVertexAttribI3uiEXT, index, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3uiEXT"); } } public void VertexAttribI4uiEXT(@CType("GLuint") int index, @CType("GLuint") int x, @CType("GLuint") int y, @CType("GLuint") int z, @CType("GLuint") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uiEXT)) { try { MH_glVertexAttribI4uiEXT.invokeExact(PFN_glVertexAttribI4uiEXT, index, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uiEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4uiEXT"); } } public void VertexAttribI1ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1ivEXT)) { try { MH_glVertexAttribI1ivEXT.invokeExact(PFN_glVertexAttribI1ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1ivEXT"); } } public void VertexAttribI2ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2ivEXT)) { try { MH_glVertexAttribI2ivEXT.invokeExact(PFN_glVertexAttribI2ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2ivEXT"); } } public void VertexAttribI3ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3ivEXT)) { try { MH_glVertexAttribI3ivEXT.invokeExact(PFN_glVertexAttribI3ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3ivEXT"); } } public void VertexAttribI4ivEXT(@CType("GLuint") int index, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ivEXT)) { try { MH_glVertexAttribI4ivEXT.invokeExact(PFN_glVertexAttribI4ivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4ivEXT"); } } public void VertexAttribI1uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI1uivEXT)) { try { MH_glVertexAttribI1uivEXT.invokeExact(PFN_glVertexAttribI1uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI1uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI1uivEXT"); } } public void VertexAttribI2uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI2uivEXT)) { try { MH_glVertexAttribI2uivEXT.invokeExact(PFN_glVertexAttribI2uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI2uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI2uivEXT"); } } public void VertexAttribI3uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI3uivEXT)) { try { MH_glVertexAttribI3uivEXT.invokeExact(PFN_glVertexAttribI3uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI3uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI3uivEXT"); } } public void VertexAttribI4uivEXT(@CType("GLuint") int index, @CType("const GLuint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uivEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4uivEXT)) { try { MH_glVertexAttribI4uivEXT.invokeExact(PFN_glVertexAttribI4uivEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4uivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4uivEXT"); } } public void VertexAttribI4bvEXT(@CType("GLuint") int index, @CType("const GLbyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4bvEXT)) { try { MH_glVertexAttribI4bvEXT.invokeExact(PFN_glVertexAttribI4bvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4bvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4bvEXT"); } } public void VertexAttribI4svEXT(@CType("GLuint") int index, @CType("const GLshort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4svEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4svEXT)) { try { MH_glVertexAttribI4svEXT.invokeExact(PFN_glVertexAttribI4svEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4svEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4svEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4svEXT"); } } public void VertexAttribI4ubvEXT(@CType("GLuint") int index, @CType("const GLubyte *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4ubvEXT)) { try { MH_glVertexAttribI4ubvEXT.invokeExact(PFN_glVertexAttribI4ubvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4ubvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4ubvEXT"); } } public void VertexAttribI4usvEXT(@CType("GLuint") int index, @CType("const GLushort *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usvEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribI4usvEXT)) { try { MH_glVertexAttribI4usvEXT.invokeExact(PFN_glVertexAttribI4usvEXT, index, v); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usvEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribI4usvEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribI4usvEXT"); } } public void VertexAttribIPointerEXT(@CType("GLuint") int index, @CType("GLint") int size, @CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void *") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointerEXT)) + if (!Unmarshal.isNullPointer(PFN_glVertexAttribIPointerEXT)) { try { MH_glVertexAttribIPointerEXT.invokeExact(PFN_glVertexAttribIPointerEXT, index, size, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointerEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertexAttribIPointerEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertexAttribIPointerEXT"); } } public void GetVertexAttribIivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIivEXT)) { try { MH_glGetVertexAttribIivEXT.invokeExact(PFN_glGetVertexAttribIivEXT, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribIivEXT"); } } public void GetVertexAttribIuivEXT(@CType("GLuint") int index, @CType("GLenum") int pname, @CType("GLuint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuivEXT)) + if (!Unmarshal.isNullPointer(PFN_glGetVertexAttribIuivEXT)) { try { MH_glGetVertexAttribIuivEXT.invokeExact(PFN_glGetVertexAttribIuivEXT, index, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuivEXT", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVertexAttribIuivEXT", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVertexAttribIuivEXT"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java index 5c9d7faa..9ab8f660 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVVideoCapture.java @@ -94,88 +94,87 @@ public GLNVVideoCapture(overrungl.opengl.GLLoadFunc func) { } public void BeginVideoCaptureNV(@CType("GLuint") int video_capture_slot) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginVideoCaptureNV)) + if (!Unmarshal.isNullPointer(PFN_glBeginVideoCaptureNV)) { try { MH_glBeginVideoCaptureNV.invokeExact(PFN_glBeginVideoCaptureNV, video_capture_slot); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginVideoCaptureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginVideoCaptureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginVideoCaptureNV"); } } public void BindVideoCaptureStreamBufferNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int frame_region, @CType("GLintptrARB") long offset) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVideoCaptureStreamBufferNV)) + if (!Unmarshal.isNullPointer(PFN_glBindVideoCaptureStreamBufferNV)) { try { MH_glBindVideoCaptureStreamBufferNV.invokeExact(PFN_glBindVideoCaptureStreamBufferNV, video_capture_slot, stream, frame_region, offset); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVideoCaptureStreamBufferNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVideoCaptureStreamBufferNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVideoCaptureStreamBufferNV"); } } public void BindVideoCaptureStreamTextureNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int frame_region, @CType("GLenum") int target, @CType("GLuint") int texture) { - try { if (!Unmarshal.isNullPointer(PFN_glBindVideoCaptureStreamTextureNV)) + if (!Unmarshal.isNullPointer(PFN_glBindVideoCaptureStreamTextureNV)) { try { MH_glBindVideoCaptureStreamTextureNV.invokeExact(PFN_glBindVideoCaptureStreamTextureNV, video_capture_slot, stream, frame_region, target, texture); - } - catch (Throwable e) { throw new RuntimeException("error in glBindVideoCaptureStreamTextureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBindVideoCaptureStreamTextureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBindVideoCaptureStreamTextureNV"); } } public void EndVideoCaptureNV(@CType("GLuint") int video_capture_slot) { - try { if (!Unmarshal.isNullPointer(PFN_glEndVideoCaptureNV)) + if (!Unmarshal.isNullPointer(PFN_glEndVideoCaptureNV)) { try { MH_glEndVideoCaptureNV.invokeExact(PFN_glEndVideoCaptureNV, video_capture_slot); - } - catch (Throwable e) { throw new RuntimeException("error in glEndVideoCaptureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndVideoCaptureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndVideoCaptureNV"); } } public void GetVideoCaptureivNV(@CType("GLuint") int video_capture_slot, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureivNV)) { try { MH_glGetVideoCaptureivNV.invokeExact(PFN_glGetVideoCaptureivNV, video_capture_slot, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoCaptureivNV"); } } public void GetVideoCaptureStreamivNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamivNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamivNV)) { try { MH_glGetVideoCaptureStreamivNV.invokeExact(PFN_glGetVideoCaptureStreamivNV, video_capture_slot, stream, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoCaptureStreamivNV"); } } public void GetVideoCaptureStreamfvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamfvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamfvNV)) { try { MH_glGetVideoCaptureStreamfvNV.invokeExact(PFN_glGetVideoCaptureStreamfvNV, video_capture_slot, stream, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoCaptureStreamfvNV"); } } public void GetVideoCaptureStreamdvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamdvNV)) + if (!Unmarshal.isNullPointer(PFN_glGetVideoCaptureStreamdvNV)) { try { MH_glGetVideoCaptureStreamdvNV.invokeExact(PFN_glGetVideoCaptureStreamdvNV, video_capture_slot, stream, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamdvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetVideoCaptureStreamdvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetVideoCaptureStreamdvNV"); } } public @CType("GLenum") int VideoCaptureNV(@CType("GLuint") int video_capture_slot, @CType("GLuint *") java.lang.foreign.MemorySegment sequence_num, @CType("GLuint64EXT *") java.lang.foreign.MemorySegment capture_time) { - try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureNV)) + if (!Unmarshal.isNullPointer(PFN_glVideoCaptureNV)) { try { return (int) MH_glVideoCaptureNV.invokeExact(PFN_glVideoCaptureNV, video_capture_slot, sequence_num, capture_time); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVideoCaptureNV"); } } public void VideoCaptureStreamParameterivNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterivNV)) + if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterivNV)) { try { MH_glVideoCaptureStreamParameterivNV.invokeExact(PFN_glVideoCaptureStreamParameterivNV, video_capture_slot, stream, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterivNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterivNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVideoCaptureStreamParameterivNV"); } } public void VideoCaptureStreamParameterfvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterfvNV)) + if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterfvNV)) { try { MH_glVideoCaptureStreamParameterfvNV.invokeExact(PFN_glVideoCaptureStreamParameterfvNV, video_capture_slot, stream, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterfvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterfvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVideoCaptureStreamParameterfvNV"); } } public void VideoCaptureStreamParameterdvNV(@CType("GLuint") int video_capture_slot, @CType("GLuint") int stream, @CType("GLenum") int pname, @CType("const GLdouble *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterdvNV)) + if (!Unmarshal.isNullPointer(PFN_glVideoCaptureStreamParameterdvNV)) { try { MH_glVideoCaptureStreamParameterdvNV.invokeExact(PFN_glVideoCaptureStreamParameterdvNV, video_capture_slot, stream, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterdvNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVideoCaptureStreamParameterdvNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVideoCaptureStreamParameterdvNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java index 6d243c25..ccb62340 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nv/GLNVViewportSwizzle.java @@ -44,10 +44,10 @@ public GLNVViewportSwizzle(overrungl.opengl.GLLoadFunc func) { } public void ViewportSwizzleNV(@CType("GLuint") int index, @CType("GLenum") int swizzlex, @CType("GLenum") int swizzley, @CType("GLenum") int swizzlez, @CType("GLenum") int swizzlew) { - try { if (!Unmarshal.isNullPointer(PFN_glViewportSwizzleNV)) + if (!Unmarshal.isNullPointer(PFN_glViewportSwizzleNV)) { try { MH_glViewportSwizzleNV.invokeExact(PFN_glViewportSwizzleNV, index, swizzlex, swizzley, swizzlez, swizzlew); - } - catch (Throwable e) { throw new RuntimeException("error in glViewportSwizzleNV", e); } + } catch (Throwable e) { throw new RuntimeException("error in glViewportSwizzleNV", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glViewportSwizzleNV"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java index 3414e65d..3a7ebcd8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXConditionalRender.java @@ -35,17 +35,17 @@ public GLNVXConditionalRender(overrungl.opengl.GLLoadFunc func) { } public void BeginConditionalRenderNVX(@CType("GLuint") int id) { - try { if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRenderNVX)) + if (!Unmarshal.isNullPointer(PFN_glBeginConditionalRenderNVX)) { try { MH_glBeginConditionalRenderNVX.invokeExact(PFN_glBeginConditionalRenderNVX, id); - } - catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRenderNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBeginConditionalRenderNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBeginConditionalRenderNVX"); } } public void EndConditionalRenderNVX() { - try { if (!Unmarshal.isNullPointer(PFN_glEndConditionalRenderNVX)) + if (!Unmarshal.isNullPointer(PFN_glEndConditionalRenderNVX)) { try { MH_glEndConditionalRenderNVX.invokeExact(PFN_glEndConditionalRenderNVX); - } - catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRenderNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEndConditionalRenderNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEndConditionalRenderNVX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java index ddc4fee5..38d3a52b 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXGpuMulticast2.java @@ -48,47 +48,45 @@ public GLNVXGpuMulticast2(overrungl.opengl.GLLoadFunc func) { } public void UploadGpuMaskNVX(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glUploadGpuMaskNVX)) + if (!Unmarshal.isNullPointer(PFN_glUploadGpuMaskNVX)) { try { MH_glUploadGpuMaskNVX.invokeExact(PFN_glUploadGpuMaskNVX, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glUploadGpuMaskNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glUploadGpuMaskNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glUploadGpuMaskNVX"); } } public void MulticastViewportArrayvNVX(@CType("GLuint") int gpu, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastViewportArrayvNVX)) + if (!Unmarshal.isNullPointer(PFN_glMulticastViewportArrayvNVX)) { try { MH_glMulticastViewportArrayvNVX.invokeExact(PFN_glMulticastViewportArrayvNVX, gpu, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastViewportArrayvNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastViewportArrayvNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastViewportArrayvNVX"); } } public void MulticastViewportPositionWScaleNVX(@CType("GLuint") int gpu, @CType("GLuint") int index, @CType("GLfloat") float xcoeff, @CType("GLfloat") float ycoeff) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastViewportPositionWScaleNVX)) + if (!Unmarshal.isNullPointer(PFN_glMulticastViewportPositionWScaleNVX)) { try { MH_glMulticastViewportPositionWScaleNVX.invokeExact(PFN_glMulticastViewportPositionWScaleNVX, gpu, index, xcoeff, ycoeff); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastViewportPositionWScaleNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastViewportPositionWScaleNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastViewportPositionWScaleNVX"); } } public void MulticastScissorArrayvNVX(@CType("GLuint") int gpu, @CType("GLuint") int first, @CType("GLsizei") int count, @CType("const GLint *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glMulticastScissorArrayvNVX)) + if (!Unmarshal.isNullPointer(PFN_glMulticastScissorArrayvNVX)) { try { MH_glMulticastScissorArrayvNVX.invokeExact(PFN_glMulticastScissorArrayvNVX, gpu, first, count, v); - } - catch (Throwable e) { throw new RuntimeException("error in glMulticastScissorArrayvNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMulticastScissorArrayvNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMulticastScissorArrayvNVX"); } } public @CType("GLuint") int AsyncCopyBufferSubDataNVX(@CType("GLsizei") int waitSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment waitSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray, @CType("GLuint") int readGpu, @CType("GLbitfield") int writeGpuMask, @CType("GLuint") int readBuffer, @CType("GLuint") int writeBuffer, @CType("GLintptr") long readOffset, @CType("GLintptr") long writeOffset, @CType("GLsizeiptr") long size, @CType("GLsizei") int signalSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment signalSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment signalValueArray) { - try { if (!Unmarshal.isNullPointer(PFN_glAsyncCopyBufferSubDataNVX)) + if (!Unmarshal.isNullPointer(PFN_glAsyncCopyBufferSubDataNVX)) { try { return (int) MH_glAsyncCopyBufferSubDataNVX.invokeExact(PFN_glAsyncCopyBufferSubDataNVX, waitSemaphoreCount, waitSemaphoreArray, fenceValueArray, readGpu, writeGpuMask, readBuffer, writeBuffer, readOffset, writeOffset, size, signalSemaphoreCount, signalSemaphoreArray, signalValueArray); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glAsyncCopyBufferSubDataNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAsyncCopyBufferSubDataNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAsyncCopyBufferSubDataNVX"); } } public @CType("GLuint") int AsyncCopyImageSubDataNVX(@CType("GLsizei") int waitSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment waitSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment waitValueArray, @CType("GLuint") int srcGpu, @CType("GLbitfield") int dstGpuMask, @CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srcY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int srcWidth, @CType("GLsizei") int srcHeight, @CType("GLsizei") int srcDepth, @CType("GLsizei") int signalSemaphoreCount, @CType("const GLuint *") java.lang.foreign.MemorySegment signalSemaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment signalValueArray) { - try { if (!Unmarshal.isNullPointer(PFN_glAsyncCopyImageSubDataNVX)) + if (!Unmarshal.isNullPointer(PFN_glAsyncCopyImageSubDataNVX)) { try { return (int) MH_glAsyncCopyImageSubDataNVX.invokeExact(PFN_glAsyncCopyImageSubDataNVX, waitSemaphoreCount, waitSemaphoreArray, waitValueArray, srcGpu, dstGpuMask, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth, signalSemaphoreCount, signalSemaphoreArray, signalValueArray); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glAsyncCopyImageSubDataNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAsyncCopyImageSubDataNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAsyncCopyImageSubDataNVX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java index d27811b2..04d158bb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXLinkedGpuMulticast.java @@ -40,24 +40,24 @@ public GLNVXLinkedGpuMulticast(overrungl.opengl.GLLoadFunc func) { } public void LGPUNamedBufferSubDataNVX(@CType("GLbitfield") int gpuMask, @CType("GLuint") int buffer, @CType("GLintptr") long offset, @CType("GLsizeiptr") long size, @CType("const void *") java.lang.foreign.MemorySegment data) { - try { if (!Unmarshal.isNullPointer(PFN_glLGPUNamedBufferSubDataNVX)) + if (!Unmarshal.isNullPointer(PFN_glLGPUNamedBufferSubDataNVX)) { try { MH_glLGPUNamedBufferSubDataNVX.invokeExact(PFN_glLGPUNamedBufferSubDataNVX, gpuMask, buffer, offset, size, data); - } - catch (Throwable e) { throw new RuntimeException("error in glLGPUNamedBufferSubDataNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLGPUNamedBufferSubDataNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLGPUNamedBufferSubDataNVX"); } } public void LGPUCopyImageSubDataNVX(@CType("GLuint") int sourceGpu, @CType("GLbitfield") int destinationGpuMask, @CType("GLuint") int srcName, @CType("GLenum") int srcTarget, @CType("GLint") int srcLevel, @CType("GLint") int srcX, @CType("GLint") int srxY, @CType("GLint") int srcZ, @CType("GLuint") int dstName, @CType("GLenum") int dstTarget, @CType("GLint") int dstLevel, @CType("GLint") int dstX, @CType("GLint") int dstY, @CType("GLint") int dstZ, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glLGPUCopyImageSubDataNVX)) + if (!Unmarshal.isNullPointer(PFN_glLGPUCopyImageSubDataNVX)) { try { MH_glLGPUCopyImageSubDataNVX.invokeExact(PFN_glLGPUCopyImageSubDataNVX, sourceGpu, destinationGpuMask, srcName, srcTarget, srcLevel, srcX, srxY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glLGPUCopyImageSubDataNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLGPUCopyImageSubDataNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLGPUCopyImageSubDataNVX"); } } public void LGPUInterlockNVX() { - try { if (!Unmarshal.isNullPointer(PFN_glLGPUInterlockNVX)) + if (!Unmarshal.isNullPointer(PFN_glLGPUInterlockNVX)) { try { MH_glLGPUInterlockNVX.invokeExact(PFN_glLGPUInterlockNVX); - } - catch (Throwable e) { throw new RuntimeException("error in glLGPUInterlockNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLGPUInterlockNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLGPUInterlockNVX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java index 233ee848..d7db2e67 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/nvx/GLNVXProgressFence.java @@ -41,32 +41,31 @@ public GLNVXProgressFence(overrungl.opengl.GLLoadFunc func) { } public @CType("GLuint") int CreateProgressFenceNVX() { - try { if (!Unmarshal.isNullPointer(PFN_glCreateProgressFenceNVX)) + if (!Unmarshal.isNullPointer(PFN_glCreateProgressFenceNVX)) { try { return (int) MH_glCreateProgressFenceNVX.invokeExact(PFN_glCreateProgressFenceNVX); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glCreateProgressFenceNVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCreateProgressFenceNVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCreateProgressFenceNVX"); } } public void SignalSemaphoreui64NVX(@CType("GLuint") int signalGpu, @CType("GLsizei") int fenceObjectCount, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray) { - try { if (!Unmarshal.isNullPointer(PFN_glSignalSemaphoreui64NVX)) + if (!Unmarshal.isNullPointer(PFN_glSignalSemaphoreui64NVX)) { try { MH_glSignalSemaphoreui64NVX.invokeExact(PFN_glSignalSemaphoreui64NVX, signalGpu, fenceObjectCount, semaphoreArray, fenceValueArray); - } - catch (Throwable e) { throw new RuntimeException("error in glSignalSemaphoreui64NVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSignalSemaphoreui64NVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSignalSemaphoreui64NVX"); } } public void WaitSemaphoreui64NVX(@CType("GLuint") int waitGpu, @CType("GLsizei") int fenceObjectCount, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray) { - try { if (!Unmarshal.isNullPointer(PFN_glWaitSemaphoreui64NVX)) + if (!Unmarshal.isNullPointer(PFN_glWaitSemaphoreui64NVX)) { try { MH_glWaitSemaphoreui64NVX.invokeExact(PFN_glWaitSemaphoreui64NVX, waitGpu, fenceObjectCount, semaphoreArray, fenceValueArray); - } - catch (Throwable e) { throw new RuntimeException("error in glWaitSemaphoreui64NVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glWaitSemaphoreui64NVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glWaitSemaphoreui64NVX"); } } public void ClientWaitSemaphoreui64NVX(@CType("GLsizei") int fenceObjectCount, @CType("const GLuint *") java.lang.foreign.MemorySegment semaphoreArray, @CType("const GLuint64 *") java.lang.foreign.MemorySegment fenceValueArray) { - try { if (!Unmarshal.isNullPointer(PFN_glClientWaitSemaphoreui64NVX)) + if (!Unmarshal.isNullPointer(PFN_glClientWaitSemaphoreui64NVX)) { try { MH_glClientWaitSemaphoreui64NVX.invokeExact(PFN_glClientWaitSemaphoreui64NVX, fenceObjectCount, semaphoreArray, fenceValueArray); - } - catch (Throwable e) { throw new RuntimeException("error in glClientWaitSemaphoreui64NVX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClientWaitSemaphoreui64NVX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClientWaitSemaphoreui64NVX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java index afa40e99..c2a5278e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESByteCoordinates.java @@ -96,157 +96,157 @@ public GLOESByteCoordinates(overrungl.opengl.GLLoadFunc func) { } public void MultiTexCoord1bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1bOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1bOES)) { try { MH_glMultiTexCoord1bOES.invokeExact(PFN_glMultiTexCoord1bOES, texture, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1bOES"); } } public void MultiTexCoord1bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1bvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1bvOES)) { try { MH_glMultiTexCoord1bvOES.invokeExact(PFN_glMultiTexCoord1bvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1bvOES"); } } public void MultiTexCoord2bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s, @CType("GLbyte") byte t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2bOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2bOES)) { try { MH_glMultiTexCoord2bOES.invokeExact(PFN_glMultiTexCoord2bOES, texture, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2bOES"); } } public void MultiTexCoord2bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2bvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2bvOES)) { try { MH_glMultiTexCoord2bvOES.invokeExact(PFN_glMultiTexCoord2bvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2bvOES"); } } public void MultiTexCoord3bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3bOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3bOES)) { try { MH_glMultiTexCoord3bOES.invokeExact(PFN_glMultiTexCoord3bOES, texture, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3bOES"); } } public void MultiTexCoord3bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3bvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3bvOES)) { try { MH_glMultiTexCoord3bvOES.invokeExact(PFN_glMultiTexCoord3bvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3bvOES"); } } public void MultiTexCoord4bOES(@CType("GLenum") int texture, @CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r, @CType("GLbyte") byte q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4bOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4bOES)) { try { MH_glMultiTexCoord4bOES.invokeExact(PFN_glMultiTexCoord4bOES, texture, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4bOES"); } } public void MultiTexCoord4bvOES(@CType("GLenum") int texture, @CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4bvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4bvOES)) { try { MH_glMultiTexCoord4bvOES.invokeExact(PFN_glMultiTexCoord4bvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4bvOES"); } } public void TexCoord1bOES(@CType("GLbyte") byte s) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1bOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord1bOES)) { try { MH_glTexCoord1bOES.invokeExact(PFN_glTexCoord1bOES, s); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord1bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord1bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord1bOES"); } } public void TexCoord1bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1bvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord1bvOES)) { try { MH_glTexCoord1bvOES.invokeExact(PFN_glTexCoord1bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord1bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord1bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord1bvOES"); } } public void TexCoord2bOES(@CType("GLbyte") byte s, @CType("GLbyte") byte t) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2bOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2bOES)) { try { MH_glTexCoord2bOES.invokeExact(PFN_glTexCoord2bOES, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2bOES"); } } public void TexCoord2bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2bvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2bvOES)) { try { MH_glTexCoord2bvOES.invokeExact(PFN_glTexCoord2bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2bvOES"); } } public void TexCoord3bOES(@CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3bOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord3bOES)) { try { MH_glTexCoord3bOES.invokeExact(PFN_glTexCoord3bOES, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord3bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord3bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord3bOES"); } } public void TexCoord3bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3bvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord3bvOES)) { try { MH_glTexCoord3bvOES.invokeExact(PFN_glTexCoord3bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord3bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord3bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord3bvOES"); } } public void TexCoord4bOES(@CType("GLbyte") byte s, @CType("GLbyte") byte t, @CType("GLbyte") byte r, @CType("GLbyte") byte q) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4bOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4bOES)) { try { MH_glTexCoord4bOES.invokeExact(PFN_glTexCoord4bOES, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4bOES"); } } public void TexCoord4bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4bvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4bvOES)) { try { MH_glTexCoord4bvOES.invokeExact(PFN_glTexCoord4bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4bvOES"); } } public void Vertex2bOES(@CType("GLbyte") byte x, @CType("GLbyte") byte y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex2bOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex2bOES)) { try { MH_glVertex2bOES.invokeExact(PFN_glVertex2bOES, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex2bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex2bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex2bOES"); } } public void Vertex2bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex2bvOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex2bvOES)) { try { MH_glVertex2bvOES.invokeExact(PFN_glVertex2bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex2bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex2bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex2bvOES"); } } public void Vertex3bOES(@CType("GLbyte") byte x, @CType("GLbyte") byte y, @CType("GLbyte") byte z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex3bOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex3bOES)) { try { MH_glVertex3bOES.invokeExact(PFN_glVertex3bOES, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex3bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex3bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex3bOES"); } } public void Vertex3bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex3bvOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex3bvOES)) { try { MH_glVertex3bvOES.invokeExact(PFN_glVertex3bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex3bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex3bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex3bvOES"); } } public void Vertex4bOES(@CType("GLbyte") byte x, @CType("GLbyte") byte y, @CType("GLbyte") byte z, @CType("GLbyte") byte w) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex4bOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex4bOES)) { try { MH_glVertex4bOES.invokeExact(PFN_glVertex4bOES, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex4bOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex4bOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex4bOES"); } } public void Vertex4bvOES(@CType("const GLbyte *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex4bvOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex4bvOES)) { try { MH_glVertex4bvOES.invokeExact(PFN_glVertex4bvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex4bvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex4bvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex4bvOES"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java index dce8855a..ab89aee2 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESFixedPoint.java @@ -349,752 +349,752 @@ public GLOESFixedPoint(overrungl.opengl.GLLoadFunc func) { } public void AlphaFuncxOES(@CType("GLenum") int func, @CType("GLfixed") int ref) { - try { if (!Unmarshal.isNullPointer(PFN_glAlphaFuncxOES)) + if (!Unmarshal.isNullPointer(PFN_glAlphaFuncxOES)) { try { MH_glAlphaFuncxOES.invokeExact(PFN_glAlphaFuncxOES, func, ref); - } - catch (Throwable e) { throw new RuntimeException("error in glAlphaFuncxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAlphaFuncxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAlphaFuncxOES"); } } public void ClearColorxOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glClearColorxOES)) + if (!Unmarshal.isNullPointer(PFN_glClearColorxOES)) { try { MH_glClearColorxOES.invokeExact(PFN_glClearColorxOES, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glClearColorxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearColorxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearColorxOES"); } } public void ClearDepthxOES(@CType("GLfixed") int depth) { - try { if (!Unmarshal.isNullPointer(PFN_glClearDepthxOES)) + if (!Unmarshal.isNullPointer(PFN_glClearDepthxOES)) { try { MH_glClearDepthxOES.invokeExact(PFN_glClearDepthxOES, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glClearDepthxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearDepthxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearDepthxOES"); } } public void ClipPlanexOES(@CType("GLenum") int plane, @CType("const GLfixed *") java.lang.foreign.MemorySegment equation) { - try { if (!Unmarshal.isNullPointer(PFN_glClipPlanexOES)) + if (!Unmarshal.isNullPointer(PFN_glClipPlanexOES)) { try { MH_glClipPlanexOES.invokeExact(PFN_glClipPlanexOES, plane, equation); - } - catch (Throwable e) { throw new RuntimeException("error in glClipPlanexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClipPlanexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClipPlanexOES"); } } public void Color4xOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4xOES)) + if (!Unmarshal.isNullPointer(PFN_glColor4xOES)) { try { MH_glColor4xOES.invokeExact(PFN_glColor4xOES, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4xOES"); } } public void DepthRangexOES(@CType("GLfixed") int n, @CType("GLfixed") int f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangexOES)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangexOES)) { try { MH_glDepthRangexOES.invokeExact(PFN_glDepthRangexOES, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangexOES"); } } public void FogxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFogxOES)) + if (!Unmarshal.isNullPointer(PFN_glFogxOES)) { try { MH_glFogxOES.invokeExact(PFN_glFogxOES, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFogxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogxOES"); } } public void FogxvOES(@CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glFogxvOES)) + if (!Unmarshal.isNullPointer(PFN_glFogxvOES)) { try { MH_glFogxvOES.invokeExact(PFN_glFogxvOES, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFogxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogxvOES"); } } public void FrustumxOES(@CType("GLfixed") int l, @CType("GLfixed") int r, @CType("GLfixed") int b, @CType("GLfixed") int t, @CType("GLfixed") int n, @CType("GLfixed") int f) { - try { if (!Unmarshal.isNullPointer(PFN_glFrustumxOES)) + if (!Unmarshal.isNullPointer(PFN_glFrustumxOES)) { try { MH_glFrustumxOES.invokeExact(PFN_glFrustumxOES, l, r, b, t, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glFrustumxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFrustumxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFrustumxOES"); } } public void GetClipPlanexOES(@CType("GLenum") int plane, @CType("GLfixed *") java.lang.foreign.MemorySegment equation) { - try { if (!Unmarshal.isNullPointer(PFN_glGetClipPlanexOES)) + if (!Unmarshal.isNullPointer(PFN_glGetClipPlanexOES)) { try { MH_glGetClipPlanexOES.invokeExact(PFN_glGetClipPlanexOES, plane, equation); - } - catch (Throwable e) { throw new RuntimeException("error in glGetClipPlanexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetClipPlanexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetClipPlanexOES"); } } public void GetFixedvOES(@CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFixedvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetFixedvOES)) { try { MH_glGetFixedvOES.invokeExact(PFN_glGetFixedvOES, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFixedvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFixedvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFixedvOES"); } } public void GetTexEnvxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexEnvxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetTexEnvxvOES)) { try { MH_glGetTexEnvxvOES.invokeExact(PFN_glGetTexEnvxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexEnvxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexEnvxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexEnvxvOES"); } } public void GetTexParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetTexParameterxvOES)) { try { MH_glGetTexParameterxvOES.invokeExact(PFN_glGetTexParameterxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexParameterxvOES"); } } public void LightModelxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glLightModelxOES)) + if (!Unmarshal.isNullPointer(PFN_glLightModelxOES)) { try { MH_glLightModelxOES.invokeExact(PFN_glLightModelxOES, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glLightModelxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLightModelxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLightModelxOES"); } } public void LightModelxvOES(@CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glLightModelxvOES)) + if (!Unmarshal.isNullPointer(PFN_glLightModelxvOES)) { try { MH_glLightModelxvOES.invokeExact(PFN_glLightModelxvOES, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glLightModelxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLightModelxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLightModelxvOES"); } } public void LightxOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glLightxOES)) + if (!Unmarshal.isNullPointer(PFN_glLightxOES)) { try { MH_glLightxOES.invokeExact(PFN_glLightxOES, light, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glLightxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLightxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLightxOES"); } } public void LightxvOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glLightxvOES)) + if (!Unmarshal.isNullPointer(PFN_glLightxvOES)) { try { MH_glLightxvOES.invokeExact(PFN_glLightxvOES, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glLightxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLightxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLightxvOES"); } } public void LineWidthxOES(@CType("GLfixed") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glLineWidthxOES)) + if (!Unmarshal.isNullPointer(PFN_glLineWidthxOES)) { try { MH_glLineWidthxOES.invokeExact(PFN_glLineWidthxOES, width); - } - catch (Throwable e) { throw new RuntimeException("error in glLineWidthxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLineWidthxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLineWidthxOES"); } } public void LoadMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glLoadMatrixxOES)) + if (!Unmarshal.isNullPointer(PFN_glLoadMatrixxOES)) { try { MH_glLoadMatrixxOES.invokeExact(PFN_glLoadMatrixxOES, m); - } - catch (Throwable e) { throw new RuntimeException("error in glLoadMatrixxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLoadMatrixxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLoadMatrixxOES"); } } public void MaterialxOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glMaterialxOES)) + if (!Unmarshal.isNullPointer(PFN_glMaterialxOES)) { try { MH_glMaterialxOES.invokeExact(PFN_glMaterialxOES, face, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMaterialxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMaterialxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMaterialxOES"); } } public void MaterialxvOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment param) { - try { if (!Unmarshal.isNullPointer(PFN_glMaterialxvOES)) + if (!Unmarshal.isNullPointer(PFN_glMaterialxvOES)) { try { MH_glMaterialxvOES.invokeExact(PFN_glMaterialxvOES, face, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glMaterialxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMaterialxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMaterialxvOES"); } } public void MultMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMultMatrixxOES)) + if (!Unmarshal.isNullPointer(PFN_glMultMatrixxOES)) { try { MH_glMultMatrixxOES.invokeExact(PFN_glMultMatrixxOES, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMultMatrixxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultMatrixxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultMatrixxOES"); } } public void MultiTexCoord4xOES(@CType("GLenum") int texture, @CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r, @CType("GLfixed") int q) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4xOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4xOES)) { try { MH_glMultiTexCoord4xOES.invokeExact(PFN_glMultiTexCoord4xOES, texture, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4xOES"); } } public void Normal3xOES(@CType("GLfixed") int nx, @CType("GLfixed") int ny, @CType("GLfixed") int nz) { - try { if (!Unmarshal.isNullPointer(PFN_glNormal3xOES)) + if (!Unmarshal.isNullPointer(PFN_glNormal3xOES)) { try { MH_glNormal3xOES.invokeExact(PFN_glNormal3xOES, nx, ny, nz); - } - catch (Throwable e) { throw new RuntimeException("error in glNormal3xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormal3xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormal3xOES"); } } public void OrthoxOES(@CType("GLfixed") int l, @CType("GLfixed") int r, @CType("GLfixed") int b, @CType("GLfixed") int t, @CType("GLfixed") int n, @CType("GLfixed") int f) { - try { if (!Unmarshal.isNullPointer(PFN_glOrthoxOES)) + if (!Unmarshal.isNullPointer(PFN_glOrthoxOES)) { try { MH_glOrthoxOES.invokeExact(PFN_glOrthoxOES, l, r, b, t, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glOrthoxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glOrthoxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glOrthoxOES"); } } public void PointParameterxvOES(@CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterxvOES)) { try { MH_glPointParameterxvOES.invokeExact(PFN_glPointParameterxvOES, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterxvOES"); } } public void PointSizexOES(@CType("GLfixed") int size) { - try { if (!Unmarshal.isNullPointer(PFN_glPointSizexOES)) + if (!Unmarshal.isNullPointer(PFN_glPointSizexOES)) { try { MH_glPointSizexOES.invokeExact(PFN_glPointSizexOES, size); - } - catch (Throwable e) { throw new RuntimeException("error in glPointSizexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointSizexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointSizexOES"); } } public void PolygonOffsetxOES(@CType("GLfixed") int factor, @CType("GLfixed") int units) { - try { if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetxOES)) + if (!Unmarshal.isNullPointer(PFN_glPolygonOffsetxOES)) { try { MH_glPolygonOffsetxOES.invokeExact(PFN_glPolygonOffsetxOES, factor, units); - } - catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPolygonOffsetxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPolygonOffsetxOES"); } } public void RotatexOES(@CType("GLfixed") int angle, @CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glRotatexOES)) + if (!Unmarshal.isNullPointer(PFN_glRotatexOES)) { try { MH_glRotatexOES.invokeExact(PFN_glRotatexOES, angle, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glRotatexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRotatexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRotatexOES"); } } public void ScalexOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glScalexOES)) + if (!Unmarshal.isNullPointer(PFN_glScalexOES)) { try { MH_glScalexOES.invokeExact(PFN_glScalexOES, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glScalexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glScalexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glScalexOES"); } } public void TexEnvxOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexEnvxOES)) + if (!Unmarshal.isNullPointer(PFN_glTexEnvxOES)) { try { MH_glTexEnvxOES.invokeExact(PFN_glTexEnvxOES, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexEnvxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexEnvxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexEnvxOES"); } } public void TexEnvxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexEnvxvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexEnvxvOES)) { try { MH_glTexEnvxvOES.invokeExact(PFN_glTexEnvxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexEnvxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexEnvxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexEnvxvOES"); } } public void TexParameterxOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterxOES)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterxOES)) { try { MH_glTexParameterxOES.invokeExact(PFN_glTexParameterxOES, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterxOES"); } } public void TexParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexParameterxvOES)) { try { MH_glTexParameterxvOES.invokeExact(PFN_glTexParameterxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexParameterxvOES"); } } public void TranslatexOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glTranslatexOES)) + if (!Unmarshal.isNullPointer(PFN_glTranslatexOES)) { try { MH_glTranslatexOES.invokeExact(PFN_glTranslatexOES, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glTranslatexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTranslatexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTranslatexOES"); } } public void GetLightxvOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetLightxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetLightxvOES)) { try { MH_glGetLightxvOES.invokeExact(PFN_glGetLightxvOES, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetLightxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetLightxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetLightxvOES"); } } public void GetMaterialxvOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMaterialxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetMaterialxvOES)) { try { MH_glGetMaterialxvOES.invokeExact(PFN_glGetMaterialxvOES, face, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMaterialxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMaterialxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMaterialxvOES"); } } public void PointParameterxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterxOES)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterxOES)) { try { MH_glPointParameterxOES.invokeExact(PFN_glPointParameterxOES, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterxOES"); } } public void SampleCoveragexOES(@CType("GLclampx") int value, @CType("GLboolean") boolean invert) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleCoveragexOES)) + if (!Unmarshal.isNullPointer(PFN_glSampleCoveragexOES)) { try { MH_glSampleCoveragexOES.invokeExact(PFN_glSampleCoveragexOES, value, invert); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleCoveragexOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleCoveragexOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleCoveragexOES"); } } public void AccumxOES(@CType("GLenum") int op, @CType("GLfixed") int value) { - try { if (!Unmarshal.isNullPointer(PFN_glAccumxOES)) + if (!Unmarshal.isNullPointer(PFN_glAccumxOES)) { try { MH_glAccumxOES.invokeExact(PFN_glAccumxOES, op, value); - } - catch (Throwable e) { throw new RuntimeException("error in glAccumxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAccumxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAccumxOES"); } } public void BitmapxOES(@CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLfixed") int xorig, @CType("GLfixed") int yorig, @CType("GLfixed") int xmove, @CType("GLfixed") int ymove, @CType("const GLubyte *") java.lang.foreign.MemorySegment bitmap) { - try { if (!Unmarshal.isNullPointer(PFN_glBitmapxOES)) + if (!Unmarshal.isNullPointer(PFN_glBitmapxOES)) { try { MH_glBitmapxOES.invokeExact(PFN_glBitmapxOES, width, height, xorig, yorig, xmove, ymove, bitmap); - } - catch (Throwable e) { throw new RuntimeException("error in glBitmapxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBitmapxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBitmapxOES"); } } public void BlendColorxOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glBlendColorxOES)) + if (!Unmarshal.isNullPointer(PFN_glBlendColorxOES)) { try { MH_glBlendColorxOES.invokeExact(PFN_glBlendColorxOES, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glBlendColorxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glBlendColorxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glBlendColorxOES"); } } public void ClearAccumxOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue, @CType("GLfixed") int alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glClearAccumxOES)) + if (!Unmarshal.isNullPointer(PFN_glClearAccumxOES)) { try { MH_glClearAccumxOES.invokeExact(PFN_glClearAccumxOES, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glClearAccumxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearAccumxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearAccumxOES"); } } public void Color3xOES(@CType("GLfixed") int red, @CType("GLfixed") int green, @CType("GLfixed") int blue) { - try { if (!Unmarshal.isNullPointer(PFN_glColor3xOES)) + if (!Unmarshal.isNullPointer(PFN_glColor3xOES)) { try { MH_glColor3xOES.invokeExact(PFN_glColor3xOES, red, green, blue); - } - catch (Throwable e) { throw new RuntimeException("error in glColor3xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor3xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor3xOES"); } } public void Color3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment components) { - try { if (!Unmarshal.isNullPointer(PFN_glColor3xvOES)) + if (!Unmarshal.isNullPointer(PFN_glColor3xvOES)) { try { MH_glColor3xvOES.invokeExact(PFN_glColor3xvOES, components); - } - catch (Throwable e) { throw new RuntimeException("error in glColor3xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor3xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor3xvOES"); } } public void Color4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment components) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4xvOES)) + if (!Unmarshal.isNullPointer(PFN_glColor4xvOES)) { try { MH_glColor4xvOES.invokeExact(PFN_glColor4xvOES, components); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4xvOES"); } } public void ConvolutionParameterxOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterxOES)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterxOES)) { try { MH_glConvolutionParameterxOES.invokeExact(PFN_glConvolutionParameterxOES, target, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterxOES"); } } public void ConvolutionParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glConvolutionParameterxvOES)) { try { MH_glConvolutionParameterxvOES.invokeExact(PFN_glConvolutionParameterxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glConvolutionParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glConvolutionParameterxvOES"); } } public void EvalCoord1xOES(@CType("GLfixed") int u) { - try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord1xOES)) + if (!Unmarshal.isNullPointer(PFN_glEvalCoord1xOES)) { try { MH_glEvalCoord1xOES.invokeExact(PFN_glEvalCoord1xOES, u); - } - catch (Throwable e) { throw new RuntimeException("error in glEvalCoord1xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEvalCoord1xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEvalCoord1xOES"); } } public void EvalCoord1xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord1xvOES)) + if (!Unmarshal.isNullPointer(PFN_glEvalCoord1xvOES)) { try { MH_glEvalCoord1xvOES.invokeExact(PFN_glEvalCoord1xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glEvalCoord1xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEvalCoord1xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEvalCoord1xvOES"); } } public void EvalCoord2xOES(@CType("GLfixed") int u, @CType("GLfixed") int v) { - try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord2xOES)) + if (!Unmarshal.isNullPointer(PFN_glEvalCoord2xOES)) { try { MH_glEvalCoord2xOES.invokeExact(PFN_glEvalCoord2xOES, u, v); - } - catch (Throwable e) { throw new RuntimeException("error in glEvalCoord2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEvalCoord2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEvalCoord2xOES"); } } public void EvalCoord2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glEvalCoord2xvOES)) + if (!Unmarshal.isNullPointer(PFN_glEvalCoord2xvOES)) { try { MH_glEvalCoord2xvOES.invokeExact(PFN_glEvalCoord2xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glEvalCoord2xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glEvalCoord2xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glEvalCoord2xvOES"); } } public void FeedbackBufferxOES(@CType("GLsizei") int n, @CType("GLenum") int type, @CType("const GLfixed *") java.lang.foreign.MemorySegment buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glFeedbackBufferxOES)) + if (!Unmarshal.isNullPointer(PFN_glFeedbackBufferxOES)) { try { MH_glFeedbackBufferxOES.invokeExact(PFN_glFeedbackBufferxOES, n, type, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glFeedbackBufferxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFeedbackBufferxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFeedbackBufferxOES"); } } public void GetConvolutionParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetConvolutionParameterxvOES)) { try { MH_glGetConvolutionParameterxvOES.invokeExact(PFN_glGetConvolutionParameterxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetConvolutionParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetConvolutionParameterxvOES"); } } public void GetHistogramParameterxvOES(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetHistogramParameterxvOES)) { try { MH_glGetHistogramParameterxvOES.invokeExact(PFN_glGetHistogramParameterxvOES, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetHistogramParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetHistogramParameterxvOES"); } } public void GetLightxOES(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetLightxOES)) + if (!Unmarshal.isNullPointer(PFN_glGetLightxOES)) { try { MH_glGetLightxOES.invokeExact(PFN_glGetLightxOES, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetLightxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetLightxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetLightxOES"); } } public void GetMapxvOES(@CType("GLenum") int target, @CType("GLenum") int query, @CType("GLfixed *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMapxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetMapxvOES)) { try { MH_glGetMapxvOES.invokeExact(PFN_glGetMapxvOES, target, query, v); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMapxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMapxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMapxvOES"); } } public void GetMaterialxOES(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glGetMaterialxOES)) + if (!Unmarshal.isNullPointer(PFN_glGetMaterialxOES)) { try { MH_glGetMaterialxOES.invokeExact(PFN_glGetMaterialxOES, face, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glGetMaterialxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetMaterialxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetMaterialxOES"); } } public void GetPixelMapxv(@CType("GLenum") int map, @CType("GLint") int size, @CType("GLfixed *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPixelMapxv)) + if (!Unmarshal.isNullPointer(PFN_glGetPixelMapxv)) { try { MH_glGetPixelMapxv.invokeExact(PFN_glGetPixelMapxv, map, size, values); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPixelMapxv", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPixelMapxv", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPixelMapxv"); } } public void GetTexGenxvOES(@CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexGenxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetTexGenxvOES)) { try { MH_glGetTexGenxvOES.invokeExact(PFN_glGetTexGenxvOES, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexGenxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexGenxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexGenxvOES"); } } public void GetTexLevelParameterxvOES(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int pname, @CType("GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameterxvOES)) + if (!Unmarshal.isNullPointer(PFN_glGetTexLevelParameterxvOES)) { try { MH_glGetTexLevelParameterxvOES.invokeExact(PFN_glGetTexLevelParameterxvOES, target, level, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameterxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexLevelParameterxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexLevelParameterxvOES"); } } public void IndexxOES(@CType("GLfixed") int component) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexxOES)) + if (!Unmarshal.isNullPointer(PFN_glIndexxOES)) { try { MH_glIndexxOES.invokeExact(PFN_glIndexxOES, component); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexxOES"); } } public void IndexxvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment component) { - try { if (!Unmarshal.isNullPointer(PFN_glIndexxvOES)) + if (!Unmarshal.isNullPointer(PFN_glIndexxvOES)) { try { MH_glIndexxvOES.invokeExact(PFN_glIndexxvOES, component); - } - catch (Throwable e) { throw new RuntimeException("error in glIndexxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIndexxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIndexxvOES"); } } public void LoadTransposeMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixxOES)) + if (!Unmarshal.isNullPointer(PFN_glLoadTransposeMatrixxOES)) { try { MH_glLoadTransposeMatrixxOES.invokeExact(PFN_glLoadTransposeMatrixxOES, m); - } - catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLoadTransposeMatrixxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLoadTransposeMatrixxOES"); } } public void Map1xOES(@CType("GLenum") int target, @CType("GLfixed") int u1, @CType("GLfixed") int u2, @CType("GLint") int stride, @CType("GLint") int order, @CType("GLfixed") int points) { - try { if (!Unmarshal.isNullPointer(PFN_glMap1xOES)) + if (!Unmarshal.isNullPointer(PFN_glMap1xOES)) { try { MH_glMap1xOES.invokeExact(PFN_glMap1xOES, target, u1, u2, stride, order, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMap1xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMap1xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMap1xOES"); } } public void Map2xOES(@CType("GLenum") int target, @CType("GLfixed") int u1, @CType("GLfixed") int u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLfixed") int v1, @CType("GLfixed") int v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("GLfixed") int points) { - try { if (!Unmarshal.isNullPointer(PFN_glMap2xOES)) + if (!Unmarshal.isNullPointer(PFN_glMap2xOES)) { try { MH_glMap2xOES.invokeExact(PFN_glMap2xOES, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); - } - catch (Throwable e) { throw new RuntimeException("error in glMap2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMap2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMap2xOES"); } } public void MapGrid1xOES(@CType("GLint") int n, @CType("GLfixed") int u1, @CType("GLfixed") int u2) { - try { if (!Unmarshal.isNullPointer(PFN_glMapGrid1xOES)) + if (!Unmarshal.isNullPointer(PFN_glMapGrid1xOES)) { try { MH_glMapGrid1xOES.invokeExact(PFN_glMapGrid1xOES, n, u1, u2); - } - catch (Throwable e) { throw new RuntimeException("error in glMapGrid1xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapGrid1xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapGrid1xOES"); } } public void MapGrid2xOES(@CType("GLint") int n, @CType("GLfixed") int u1, @CType("GLfixed") int u2, @CType("GLfixed") int v1, @CType("GLfixed") int v2) { - try { if (!Unmarshal.isNullPointer(PFN_glMapGrid2xOES)) + if (!Unmarshal.isNullPointer(PFN_glMapGrid2xOES)) { try { MH_glMapGrid2xOES.invokeExact(PFN_glMapGrid2xOES, n, u1, u2, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glMapGrid2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMapGrid2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMapGrid2xOES"); } } public void MultTransposeMatrixxOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment m) { - try { if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixxOES)) + if (!Unmarshal.isNullPointer(PFN_glMultTransposeMatrixxOES)) { try { MH_glMultTransposeMatrixxOES.invokeExact(PFN_glMultTransposeMatrixxOES, m); - } - catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultTransposeMatrixxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultTransposeMatrixxOES"); } } public void MultiTexCoord1xOES(@CType("GLenum") int texture, @CType("GLfixed") int s) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1xOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1xOES)) { try { MH_glMultiTexCoord1xOES.invokeExact(PFN_glMultiTexCoord1xOES, texture, s); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1xOES"); } } public void MultiTexCoord1xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1xvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord1xvOES)) { try { MH_glMultiTexCoord1xvOES.invokeExact(PFN_glMultiTexCoord1xvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord1xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord1xvOES"); } } public void MultiTexCoord2xOES(@CType("GLenum") int texture, @CType("GLfixed") int s, @CType("GLfixed") int t) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2xOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2xOES)) { try { MH_glMultiTexCoord2xOES.invokeExact(PFN_glMultiTexCoord2xOES, texture, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2xOES"); } } public void MultiTexCoord2xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2xvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord2xvOES)) { try { MH_glMultiTexCoord2xvOES.invokeExact(PFN_glMultiTexCoord2xvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord2xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord2xvOES"); } } public void MultiTexCoord3xOES(@CType("GLenum") int texture, @CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3xOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3xOES)) { try { MH_glMultiTexCoord3xOES.invokeExact(PFN_glMultiTexCoord3xOES, texture, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3xOES"); } } public void MultiTexCoord3xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3xvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord3xvOES)) { try { MH_glMultiTexCoord3xvOES.invokeExact(PFN_glMultiTexCoord3xvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord3xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord3xvOES"); } } public void MultiTexCoord4xvOES(@CType("GLenum") int texture, @CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4xvOES)) + if (!Unmarshal.isNullPointer(PFN_glMultiTexCoord4xvOES)) { try { MH_glMultiTexCoord4xvOES.invokeExact(PFN_glMultiTexCoord4xvOES, texture, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glMultiTexCoord4xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glMultiTexCoord4xvOES"); } } public void Normal3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glNormal3xvOES)) + if (!Unmarshal.isNullPointer(PFN_glNormal3xvOES)) { try { MH_glNormal3xvOES.invokeExact(PFN_glNormal3xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glNormal3xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormal3xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormal3xvOES"); } } public void PassThroughxOES(@CType("GLfixed") int token) { - try { if (!Unmarshal.isNullPointer(PFN_glPassThroughxOES)) + if (!Unmarshal.isNullPointer(PFN_glPassThroughxOES)) { try { MH_glPassThroughxOES.invokeExact(PFN_glPassThroughxOES, token); - } - catch (Throwable e) { throw new RuntimeException("error in glPassThroughxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPassThroughxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPassThroughxOES"); } } public void PixelMapx(@CType("GLenum") int map, @CType("GLint") int size, @CType("const GLfixed *") java.lang.foreign.MemorySegment values) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelMapx)) + if (!Unmarshal.isNullPointer(PFN_glPixelMapx)) { try { MH_glPixelMapx.invokeExact(PFN_glPixelMapx, map, size, values); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelMapx", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelMapx", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelMapx"); } } public void PixelStorex(@CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelStorex)) + if (!Unmarshal.isNullPointer(PFN_glPixelStorex)) { try { MH_glPixelStorex.invokeExact(PFN_glPixelStorex, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelStorex", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelStorex", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelStorex"); } } public void PixelTransferxOES(@CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTransferxOES)) + if (!Unmarshal.isNullPointer(PFN_glPixelTransferxOES)) { try { MH_glPixelTransferxOES.invokeExact(PFN_glPixelTransferxOES, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTransferxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTransferxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTransferxOES"); } } public void PixelZoomxOES(@CType("GLfixed") int xfactor, @CType("GLfixed") int yfactor) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelZoomxOES)) + if (!Unmarshal.isNullPointer(PFN_glPixelZoomxOES)) { try { MH_glPixelZoomxOES.invokeExact(PFN_glPixelZoomxOES, xfactor, yfactor); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelZoomxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelZoomxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelZoomxOES"); } } public void PrioritizeTexturesxOES(@CType("GLsizei") int n, @CType("const GLuint *") java.lang.foreign.MemorySegment textures, @CType("const GLfixed *") java.lang.foreign.MemorySegment priorities) { - try { if (!Unmarshal.isNullPointer(PFN_glPrioritizeTexturesxOES)) + if (!Unmarshal.isNullPointer(PFN_glPrioritizeTexturesxOES)) { try { MH_glPrioritizeTexturesxOES.invokeExact(PFN_glPrioritizeTexturesxOES, n, textures, priorities); - } - catch (Throwable e) { throw new RuntimeException("error in glPrioritizeTexturesxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPrioritizeTexturesxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPrioritizeTexturesxOES"); } } public void RasterPos2xOES(@CType("GLfixed") int x, @CType("GLfixed") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterPos2xOES)) + if (!Unmarshal.isNullPointer(PFN_glRasterPos2xOES)) { try { MH_glRasterPos2xOES.invokeExact(PFN_glRasterPos2xOES, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterPos2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterPos2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterPos2xOES"); } } public void RasterPos2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterPos2xvOES)) + if (!Unmarshal.isNullPointer(PFN_glRasterPos2xvOES)) { try { MH_glRasterPos2xvOES.invokeExact(PFN_glRasterPos2xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterPos2xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterPos2xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterPos2xvOES"); } } public void RasterPos3xOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterPos3xOES)) + if (!Unmarshal.isNullPointer(PFN_glRasterPos3xOES)) { try { MH_glRasterPos3xOES.invokeExact(PFN_glRasterPos3xOES, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterPos3xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterPos3xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterPos3xOES"); } } public void RasterPos3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterPos3xvOES)) + if (!Unmarshal.isNullPointer(PFN_glRasterPos3xvOES)) { try { MH_glRasterPos3xvOES.invokeExact(PFN_glRasterPos3xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterPos3xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterPos3xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterPos3xvOES"); } } public void RasterPos4xOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z, @CType("GLfixed") int w) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterPos4xOES)) + if (!Unmarshal.isNullPointer(PFN_glRasterPos4xOES)) { try { MH_glRasterPos4xOES.invokeExact(PFN_glRasterPos4xOES, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterPos4xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterPos4xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterPos4xOES"); } } public void RasterPos4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glRasterPos4xvOES)) + if (!Unmarshal.isNullPointer(PFN_glRasterPos4xvOES)) { try { MH_glRasterPos4xvOES.invokeExact(PFN_glRasterPos4xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glRasterPos4xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRasterPos4xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRasterPos4xvOES"); } } public void RectxOES(@CType("GLfixed") int x1, @CType("GLfixed") int y1, @CType("GLfixed") int x2, @CType("GLfixed") int y2) { - try { if (!Unmarshal.isNullPointer(PFN_glRectxOES)) + if (!Unmarshal.isNullPointer(PFN_glRectxOES)) { try { MH_glRectxOES.invokeExact(PFN_glRectxOES, x1, y1, x2, y2); - } - catch (Throwable e) { throw new RuntimeException("error in glRectxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRectxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRectxOES"); } } public void RectxvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment v1, @CType("const GLfixed *") java.lang.foreign.MemorySegment v2) { - try { if (!Unmarshal.isNullPointer(PFN_glRectxvOES)) + if (!Unmarshal.isNullPointer(PFN_glRectxvOES)) { try { MH_glRectxvOES.invokeExact(PFN_glRectxvOES, v1, v2); - } - catch (Throwable e) { throw new RuntimeException("error in glRectxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glRectxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glRectxvOES"); } } public void TexCoord1xOES(@CType("GLfixed") int s) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1xOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord1xOES)) { try { MH_glTexCoord1xOES.invokeExact(PFN_glTexCoord1xOES, s); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord1xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord1xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord1xOES"); } } public void TexCoord1xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord1xvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord1xvOES)) { try { MH_glTexCoord1xvOES.invokeExact(PFN_glTexCoord1xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord1xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord1xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord1xvOES"); } } public void TexCoord2xOES(@CType("GLfixed") int s, @CType("GLfixed") int t) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2xOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2xOES)) { try { MH_glTexCoord2xOES.invokeExact(PFN_glTexCoord2xOES, s, t); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2xOES"); } } public void TexCoord2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2xvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2xvOES)) { try { MH_glTexCoord2xvOES.invokeExact(PFN_glTexCoord2xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2xvOES"); } } public void TexCoord3xOES(@CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3xOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord3xOES)) { try { MH_glTexCoord3xOES.invokeExact(PFN_glTexCoord3xOES, s, t, r); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord3xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord3xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord3xOES"); } } public void TexCoord3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord3xvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord3xvOES)) { try { MH_glTexCoord3xvOES.invokeExact(PFN_glTexCoord3xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord3xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord3xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord3xvOES"); } } public void TexCoord4xOES(@CType("GLfixed") int s, @CType("GLfixed") int t, @CType("GLfixed") int r, @CType("GLfixed") int q) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4xOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4xOES)) { try { MH_glTexCoord4xOES.invokeExact(PFN_glTexCoord4xOES, s, t, r, q); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4xOES"); } } public void TexCoord4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4xvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4xvOES)) { try { MH_glTexCoord4xvOES.invokeExact(PFN_glTexCoord4xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4xvOES"); } } public void TexGenxOES(@CType("GLenum") int coord, @CType("GLenum") int pname, @CType("GLfixed") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glTexGenxOES)) + if (!Unmarshal.isNullPointer(PFN_glTexGenxOES)) { try { MH_glTexGenxOES.invokeExact(PFN_glTexGenxOES, coord, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glTexGenxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexGenxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexGenxOES"); } } public void TexGenxvOES(@CType("GLenum") int coord, @CType("GLenum") int pname, @CType("const GLfixed *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glTexGenxvOES)) + if (!Unmarshal.isNullPointer(PFN_glTexGenxvOES)) { try { MH_glTexGenxvOES.invokeExact(PFN_glTexGenxvOES, coord, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glTexGenxvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexGenxvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexGenxvOES"); } } public void Vertex2xOES(@CType("GLfixed") int x) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex2xOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex2xOES)) { try { MH_glVertex2xOES.invokeExact(PFN_glVertex2xOES, x); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex2xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex2xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex2xOES"); } } public void Vertex2xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex2xvOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex2xvOES)) { try { MH_glVertex2xvOES.invokeExact(PFN_glVertex2xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex2xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex2xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex2xvOES"); } } public void Vertex3xOES(@CType("GLfixed") int x, @CType("GLfixed") int y) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex3xOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex3xOES)) { try { MH_glVertex3xOES.invokeExact(PFN_glVertex3xOES, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex3xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex3xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex3xOES"); } } public void Vertex3xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex3xvOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex3xvOES)) { try { MH_glVertex3xvOES.invokeExact(PFN_glVertex3xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex3xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex3xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex3xvOES"); } } public void Vertex4xOES(@CType("GLfixed") int x, @CType("GLfixed") int y, @CType("GLfixed") int z) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex4xOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex4xOES)) { try { MH_glVertex4xOES.invokeExact(PFN_glVertex4xOES, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex4xOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex4xOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex4xOES"); } } public void Vertex4xvOES(@CType("const GLfixed *") java.lang.foreign.MemorySegment coords) { - try { if (!Unmarshal.isNullPointer(PFN_glVertex4xvOES)) + if (!Unmarshal.isNullPointer(PFN_glVertex4xvOES)) { try { MH_glVertex4xvOES.invokeExact(PFN_glVertex4xvOES, coords); - } - catch (Throwable e) { throw new RuntimeException("error in glVertex4xvOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glVertex4xvOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glVertex4xvOES"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java index aaf587ae..d360336d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESQueryMatrix.java @@ -32,11 +32,10 @@ public GLOESQueryMatrix(overrungl.opengl.GLLoadFunc func) { } public @CType("GLbitfield") int QueryMatrixxOES(@CType("GLfixed *") java.lang.foreign.MemorySegment mantissa, @CType("GLint *") java.lang.foreign.MemorySegment exponent) { - try { if (!Unmarshal.isNullPointer(PFN_glQueryMatrixxOES)) + if (!Unmarshal.isNullPointer(PFN_glQueryMatrixxOES)) { try { return (int) MH_glQueryMatrixxOES.invokeExact(PFN_glQueryMatrixxOES, mantissa, exponent); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glQueryMatrixxOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glQueryMatrixxOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glQueryMatrixxOES"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java index 5c834867..4084837c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/oes/GLOESSinglePrecision.java @@ -47,45 +47,45 @@ public GLOESSinglePrecision(overrungl.opengl.GLLoadFunc func) { } public void ClearDepthfOES(@CType("GLclampf") float depth) { - try { if (!Unmarshal.isNullPointer(PFN_glClearDepthfOES)) + if (!Unmarshal.isNullPointer(PFN_glClearDepthfOES)) { try { MH_glClearDepthfOES.invokeExact(PFN_glClearDepthfOES, depth); - } - catch (Throwable e) { throw new RuntimeException("error in glClearDepthfOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClearDepthfOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClearDepthfOES"); } } public void ClipPlanefOES(@CType("GLenum") int plane, @CType("const GLfloat *") java.lang.foreign.MemorySegment equation) { - try { if (!Unmarshal.isNullPointer(PFN_glClipPlanefOES)) + if (!Unmarshal.isNullPointer(PFN_glClipPlanefOES)) { try { MH_glClipPlanefOES.invokeExact(PFN_glClipPlanefOES, plane, equation); - } - catch (Throwable e) { throw new RuntimeException("error in glClipPlanefOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glClipPlanefOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glClipPlanefOES"); } } public void DepthRangefOES(@CType("GLclampf") float n, @CType("GLclampf") float f) { - try { if (!Unmarshal.isNullPointer(PFN_glDepthRangefOES)) + if (!Unmarshal.isNullPointer(PFN_glDepthRangefOES)) { try { MH_glDepthRangefOES.invokeExact(PFN_glDepthRangefOES, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glDepthRangefOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDepthRangefOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDepthRangefOES"); } } public void FrustumfOES(@CType("GLfloat") float l, @CType("GLfloat") float r, @CType("GLfloat") float b, @CType("GLfloat") float t, @CType("GLfloat") float n, @CType("GLfloat") float f) { - try { if (!Unmarshal.isNullPointer(PFN_glFrustumfOES)) + if (!Unmarshal.isNullPointer(PFN_glFrustumfOES)) { try { MH_glFrustumfOES.invokeExact(PFN_glFrustumfOES, l, r, b, t, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glFrustumfOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFrustumfOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFrustumfOES"); } } public void GetClipPlanefOES(@CType("GLenum") int plane, @CType("GLfloat *") java.lang.foreign.MemorySegment equation) { - try { if (!Unmarshal.isNullPointer(PFN_glGetClipPlanefOES)) + if (!Unmarshal.isNullPointer(PFN_glGetClipPlanefOES)) { try { MH_glGetClipPlanefOES.invokeExact(PFN_glGetClipPlanefOES, plane, equation); - } - catch (Throwable e) { throw new RuntimeException("error in glGetClipPlanefOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetClipPlanefOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetClipPlanefOES"); } } public void OrthofOES(@CType("GLfloat") float l, @CType("GLfloat") float r, @CType("GLfloat") float b, @CType("GLfloat") float t, @CType("GLfloat") float n, @CType("GLfloat") float f) { - try { if (!Unmarshal.isNullPointer(PFN_glOrthofOES)) + if (!Unmarshal.isNullPointer(PFN_glOrthofOES)) { try { MH_glOrthofOES.invokeExact(PFN_glOrthofOES, l, r, b, t, n, f); - } - catch (Throwable e) { throw new RuntimeException("error in glOrthofOES", e); } + } catch (Throwable e) { throw new RuntimeException("error in glOrthofOES", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glOrthofOES"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java index 75fd9ae2..9303ed36 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/ovr/GLOVRMultiview.java @@ -38,17 +38,17 @@ public GLOVRMultiview(overrungl.opengl.GLLoadFunc func) { } public void FramebufferTextureMultiviewOVR(@CType("GLenum") int target, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int baseViewIndex, @CType("GLsizei") int numViews) { - try { if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureMultiviewOVR)) + if (!Unmarshal.isNullPointer(PFN_glFramebufferTextureMultiviewOVR)) { try { MH_glFramebufferTextureMultiviewOVR.invokeExact(PFN_glFramebufferTextureMultiviewOVR, target, attachment, texture, level, baseViewIndex, numViews); - } - catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureMultiviewOVR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFramebufferTextureMultiviewOVR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFramebufferTextureMultiviewOVR"); } } public void NamedFramebufferTextureMultiviewOVR(@CType("GLuint") int framebuffer, @CType("GLenum") int attachment, @CType("GLuint") int texture, @CType("GLint") int level, @CType("GLint") int baseViewIndex, @CType("GLsizei") int numViews) { - try { if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureMultiviewOVR)) + if (!Unmarshal.isNullPointer(PFN_glNamedFramebufferTextureMultiviewOVR)) { try { MH_glNamedFramebufferTextureMultiviewOVR.invokeExact(PFN_glNamedFramebufferTextureMultiviewOVR, framebuffer, attachment, texture, level, baseViewIndex, numViews); - } - catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureMultiviewOVR", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNamedFramebufferTextureMultiviewOVR", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNamedFramebufferTextureMultiviewOVR"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java index 124515cd..dd117f9c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/pgi/GLPGIMiscHints.java @@ -52,10 +52,10 @@ public GLPGIMiscHints(overrungl.opengl.GLLoadFunc func) { } public void HintPGI(@CType("GLenum") int target, @CType("GLint") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glHintPGI)) + if (!Unmarshal.isNullPointer(PFN_glHintPGI)) { try { MH_glHintPGI.invokeExact(PFN_glHintPGI, target, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glHintPGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glHintPGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glHintPGI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java index ddc00434..2813bc36 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgi/GLSGIColorTable.java @@ -66,52 +66,52 @@ public GLSGIColorTable(overrungl.opengl.GLLoadFunc func) { } public void ColorTableSGI(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment table) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTableSGI)) + if (!Unmarshal.isNullPointer(PFN_glColorTableSGI)) { try { MH_glColorTableSGI.invokeExact(PFN_glColorTableSGI, target, internalformat, width, format, type, table); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTableSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTableSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTableSGI"); } } public void ColorTableParameterfvSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameterfvSGI)) + if (!Unmarshal.isNullPointer(PFN_glColorTableParameterfvSGI)) { try { MH_glColorTableParameterfvSGI.invokeExact(PFN_glColorTableParameterfvSGI, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterfvSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterfvSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTableParameterfvSGI"); } } public void ColorTableParameterivSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glColorTableParameterivSGI)) + if (!Unmarshal.isNullPointer(PFN_glColorTableParameterivSGI)) { try { MH_glColorTableParameterivSGI.invokeExact(PFN_glColorTableParameterivSGI, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterivSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColorTableParameterivSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColorTableParameterivSGI"); } } public void CopyColorTableSGI(@CType("GLenum") int target, @CType("GLenum") int internalformat, @CType("GLint") int x, @CType("GLint") int y, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glCopyColorTableSGI)) + if (!Unmarshal.isNullPointer(PFN_glCopyColorTableSGI)) { try { MH_glCopyColorTableSGI.invokeExact(PFN_glCopyColorTableSGI, target, internalformat, x, y, width); - } - catch (Throwable e) { throw new RuntimeException("error in glCopyColorTableSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glCopyColorTableSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glCopyColorTableSGI"); } } public void GetColorTableSGI(@CType("GLenum") int target, @CType("GLenum") int format, @CType("GLenum") int type, @CType("void*") java.lang.foreign.MemorySegment table) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableSGI)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableSGI)) { try { MH_glGetColorTableSGI.invokeExact(PFN_glGetColorTableSGI, target, format, type, table); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableSGI"); } } public void GetColorTableParameterfvSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfvSGI)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterfvSGI)) { try { MH_glGetColorTableParameterfvSGI.invokeExact(PFN_glGetColorTableParameterfvSGI, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfvSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterfvSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableParameterfvSGI"); } } public void GetColorTableParameterivSGI(@CType("GLenum") int target, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterivSGI)) + if (!Unmarshal.isNullPointer(PFN_glGetColorTableParameterivSGI)) { try { MH_glGetColorTableParameterivSGI.invokeExact(PFN_glGetColorTableParameterivSGI, target, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterivSGI", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetColorTableParameterivSGI", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetColorTableParameterivSGI"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java index 5c7d6591..ed897fbc 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISDetailTexture.java @@ -43,17 +43,17 @@ public GLSGISDetailTexture(overrungl.opengl.GLLoadFunc func) { } public void DetailTexFuncSGIS(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glDetailTexFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glDetailTexFuncSGIS)) { try { MH_glDetailTexFuncSGIS.invokeExact(PFN_glDetailTexFuncSGIS, target, n, points); - } - catch (Throwable e) { throw new RuntimeException("error in glDetailTexFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDetailTexFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDetailTexFuncSGIS"); } } public void GetDetailTexFuncSGIS(@CType("GLenum") int target, @CType("GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glGetDetailTexFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glGetDetailTexFuncSGIS)) { try { MH_glGetDetailTexFuncSGIS.invokeExact(PFN_glGetDetailTexFuncSGIS, target, points); - } - catch (Throwable e) { throw new RuntimeException("error in glGetDetailTexFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetDetailTexFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetDetailTexFuncSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java index fc5436f5..06d4149d 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISFogFunction.java @@ -38,17 +38,17 @@ public GLSGISFogFunction(overrungl.opengl.GLLoadFunc func) { } public void FogFuncSGIS(@CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glFogFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glFogFuncSGIS)) { try { MH_glFogFuncSGIS.invokeExact(PFN_glFogFuncSGIS, n, points); - } - catch (Throwable e) { throw new RuntimeException("error in glFogFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFogFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFogFuncSGIS"); } } public void GetFogFuncSGIS(@CType("GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFogFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glGetFogFuncSGIS)) { try { MH_glGetFogFuncSGIS.invokeExact(PFN_glGetFogFuncSGIS, points); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFogFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFogFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFogFuncSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java index c8e11619..83137072 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISMultisample.java @@ -51,17 +51,17 @@ public GLSGISMultisample(overrungl.opengl.GLLoadFunc func) { } public void SampleMaskSGIS(@CType("GLclampf") float value, @CType("GLboolean") boolean invert) { - try { if (!Unmarshal.isNullPointer(PFN_glSampleMaskSGIS)) + if (!Unmarshal.isNullPointer(PFN_glSampleMaskSGIS)) { try { MH_glSampleMaskSGIS.invokeExact(PFN_glSampleMaskSGIS, value, invert); - } - catch (Throwable e) { throw new RuntimeException("error in glSampleMaskSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSampleMaskSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSampleMaskSGIS"); } } public void SamplePatternSGIS(@CType("GLenum") int pattern) { - try { if (!Unmarshal.isNullPointer(PFN_glSamplePatternSGIS)) + if (!Unmarshal.isNullPointer(PFN_glSamplePatternSGIS)) { try { MH_glSamplePatternSGIS.invokeExact(PFN_glSamplePatternSGIS, pattern); - } - catch (Throwable e) { throw new RuntimeException("error in glSamplePatternSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSamplePatternSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSamplePatternSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java index 28f402d4..419220fb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPixelTexture.java @@ -51,45 +51,45 @@ public GLSGISPixelTexture(overrungl.opengl.GLLoadFunc func) { } public void PixelTexGenParameteriSGIS(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameteriSGIS)) + if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameteriSGIS)) { try { MH_glPixelTexGenParameteriSGIS.invokeExact(PFN_glPixelTexGenParameteriSGIS, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameteriSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameteriSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTexGenParameteriSGIS"); } } public void PixelTexGenParameterivSGIS(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterivSGIS)) + if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterivSGIS)) { try { MH_glPixelTexGenParameterivSGIS.invokeExact(PFN_glPixelTexGenParameterivSGIS, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterivSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterivSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTexGenParameterivSGIS"); } } public void PixelTexGenParameterfSGIS(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterfSGIS)) + if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterfSGIS)) { try { MH_glPixelTexGenParameterfSGIS.invokeExact(PFN_glPixelTexGenParameterfSGIS, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterfSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterfSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTexGenParameterfSGIS"); } } public void PixelTexGenParameterfvSGIS(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterfvSGIS)) + if (!Unmarshal.isNullPointer(PFN_glPixelTexGenParameterfvSGIS)) { try { MH_glPixelTexGenParameterfvSGIS.invokeExact(PFN_glPixelTexGenParameterfvSGIS, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterfvSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenParameterfvSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTexGenParameterfvSGIS"); } } public void GetPixelTexGenParameterivSGIS(@CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTexGenParameterivSGIS)) + if (!Unmarshal.isNullPointer(PFN_glGetPixelTexGenParameterivSGIS)) { try { MH_glGetPixelTexGenParameterivSGIS.invokeExact(PFN_glGetPixelTexGenParameterivSGIS, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPixelTexGenParameterivSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPixelTexGenParameterivSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPixelTexGenParameterivSGIS"); } } public void GetPixelTexGenParameterfvSGIS(@CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetPixelTexGenParameterfvSGIS)) + if (!Unmarshal.isNullPointer(PFN_glGetPixelTexGenParameterfvSGIS)) { try { MH_glGetPixelTexGenParameterfvSGIS.invokeExact(PFN_glGetPixelTexGenParameterfvSGIS, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetPixelTexGenParameterfvSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetPixelTexGenParameterfvSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetPixelTexGenParameterfvSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java index f3ad2e28..38c60592 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISPointParameters.java @@ -39,17 +39,17 @@ public GLSGISPointParameters(overrungl.opengl.GLLoadFunc func) { } public void PointParameterfSGIS(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfSGIS)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfSGIS)) { try { MH_glPointParameterfSGIS.invokeExact(PFN_glPointParameterfSGIS, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfSGIS"); } } public void PointParameterfvSGIS(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glPointParameterfvSGIS)) + if (!Unmarshal.isNullPointer(PFN_glPointParameterfvSGIS)) { try { MH_glPointParameterfvSGIS.invokeExact(PFN_glPointParameterfvSGIS, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPointParameterfvSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPointParameterfvSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java index 9077f1d2..b1d8d29c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISSharpenTexture.java @@ -39,17 +39,17 @@ public GLSGISSharpenTexture(overrungl.opengl.GLLoadFunc func) { } public void SharpenTexFuncSGIS(@CType("GLenum") int target, @CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glSharpenTexFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glSharpenTexFuncSGIS)) { try { MH_glSharpenTexFuncSGIS.invokeExact(PFN_glSharpenTexFuncSGIS, target, n, points); - } - catch (Throwable e) { throw new RuntimeException("error in glSharpenTexFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSharpenTexFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSharpenTexFuncSGIS"); } } public void GetSharpenTexFuncSGIS(@CType("GLenum") int target, @CType("GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glGetSharpenTexFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glGetSharpenTexFuncSGIS)) { try { MH_glGetSharpenTexFuncSGIS.invokeExact(PFN_glGetSharpenTexFuncSGIS, target, points); - } - catch (Throwable e) { throw new RuntimeException("error in glGetSharpenTexFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetSharpenTexFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetSharpenTexFuncSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java index edeff9d3..11d2d3c5 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTexture4D.java @@ -45,17 +45,17 @@ public GLSGISTexture4D(overrungl.opengl.GLLoadFunc func) { } public void TexImage4DSGIS(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLenum") int internalformat, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int size4d, @CType("GLint") int border, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexImage4DSGIS)) + if (!Unmarshal.isNullPointer(PFN_glTexImage4DSGIS)) { try { MH_glTexImage4DSGIS.invokeExact(PFN_glTexImage4DSGIS, target, level, internalformat, width, height, depth, size4d, border, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexImage4DSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexImage4DSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexImage4DSGIS"); } } public void TexSubImage4DSGIS(@CType("GLenum") int target, @CType("GLint") int level, @CType("GLint") int xoffset, @CType("GLint") int yoffset, @CType("GLint") int zoffset, @CType("GLint") int woffset, @CType("GLsizei") int width, @CType("GLsizei") int height, @CType("GLsizei") int depth, @CType("GLsizei") int size4d, @CType("GLenum") int format, @CType("GLenum") int type, @CType("const void *") java.lang.foreign.MemorySegment pixels) { - try { if (!Unmarshal.isNullPointer(PFN_glTexSubImage4DSGIS)) + if (!Unmarshal.isNullPointer(PFN_glTexSubImage4DSGIS)) { try { MH_glTexSubImage4DSGIS.invokeExact(PFN_glTexSubImage4DSGIS, target, level, xoffset, yoffset, zoffset, woffset, width, height, depth, size4d, format, type, pixels); - } - catch (Throwable e) { throw new RuntimeException("error in glTexSubImage4DSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexSubImage4DSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexSubImage4DSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java index 2a424089..1dd19beb 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureColorMask.java @@ -33,10 +33,10 @@ public GLSGISTextureColorMask(overrungl.opengl.GLLoadFunc func) { } public void TextureColorMaskSGIS(@CType("GLboolean") boolean red, @CType("GLboolean") boolean green, @CType("GLboolean") boolean blue, @CType("GLboolean") boolean alpha) { - try { if (!Unmarshal.isNullPointer(PFN_glTextureColorMaskSGIS)) + if (!Unmarshal.isNullPointer(PFN_glTextureColorMaskSGIS)) { try { MH_glTextureColorMaskSGIS.invokeExact(PFN_glTextureColorMaskSGIS, red, green, blue, alpha); - } - catch (Throwable e) { throw new RuntimeException("error in glTextureColorMaskSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTextureColorMaskSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTextureColorMaskSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java index cdaa7484..49bc572c 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgis/GLSGISTextureFilter4.java @@ -37,17 +37,17 @@ public GLSGISTextureFilter4(overrungl.opengl.GLLoadFunc func) { } public void GetTexFilterFuncSGIS(@CType("GLenum") int target, @CType("GLenum") int filter, @CType("GLfloat *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glGetTexFilterFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glGetTexFilterFuncSGIS)) { try { MH_glGetTexFilterFuncSGIS.invokeExact(PFN_glGetTexFilterFuncSGIS, target, filter, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glGetTexFilterFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetTexFilterFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetTexFilterFuncSGIS"); } } public void TexFilterFuncSGIS(@CType("GLenum") int target, @CType("GLenum") int filter, @CType("GLsizei") int n, @CType("const GLfloat *") java.lang.foreign.MemorySegment weights) { - try { if (!Unmarshal.isNullPointer(PFN_glTexFilterFuncSGIS)) + if (!Unmarshal.isNullPointer(PFN_glTexFilterFuncSGIS)) { try { MH_glTexFilterFuncSGIS.invokeExact(PFN_glTexFilterFuncSGIS, target, filter, n, weights); - } - catch (Throwable e) { throw new RuntimeException("error in glTexFilterFuncSGIS", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexFilterFuncSGIS", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexFilterFuncSGIS"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java index 39666532..35f2e4aa 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXAsync.java @@ -48,49 +48,45 @@ public GLSGIXAsync(overrungl.opengl.GLLoadFunc func) { } public void AsyncMarkerSGIX(@CType("GLuint") int marker) { - try { if (!Unmarshal.isNullPointer(PFN_glAsyncMarkerSGIX)) + if (!Unmarshal.isNullPointer(PFN_glAsyncMarkerSGIX)) { try { MH_glAsyncMarkerSGIX.invokeExact(PFN_glAsyncMarkerSGIX, marker); - } - catch (Throwable e) { throw new RuntimeException("error in glAsyncMarkerSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glAsyncMarkerSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glAsyncMarkerSGIX"); } } public @CType("GLint") int FinishAsyncSGIX(@CType("GLuint *") java.lang.foreign.MemorySegment markerp) { - try { if (!Unmarshal.isNullPointer(PFN_glFinishAsyncSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFinishAsyncSGIX)) { try { return (int) MH_glFinishAsyncSGIX.invokeExact(PFN_glFinishAsyncSGIX, markerp); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glFinishAsyncSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinishAsyncSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinishAsyncSGIX"); } } public @CType("GLint") int PollAsyncSGIX(@CType("GLuint *") java.lang.foreign.MemorySegment markerp) { - try { if (!Unmarshal.isNullPointer(PFN_glPollAsyncSGIX)) + if (!Unmarshal.isNullPointer(PFN_glPollAsyncSGIX)) { try { return (int) MH_glPollAsyncSGIX.invokeExact(PFN_glPollAsyncSGIX, markerp); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glPollAsyncSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPollAsyncSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPollAsyncSGIX"); } } public @CType("GLuint") int GenAsyncMarkersSGIX(@CType("GLsizei") int range) { - try { if (!Unmarshal.isNullPointer(PFN_glGenAsyncMarkersSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGenAsyncMarkersSGIX)) { try { return (int) MH_glGenAsyncMarkersSGIX.invokeExact(PFN_glGenAsyncMarkersSGIX, range); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGenAsyncMarkersSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGenAsyncMarkersSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGenAsyncMarkersSGIX"); } } public void DeleteAsyncMarkersSGIX(@CType("GLuint") int marker, @CType("GLsizei") int range) { - try { if (!Unmarshal.isNullPointer(PFN_glDeleteAsyncMarkersSGIX)) + if (!Unmarshal.isNullPointer(PFN_glDeleteAsyncMarkersSGIX)) { try { MH_glDeleteAsyncMarkersSGIX.invokeExact(PFN_glDeleteAsyncMarkersSGIX, marker, range); - } - catch (Throwable e) { throw new RuntimeException("error in glDeleteAsyncMarkersSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeleteAsyncMarkersSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeleteAsyncMarkersSGIX"); } } public @CType("GLboolean") boolean IsAsyncMarkerSGIX(@CType("GLuint") int marker) { - try { if (!Unmarshal.isNullPointer(PFN_glIsAsyncMarkerSGIX)) + if (!Unmarshal.isNullPointer(PFN_glIsAsyncMarkerSGIX)) { try { return (boolean) MH_glIsAsyncMarkerSGIX.invokeExact(PFN_glIsAsyncMarkerSGIX, marker); - else return false; - } - catch (Throwable e) { throw new RuntimeException("error in glIsAsyncMarkerSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIsAsyncMarkerSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIsAsyncMarkerSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java index ff6378c4..2ed89604 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFlushRaster.java @@ -32,10 +32,10 @@ public GLSGIXFlushRaster(overrungl.opengl.GLLoadFunc func) { } public void FlushRasterSGIX() { - try { if (!Unmarshal.isNullPointer(PFN_glFlushRasterSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFlushRasterSGIX)) { try { MH_glFlushRasterSGIX.invokeExact(PFN_glFlushRasterSGIX); - } - catch (Throwable e) { throw new RuntimeException("error in glFlushRasterSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFlushRasterSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFlushRasterSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java index 6045e6d0..2d80cb1e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFragmentLighting.java @@ -103,129 +103,129 @@ public GLSGIXFragmentLighting(overrungl.opengl.GLLoadFunc func) { } public void FragmentColorMaterialSGIX(@CType("GLenum") int face, @CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentColorMaterialSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentColorMaterialSGIX)) { try { MH_glFragmentColorMaterialSGIX.invokeExact(PFN_glFragmentColorMaterialSGIX, face, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentColorMaterialSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentColorMaterialSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentColorMaterialSGIX"); } } public void FragmentLightfSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightfSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightfSGIX)) { try { MH_glFragmentLightfSGIX.invokeExact(PFN_glFragmentLightfSGIX, light, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightfSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightfSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightfSGIX"); } } public void FragmentLightfvSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightfvSGIX)) { try { MH_glFragmentLightfvSGIX.invokeExact(PFN_glFragmentLightfvSGIX, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightfvSGIX"); } } public void FragmentLightiSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightiSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightiSGIX)) { try { MH_glFragmentLightiSGIX.invokeExact(PFN_glFragmentLightiSGIX, light, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightiSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightiSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightiSGIX"); } } public void FragmentLightivSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightivSGIX)) { try { MH_glFragmentLightivSGIX.invokeExact(PFN_glFragmentLightivSGIX, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightivSGIX"); } } public void FragmentLightModelfSGIX(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelfSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelfSGIX)) { try { MH_glFragmentLightModelfSGIX.invokeExact(PFN_glFragmentLightModelfSGIX, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelfSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelfSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightModelfSGIX"); } } public void FragmentLightModelfvSGIX(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelfvSGIX)) { try { MH_glFragmentLightModelfvSGIX.invokeExact(PFN_glFragmentLightModelfvSGIX, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightModelfvSGIX"); } } public void FragmentLightModeliSGIX(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModeliSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightModeliSGIX)) { try { MH_glFragmentLightModeliSGIX.invokeExact(PFN_glFragmentLightModeliSGIX, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModeliSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModeliSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightModeliSGIX"); } } public void FragmentLightModelivSGIX(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentLightModelivSGIX)) { try { MH_glFragmentLightModelivSGIX.invokeExact(PFN_glFragmentLightModelivSGIX, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentLightModelivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentLightModelivSGIX"); } } public void FragmentMaterialfSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialfSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialfSGIX)) { try { MH_glFragmentMaterialfSGIX.invokeExact(PFN_glFragmentMaterialfSGIX, face, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialfSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialfSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentMaterialfSGIX"); } } public void FragmentMaterialfvSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialfvSGIX)) { try { MH_glFragmentMaterialfvSGIX.invokeExact(PFN_glFragmentMaterialfvSGIX, face, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentMaterialfvSGIX"); } } public void FragmentMaterialiSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialiSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialiSGIX)) { try { MH_glFragmentMaterialiSGIX.invokeExact(PFN_glFragmentMaterialiSGIX, face, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialiSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialiSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentMaterialiSGIX"); } } public void FragmentMaterialivSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFragmentMaterialivSGIX)) { try { MH_glFragmentMaterialivSGIX.invokeExact(PFN_glFragmentMaterialivSGIX, face, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFragmentMaterialivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFragmentMaterialivSGIX"); } } public void GetFragmentLightfvSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentLightfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetFragmentLightfvSGIX)) { try { MH_glGetFragmentLightfvSGIX.invokeExact(PFN_glGetFragmentLightfvSGIX, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragmentLightfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragmentLightfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragmentLightfvSGIX"); } } public void GetFragmentLightivSGIX(@CType("GLenum") int light, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentLightivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetFragmentLightivSGIX)) { try { MH_glGetFragmentLightivSGIX.invokeExact(PFN_glGetFragmentLightivSGIX, light, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragmentLightivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragmentLightivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragmentLightivSGIX"); } } public void GetFragmentMaterialfvSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentMaterialfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetFragmentMaterialfvSGIX)) { try { MH_glGetFragmentMaterialfvSGIX.invokeExact(PFN_glGetFragmentMaterialfvSGIX, face, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragmentMaterialfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragmentMaterialfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragmentMaterialfvSGIX"); } } public void GetFragmentMaterialivSGIX(@CType("GLenum") int face, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetFragmentMaterialivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetFragmentMaterialivSGIX)) { try { MH_glGetFragmentMaterialivSGIX.invokeExact(PFN_glGetFragmentMaterialivSGIX, face, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetFragmentMaterialivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetFragmentMaterialivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetFragmentMaterialivSGIX"); } } public void LightEnviSGIX(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glLightEnviSGIX)) + if (!Unmarshal.isNullPointer(PFN_glLightEnviSGIX)) { try { MH_glLightEnviSGIX.invokeExact(PFN_glLightEnviSGIX, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glLightEnviSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLightEnviSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLightEnviSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java index ce4b31ba..038cc7d0 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXFramezoom.java @@ -35,10 +35,10 @@ public GLSGIXFramezoom(overrungl.opengl.GLLoadFunc func) { } public void FrameZoomSGIX(@CType("GLint") int factor) { - try { if (!Unmarshal.isNullPointer(PFN_glFrameZoomSGIX)) + if (!Unmarshal.isNullPointer(PFN_glFrameZoomSGIX)) { try { MH_glFrameZoomSGIX.invokeExact(PFN_glFrameZoomSGIX, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glFrameZoomSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFrameZoomSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFrameZoomSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java index 1d7d3f27..8de8e8b4 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXIglooInterface.java @@ -32,10 +32,10 @@ public GLSGIXIglooInterface(overrungl.opengl.GLLoadFunc func) { } public void IglooInterfaceSGIX(@CType("GLenum") int pname, @CType("const void *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glIglooInterfaceSGIX)) + if (!Unmarshal.isNullPointer(PFN_glIglooInterfaceSGIX)) { try { MH_glIglooInterfaceSGIX.invokeExact(PFN_glIglooInterfaceSGIX, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glIglooInterfaceSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glIglooInterfaceSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glIglooInterfaceSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java index 11c4c5c5..0c3370ea 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXInstruments.java @@ -49,47 +49,45 @@ public GLSGIXInstruments(overrungl.opengl.GLLoadFunc func) { } public @CType("GLint") int GetInstrumentsSGIX() { - try { if (!Unmarshal.isNullPointer(PFN_glGetInstrumentsSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetInstrumentsSGIX)) { try { return (int) MH_glGetInstrumentsSGIX.invokeExact(PFN_glGetInstrumentsSGIX); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glGetInstrumentsSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetInstrumentsSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetInstrumentsSGIX"); } } public void InstrumentsBufferSGIX(@CType("GLsizei") int size, @CType("GLint *") java.lang.foreign.MemorySegment buffer) { - try { if (!Unmarshal.isNullPointer(PFN_glInstrumentsBufferSGIX)) + if (!Unmarshal.isNullPointer(PFN_glInstrumentsBufferSGIX)) { try { MH_glInstrumentsBufferSGIX.invokeExact(PFN_glInstrumentsBufferSGIX, size, buffer); - } - catch (Throwable e) { throw new RuntimeException("error in glInstrumentsBufferSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glInstrumentsBufferSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glInstrumentsBufferSGIX"); } } public @CType("GLint") int PollInstrumentsSGIX(@CType("GLint *") java.lang.foreign.MemorySegment marker_p) { - try { if (!Unmarshal.isNullPointer(PFN_glPollInstrumentsSGIX)) + if (!Unmarshal.isNullPointer(PFN_glPollInstrumentsSGIX)) { try { return (int) MH_glPollInstrumentsSGIX.invokeExact(PFN_glPollInstrumentsSGIX, marker_p); - else return 0; - } - catch (Throwable e) { throw new RuntimeException("error in glPollInstrumentsSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPollInstrumentsSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPollInstrumentsSGIX"); } } public void ReadInstrumentsSGIX(@CType("GLint") int marker) { - try { if (!Unmarshal.isNullPointer(PFN_glReadInstrumentsSGIX)) + if (!Unmarshal.isNullPointer(PFN_glReadInstrumentsSGIX)) { try { MH_glReadInstrumentsSGIX.invokeExact(PFN_glReadInstrumentsSGIX, marker); - } - catch (Throwable e) { throw new RuntimeException("error in glReadInstrumentsSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReadInstrumentsSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReadInstrumentsSGIX"); } } public void StartInstrumentsSGIX() { - try { if (!Unmarshal.isNullPointer(PFN_glStartInstrumentsSGIX)) + if (!Unmarshal.isNullPointer(PFN_glStartInstrumentsSGIX)) { try { MH_glStartInstrumentsSGIX.invokeExact(PFN_glStartInstrumentsSGIX); - } - catch (Throwable e) { throw new RuntimeException("error in glStartInstrumentsSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStartInstrumentsSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStartInstrumentsSGIX"); } } public void StopInstrumentsSGIX(@CType("GLint") int marker) { - try { if (!Unmarshal.isNullPointer(PFN_glStopInstrumentsSGIX)) + if (!Unmarshal.isNullPointer(PFN_glStopInstrumentsSGIX)) { try { MH_glStopInstrumentsSGIX.invokeExact(PFN_glStopInstrumentsSGIX, marker); - } - catch (Throwable e) { throw new RuntimeException("error in glStopInstrumentsSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glStopInstrumentsSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glStopInstrumentsSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java index 51418d95..18c023e9 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXListPriority.java @@ -48,45 +48,45 @@ public GLSGIXListPriority(overrungl.opengl.GLLoadFunc func) { } public void GetListParameterfvSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetListParameterfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetListParameterfvSGIX)) { try { MH_glGetListParameterfvSGIX.invokeExact(PFN_glGetListParameterfvSGIX, list, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetListParameterfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetListParameterfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetListParameterfvSGIX"); } } public void GetListParameterivSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glGetListParameterivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glGetListParameterivSGIX)) { try { MH_glGetListParameterivSGIX.invokeExact(PFN_glGetListParameterivSGIX, list, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glGetListParameterivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGetListParameterivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGetListParameterivSGIX"); } } public void ListParameterfSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glListParameterfSGIX)) + if (!Unmarshal.isNullPointer(PFN_glListParameterfSGIX)) { try { MH_glListParameterfSGIX.invokeExact(PFN_glListParameterfSGIX, list, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glListParameterfSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glListParameterfSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glListParameterfSGIX"); } } public void ListParameterfvSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glListParameterfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glListParameterfvSGIX)) { try { MH_glListParameterfvSGIX.invokeExact(PFN_glListParameterfvSGIX, list, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glListParameterfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glListParameterfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glListParameterfvSGIX"); } } public void ListParameteriSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glListParameteriSGIX)) + if (!Unmarshal.isNullPointer(PFN_glListParameteriSGIX)) { try { MH_glListParameteriSGIX.invokeExact(PFN_glListParameteriSGIX, list, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glListParameteriSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glListParameteriSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glListParameteriSGIX"); } } public void ListParameterivSGIX(@CType("GLuint") int list, @CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glListParameterivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glListParameterivSGIX)) { try { MH_glListParameterivSGIX.invokeExact(PFN_glListParameterivSGIX, list, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glListParameterivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glListParameterivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glListParameterivSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java index 41da779e..74eed013 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPixelTexture.java @@ -34,10 +34,10 @@ public GLSGIXPixelTexture(overrungl.opengl.GLLoadFunc func) { } public void PixelTexGenSGIX(@CType("GLenum") int mode) { - try { if (!Unmarshal.isNullPointer(PFN_glPixelTexGenSGIX)) + if (!Unmarshal.isNullPointer(PFN_glPixelTexGenSGIX)) { try { MH_glPixelTexGenSGIX.invokeExact(PFN_glPixelTexGenSGIX, mode); - } - catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glPixelTexGenSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glPixelTexGenSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java index 8d8bf62a..5a2ff79a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXPolynomialFfd.java @@ -47,31 +47,31 @@ public GLSGIXPolynomialFfd(overrungl.opengl.GLLoadFunc func) { } public void DeformationMap3dSGIX(@CType("GLenum") int target, @CType("GLdouble") double u1, @CType("GLdouble") double u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLdouble") double v1, @CType("GLdouble") double v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("GLdouble") double w1, @CType("GLdouble") double w2, @CType("GLint") int wstride, @CType("GLint") int worder, @CType("const GLdouble *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glDeformationMap3dSGIX)) + if (!Unmarshal.isNullPointer(PFN_glDeformationMap3dSGIX)) { try { MH_glDeformationMap3dSGIX.invokeExact(PFN_glDeformationMap3dSGIX, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points); - } - catch (Throwable e) { throw new RuntimeException("error in glDeformationMap3dSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeformationMap3dSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeformationMap3dSGIX"); } } public void DeformationMap3fSGIX(@CType("GLenum") int target, @CType("GLfloat") float u1, @CType("GLfloat") float u2, @CType("GLint") int ustride, @CType("GLint") int uorder, @CType("GLfloat") float v1, @CType("GLfloat") float v2, @CType("GLint") int vstride, @CType("GLint") int vorder, @CType("GLfloat") float w1, @CType("GLfloat") float w2, @CType("GLint") int wstride, @CType("GLint") int worder, @CType("const GLfloat *") java.lang.foreign.MemorySegment points) { - try { if (!Unmarshal.isNullPointer(PFN_glDeformationMap3fSGIX)) + if (!Unmarshal.isNullPointer(PFN_glDeformationMap3fSGIX)) { try { MH_glDeformationMap3fSGIX.invokeExact(PFN_glDeformationMap3fSGIX, target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points); - } - catch (Throwable e) { throw new RuntimeException("error in glDeformationMap3fSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeformationMap3fSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeformationMap3fSGIX"); } } public void DeformSGIX(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glDeformSGIX)) + if (!Unmarshal.isNullPointer(PFN_glDeformSGIX)) { try { MH_glDeformSGIX.invokeExact(PFN_glDeformSGIX, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glDeformSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDeformSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDeformSGIX"); } } public void LoadIdentityDeformationMapSGIX(@CType("GLbitfield") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glLoadIdentityDeformationMapSGIX)) + if (!Unmarshal.isNullPointer(PFN_glLoadIdentityDeformationMapSGIX)) { try { MH_glLoadIdentityDeformationMapSGIX.invokeExact(PFN_glLoadIdentityDeformationMapSGIX, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glLoadIdentityDeformationMapSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glLoadIdentityDeformationMapSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glLoadIdentityDeformationMapSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java index 0697bdca..4d22980a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXReferencePlane.java @@ -34,10 +34,10 @@ public GLSGIXReferencePlane(overrungl.opengl.GLLoadFunc func) { } public void ReferencePlaneSGIX(@CType("const GLdouble *") java.lang.foreign.MemorySegment equation) { - try { if (!Unmarshal.isNullPointer(PFN_glReferencePlaneSGIX)) + if (!Unmarshal.isNullPointer(PFN_glReferencePlaneSGIX)) { try { MH_glReferencePlaneSGIX.invokeExact(PFN_glReferencePlaneSGIX, equation); - } - catch (Throwable e) { throw new RuntimeException("error in glReferencePlaneSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReferencePlaneSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReferencePlaneSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java index 0723d17a..79a9d6a8 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXSprite.java @@ -48,31 +48,31 @@ public GLSGIXSprite(overrungl.opengl.GLLoadFunc func) { } public void SpriteParameterfSGIX(@CType("GLenum") int pname, @CType("GLfloat") float param) { - try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameterfSGIX)) + if (!Unmarshal.isNullPointer(PFN_glSpriteParameterfSGIX)) { try { MH_glSpriteParameterfSGIX.invokeExact(PFN_glSpriteParameterfSGIX, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterfSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterfSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSpriteParameterfSGIX"); } } public void SpriteParameterfvSGIX(@CType("GLenum") int pname, @CType("const GLfloat *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameterfvSGIX)) + if (!Unmarshal.isNullPointer(PFN_glSpriteParameterfvSGIX)) { try { MH_glSpriteParameterfvSGIX.invokeExact(PFN_glSpriteParameterfvSGIX, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterfvSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterfvSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSpriteParameterfvSGIX"); } } public void SpriteParameteriSGIX(@CType("GLenum") int pname, @CType("GLint") int param) { - try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameteriSGIX)) + if (!Unmarshal.isNullPointer(PFN_glSpriteParameteriSGIX)) { try { MH_glSpriteParameteriSGIX.invokeExact(PFN_glSpriteParameteriSGIX, pname, param); - } - catch (Throwable e) { throw new RuntimeException("error in glSpriteParameteriSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSpriteParameteriSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSpriteParameteriSGIX"); } } public void SpriteParameterivSGIX(@CType("GLenum") int pname, @CType("const GLint *") java.lang.foreign.MemorySegment params) { - try { if (!Unmarshal.isNullPointer(PFN_glSpriteParameterivSGIX)) + if (!Unmarshal.isNullPointer(PFN_glSpriteParameterivSGIX)) { try { MH_glSpriteParameterivSGIX.invokeExact(PFN_glSpriteParameterivSGIX, pname, params); - } - catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterivSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glSpriteParameterivSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glSpriteParameterivSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java index 8a3dfce3..e1e00159 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sgix/GLSGIXTagSampleBuffer.java @@ -32,10 +32,10 @@ public GLSGIXTagSampleBuffer(overrungl.opengl.GLLoadFunc func) { } public void TagSampleBufferSGIX() { - try { if (!Unmarshal.isNullPointer(PFN_glTagSampleBufferSGIX)) + if (!Unmarshal.isNullPointer(PFN_glTagSampleBufferSGIX)) { try { MH_glTagSampleBufferSGIX.invokeExact(PFN_glTagSampleBufferSGIX); - } - catch (Throwable e) { throw new RuntimeException("error in glTagSampleBufferSGIX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTagSampleBufferSGIX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTagSampleBufferSGIX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java index bbdf3996..5bc7d283 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNGlobalAlpha.java @@ -55,59 +55,59 @@ public GLSUNGlobalAlpha(overrungl.opengl.GLLoadFunc func) { } public void GlobalAlphaFactorbSUN(@CType("GLbyte") byte factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorbSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorbSUN)) { try { MH_glGlobalAlphaFactorbSUN.invokeExact(PFN_glGlobalAlphaFactorbSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorbSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorbSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactorbSUN"); } } public void GlobalAlphaFactorsSUN(@CType("GLshort") short factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorsSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorsSUN)) { try { MH_glGlobalAlphaFactorsSUN.invokeExact(PFN_glGlobalAlphaFactorsSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorsSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorsSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactorsSUN"); } } public void GlobalAlphaFactoriSUN(@CType("GLint") int factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactoriSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactoriSUN)) { try { MH_glGlobalAlphaFactoriSUN.invokeExact(PFN_glGlobalAlphaFactoriSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactoriSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactoriSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactoriSUN"); } } public void GlobalAlphaFactorfSUN(@CType("GLfloat") float factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorfSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorfSUN)) { try { MH_glGlobalAlphaFactorfSUN.invokeExact(PFN_glGlobalAlphaFactorfSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorfSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorfSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactorfSUN"); } } public void GlobalAlphaFactordSUN(@CType("GLdouble") double factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactordSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactordSUN)) { try { MH_glGlobalAlphaFactordSUN.invokeExact(PFN_glGlobalAlphaFactordSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactordSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactordSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactordSUN"); } } public void GlobalAlphaFactorubSUN(@CType("GLubyte") byte factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorubSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorubSUN)) { try { MH_glGlobalAlphaFactorubSUN.invokeExact(PFN_glGlobalAlphaFactorubSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorubSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorubSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactorubSUN"); } } public void GlobalAlphaFactorusSUN(@CType("GLushort") short factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorusSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactorusSUN)) { try { MH_glGlobalAlphaFactorusSUN.invokeExact(PFN_glGlobalAlphaFactorusSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorusSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactorusSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactorusSUN"); } } public void GlobalAlphaFactoruiSUN(@CType("GLuint") int factor) { - try { if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactoruiSUN)) + if (!Unmarshal.isNullPointer(PFN_glGlobalAlphaFactoruiSUN)) { try { MH_glGlobalAlphaFactoruiSUN.invokeExact(PFN_glGlobalAlphaFactoruiSUN, factor); - } - catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactoruiSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glGlobalAlphaFactoruiSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glGlobalAlphaFactoruiSUN"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java index d364fa8b..791bc222 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNMeshArray.java @@ -34,10 +34,10 @@ public GLSUNMeshArray(overrungl.opengl.GLLoadFunc func) { } public void DrawMeshArraysSUN(@CType("GLenum") int mode, @CType("GLint") int first, @CType("GLsizei") int count, @CType("GLsizei") int width) { - try { if (!Unmarshal.isNullPointer(PFN_glDrawMeshArraysSUN)) + if (!Unmarshal.isNullPointer(PFN_glDrawMeshArraysSUN)) { try { MH_glDrawMeshArraysSUN.invokeExact(PFN_glDrawMeshArraysSUN, mode, first, count, width); - } - catch (Throwable e) { throw new RuntimeException("error in glDrawMeshArraysSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glDrawMeshArraysSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glDrawMeshArraysSUN"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java index e38776db..099401de 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNTriangleList.java @@ -67,52 +67,52 @@ public GLSUNTriangleList(overrungl.opengl.GLLoadFunc func) { } public void ReplacementCodeuiSUN(@CType("GLuint") int code) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiSUN)) { try { MH_glReplacementCodeuiSUN.invokeExact(PFN_glReplacementCodeuiSUN, code); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiSUN"); } } public void ReplacementCodeusSUN(@CType("GLushort") short code) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeusSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeusSUN)) { try { MH_glReplacementCodeusSUN.invokeExact(PFN_glReplacementCodeusSUN, code); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeusSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeusSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeusSUN"); } } public void ReplacementCodeubSUN(@CType("GLubyte") byte code) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeubSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeubSUN)) { try { MH_glReplacementCodeubSUN.invokeExact(PFN_glReplacementCodeubSUN, code); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeubSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeubSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeubSUN"); } } public void ReplacementCodeuivSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment code) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuivSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuivSUN)) { try { MH_glReplacementCodeuivSUN.invokeExact(PFN_glReplacementCodeuivSUN, code); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuivSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuivSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuivSUN"); } } public void ReplacementCodeusvSUN(@CType("const GLushort *") java.lang.foreign.MemorySegment code) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeusvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeusvSUN)) { try { MH_glReplacementCodeusvSUN.invokeExact(PFN_glReplacementCodeusvSUN, code); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeusvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeusvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeusvSUN"); } } public void ReplacementCodeubvSUN(@CType("const GLubyte *") java.lang.foreign.MemorySegment code) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeubvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeubvSUN)) { try { MH_glReplacementCodeubvSUN.invokeExact(PFN_glReplacementCodeubvSUN, code); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeubvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeubvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeubvSUN"); } } public void ReplacementCodePointerSUN(@CType("GLenum") int type, @CType("GLsizei") int stride, @CType("const void **") java.lang.foreign.MemorySegment pointer) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodePointerSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodePointerSUN)) { try { MH_glReplacementCodePointerSUN.invokeExact(PFN_glReplacementCodePointerSUN, type, stride, pointer); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodePointerSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodePointerSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodePointerSUN"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java index 0efe1af1..4d598944 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sun/GLSUNVertex.java @@ -149,283 +149,283 @@ public GLSUNVertex(overrungl.opengl.GLLoadFunc func) { } public void Color4ubVertex2fSUN(@CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex2fSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex2fSUN)) { try { MH_glColor4ubVertex2fSUN.invokeExact(PFN_glColor4ubVertex2fSUN, r, g, b, a, x, y); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex2fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex2fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4ubVertex2fSUN"); } } public void Color4ubVertex2fvSUN(@CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex2fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex2fvSUN)) { try { MH_glColor4ubVertex2fvSUN.invokeExact(PFN_glColor4ubVertex2fvSUN, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex2fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex2fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4ubVertex2fvSUN"); } } public void Color4ubVertex3fSUN(@CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex3fSUN)) { try { MH_glColor4ubVertex3fSUN.invokeExact(PFN_glColor4ubVertex3fSUN, r, g, b, a, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4ubVertex3fSUN"); } } public void Color4ubVertex3fvSUN(@CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor4ubVertex3fvSUN)) { try { MH_glColor4ubVertex3fvSUN.invokeExact(PFN_glColor4ubVertex3fvSUN, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4ubVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4ubVertex3fvSUN"); } } public void Color3fVertex3fSUN(@CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glColor3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor3fVertex3fSUN)) { try { MH_glColor3fVertex3fSUN.invokeExact(PFN_glColor3fVertex3fSUN, r, g, b, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glColor3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor3fVertex3fSUN"); } } public void Color3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glColor3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor3fVertex3fvSUN)) { try { MH_glColor3fVertex3fvSUN.invokeExact(PFN_glColor3fVertex3fvSUN, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glColor3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor3fVertex3fvSUN"); } } public void Normal3fVertex3fSUN(@CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glNormal3fVertex3fSUN)) { try { MH_glNormal3fVertex3fSUN.invokeExact(PFN_glNormal3fVertex3fSUN, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormal3fVertex3fSUN"); } } public void Normal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glNormal3fVertex3fvSUN)) { try { MH_glNormal3fVertex3fvSUN.invokeExact(PFN_glNormal3fVertex3fvSUN, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glNormal3fVertex3fvSUN"); } } public void Color4fNormal3fVertex3fSUN(@CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4fNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor4fNormal3fVertex3fSUN)) { try { MH_glColor4fNormal3fVertex3fSUN.invokeExact(PFN_glColor4fNormal3fVertex3fSUN, r, g, b, a, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4fNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4fNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4fNormal3fVertex3fSUN"); } } public void Color4fNormal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glColor4fNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glColor4fNormal3fVertex3fvSUN)) { try { MH_glColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glColor4fNormal3fVertex3fvSUN, c, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glColor4fNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glColor4fNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glColor4fNormal3fVertex3fvSUN"); } } public void TexCoord2fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fVertex3fSUN)) { try { MH_glTexCoord2fVertex3fSUN.invokeExact(PFN_glTexCoord2fVertex3fSUN, s, t, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fVertex3fSUN"); } } public void TexCoord2fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fVertex3fvSUN)) { try { MH_glTexCoord2fVertex3fvSUN.invokeExact(PFN_glTexCoord2fVertex3fvSUN, tc, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fVertex3fvSUN"); } } public void TexCoord4fVertex4fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float p, @CType("GLfloat") float q, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fVertex4fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4fVertex4fSUN)) { try { MH_glTexCoord4fVertex4fSUN.invokeExact(PFN_glTexCoord4fVertex4fSUN, s, t, p, q, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fVertex4fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fVertex4fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4fVertex4fSUN"); } } public void TexCoord4fVertex4fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fVertex4fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4fVertex4fvSUN)) { try { MH_glTexCoord4fVertex4fvSUN.invokeExact(PFN_glTexCoord4fVertex4fvSUN, tc, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fVertex4fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fVertex4fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4fVertex4fvSUN"); } } public void TexCoord2fColor4ubVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4ubVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4ubVertex3fSUN)) { try { MH_glTexCoord2fColor4ubVertex3fSUN.invokeExact(PFN_glTexCoord2fColor4ubVertex3fSUN, s, t, r, g, b, a, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4ubVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4ubVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fColor4ubVertex3fSUN"); } } public void TexCoord2fColor4ubVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4ubVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4ubVertex3fvSUN)) { try { MH_glTexCoord2fColor4ubVertex3fvSUN.invokeExact(PFN_glTexCoord2fColor4ubVertex3fvSUN, tc, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4ubVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4ubVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fColor4ubVertex3fvSUN"); } } public void TexCoord2fColor3fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor3fVertex3fSUN)) { try { MH_glTexCoord2fColor3fVertex3fSUN.invokeExact(PFN_glTexCoord2fColor3fVertex3fSUN, s, t, r, g, b, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fColor3fVertex3fSUN"); } } public void TexCoord2fColor3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor3fVertex3fvSUN)) { try { MH_glTexCoord2fColor3fVertex3fvSUN.invokeExact(PFN_glTexCoord2fColor3fVertex3fvSUN, tc, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fColor3fVertex3fvSUN"); } } public void TexCoord2fNormal3fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fNormal3fVertex3fSUN)) { try { MH_glTexCoord2fNormal3fVertex3fSUN.invokeExact(PFN_glTexCoord2fNormal3fVertex3fSUN, s, t, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fNormal3fVertex3fSUN"); } } public void TexCoord2fNormal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fNormal3fVertex3fvSUN)) { try { MH_glTexCoord2fNormal3fVertex3fvSUN.invokeExact(PFN_glTexCoord2fNormal3fVertex3fvSUN, tc, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fNormal3fVertex3fvSUN"); } } public void TexCoord2fColor4fNormal3fVertex3fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4fNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4fNormal3fVertex3fSUN)) { try { MH_glTexCoord2fColor4fNormal3fVertex3fSUN.invokeExact(PFN_glTexCoord2fColor4fNormal3fVertex3fSUN, s, t, r, g, b, a, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4fNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4fNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fColor4fNormal3fVertex3fSUN"); } } public void TexCoord2fColor4fNormal3fVertex3fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN)) { try { MH_glTexCoord2fColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glTexCoord2fColor4fNormal3fVertex3fvSUN, tc, c, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4fNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord2fColor4fNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord2fColor4fNormal3fVertex3fvSUN"); } } public void TexCoord4fColor4fNormal3fVertex4fSUN(@CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float p, @CType("GLfloat") float q, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z, @CType("GLfloat") float w) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fColor4fNormal3fVertex4fSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4fColor4fNormal3fVertex4fSUN)) { try { MH_glTexCoord4fColor4fNormal3fVertex4fSUN.invokeExact(PFN_glTexCoord4fColor4fNormal3fVertex4fSUN, s, t, p, q, r, g, b, a, nx, ny, nz, x, y, z, w); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fColor4fNormal3fVertex4fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fColor4fNormal3fVertex4fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4fColor4fNormal3fVertex4fSUN"); } } public void TexCoord4fColor4fNormal3fVertex4fvSUN(@CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN)) { try { MH_glTexCoord4fColor4fNormal3fVertex4fvSUN.invokeExact(PFN_glTexCoord4fColor4fNormal3fVertex4fvSUN, tc, c, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fColor4fNormal3fVertex4fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTexCoord4fColor4fNormal3fVertex4fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTexCoord4fColor4fNormal3fVertex4fvSUN"); } } public void ReplacementCodeuiVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiVertex3fSUN)) { try { MH_glReplacementCodeuiVertex3fSUN.invokeExact(PFN_glReplacementCodeuiVertex3fSUN, rc, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiVertex3fSUN"); } } public void ReplacementCodeuiVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiVertex3fvSUN)) { try { MH_glReplacementCodeuiVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiVertex3fvSUN, rc, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiVertex3fvSUN"); } } public void ReplacementCodeuiColor4ubVertex3fSUN(@CType("GLuint") int rc, @CType("GLubyte") byte r, @CType("GLubyte") byte g, @CType("GLubyte") byte b, @CType("GLubyte") byte a, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4ubVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4ubVertex3fSUN)) { try { MH_glReplacementCodeuiColor4ubVertex3fSUN.invokeExact(PFN_glReplacementCodeuiColor4ubVertex3fSUN, rc, r, g, b, a, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4ubVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4ubVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiColor4ubVertex3fSUN"); } } public void ReplacementCodeuiColor4ubVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLubyte *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4ubVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4ubVertex3fvSUN)) { try { MH_glReplacementCodeuiColor4ubVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiColor4ubVertex3fvSUN, rc, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4ubVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4ubVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiColor4ubVertex3fvSUN"); } } public void ReplacementCodeuiColor3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor3fVertex3fSUN)) { try { MH_glReplacementCodeuiColor3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiColor3fVertex3fSUN, rc, r, g, b, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiColor3fVertex3fSUN"); } } public void ReplacementCodeuiColor3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor3fVertex3fvSUN)) { try { MH_glReplacementCodeuiColor3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiColor3fVertex3fvSUN, rc, c, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiColor3fVertex3fvSUN"); } } public void ReplacementCodeuiNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiNormal3fVertex3fSUN)) { try { MH_glReplacementCodeuiNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiNormal3fVertex3fSUN, rc, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiNormal3fVertex3fSUN"); } } public void ReplacementCodeuiNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiNormal3fVertex3fvSUN)) { try { MH_glReplacementCodeuiNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiNormal3fVertex3fvSUN, rc, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiNormal3fVertex3fvSUN"); } } public void ReplacementCodeuiColor4fNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN)) { try { MH_glReplacementCodeuiColor4fNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiColor4fNormal3fVertex3fSUN, rc, r, g, b, a, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4fNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4fNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiColor4fNormal3fVertex3fSUN"); } } public void ReplacementCodeuiColor4fNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN)) { try { MH_glReplacementCodeuiColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiColor4fNormal3fVertex3fvSUN, rc, c, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4fNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiColor4fNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiColor4fNormal3fVertex3fvSUN"); } } public void ReplacementCodeuiTexCoord2fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fVertex3fSUN)) { try { MH_glReplacementCodeuiTexCoord2fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fVertex3fSUN, rc, s, t, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiTexCoord2fVertex3fSUN"); } } public void ReplacementCodeuiTexCoord2fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN)) { try { MH_glReplacementCodeuiTexCoord2fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fVertex3fvSUN, rc, tc, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiTexCoord2fVertex3fvSUN"); } } public void ReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN)) { try { MH_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN, rc, s, t, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN"); } } public void ReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN)) { try { MH_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN, rc, tc, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN"); } } public void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(@CType("GLuint") int rc, @CType("GLfloat") float s, @CType("GLfloat") float t, @CType("GLfloat") float r, @CType("GLfloat") float g, @CType("GLfloat") float b, @CType("GLfloat") float a, @CType("GLfloat") float nx, @CType("GLfloat") float ny, @CType("GLfloat") float nz, @CType("GLfloat") float x, @CType("GLfloat") float y, @CType("GLfloat") float z) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN)) { try { MH_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN, rc, s, t, r, g, b, a, nx, ny, nz, x, y, z); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN"); } } public void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(@CType("const GLuint *") java.lang.foreign.MemorySegment rc, @CType("const GLfloat *") java.lang.foreign.MemorySegment tc, @CType("const GLfloat *") java.lang.foreign.MemorySegment c, @CType("const GLfloat *") java.lang.foreign.MemorySegment n, @CType("const GLfloat *") java.lang.foreign.MemorySegment v) { - try { if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN)) + if (!Unmarshal.isNullPointer(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN)) { try { MH_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN.invokeExact(PFN_glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN, rc, tc, c, n, v); - } - catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN", e); } + } catch (Throwable e) { throw new RuntimeException("error in glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java index c4e79dbd..7572ee7a 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/sunx/GLSUNXConstantData.java @@ -34,10 +34,10 @@ public GLSUNXConstantData(overrungl.opengl.GLLoadFunc func) { } public void FinishTextureSUNX() { - try { if (!Unmarshal.isNullPointer(PFN_glFinishTextureSUNX)) + if (!Unmarshal.isNullPointer(PFN_glFinishTextureSUNX)) { try { MH_glFinishTextureSUNX.invokeExact(PFN_glFinishTextureSUNX); - } - catch (Throwable e) { throw new RuntimeException("error in glFinishTextureSUNX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glFinishTextureSUNX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glFinishTextureSUNX"); } } } diff --git a/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java index 9bf8a517..4b95c93e 100644 --- a/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java +++ b/modules/overrungl.opengl/src/main/java/overrungl/opengl/threedfx/GL3DFXTbuffer.java @@ -32,10 +32,10 @@ public GL3DFXTbuffer(overrungl.opengl.GLLoadFunc func) { } public void TbufferMask3DFX(@CType("GLuint") int mask) { - try { if (!Unmarshal.isNullPointer(PFN_glTbufferMask3DFX)) + if (!Unmarshal.isNullPointer(PFN_glTbufferMask3DFX)) { try { MH_glTbufferMask3DFX.invokeExact(PFN_glTbufferMask3DFX, mask); - } - catch (Throwable e) { throw new RuntimeException("error in glTbufferMask3DFX", e); } + } catch (Throwable e) { throw new RuntimeException("error in glTbufferMask3DFX", e); } + } else { throw new SymbolNotFoundError("Symbol not found: glTbufferMask3DFX"); } } }