diff --git a/.gitmodules b/.gitmodules index 18e38d9c..d71d44e2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,3 +25,6 @@ [submodule "cimgui"] path = cimgui url = https://github.com/cimgui/cimgui.git +[submodule "raygui"] + path = raygui + url = https://github.com/raysan5/raygui.git diff --git a/bin/jextract-libs.sh b/bin/jextract-libs.sh index 901fc80c..b2eba2bd 100755 --- a/bin/jextract-libs.sh +++ b/bin/jextract-libs.sh @@ -259,7 +259,7 @@ echo "Extracting Raylib" cd raylib/src && \ make clean && \ - RAYLIB_LIBTYPE=SHARED RAYMATH_IMPLEMENTATION=TRUE make PLATFORM=PLATFORM_DESKTOP && \ + RAYLIB_LIBTYPE=SHARED RAYMATH_IMPLEMENTATION=TRUE make PLATFORM=PLATFORM_DESKTOP RAYLIB_MODULE_RAYGUI=TRUE && \ cd - && \ cp "raylib/src/${VYBE_LIB_PREFIX}raylib.$VYBE_EXTENSION" native @@ -267,25 +267,55 @@ $VYBE_GCC \ -shared \ bin/vybe_raylib.c \ -I raylib/src \ + -I raygui/src \ -o "native/${VYBE_LIB_PREFIX}vybe_raylib.$VYBE_EXTENSION" $VYBE_GCC_END $VYBE_GCC_RAYLIB if [[ $VYBE_EXTENSION == "dll" ]]; then + # As the generated java code is huge by default because of some transitive libs, + # we have to filter it. So we do a jextract dump. $VYBE_JEXTRACT \ + -D_WIN32=TRUE \ + -DRAYMATH_IMPLEMENTATION=TRUE \ + -DBUILD_LIBTYPE_SHARED=TRUE \ + -I raygui/src \ + -I raylib/src \ + --dump-includes .vybe-raylib-includes-original.txt \ + bin/vybe_raylib.c + + grep -e raylib.h -e rlgl.h -e raymath.h -e raygui.h .vybe-raylib-includes-original.txt > .vybe-raylib-includes.txt + + $VYBE_JEXTRACT @.vybe-raylib-includes.txt \ --use-system-load-library \ --library raylib \ --library vybe_raylib \ -D_WIN32=TRUE \ -DRAYMATH_IMPLEMENTATION=TRUE \ -DBUILD_LIBTYPE_SHARED=TRUE \ + -I raygui/src \ + -I raylib/src \ --output src-java \ --header-class-name raylib \ -t org.vybe.raylib bin/vybe_raylib.c else + # As the generated java code is huge by default because of some transitive libs, + # we have to filter it. So we do a jextract dump. $VYBE_JEXTRACT \ + -DRAYMATH_IMPLEMENTATION=TRUE \ + -DBUILD_LIBTYPE_SHARED=TRUE \ + -I raygui/src \ + -I raylib/src \ + --dump-includes .vybe-raylib-includes-original.txt \ + bin/vybe_raylib.c + + grep -e raylib.h -e rlgl.h -e raymath.h -e raygui.h .vybe-raylib-includes-original.txt > .vybe-raylib-includes.txt + + $VYBE_JEXTRACT @.vybe-raylib-includes.txt \ -l ":${VYBE_TMP_PREFIX}/tmp/pfeodrippe_vybe_native/${VYBE_LIB_PREFIX}raylib.$VYBE_EXTENSION" \ -l ":${VYBE_TMP_PREFIX}/tmp/pfeodrippe_vybe_native/${VYBE_LIB_PREFIX}vybe_raylib.$VYBE_EXTENSION" \ -DRAYMATH_IMPLEMENTATION=TRUE \ -DBUILD_LIBTYPE_SHARED=TRUE \ + -I raygui/src \ + -I raylib/src \ --output src-java \ --header-class-name raylib \ -t org.vybe.raylib bin/vybe_raylib.c diff --git a/bin/vybe_raylib.c b/bin/vybe_raylib.c index fc324b71..9c12a1d5 100644 --- a/bin/vybe_raylib.c +++ b/bin/vybe_raylib.c @@ -1,4 +1,5 @@ +#define RAYGUI_IMPLEMENTATION TRUE #include "../raylib/src/raylib.h" #include "../raylib/src/rlgl.h" #include "../raylib/src/raymath.h" -#include "../raylib/src/raylib.h" +#include "../raygui/src/raygui.h" diff --git a/raygui b/raygui new file mode 160000 index 00000000..33f16596 --- /dev/null +++ b/raygui @@ -0,0 +1 @@ +Subproject commit 33f16596091e8147d01f948e7125db02cfae5faa diff --git a/src-java/org/vybe/raylib/GuiStyleProp.java b/src-java/org/vybe/raylib/GuiStyleProp.java new file mode 100644 index 00000000..0bb5224b --- /dev/null +++ b/src-java/org/vybe/raylib/GuiStyleProp.java @@ -0,0 +1,219 @@ +// Generated by jextract + +package org.vybe.raylib; + +import java.lang.invoke.*; +import java.lang.foreign.*; +import java.nio.ByteOrder; +import java.util.*; +import java.util.function.*; +import java.util.stream.*; + +import static java.lang.foreign.ValueLayout.*; +import static java.lang.foreign.MemoryLayout.PathElement.*; + +/** + * {@snippet lang=c : + * struct GuiStyleProp { + * unsigned short controlId; + * unsigned short propertyId; + * int propertyValue; + * } + * } + */ +public class GuiStyleProp { + + GuiStyleProp() { + // Should not be called directly + } + + private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( + raylib.C_SHORT.withName("controlId"), + raylib.C_SHORT.withName("propertyId"), + raylib.C_INT.withName("propertyValue") + ).withName("GuiStyleProp"); + + /** + * The layout of this struct + */ + public static final GroupLayout layout() { + return $LAYOUT; + } + + private static final OfShort controlId$LAYOUT = (OfShort)$LAYOUT.select(groupElement("controlId")); + + /** + * Layout for field: + * {@snippet lang=c : + * unsigned short controlId + * } + */ + public static final OfShort controlId$layout() { + return controlId$LAYOUT; + } + + private static final long controlId$OFFSET = 0; + + /** + * Offset for field: + * {@snippet lang=c : + * unsigned short controlId + * } + */ + public static final long controlId$offset() { + return controlId$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * unsigned short controlId + * } + */ + public static short controlId(MemorySegment struct) { + return struct.get(controlId$LAYOUT, controlId$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * unsigned short controlId + * } + */ + public static void controlId(MemorySegment struct, short fieldValue) { + struct.set(controlId$LAYOUT, controlId$OFFSET, fieldValue); + } + + private static final OfShort propertyId$LAYOUT = (OfShort)$LAYOUT.select(groupElement("propertyId")); + + /** + * Layout for field: + * {@snippet lang=c : + * unsigned short propertyId + * } + */ + public static final OfShort propertyId$layout() { + return propertyId$LAYOUT; + } + + private static final long propertyId$OFFSET = 2; + + /** + * Offset for field: + * {@snippet lang=c : + * unsigned short propertyId + * } + */ + public static final long propertyId$offset() { + return propertyId$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * unsigned short propertyId + * } + */ + public static short propertyId(MemorySegment struct) { + return struct.get(propertyId$LAYOUT, propertyId$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * unsigned short propertyId + * } + */ + public static void propertyId(MemorySegment struct, short fieldValue) { + struct.set(propertyId$LAYOUT, propertyId$OFFSET, fieldValue); + } + + private static final OfInt propertyValue$LAYOUT = (OfInt)$LAYOUT.select(groupElement("propertyValue")); + + /** + * Layout for field: + * {@snippet lang=c : + * int propertyValue + * } + */ + public static final OfInt propertyValue$layout() { + return propertyValue$LAYOUT; + } + + private static final long propertyValue$OFFSET = 4; + + /** + * Offset for field: + * {@snippet lang=c : + * int propertyValue + * } + */ + public static final long propertyValue$offset() { + return propertyValue$OFFSET; + } + + /** + * Getter for field: + * {@snippet lang=c : + * int propertyValue + * } + */ + public static int propertyValue(MemorySegment struct) { + return struct.get(propertyValue$LAYOUT, propertyValue$OFFSET); + } + + /** + * Setter for field: + * {@snippet lang=c : + * int propertyValue + * } + */ + public static void propertyValue(MemorySegment struct, int fieldValue) { + struct.set(propertyValue$LAYOUT, propertyValue$OFFSET, fieldValue); + } + + /** + * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}. + * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()} + */ + public static MemorySegment asSlice(MemorySegment array, long index) { + return array.asSlice(layout().byteSize() * index); + } + + /** + * The size (in bytes) of this struct + */ + public static long sizeof() { return layout().byteSize(); } + + /** + * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} + */ + public static MemorySegment allocate(SegmentAllocator allocator) { + return allocator.allocate(layout()); + } + + /** + * Allocate an array of size {@code elementCount} using {@code allocator}. + * The returned segment has size {@code elementCount * layout().byteSize()}. + */ + public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) { + return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); + } + + /** + * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). + * The returned segment has size {@code layout().byteSize()} + */ + public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) { + return reinterpret(addr, 1, arena, cleanup); + } + + /** + * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). + * The returned segment has size {@code elementCount * layout().byteSize()} + */ + public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) { + return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); + } +} + diff --git a/src-java/org/vybe/raylib/exception.java b/src-java/org/vybe/raylib/exception.java deleted file mode 100644 index aa780a3f..00000000 --- a/src-java/org/vybe/raylib/exception.java +++ /dev/null @@ -1,312 +0,0 @@ -// Generated by jextract - -package org.vybe.raylib; - -import java.lang.invoke.*; -import java.lang.foreign.*; -import java.nio.ByteOrder; -import java.util.*; -import java.util.function.*; -import java.util.stream.*; - -import static java.lang.foreign.ValueLayout.*; -import static java.lang.foreign.MemoryLayout.PathElement.*; - -/** - * {@snippet lang=c : - * struct exception { - * int type; - * char *name; - * double arg1; - * double arg2; - * double retval; - * } - * } - */ -public class exception { - - exception() { - // Should not be called directly - } - - private static final GroupLayout $LAYOUT = MemoryLayout.structLayout( - raylib.C_INT.withName("type"), - MemoryLayout.paddingLayout(4), - raylib.C_POINTER.withName("name"), - raylib.C_DOUBLE.withName("arg1"), - raylib.C_DOUBLE.withName("arg2"), - raylib.C_DOUBLE.withName("retval") - ).withName("exception"); - - /** - * The layout of this struct - */ - public static final GroupLayout layout() { - return $LAYOUT; - } - - private static final OfInt type$LAYOUT = (OfInt)$LAYOUT.select(groupElement("type")); - - /** - * Layout for field: - * {@snippet lang=c : - * int type - * } - */ - public static final OfInt type$layout() { - return type$LAYOUT; - } - - private static final long type$OFFSET = 0; - - /** - * Offset for field: - * {@snippet lang=c : - * int type - * } - */ - public static final long type$offset() { - return type$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * int type - * } - */ - public static int type(MemorySegment struct) { - return struct.get(type$LAYOUT, type$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * int type - * } - */ - public static void type(MemorySegment struct, int fieldValue) { - struct.set(type$LAYOUT, type$OFFSET, fieldValue); - } - - private static final AddressLayout name$LAYOUT = (AddressLayout)$LAYOUT.select(groupElement("name")); - - /** - * Layout for field: - * {@snippet lang=c : - * char *name - * } - */ - public static final AddressLayout name$layout() { - return name$LAYOUT; - } - - private static final long name$OFFSET = 8; - - /** - * Offset for field: - * {@snippet lang=c : - * char *name - * } - */ - public static final long name$offset() { - return name$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * char *name - * } - */ - public static MemorySegment name(MemorySegment struct) { - return struct.get(name$LAYOUT, name$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * char *name - * } - */ - public static void name(MemorySegment struct, MemorySegment fieldValue) { - struct.set(name$LAYOUT, name$OFFSET, fieldValue); - } - - private static final OfDouble arg1$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("arg1")); - - /** - * Layout for field: - * {@snippet lang=c : - * double arg1 - * } - */ - public static final OfDouble arg1$layout() { - return arg1$LAYOUT; - } - - private static final long arg1$OFFSET = 16; - - /** - * Offset for field: - * {@snippet lang=c : - * double arg1 - * } - */ - public static final long arg1$offset() { - return arg1$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * double arg1 - * } - */ - public static double arg1(MemorySegment struct) { - return struct.get(arg1$LAYOUT, arg1$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * double arg1 - * } - */ - public static void arg1(MemorySegment struct, double fieldValue) { - struct.set(arg1$LAYOUT, arg1$OFFSET, fieldValue); - } - - private static final OfDouble arg2$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("arg2")); - - /** - * Layout for field: - * {@snippet lang=c : - * double arg2 - * } - */ - public static final OfDouble arg2$layout() { - return arg2$LAYOUT; - } - - private static final long arg2$OFFSET = 24; - - /** - * Offset for field: - * {@snippet lang=c : - * double arg2 - * } - */ - public static final long arg2$offset() { - return arg2$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * double arg2 - * } - */ - public static double arg2(MemorySegment struct) { - return struct.get(arg2$LAYOUT, arg2$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * double arg2 - * } - */ - public static void arg2(MemorySegment struct, double fieldValue) { - struct.set(arg2$LAYOUT, arg2$OFFSET, fieldValue); - } - - private static final OfDouble retval$LAYOUT = (OfDouble)$LAYOUT.select(groupElement("retval")); - - /** - * Layout for field: - * {@snippet lang=c : - * double retval - * } - */ - public static final OfDouble retval$layout() { - return retval$LAYOUT; - } - - private static final long retval$OFFSET = 32; - - /** - * Offset for field: - * {@snippet lang=c : - * double retval - * } - */ - public static final long retval$offset() { - return retval$OFFSET; - } - - /** - * Getter for field: - * {@snippet lang=c : - * double retval - * } - */ - public static double retval(MemorySegment struct) { - return struct.get(retval$LAYOUT, retval$OFFSET); - } - - /** - * Setter for field: - * {@snippet lang=c : - * double retval - * } - */ - public static void retval(MemorySegment struct, double fieldValue) { - struct.set(retval$LAYOUT, retval$OFFSET, fieldValue); - } - - /** - * Obtains a slice of {@code arrayParam} which selects the array element at {@code index}. - * The returned segment has address {@code arrayParam.address() + index * layout().byteSize()} - */ - public static MemorySegment asSlice(MemorySegment array, long index) { - return array.asSlice(layout().byteSize() * index); - } - - /** - * The size (in bytes) of this struct - */ - public static long sizeof() { return layout().byteSize(); } - - /** - * Allocate a segment of size {@code layout().byteSize()} using {@code allocator} - */ - public static MemorySegment allocate(SegmentAllocator allocator) { - return allocator.allocate(layout()); - } - - /** - * Allocate an array of size {@code elementCount} using {@code allocator}. - * The returned segment has size {@code elementCount * layout().byteSize()}. - */ - public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator) { - return allocator.allocate(MemoryLayout.sequenceLayout(elementCount, layout())); - } - - /** - * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). - * The returned segment has size {@code layout().byteSize()} - */ - public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer cleanup) { - return reinterpret(addr, 1, arena, cleanup); - } - - /** - * Reinterprets {@code addr} using target {@code arena} and {@code cleanupAction} (if any). - * The returned segment has size {@code elementCount * layout().byteSize()} - */ - public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer cleanup) { - return addr.reinterpret(layout().byteSize() * elementCount, arena, cleanup); - } -} - diff --git a/src-java/org/vybe/raylib/raylib.java b/src-java/org/vybe/raylib/raylib.java index f604208a..f46f22e3 100644 --- a/src-java/org/vybe/raylib/raylib.java +++ b/src-java/org/vybe/raylib/raylib.java @@ -17,17047 +17,904 @@ public class raylib extends raylib_1 { raylib() { // Should not be called directly } - - private static class LoadImagePalette { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - Image.layout(), - raylib.C_INT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImagePalette"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - + private static final int RL_LOG_FATAL = (int)6L; /** - * Function descriptor for: * {@snippet lang=c : - * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) + * enum .RL_LOG_FATAL = 6 * } */ - public static FunctionDescriptor LoadImagePalette$descriptor() { - return LoadImagePalette.DESC; + public static int RL_LOG_FATAL() { + return RL_LOG_FATAL; } - + private static final int RL_LOG_NONE = (int)7L; /** - * Downcall method handle for: * {@snippet lang=c : - * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) + * enum .RL_LOG_NONE = 7 * } */ - public static MethodHandle LoadImagePalette$handle() { - return LoadImagePalette.HANDLE; + public static int RL_LOG_NONE() { + return RL_LOG_NONE; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = (int)1L; /** - * Address for: * {@snippet lang=c : - * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 * } */ - public static MemorySegment LoadImagePalette$address() { - return LoadImagePalette.ADDR; + public static int RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE() { + return RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = (int)2L; /** * {@snippet lang=c : - * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 * } */ - public static MemorySegment LoadImagePalette(MemorySegment image, int maxPaletteSize, MemorySegment colorCount) { - var mh$ = LoadImagePalette.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadImagePalette", image, maxPaletteSize, colorCount); - } - return (MemorySegment)mh$.invokeExact(image, maxPaletteSize, colorCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadImageColors { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadImageColors"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA() { + return RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = (int)3L; /** - * Function descriptor for: * {@snippet lang=c : - * void UnloadImageColors(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 * } */ - public static FunctionDescriptor UnloadImageColors$descriptor() { - return UnloadImageColors.DESC; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5() { + return RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = (int)4L; /** - * Downcall method handle for: * {@snippet lang=c : - * void UnloadImageColors(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 * } */ - public static MethodHandle UnloadImageColors$handle() { - return UnloadImageColors.HANDLE; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8() { + return RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = (int)5L; /** - * Address for: * {@snippet lang=c : - * void UnloadImageColors(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 * } */ - public static MemorySegment UnloadImageColors$address() { - return UnloadImageColors.ADDR; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1() { + return RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = (int)6L; /** * {@snippet lang=c : - * void UnloadImageColors(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 * } */ - public static void UnloadImageColors(MemorySegment colors) { - var mh$ = UnloadImageColors.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadImageColors", colors); - } - mh$.invokeExact(colors); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadImagePalette { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadImagePalette"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4() { + return RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = (int)7L; /** - * Function descriptor for: * {@snippet lang=c : - * void UnloadImagePalette(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 * } */ - public static FunctionDescriptor UnloadImagePalette$descriptor() { - return UnloadImagePalette.DESC; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8() { + return RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R32 = (int)8L; /** - * Downcall method handle for: * {@snippet lang=c : - * void UnloadImagePalette(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R32 = 8 * } */ - public static MethodHandle UnloadImagePalette$handle() { - return UnloadImagePalette.HANDLE; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R32() { + return RL_PIXELFORMAT_UNCOMPRESSED_R32; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = (int)9L; /** - * Address for: * {@snippet lang=c : - * void UnloadImagePalette(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 * } */ - public static MemorySegment UnloadImagePalette$address() { - return UnloadImagePalette.ADDR; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32() { + return RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = (int)10L; /** * {@snippet lang=c : - * void UnloadImagePalette(Color *colors) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 * } */ - public static void UnloadImagePalette(MemorySegment colors) { - var mh$ = UnloadImagePalette.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadImagePalette", colors); - } - mh$.invokeExact(colors); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetImageAlphaBorder { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Rectangle.layout(), - Image.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetImageAlphaBorder"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32() { + return RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R16 = (int)11L; /** - * Function descriptor for: * {@snippet lang=c : - * Rectangle GetImageAlphaBorder(Image image, float threshold) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R16 = 11 * } */ - public static FunctionDescriptor GetImageAlphaBorder$descriptor() { - return GetImageAlphaBorder.DESC; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R16() { + return RL_PIXELFORMAT_UNCOMPRESSED_R16; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = (int)12L; /** - * Downcall method handle for: * {@snippet lang=c : - * Rectangle GetImageAlphaBorder(Image image, float threshold) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 * } */ - public static MethodHandle GetImageAlphaBorder$handle() { - return GetImageAlphaBorder.HANDLE; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16() { + return RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16; } - + private static final int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = (int)13L; /** - * Address for: * {@snippet lang=c : - * Rectangle GetImageAlphaBorder(Image image, float threshold) + * enum .RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 * } */ - public static MemorySegment GetImageAlphaBorder$address() { - return GetImageAlphaBorder.ADDR; + public static int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16() { + return RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16; } - + private static final int RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = (int)14L; /** * {@snippet lang=c : - * Rectangle GetImageAlphaBorder(Image image, float threshold) + * enum .RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 * } */ - public static MemorySegment GetImageAlphaBorder(SegmentAllocator allocator, MemorySegment image, float threshold) { - var mh$ = GetImageAlphaBorder.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetImageAlphaBorder", allocator, image, threshold); - } - return (MemorySegment)mh$.invokeExact(allocator, image, threshold); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetImageColor { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Image.layout(), - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetImageColor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_PIXELFORMAT_COMPRESSED_DXT1_RGB() { + return RL_PIXELFORMAT_COMPRESSED_DXT1_RGB; } - + private static final int RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = (int)15L; /** - * Function descriptor for: * {@snippet lang=c : - * Color GetImageColor(Image image, int x, int y) + * enum .RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 * } */ - public static FunctionDescriptor GetImageColor$descriptor() { - return GetImageColor.DESC; + public static int RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA; } - + private static final int RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = (int)16L; /** - * Downcall method handle for: * {@snippet lang=c : - * Color GetImageColor(Image image, int x, int y) + * enum .RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 * } */ - public static MethodHandle GetImageColor$handle() { - return GetImageColor.HANDLE; + public static int RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA; } - + private static final int RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = (int)17L; /** - * Address for: * {@snippet lang=c : - * Color GetImageColor(Image image, int x, int y) + * enum .RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 * } */ - public static MemorySegment GetImageColor$address() { - return GetImageColor.ADDR; + public static int RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA; } - + private static final int RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = (int)18L; /** * {@snippet lang=c : - * Color GetImageColor(Image image, int x, int y) + * enum .RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 * } */ - public static MemorySegment GetImageColor(SegmentAllocator allocator, MemorySegment image, int x, int y) { - var mh$ = GetImageColor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetImageColor", allocator, image, x, y); - } - return (MemorySegment)mh$.invokeExact(allocator, image, x, y); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageClearBackground { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageClearBackground"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_PIXELFORMAT_COMPRESSED_ETC1_RGB() { + return RL_PIXELFORMAT_COMPRESSED_ETC1_RGB; } - + private static final int RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = (int)19L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageClearBackground(Image *dst, Color color) + * enum .RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 * } */ - public static FunctionDescriptor ImageClearBackground$descriptor() { - return ImageClearBackground.DESC; + public static int RL_PIXELFORMAT_COMPRESSED_ETC2_RGB() { + return RL_PIXELFORMAT_COMPRESSED_ETC2_RGB; } - + private static final int RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = (int)20L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageClearBackground(Image *dst, Color color) + * enum .RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 * } */ - public static MethodHandle ImageClearBackground$handle() { - return ImageClearBackground.HANDLE; + public static int RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA; } - + private static final int RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = (int)21L; /** - * Address for: * {@snippet lang=c : - * void ImageClearBackground(Image *dst, Color color) + * enum .RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 * } */ - public static MemorySegment ImageClearBackground$address() { - return ImageClearBackground.ADDR; + public static int RL_PIXELFORMAT_COMPRESSED_PVRT_RGB() { + return RL_PIXELFORMAT_COMPRESSED_PVRT_RGB; } - + private static final int RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = (int)22L; /** * {@snippet lang=c : - * void ImageClearBackground(Image *dst, Color color) + * enum .RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 * } */ - public static void ImageClearBackground(MemorySegment dst, MemorySegment color) { - var mh$ = ImageClearBackground.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageClearBackground", dst, color); - } - mh$.invokeExact(dst, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawPixel { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawPixel"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA; } - + private static final int RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = (int)23L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) + * enum .RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 * } */ - public static FunctionDescriptor ImageDrawPixel$descriptor() { - return ImageDrawPixel.DESC; + public static int RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA; } - + private static final int RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = (int)24L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) + * enum .RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 * } */ - public static MethodHandle ImageDrawPixel$handle() { - return ImageDrawPixel.HANDLE; + public static int RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA() { + return RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA; } - + private static final int RL_TEXTURE_FILTER_POINT = (int)0L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) + * enum .RL_TEXTURE_FILTER_POINT = 0 * } */ - public static MemorySegment ImageDrawPixel$address() { - return ImageDrawPixel.ADDR; + public static int RL_TEXTURE_FILTER_POINT() { + return RL_TEXTURE_FILTER_POINT; } - + private static final int RL_TEXTURE_FILTER_BILINEAR = (int)1L; /** * {@snippet lang=c : - * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) + * enum .RL_TEXTURE_FILTER_BILINEAR = 1 * } */ - public static void ImageDrawPixel(MemorySegment dst, int posX, int posY, MemorySegment color) { - var mh$ = ImageDrawPixel.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawPixel", dst, posX, posY, color); - } - mh$.invokeExact(dst, posX, posY, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawPixelV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawPixelV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_TEXTURE_FILTER_BILINEAR() { + return RL_TEXTURE_FILTER_BILINEAR; } - + private static final int RL_TEXTURE_FILTER_TRILINEAR = (int)2L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) + * enum .RL_TEXTURE_FILTER_TRILINEAR = 2 * } */ - public static FunctionDescriptor ImageDrawPixelV$descriptor() { - return ImageDrawPixelV.DESC; + public static int RL_TEXTURE_FILTER_TRILINEAR() { + return RL_TEXTURE_FILTER_TRILINEAR; } - + private static final int RL_TEXTURE_FILTER_ANISOTROPIC_4X = (int)3L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) + * enum .RL_TEXTURE_FILTER_ANISOTROPIC_4X = 3 * } */ - public static MethodHandle ImageDrawPixelV$handle() { - return ImageDrawPixelV.HANDLE; + public static int RL_TEXTURE_FILTER_ANISOTROPIC_4X() { + return RL_TEXTURE_FILTER_ANISOTROPIC_4X; } - + private static final int RL_TEXTURE_FILTER_ANISOTROPIC_8X = (int)4L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) + * enum .RL_TEXTURE_FILTER_ANISOTROPIC_8X = 4 * } */ - public static MemorySegment ImageDrawPixelV$address() { - return ImageDrawPixelV.ADDR; + public static int RL_TEXTURE_FILTER_ANISOTROPIC_8X() { + return RL_TEXTURE_FILTER_ANISOTROPIC_8X; } - + private static final int RL_TEXTURE_FILTER_ANISOTROPIC_16X = (int)5L; /** * {@snippet lang=c : - * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) + * enum .RL_TEXTURE_FILTER_ANISOTROPIC_16X = 5 * } */ - public static void ImageDrawPixelV(MemorySegment dst, MemorySegment position, MemorySegment color) { - var mh$ = ImageDrawPixelV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawPixelV", dst, position, color); - } - mh$.invokeExact(dst, position, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawLine { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawLine"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_TEXTURE_FILTER_ANISOTROPIC_16X() { + return RL_TEXTURE_FILTER_ANISOTROPIC_16X; } - + private static final int RL_BLEND_ALPHA = (int)0L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * enum .RL_BLEND_ALPHA = 0 * } */ - public static FunctionDescriptor ImageDrawLine$descriptor() { - return ImageDrawLine.DESC; + public static int RL_BLEND_ALPHA() { + return RL_BLEND_ALPHA; } - + private static final int RL_BLEND_ADDITIVE = (int)1L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * enum .RL_BLEND_ADDITIVE = 1 * } */ - public static MethodHandle ImageDrawLine$handle() { - return ImageDrawLine.HANDLE; + public static int RL_BLEND_ADDITIVE() { + return RL_BLEND_ADDITIVE; } - + private static final int RL_BLEND_MULTIPLIED = (int)2L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * enum .RL_BLEND_MULTIPLIED = 2 * } */ - public static MemorySegment ImageDrawLine$address() { - return ImageDrawLine.ADDR; + public static int RL_BLEND_MULTIPLIED() { + return RL_BLEND_MULTIPLIED; } - + private static final int RL_BLEND_ADD_COLORS = (int)3L; /** * {@snippet lang=c : - * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * enum .RL_BLEND_ADD_COLORS = 3 * } */ - public static void ImageDrawLine(MemorySegment dst, int startPosX, int startPosY, int endPosX, int endPosY, MemorySegment color) { - var mh$ = ImageDrawLine.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawLine", dst, startPosX, startPosY, endPosX, endPosY, color); - } - mh$.invokeExact(dst, startPosX, startPosY, endPosX, endPosY, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawLineV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Vector2.layout(), - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawLineV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_BLEND_ADD_COLORS() { + return RL_BLEND_ADD_COLORS; } - + private static final int RL_BLEND_SUBTRACT_COLORS = (int)4L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) + * enum .RL_BLEND_SUBTRACT_COLORS = 4 * } */ - public static FunctionDescriptor ImageDrawLineV$descriptor() { - return ImageDrawLineV.DESC; + public static int RL_BLEND_SUBTRACT_COLORS() { + return RL_BLEND_SUBTRACT_COLORS; } - + private static final int RL_BLEND_ALPHA_PREMULTIPLY = (int)5L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) + * enum .RL_BLEND_ALPHA_PREMULTIPLY = 5 * } */ - public static MethodHandle ImageDrawLineV$handle() { - return ImageDrawLineV.HANDLE; + public static int RL_BLEND_ALPHA_PREMULTIPLY() { + return RL_BLEND_ALPHA_PREMULTIPLY; } - + private static final int RL_BLEND_CUSTOM = (int)6L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) + * enum .RL_BLEND_CUSTOM = 6 * } */ - public static MemorySegment ImageDrawLineV$address() { - return ImageDrawLineV.ADDR; + public static int RL_BLEND_CUSTOM() { + return RL_BLEND_CUSTOM; } - + private static final int RL_BLEND_CUSTOM_SEPARATE = (int)7L; /** * {@snippet lang=c : - * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) + * enum .RL_BLEND_CUSTOM_SEPARATE = 7 * } */ - public static void ImageDrawLineV(MemorySegment dst, MemorySegment start, MemorySegment end, MemorySegment color) { - var mh$ = ImageDrawLineV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawLineV", dst, start, end, color); - } - mh$.invokeExact(dst, start, end, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawCircle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircle"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_BLEND_CUSTOM_SEPARATE() { + return RL_BLEND_CUSTOM_SEPARATE; } - + private static final int RL_SHADER_LOC_VERTEX_POSITION = (int)0L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_VERTEX_POSITION = 0 * } */ - public static FunctionDescriptor ImageDrawCircle$descriptor() { - return ImageDrawCircle.DESC; + public static int RL_SHADER_LOC_VERTEX_POSITION() { + return RL_SHADER_LOC_VERTEX_POSITION; } - + private static final int RL_SHADER_LOC_VERTEX_TEXCOORD01 = (int)1L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1 * } */ - public static MethodHandle ImageDrawCircle$handle() { - return ImageDrawCircle.HANDLE; + public static int RL_SHADER_LOC_VERTEX_TEXCOORD01() { + return RL_SHADER_LOC_VERTEX_TEXCOORD01; } - + private static final int RL_SHADER_LOC_VERTEX_TEXCOORD02 = (int)2L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2 * } */ - public static MemorySegment ImageDrawCircle$address() { - return ImageDrawCircle.ADDR; + public static int RL_SHADER_LOC_VERTEX_TEXCOORD02() { + return RL_SHADER_LOC_VERTEX_TEXCOORD02; } - + private static final int RL_SHADER_LOC_VERTEX_NORMAL = (int)3L; /** * {@snippet lang=c : - * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_VERTEX_NORMAL = 3 * } */ - public static void ImageDrawCircle(MemorySegment dst, int centerX, int centerY, int radius, MemorySegment color) { - var mh$ = ImageDrawCircle.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawCircle", dst, centerX, centerY, radius, color); - } - mh$.invokeExact(dst, centerX, centerY, radius, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawCircleV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Vector2.layout(), - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircleV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_LOC_VERTEX_NORMAL() { + return RL_SHADER_LOC_VERTEX_NORMAL; } - + private static final int RL_SHADER_LOC_VERTEX_TANGENT = (int)4L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_VERTEX_TANGENT = 4 * } */ - public static FunctionDescriptor ImageDrawCircleV$descriptor() { - return ImageDrawCircleV.DESC; + public static int RL_SHADER_LOC_VERTEX_TANGENT() { + return RL_SHADER_LOC_VERTEX_TANGENT; } - + private static final int RL_SHADER_LOC_VERTEX_COLOR = (int)5L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_VERTEX_COLOR = 5 * } */ - public static MethodHandle ImageDrawCircleV$handle() { - return ImageDrawCircleV.HANDLE; + public static int RL_SHADER_LOC_VERTEX_COLOR() { + return RL_SHADER_LOC_VERTEX_COLOR; } - + private static final int RL_SHADER_LOC_MATRIX_MVP = (int)6L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_MATRIX_MVP = 6 * } */ - public static MemorySegment ImageDrawCircleV$address() { - return ImageDrawCircleV.ADDR; + public static int RL_SHADER_LOC_MATRIX_MVP() { + return RL_SHADER_LOC_MATRIX_MVP; } - + private static final int RL_SHADER_LOC_MATRIX_VIEW = (int)7L; /** * {@snippet lang=c : - * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_MATRIX_VIEW = 7 * } */ - public static void ImageDrawCircleV(MemorySegment dst, MemorySegment center, int radius, MemorySegment color) { - var mh$ = ImageDrawCircleV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawCircleV", dst, center, radius, color); - } - mh$.invokeExact(dst, center, radius, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawCircleLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircleLines"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_LOC_MATRIX_VIEW() { + return RL_SHADER_LOC_MATRIX_VIEW; } - + private static final int RL_SHADER_LOC_MATRIX_PROJECTION = (int)8L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_MATRIX_PROJECTION = 8 * } */ - public static FunctionDescriptor ImageDrawCircleLines$descriptor() { - return ImageDrawCircleLines.DESC; + public static int RL_SHADER_LOC_MATRIX_PROJECTION() { + return RL_SHADER_LOC_MATRIX_PROJECTION; } - + private static final int RL_SHADER_LOC_MATRIX_MODEL = (int)9L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_MATRIX_MODEL = 9 * } */ - public static MethodHandle ImageDrawCircleLines$handle() { - return ImageDrawCircleLines.HANDLE; + public static int RL_SHADER_LOC_MATRIX_MODEL() { + return RL_SHADER_LOC_MATRIX_MODEL; } - + private static final int RL_SHADER_LOC_MATRIX_NORMAL = (int)10L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_MATRIX_NORMAL = 10 * } */ - public static MemorySegment ImageDrawCircleLines$address() { - return ImageDrawCircleLines.ADDR; + public static int RL_SHADER_LOC_MATRIX_NORMAL() { + return RL_SHADER_LOC_MATRIX_NORMAL; } - + private static final int RL_SHADER_LOC_VECTOR_VIEW = (int)11L; /** * {@snippet lang=c : - * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) + * enum .RL_SHADER_LOC_VECTOR_VIEW = 11 * } */ - public static void ImageDrawCircleLines(MemorySegment dst, int centerX, int centerY, int radius, MemorySegment color) { - var mh$ = ImageDrawCircleLines.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawCircleLines", dst, centerX, centerY, radius, color); - } - mh$.invokeExact(dst, centerX, centerY, radius, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int RL_SHADER_LOC_VECTOR_VIEW() { + return RL_SHADER_LOC_VECTOR_VIEW; } - - private static class ImageDrawCircleLinesV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Vector2.layout(), - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircleLinesV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - + private static final int RL_SHADER_LOC_COLOR_DIFFUSE = (int)12L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_COLOR_DIFFUSE = 12 * } */ - public static FunctionDescriptor ImageDrawCircleLinesV$descriptor() { - return ImageDrawCircleLinesV.DESC; + public static int RL_SHADER_LOC_COLOR_DIFFUSE() { + return RL_SHADER_LOC_COLOR_DIFFUSE; } - + private static final int RL_SHADER_LOC_COLOR_SPECULAR = (int)13L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_COLOR_SPECULAR = 13 * } */ - public static MethodHandle ImageDrawCircleLinesV$handle() { - return ImageDrawCircleLinesV.HANDLE; + public static int RL_SHADER_LOC_COLOR_SPECULAR() { + return RL_SHADER_LOC_COLOR_SPECULAR; } - + private static final int RL_SHADER_LOC_COLOR_AMBIENT = (int)14L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_COLOR_AMBIENT = 14 * } */ - public static MemorySegment ImageDrawCircleLinesV$address() { - return ImageDrawCircleLinesV.ADDR; + public static int RL_SHADER_LOC_COLOR_AMBIENT() { + return RL_SHADER_LOC_COLOR_AMBIENT; } - + private static final int RL_SHADER_LOC_MAP_ALBEDO = (int)15L; /** * {@snippet lang=c : - * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) + * enum .RL_SHADER_LOC_MAP_ALBEDO = 15 * } */ - public static void ImageDrawCircleLinesV(MemorySegment dst, MemorySegment center, int radius, MemorySegment color) { - var mh$ = ImageDrawCircleLinesV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawCircleLinesV", dst, center, radius, color); - } - mh$.invokeExact(dst, center, radius, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawRectangle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangle"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_LOC_MAP_ALBEDO() { + return RL_SHADER_LOC_MAP_ALBEDO; } - + private static final int RL_SHADER_LOC_MAP_METALNESS = (int)16L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) + * enum .RL_SHADER_LOC_MAP_METALNESS = 16 * } */ - public static FunctionDescriptor ImageDrawRectangle$descriptor() { - return ImageDrawRectangle.DESC; + public static int RL_SHADER_LOC_MAP_METALNESS() { + return RL_SHADER_LOC_MAP_METALNESS; } - + private static final int RL_SHADER_LOC_MAP_NORMAL = (int)17L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) + * enum .RL_SHADER_LOC_MAP_NORMAL = 17 * } */ - public static MethodHandle ImageDrawRectangle$handle() { - return ImageDrawRectangle.HANDLE; + public static int RL_SHADER_LOC_MAP_NORMAL() { + return RL_SHADER_LOC_MAP_NORMAL; } - + private static final int RL_SHADER_LOC_MAP_ROUGHNESS = (int)18L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) + * enum .RL_SHADER_LOC_MAP_ROUGHNESS = 18 * } */ - public static MemorySegment ImageDrawRectangle$address() { - return ImageDrawRectangle.ADDR; + public static int RL_SHADER_LOC_MAP_ROUGHNESS() { + return RL_SHADER_LOC_MAP_ROUGHNESS; } - + private static final int RL_SHADER_LOC_MAP_OCCLUSION = (int)19L; /** * {@snippet lang=c : - * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) + * enum .RL_SHADER_LOC_MAP_OCCLUSION = 19 * } */ - public static void ImageDrawRectangle(MemorySegment dst, int posX, int posY, int width, int height, MemorySegment color) { - var mh$ = ImageDrawRectangle.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawRectangle", dst, posX, posY, width, height, color); - } - mh$.invokeExact(dst, posX, posY, width, height, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawRectangleV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Vector2.layout(), - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangleV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_LOC_MAP_OCCLUSION() { + return RL_SHADER_LOC_MAP_OCCLUSION; } - + private static final int RL_SHADER_LOC_MAP_EMISSION = (int)20L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) + * enum .RL_SHADER_LOC_MAP_EMISSION = 20 * } */ - public static FunctionDescriptor ImageDrawRectangleV$descriptor() { - return ImageDrawRectangleV.DESC; + public static int RL_SHADER_LOC_MAP_EMISSION() { + return RL_SHADER_LOC_MAP_EMISSION; } - + private static final int RL_SHADER_LOC_MAP_HEIGHT = (int)21L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) + * enum .RL_SHADER_LOC_MAP_HEIGHT = 21 * } */ - public static MethodHandle ImageDrawRectangleV$handle() { - return ImageDrawRectangleV.HANDLE; + public static int RL_SHADER_LOC_MAP_HEIGHT() { + return RL_SHADER_LOC_MAP_HEIGHT; } - + private static final int RL_SHADER_LOC_MAP_CUBEMAP = (int)22L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) + * enum .RL_SHADER_LOC_MAP_CUBEMAP = 22 * } */ - public static MemorySegment ImageDrawRectangleV$address() { - return ImageDrawRectangleV.ADDR; + public static int RL_SHADER_LOC_MAP_CUBEMAP() { + return RL_SHADER_LOC_MAP_CUBEMAP; } - + private static final int RL_SHADER_LOC_MAP_IRRADIANCE = (int)23L; /** * {@snippet lang=c : - * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) + * enum .RL_SHADER_LOC_MAP_IRRADIANCE = 23 * } */ - public static void ImageDrawRectangleV(MemorySegment dst, MemorySegment position, MemorySegment size, MemorySegment color) { - var mh$ = ImageDrawRectangleV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawRectangleV", dst, position, size, color); - } - mh$.invokeExact(dst, position, size, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawRectangleRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Rectangle.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangleRec"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_LOC_MAP_IRRADIANCE() { + return RL_SHADER_LOC_MAP_IRRADIANCE; } - + private static final int RL_SHADER_LOC_MAP_PREFILTER = (int)24L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) + * enum .RL_SHADER_LOC_MAP_PREFILTER = 24 * } */ - public static FunctionDescriptor ImageDrawRectangleRec$descriptor() { - return ImageDrawRectangleRec.DESC; + public static int RL_SHADER_LOC_MAP_PREFILTER() { + return RL_SHADER_LOC_MAP_PREFILTER; } - + private static final int RL_SHADER_LOC_MAP_BRDF = (int)25L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) + * enum .RL_SHADER_LOC_MAP_BRDF = 25 * } */ - public static MethodHandle ImageDrawRectangleRec$handle() { - return ImageDrawRectangleRec.HANDLE; + public static int RL_SHADER_LOC_MAP_BRDF() { + return RL_SHADER_LOC_MAP_BRDF; } - + private static final int RL_SHADER_UNIFORM_FLOAT = (int)0L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) + * enum .RL_SHADER_UNIFORM_FLOAT = 0 * } */ - public static MemorySegment ImageDrawRectangleRec$address() { - return ImageDrawRectangleRec.ADDR; + public static int RL_SHADER_UNIFORM_FLOAT() { + return RL_SHADER_UNIFORM_FLOAT; } - + private static final int RL_SHADER_UNIFORM_VEC2 = (int)1L; /** * {@snippet lang=c : - * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) + * enum .RL_SHADER_UNIFORM_VEC2 = 1 * } */ - public static void ImageDrawRectangleRec(MemorySegment dst, MemorySegment rec, MemorySegment color) { - var mh$ = ImageDrawRectangleRec.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawRectangleRec", dst, rec, color); - } - mh$.invokeExact(dst, rec, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawRectangleLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Rectangle.layout(), - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangleLines"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_UNIFORM_VEC2() { + return RL_SHADER_UNIFORM_VEC2; } - + private static final int RL_SHADER_UNIFORM_VEC3 = (int)2L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) + * enum .RL_SHADER_UNIFORM_VEC3 = 2 * } */ - public static FunctionDescriptor ImageDrawRectangleLines$descriptor() { - return ImageDrawRectangleLines.DESC; + public static int RL_SHADER_UNIFORM_VEC3() { + return RL_SHADER_UNIFORM_VEC3; } - + private static final int RL_SHADER_UNIFORM_VEC4 = (int)3L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) + * enum .RL_SHADER_UNIFORM_VEC4 = 3 * } */ - public static MethodHandle ImageDrawRectangleLines$handle() { - return ImageDrawRectangleLines.HANDLE; + public static int RL_SHADER_UNIFORM_VEC4() { + return RL_SHADER_UNIFORM_VEC4; } - + private static final int RL_SHADER_UNIFORM_INT = (int)4L; /** - * Address for: * {@snippet lang=c : - * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) + * enum .RL_SHADER_UNIFORM_INT = 4 * } */ - public static MemorySegment ImageDrawRectangleLines$address() { - return ImageDrawRectangleLines.ADDR; + public static int RL_SHADER_UNIFORM_INT() { + return RL_SHADER_UNIFORM_INT; } - + private static final int RL_SHADER_UNIFORM_IVEC2 = (int)5L; /** * {@snippet lang=c : - * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) + * enum .RL_SHADER_UNIFORM_IVEC2 = 5 * } */ - public static void ImageDrawRectangleLines(MemorySegment dst, MemorySegment rec, int thick, MemorySegment color) { - var mh$ = ImageDrawRectangleLines.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawRectangleLines", dst, rec, thick, color); - } - mh$.invokeExact(dst, rec, thick, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDraw { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Image.layout(), - Rectangle.layout(), - Rectangle.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDraw"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_UNIFORM_IVEC2() { + return RL_SHADER_UNIFORM_IVEC2; } - + private static final int RL_SHADER_UNIFORM_IVEC3 = (int)6L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) + * enum .RL_SHADER_UNIFORM_IVEC3 = 6 * } */ - public static FunctionDescriptor ImageDraw$descriptor() { - return ImageDraw.DESC; + public static int RL_SHADER_UNIFORM_IVEC3() { + return RL_SHADER_UNIFORM_IVEC3; } - + private static final int RL_SHADER_UNIFORM_IVEC4 = (int)7L; /** - * Downcall method handle for: * {@snippet lang=c : - * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) + * enum .RL_SHADER_UNIFORM_IVEC4 = 7 * } */ - public static MethodHandle ImageDraw$handle() { - return ImageDraw.HANDLE; + public static int RL_SHADER_UNIFORM_IVEC4() { + return RL_SHADER_UNIFORM_IVEC4; } - + private static final int RL_SHADER_UNIFORM_SAMPLER2D = (int)8L; /** - * Address for: * {@snippet lang=c : - * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) + * enum .RL_SHADER_UNIFORM_SAMPLER2D = 8 * } */ - public static MemorySegment ImageDraw$address() { - return ImageDraw.ADDR; + public static int RL_SHADER_UNIFORM_SAMPLER2D() { + return RL_SHADER_UNIFORM_SAMPLER2D; } - + private static final int RL_SHADER_ATTRIB_FLOAT = (int)0L; /** * {@snippet lang=c : - * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) + * enum .RL_SHADER_ATTRIB_FLOAT = 0 * } */ - public static void ImageDraw(MemorySegment dst, MemorySegment src, MemorySegment srcRec, MemorySegment dstRec, MemorySegment tint) { - var mh$ = ImageDraw.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDraw", dst, src, srcRec, dstRec, tint); - } - mh$.invokeExact(dst, src, srcRec, dstRec, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawText { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawText"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_ATTRIB_FLOAT() { + return RL_SHADER_ATTRIB_FLOAT; } - + private static final int RL_SHADER_ATTRIB_VEC2 = (int)1L; /** - * Function descriptor for: * {@snippet lang=c : - * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) + * enum .RL_SHADER_ATTRIB_VEC2 = 1 * } */ - public static FunctionDescriptor ImageDrawText$descriptor() { - return ImageDrawText.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static MethodHandle ImageDrawText$handle() { - return ImageDrawText.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static MemorySegment ImageDrawText$address() { - return ImageDrawText.ADDR; - } - - /** - * {@snippet lang=c : - * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static void ImageDrawText(MemorySegment dst, MemorySegment text, int posX, int posY, int fontSize, MemorySegment color) { - var mh$ = ImageDrawText.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawText", dst, text, posX, posY, fontSize, color); - } - mh$.invokeExact(dst, text, posX, posY, fontSize, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ImageDrawTextEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Font.layout(), - raylib.C_POINTER, - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawTextEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static FunctionDescriptor ImageDrawTextEx$descriptor() { - return ImageDrawTextEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static MethodHandle ImageDrawTextEx$handle() { - return ImageDrawTextEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static MemorySegment ImageDrawTextEx$address() { - return ImageDrawTextEx.ADDR; - } - - /** - * {@snippet lang=c : - * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static void ImageDrawTextEx(MemorySegment dst, MemorySegment font, MemorySegment text, MemorySegment position, float fontSize, float spacing, MemorySegment tint) { - var mh$ = ImageDrawTextEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ImageDrawTextEx", dst, font, text, position, fontSize, spacing, tint); - } - mh$.invokeExact(dst, font, text, position, fontSize, spacing, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Texture.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Texture2D LoadTexture(const char *fileName) - * } - */ - public static FunctionDescriptor LoadTexture$descriptor() { - return LoadTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Texture2D LoadTexture(const char *fileName) - * } - */ - public static MethodHandle LoadTexture$handle() { - return LoadTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Texture2D LoadTexture(const char *fileName) - * } - */ - public static MemorySegment LoadTexture$address() { - return LoadTexture.ADDR; - } - - /** - * {@snippet lang=c : - * Texture2D LoadTexture(const char *fileName) - * } - */ - public static MemorySegment LoadTexture(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadTexture", allocator, fileName); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadTextureFromImage { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Texture.layout(), - Image.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadTextureFromImage"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Texture2D LoadTextureFromImage(Image image) - * } - */ - public static FunctionDescriptor LoadTextureFromImage$descriptor() { - return LoadTextureFromImage.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Texture2D LoadTextureFromImage(Image image) - * } - */ - public static MethodHandle LoadTextureFromImage$handle() { - return LoadTextureFromImage.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Texture2D LoadTextureFromImage(Image image) - * } - */ - public static MemorySegment LoadTextureFromImage$address() { - return LoadTextureFromImage.ADDR; - } - - /** - * {@snippet lang=c : - * Texture2D LoadTextureFromImage(Image image) - * } - */ - public static MemorySegment LoadTextureFromImage(SegmentAllocator allocator, MemorySegment image) { - var mh$ = LoadTextureFromImage.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadTextureFromImage", allocator, image); - } - return (MemorySegment)mh$.invokeExact(allocator, image); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadTextureCubemap { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Texture.layout(), - Image.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadTextureCubemap"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * TextureCubemap LoadTextureCubemap(Image image, int layout) - * } - */ - public static FunctionDescriptor LoadTextureCubemap$descriptor() { - return LoadTextureCubemap.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * TextureCubemap LoadTextureCubemap(Image image, int layout) - * } - */ - public static MethodHandle LoadTextureCubemap$handle() { - return LoadTextureCubemap.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * TextureCubemap LoadTextureCubemap(Image image, int layout) - * } - */ - public static MemorySegment LoadTextureCubemap$address() { - return LoadTextureCubemap.ADDR; - } - - /** - * {@snippet lang=c : - * TextureCubemap LoadTextureCubemap(Image image, int layout) - * } - */ - public static MemorySegment LoadTextureCubemap(SegmentAllocator allocator, MemorySegment image, int layout) { - var mh$ = LoadTextureCubemap.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadTextureCubemap", allocator, image, layout); - } - return (MemorySegment)mh$.invokeExact(allocator, image, layout); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadRenderTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - RenderTexture.layout(), - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadRenderTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * RenderTexture2D LoadRenderTexture(int width, int height) - * } - */ - public static FunctionDescriptor LoadRenderTexture$descriptor() { - return LoadRenderTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * RenderTexture2D LoadRenderTexture(int width, int height) - * } - */ - public static MethodHandle LoadRenderTexture$handle() { - return LoadRenderTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * RenderTexture2D LoadRenderTexture(int width, int height) - * } - */ - public static MemorySegment LoadRenderTexture$address() { - return LoadRenderTexture.ADDR; - } - - /** - * {@snippet lang=c : - * RenderTexture2D LoadRenderTexture(int width, int height) - * } - */ - public static MemorySegment LoadRenderTexture(SegmentAllocator allocator, int width, int height) { - var mh$ = LoadRenderTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadRenderTexture", allocator, width, height); - } - return (MemorySegment)mh$.invokeExact(allocator, width, height); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsTextureReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Texture.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsTextureReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsTextureReady(Texture2D texture) - * } - */ - public static FunctionDescriptor IsTextureReady$descriptor() { - return IsTextureReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsTextureReady(Texture2D texture) - * } - */ - public static MethodHandle IsTextureReady$handle() { - return IsTextureReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsTextureReady(Texture2D texture) - * } - */ - public static MemorySegment IsTextureReady$address() { - return IsTextureReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsTextureReady(Texture2D texture) - * } - */ - public static boolean IsTextureReady(MemorySegment texture) { - var mh$ = IsTextureReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsTextureReady", texture); - } - return (boolean)mh$.invokeExact(texture); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadTexture(Texture2D texture) - * } - */ - public static FunctionDescriptor UnloadTexture$descriptor() { - return UnloadTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadTexture(Texture2D texture) - * } - */ - public static MethodHandle UnloadTexture$handle() { - return UnloadTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadTexture(Texture2D texture) - * } - */ - public static MemorySegment UnloadTexture$address() { - return UnloadTexture.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadTexture(Texture2D texture) - * } - */ - public static void UnloadTexture(MemorySegment texture) { - var mh$ = UnloadTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadTexture", texture); - } - mh$.invokeExact(texture); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsRenderTextureReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - RenderTexture.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsRenderTextureReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsRenderTextureReady(RenderTexture2D target) - * } - */ - public static FunctionDescriptor IsRenderTextureReady$descriptor() { - return IsRenderTextureReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsRenderTextureReady(RenderTexture2D target) - * } - */ - public static MethodHandle IsRenderTextureReady$handle() { - return IsRenderTextureReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsRenderTextureReady(RenderTexture2D target) - * } - */ - public static MemorySegment IsRenderTextureReady$address() { - return IsRenderTextureReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsRenderTextureReady(RenderTexture2D target) - * } - */ - public static boolean IsRenderTextureReady(MemorySegment target) { - var mh$ = IsRenderTextureReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsRenderTextureReady", target); - } - return (boolean)mh$.invokeExact(target); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadRenderTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - RenderTexture.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadRenderTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadRenderTexture(RenderTexture2D target) - * } - */ - public static FunctionDescriptor UnloadRenderTexture$descriptor() { - return UnloadRenderTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadRenderTexture(RenderTexture2D target) - * } - */ - public static MethodHandle UnloadRenderTexture$handle() { - return UnloadRenderTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadRenderTexture(RenderTexture2D target) - * } - */ - public static MemorySegment UnloadRenderTexture$address() { - return UnloadRenderTexture.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadRenderTexture(RenderTexture2D target) - * } - */ - public static void UnloadRenderTexture(MemorySegment target) { - var mh$ = UnloadRenderTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadRenderTexture", target); - } - mh$.invokeExact(target); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateTexture(Texture2D texture, const void *pixels) - * } - */ - public static FunctionDescriptor UpdateTexture$descriptor() { - return UpdateTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateTexture(Texture2D texture, const void *pixels) - * } - */ - public static MethodHandle UpdateTexture$handle() { - return UpdateTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateTexture(Texture2D texture, const void *pixels) - * } - */ - public static MemorySegment UpdateTexture$address() { - return UpdateTexture.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateTexture(Texture2D texture, const void *pixels) - * } - */ - public static void UpdateTexture(MemorySegment texture, MemorySegment pixels) { - var mh$ = UpdateTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateTexture", texture, pixels); - } - mh$.invokeExact(texture, pixels); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateTextureRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - Rectangle.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateTextureRec"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) - * } - */ - public static FunctionDescriptor UpdateTextureRec$descriptor() { - return UpdateTextureRec.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) - * } - */ - public static MethodHandle UpdateTextureRec$handle() { - return UpdateTextureRec.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) - * } - */ - public static MemorySegment UpdateTextureRec$address() { - return UpdateTextureRec.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) - * } - */ - public static void UpdateTextureRec(MemorySegment texture, MemorySegment rec, MemorySegment pixels) { - var mh$ = UpdateTextureRec.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateTextureRec", texture, rec, pixels); - } - mh$.invokeExact(texture, rec, pixels); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenTextureMipmaps { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenTextureMipmaps"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void GenTextureMipmaps(Texture2D *texture) - * } - */ - public static FunctionDescriptor GenTextureMipmaps$descriptor() { - return GenTextureMipmaps.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void GenTextureMipmaps(Texture2D *texture) - * } - */ - public static MethodHandle GenTextureMipmaps$handle() { - return GenTextureMipmaps.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void GenTextureMipmaps(Texture2D *texture) - * } - */ - public static MemorySegment GenTextureMipmaps$address() { - return GenTextureMipmaps.ADDR; - } - - /** - * {@snippet lang=c : - * void GenTextureMipmaps(Texture2D *texture) - * } - */ - public static void GenTextureMipmaps(MemorySegment texture) { - var mh$ = GenTextureMipmaps.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenTextureMipmaps", texture); - } - mh$.invokeExact(texture); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetTextureFilter { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetTextureFilter"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetTextureFilter(Texture2D texture, int filter) - * } - */ - public static FunctionDescriptor SetTextureFilter$descriptor() { - return SetTextureFilter.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetTextureFilter(Texture2D texture, int filter) - * } - */ - public static MethodHandle SetTextureFilter$handle() { - return SetTextureFilter.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetTextureFilter(Texture2D texture, int filter) - * } - */ - public static MemorySegment SetTextureFilter$address() { - return SetTextureFilter.ADDR; - } - - /** - * {@snippet lang=c : - * void SetTextureFilter(Texture2D texture, int filter) - * } - */ - public static void SetTextureFilter(MemorySegment texture, int filter) { - var mh$ = SetTextureFilter.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetTextureFilter", texture, filter); - } - mh$.invokeExact(texture, filter); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetTextureWrap { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetTextureWrap"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetTextureWrap(Texture2D texture, int wrap) - * } - */ - public static FunctionDescriptor SetTextureWrap$descriptor() { - return SetTextureWrap.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetTextureWrap(Texture2D texture, int wrap) - * } - */ - public static MethodHandle SetTextureWrap$handle() { - return SetTextureWrap.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetTextureWrap(Texture2D texture, int wrap) - * } - */ - public static MemorySegment SetTextureWrap$address() { - return SetTextureWrap.ADDR; - } - - /** - * {@snippet lang=c : - * void SetTextureWrap(Texture2D texture, int wrap) - * } - */ - public static void SetTextureWrap(MemorySegment texture, int wrap) { - var mh$ = SetTextureWrap.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetTextureWrap", texture, wrap); - } - mh$.invokeExact(texture, wrap); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) - * } - */ - public static FunctionDescriptor DrawTexture$descriptor() { - return DrawTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) - * } - */ - public static MethodHandle DrawTexture$handle() { - return DrawTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) - * } - */ - public static MemorySegment DrawTexture$address() { - return DrawTexture.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) - * } - */ - public static void DrawTexture(MemorySegment texture, int posX, int posY, MemorySegment tint) { - var mh$ = DrawTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTexture", texture, posX, posY, tint); - } - mh$.invokeExact(texture, posX, posY, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextureV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) - * } - */ - public static FunctionDescriptor DrawTextureV$descriptor() { - return DrawTextureV.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) - * } - */ - public static MethodHandle DrawTextureV$handle() { - return DrawTextureV.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) - * } - */ - public static MemorySegment DrawTextureV$address() { - return DrawTextureV.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) - * } - */ - public static void DrawTextureV(MemorySegment texture, MemorySegment position, MemorySegment tint) { - var mh$ = DrawTextureV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextureV", texture, position, tint); - } - mh$.invokeExact(texture, position, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextureEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) - * } - */ - public static FunctionDescriptor DrawTextureEx$descriptor() { - return DrawTextureEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) - * } - */ - public static MethodHandle DrawTextureEx$handle() { - return DrawTextureEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) - * } - */ - public static MemorySegment DrawTextureEx$address() { - return DrawTextureEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) - * } - */ - public static void DrawTextureEx(MemorySegment texture, MemorySegment position, float rotation, float scale, MemorySegment tint) { - var mh$ = DrawTextureEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextureEx", texture, position, rotation, scale, tint); - } - mh$.invokeExact(texture, position, rotation, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextureRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - Rectangle.layout(), - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureRec"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) - * } - */ - public static FunctionDescriptor DrawTextureRec$descriptor() { - return DrawTextureRec.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) - * } - */ - public static MethodHandle DrawTextureRec$handle() { - return DrawTextureRec.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) - * } - */ - public static MemorySegment DrawTextureRec$address() { - return DrawTextureRec.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) - * } - */ - public static void DrawTextureRec(MemorySegment texture, MemorySegment source, MemorySegment position, MemorySegment tint) { - var mh$ = DrawTextureRec.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextureRec", texture, source, position, tint); - } - mh$.invokeExact(texture, source, position, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTexturePro { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - Rectangle.layout(), - Rectangle.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTexturePro"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static FunctionDescriptor DrawTexturePro$descriptor() { - return DrawTexturePro.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static MethodHandle DrawTexturePro$handle() { - return DrawTexturePro.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static MemorySegment DrawTexturePro$address() { - return DrawTexturePro.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static void DrawTexturePro(MemorySegment texture, MemorySegment source, MemorySegment dest, MemorySegment origin, float rotation, MemorySegment tint) { - var mh$ = DrawTexturePro.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTexturePro", texture, source, dest, origin, rotation, tint); - } - mh$.invokeExact(texture, source, dest, origin, rotation, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextureNPatch { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Texture.layout(), - NPatchInfo.layout(), - Rectangle.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureNPatch"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static FunctionDescriptor DrawTextureNPatch$descriptor() { - return DrawTextureNPatch.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static MethodHandle DrawTextureNPatch$handle() { - return DrawTextureNPatch.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static MemorySegment DrawTextureNPatch$address() { - return DrawTextureNPatch.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) - * } - */ - public static void DrawTextureNPatch(MemorySegment texture, MemorySegment nPatchInfo, MemorySegment dest, MemorySegment origin, float rotation, MemorySegment tint) { - var mh$ = DrawTextureNPatch.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextureNPatch", texture, nPatchInfo, dest, origin, rotation, tint); - } - mh$.invokeExact(texture, nPatchInfo, dest, origin, rotation, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorIsEqual { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Color.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorIsEqual"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool ColorIsEqual(Color col1, Color col2) - * } - */ - public static FunctionDescriptor ColorIsEqual$descriptor() { - return ColorIsEqual.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool ColorIsEqual(Color col1, Color col2) - * } - */ - public static MethodHandle ColorIsEqual$handle() { - return ColorIsEqual.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool ColorIsEqual(Color col1, Color col2) - * } - */ - public static MemorySegment ColorIsEqual$address() { - return ColorIsEqual.ADDR; - } - - /** - * {@snippet lang=c : - * bool ColorIsEqual(Color col1, Color col2) - * } - */ - public static boolean ColorIsEqual(MemorySegment col1, MemorySegment col2) { - var mh$ = ColorIsEqual.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorIsEqual", col1, col2); - } - return (boolean)mh$.invokeExact(col1, col2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class Fade { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Color.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Fade"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color Fade(Color color, float alpha) - * } - */ - public static FunctionDescriptor Fade$descriptor() { - return Fade.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color Fade(Color color, float alpha) - * } - */ - public static MethodHandle Fade$handle() { - return Fade.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color Fade(Color color, float alpha) - * } - */ - public static MemorySegment Fade$address() { - return Fade.ADDR; - } - - /** - * {@snippet lang=c : - * Color Fade(Color color, float alpha) - * } - */ - public static MemorySegment Fade(SegmentAllocator allocator, MemorySegment color, float alpha) { - var mh$ = Fade.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Fade", allocator, color, alpha); - } - return (MemorySegment)mh$.invokeExact(allocator, color, alpha); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorToInt { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorToInt"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int ColorToInt(Color color) - * } - */ - public static FunctionDescriptor ColorToInt$descriptor() { - return ColorToInt.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int ColorToInt(Color color) - * } - */ - public static MethodHandle ColorToInt$handle() { - return ColorToInt.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int ColorToInt(Color color) - * } - */ - public static MemorySegment ColorToInt$address() { - return ColorToInt.ADDR; - } - - /** - * {@snippet lang=c : - * int ColorToInt(Color color) - * } - */ - public static int ColorToInt(MemorySegment color) { - var mh$ = ColorToInt.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorToInt", color); - } - return (int)mh$.invokeExact(color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorNormalize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorNormalize"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Vector4 ColorNormalize(Color color) - * } - */ - public static FunctionDescriptor ColorNormalize$descriptor() { - return ColorNormalize.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Vector4 ColorNormalize(Color color) - * } - */ - public static MethodHandle ColorNormalize$handle() { - return ColorNormalize.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Vector4 ColorNormalize(Color color) - * } - */ - public static MemorySegment ColorNormalize$address() { - return ColorNormalize.ADDR; - } - - /** - * {@snippet lang=c : - * Vector4 ColorNormalize(Color color) - * } - */ - public static MemorySegment ColorNormalize(SegmentAllocator allocator, MemorySegment color) { - var mh$ = ColorNormalize.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorNormalize", allocator, color); - } - return (MemorySegment)mh$.invokeExact(allocator, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorFromNormalized { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorFromNormalized"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorFromNormalized(Vector4 normalized) - * } - */ - public static FunctionDescriptor ColorFromNormalized$descriptor() { - return ColorFromNormalized.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorFromNormalized(Vector4 normalized) - * } - */ - public static MethodHandle ColorFromNormalized$handle() { - return ColorFromNormalized.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorFromNormalized(Vector4 normalized) - * } - */ - public static MemorySegment ColorFromNormalized$address() { - return ColorFromNormalized.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorFromNormalized(Vector4 normalized) - * } - */ - public static MemorySegment ColorFromNormalized(SegmentAllocator allocator, MemorySegment normalized) { - var mh$ = ColorFromNormalized.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorFromNormalized", allocator, normalized); - } - return (MemorySegment)mh$.invokeExact(allocator, normalized); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorToHSV { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorToHSV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Vector3 ColorToHSV(Color color) - * } - */ - public static FunctionDescriptor ColorToHSV$descriptor() { - return ColorToHSV.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Vector3 ColorToHSV(Color color) - * } - */ - public static MethodHandle ColorToHSV$handle() { - return ColorToHSV.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Vector3 ColorToHSV(Color color) - * } - */ - public static MemorySegment ColorToHSV$address() { - return ColorToHSV.ADDR; - } - - /** - * {@snippet lang=c : - * Vector3 ColorToHSV(Color color) - * } - */ - public static MemorySegment ColorToHSV(SegmentAllocator allocator, MemorySegment color) { - var mh$ = ColorToHSV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorToHSV", allocator, color); - } - return (MemorySegment)mh$.invokeExact(allocator, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorFromHSV { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorFromHSV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorFromHSV(float hue, float saturation, float value) - * } - */ - public static FunctionDescriptor ColorFromHSV$descriptor() { - return ColorFromHSV.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorFromHSV(float hue, float saturation, float value) - * } - */ - public static MethodHandle ColorFromHSV$handle() { - return ColorFromHSV.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorFromHSV(float hue, float saturation, float value) - * } - */ - public static MemorySegment ColorFromHSV$address() { - return ColorFromHSV.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorFromHSV(float hue, float saturation, float value) - * } - */ - public static MemorySegment ColorFromHSV(SegmentAllocator allocator, float hue, float saturation, float value) { - var mh$ = ColorFromHSV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorFromHSV", allocator, hue, saturation, value); - } - return (MemorySegment)mh$.invokeExact(allocator, hue, saturation, value); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorTint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Color.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorTint"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorTint(Color color, Color tint) - * } - */ - public static FunctionDescriptor ColorTint$descriptor() { - return ColorTint.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorTint(Color color, Color tint) - * } - */ - public static MethodHandle ColorTint$handle() { - return ColorTint.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorTint(Color color, Color tint) - * } - */ - public static MemorySegment ColorTint$address() { - return ColorTint.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorTint(Color color, Color tint) - * } - */ - public static MemorySegment ColorTint(SegmentAllocator allocator, MemorySegment color, MemorySegment tint) { - var mh$ = ColorTint.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorTint", allocator, color, tint); - } - return (MemorySegment)mh$.invokeExact(allocator, color, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorBrightness { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Color.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorBrightness"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorBrightness(Color color, float factor) - * } - */ - public static FunctionDescriptor ColorBrightness$descriptor() { - return ColorBrightness.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorBrightness(Color color, float factor) - * } - */ - public static MethodHandle ColorBrightness$handle() { - return ColorBrightness.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorBrightness(Color color, float factor) - * } - */ - public static MemorySegment ColorBrightness$address() { - return ColorBrightness.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorBrightness(Color color, float factor) - * } - */ - public static MemorySegment ColorBrightness(SegmentAllocator allocator, MemorySegment color, float factor) { - var mh$ = ColorBrightness.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorBrightness", allocator, color, factor); - } - return (MemorySegment)mh$.invokeExact(allocator, color, factor); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorContrast { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Color.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorContrast"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorContrast(Color color, float contrast) - * } - */ - public static FunctionDescriptor ColorContrast$descriptor() { - return ColorContrast.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorContrast(Color color, float contrast) - * } - */ - public static MethodHandle ColorContrast$handle() { - return ColorContrast.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorContrast(Color color, float contrast) - * } - */ - public static MemorySegment ColorContrast$address() { - return ColorContrast.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorContrast(Color color, float contrast) - * } - */ - public static MemorySegment ColorContrast(SegmentAllocator allocator, MemorySegment color, float contrast) { - var mh$ = ColorContrast.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorContrast", allocator, color, contrast); - } - return (MemorySegment)mh$.invokeExact(allocator, color, contrast); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorAlpha { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Color.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorAlpha"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorAlpha(Color color, float alpha) - * } - */ - public static FunctionDescriptor ColorAlpha$descriptor() { - return ColorAlpha.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorAlpha(Color color, float alpha) - * } - */ - public static MethodHandle ColorAlpha$handle() { - return ColorAlpha.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorAlpha(Color color, float alpha) - * } - */ - public static MemorySegment ColorAlpha$address() { - return ColorAlpha.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorAlpha(Color color, float alpha) - * } - */ - public static MemorySegment ColorAlpha(SegmentAllocator allocator, MemorySegment color, float alpha) { - var mh$ = ColorAlpha.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorAlpha", allocator, color, alpha); - } - return (MemorySegment)mh$.invokeExact(allocator, color, alpha); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ColorAlphaBlend { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - Color.layout(), - Color.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ColorAlphaBlend"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color ColorAlphaBlend(Color dst, Color src, Color tint) - * } - */ - public static FunctionDescriptor ColorAlphaBlend$descriptor() { - return ColorAlphaBlend.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color ColorAlphaBlend(Color dst, Color src, Color tint) - * } - */ - public static MethodHandle ColorAlphaBlend$handle() { - return ColorAlphaBlend.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color ColorAlphaBlend(Color dst, Color src, Color tint) - * } - */ - public static MemorySegment ColorAlphaBlend$address() { - return ColorAlphaBlend.ADDR; - } - - /** - * {@snippet lang=c : - * Color ColorAlphaBlend(Color dst, Color src, Color tint) - * } - */ - public static MemorySegment ColorAlphaBlend(SegmentAllocator allocator, MemorySegment dst, MemorySegment src, MemorySegment tint) { - var mh$ = ColorAlphaBlend.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ColorAlphaBlend", allocator, dst, src, tint); - } - return (MemorySegment)mh$.invokeExact(allocator, dst, src, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetColor { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetColor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color GetColor(unsigned int hexValue) - * } - */ - public static FunctionDescriptor GetColor$descriptor() { - return GetColor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color GetColor(unsigned int hexValue) - * } - */ - public static MethodHandle GetColor$handle() { - return GetColor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color GetColor(unsigned int hexValue) - * } - */ - public static MemorySegment GetColor$address() { - return GetColor.ADDR; - } - - /** - * {@snippet lang=c : - * Color GetColor(unsigned int hexValue) - * } - */ - public static MemorySegment GetColor(SegmentAllocator allocator, int hexValue) { - var mh$ = GetColor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetColor", allocator, hexValue); - } - return (MemorySegment)mh$.invokeExact(allocator, hexValue); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetPixelColor { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Color.layout(), - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetPixelColor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Color GetPixelColor(void *srcPtr, int format) - * } - */ - public static FunctionDescriptor GetPixelColor$descriptor() { - return GetPixelColor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Color GetPixelColor(void *srcPtr, int format) - * } - */ - public static MethodHandle GetPixelColor$handle() { - return GetPixelColor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Color GetPixelColor(void *srcPtr, int format) - * } - */ - public static MemorySegment GetPixelColor$address() { - return GetPixelColor.ADDR; - } - - /** - * {@snippet lang=c : - * Color GetPixelColor(void *srcPtr, int format) - * } - */ - public static MemorySegment GetPixelColor(SegmentAllocator allocator, MemorySegment srcPtr, int format) { - var mh$ = GetPixelColor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetPixelColor", allocator, srcPtr, format); - } - return (MemorySegment)mh$.invokeExact(allocator, srcPtr, format); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetPixelColor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Color.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetPixelColor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetPixelColor(void *dstPtr, Color color, int format) - * } - */ - public static FunctionDescriptor SetPixelColor$descriptor() { - return SetPixelColor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetPixelColor(void *dstPtr, Color color, int format) - * } - */ - public static MethodHandle SetPixelColor$handle() { - return SetPixelColor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetPixelColor(void *dstPtr, Color color, int format) - * } - */ - public static MemorySegment SetPixelColor$address() { - return SetPixelColor.ADDR; - } - - /** - * {@snippet lang=c : - * void SetPixelColor(void *dstPtr, Color color, int format) - * } - */ - public static void SetPixelColor(MemorySegment dstPtr, MemorySegment color, int format) { - var mh$ = SetPixelColor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetPixelColor", dstPtr, color, format); - } - mh$.invokeExact(dstPtr, color, format); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetPixelDataSize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetPixelDataSize"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int GetPixelDataSize(int width, int height, int format) - * } - */ - public static FunctionDescriptor GetPixelDataSize$descriptor() { - return GetPixelDataSize.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int GetPixelDataSize(int width, int height, int format) - * } - */ - public static MethodHandle GetPixelDataSize$handle() { - return GetPixelDataSize.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int GetPixelDataSize(int width, int height, int format) - * } - */ - public static MemorySegment GetPixelDataSize$address() { - return GetPixelDataSize.ADDR; - } - - /** - * {@snippet lang=c : - * int GetPixelDataSize(int width, int height, int format) - * } - */ - public static int GetPixelDataSize(int width, int height, int format) { - var mh$ = GetPixelDataSize.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetPixelDataSize", width, height, format); - } - return (int)mh$.invokeExact(width, height, format); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetFontDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Font.layout() ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetFontDefault"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Font GetFontDefault() - * } - */ - public static FunctionDescriptor GetFontDefault$descriptor() { - return GetFontDefault.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Font GetFontDefault() - * } - */ - public static MethodHandle GetFontDefault$handle() { - return GetFontDefault.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Font GetFontDefault() - * } - */ - public static MemorySegment GetFontDefault$address() { - return GetFontDefault.ADDR; - } - - /** - * {@snippet lang=c : - * Font GetFontDefault() - * } - */ - public static MemorySegment GetFontDefault(SegmentAllocator allocator) { - var mh$ = GetFontDefault.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetFontDefault", allocator); - } - return (MemorySegment)mh$.invokeExact(allocator); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadFont { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Font.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFont"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Font LoadFont(const char *fileName) - * } - */ - public static FunctionDescriptor LoadFont$descriptor() { - return LoadFont.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Font LoadFont(const char *fileName) - * } - */ - public static MethodHandle LoadFont$handle() { - return LoadFont.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Font LoadFont(const char *fileName) - * } - */ - public static MemorySegment LoadFont$address() { - return LoadFont.ADDR; - } - - /** - * {@snippet lang=c : - * Font LoadFont(const char *fileName) - * } - */ - public static MemorySegment LoadFont(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadFont.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadFont", allocator, fileName); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadFontEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Font.layout(), - raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static FunctionDescriptor LoadFontEx$descriptor() { - return LoadFontEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static MethodHandle LoadFontEx$handle() { - return LoadFontEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static MemorySegment LoadFontEx$address() { - return LoadFontEx.ADDR; - } - - /** - * {@snippet lang=c : - * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static MemorySegment LoadFontEx(SegmentAllocator allocator, MemorySegment fileName, int fontSize, MemorySegment codepoints, int codepointCount) { - var mh$ = LoadFontEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadFontEx", allocator, fileName, fontSize, codepoints, codepointCount); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName, fontSize, codepoints, codepointCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadFontFromImage { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Font.layout(), - Image.layout(), - Color.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontFromImage"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Font LoadFontFromImage(Image image, Color key, int firstChar) - * } - */ - public static FunctionDescriptor LoadFontFromImage$descriptor() { - return LoadFontFromImage.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Font LoadFontFromImage(Image image, Color key, int firstChar) - * } - */ - public static MethodHandle LoadFontFromImage$handle() { - return LoadFontFromImage.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Font LoadFontFromImage(Image image, Color key, int firstChar) - * } - */ - public static MemorySegment LoadFontFromImage$address() { - return LoadFontFromImage.ADDR; - } - - /** - * {@snippet lang=c : - * Font LoadFontFromImage(Image image, Color key, int firstChar) - * } - */ - public static MemorySegment LoadFontFromImage(SegmentAllocator allocator, MemorySegment image, MemorySegment key, int firstChar) { - var mh$ = LoadFontFromImage.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadFontFromImage", allocator, image, key, firstChar); - } - return (MemorySegment)mh$.invokeExact(allocator, image, key, firstChar); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadFontFromMemory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Font.layout(), - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontFromMemory"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static FunctionDescriptor LoadFontFromMemory$descriptor() { - return LoadFontFromMemory.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static MethodHandle LoadFontFromMemory$handle() { - return LoadFontFromMemory.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static MemorySegment LoadFontFromMemory$address() { - return LoadFontFromMemory.ADDR; - } - - /** - * {@snippet lang=c : - * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) - * } - */ - public static MemorySegment LoadFontFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize, int fontSize, MemorySegment codepoints, int codepointCount) { - var mh$ = LoadFontFromMemory.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadFontFromMemory", allocator, fileType, fileData, dataSize, fontSize, codepoints, codepointCount); - } - return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize, fontSize, codepoints, codepointCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsFontReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Font.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsFontReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsFontReady(Font font) - * } - */ - public static FunctionDescriptor IsFontReady$descriptor() { - return IsFontReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsFontReady(Font font) - * } - */ - public static MethodHandle IsFontReady$handle() { - return IsFontReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsFontReady(Font font) - * } - */ - public static MemorySegment IsFontReady$address() { - return IsFontReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsFontReady(Font font) - * } - */ - public static boolean IsFontReady(MemorySegment font) { - var mh$ = IsFontReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsFontReady", font); - } - return (boolean)mh$.invokeExact(font); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadFontData { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontData"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) - * } - */ - public static FunctionDescriptor LoadFontData$descriptor() { - return LoadFontData.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) - * } - */ - public static MethodHandle LoadFontData$handle() { - return LoadFontData.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) - * } - */ - public static MemorySegment LoadFontData$address() { - return LoadFontData.ADDR; - } - - /** - * {@snippet lang=c : - * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) - * } - */ - public static MemorySegment LoadFontData(MemorySegment fileData, int dataSize, int fontSize, MemorySegment codepoints, int codepointCount, int type) { - var mh$ = LoadFontData.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadFontData", fileData, dataSize, fontSize, codepoints, codepointCount, type); - } - return (MemorySegment)mh$.invokeExact(fileData, dataSize, fontSize, codepoints, codepointCount, type); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenImageFontAtlas { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageFontAtlas"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) - * } - */ - public static FunctionDescriptor GenImageFontAtlas$descriptor() { - return GenImageFontAtlas.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) - * } - */ - public static MethodHandle GenImageFontAtlas$handle() { - return GenImageFontAtlas.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) - * } - */ - public static MemorySegment GenImageFontAtlas$address() { - return GenImageFontAtlas.ADDR; - } - - /** - * {@snippet lang=c : - * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) - * } - */ - public static MemorySegment GenImageFontAtlas(SegmentAllocator allocator, MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) { - var mh$ = GenImageFontAtlas.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenImageFontAtlas", allocator, glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod); - } - return (MemorySegment)mh$.invokeExact(allocator, glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadFontData { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFontData"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) - * } - */ - public static FunctionDescriptor UnloadFontData$descriptor() { - return UnloadFontData.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) - * } - */ - public static MethodHandle UnloadFontData$handle() { - return UnloadFontData.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) - * } - */ - public static MemorySegment UnloadFontData$address() { - return UnloadFontData.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) - * } - */ - public static void UnloadFontData(MemorySegment glyphs, int glyphCount) { - var mh$ = UnloadFontData.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadFontData", glyphs, glyphCount); - } - mh$.invokeExact(glyphs, glyphCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadFont { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Font.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFont"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadFont(Font font) - * } - */ - public static FunctionDescriptor UnloadFont$descriptor() { - return UnloadFont.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadFont(Font font) - * } - */ - public static MethodHandle UnloadFont$handle() { - return UnloadFont.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadFont(Font font) - * } - */ - public static MemorySegment UnloadFont$address() { - return UnloadFont.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadFont(Font font) - * } - */ - public static void UnloadFont(MemorySegment font) { - var mh$ = UnloadFont.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadFont", font); - } - mh$.invokeExact(font); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ExportFontAsCode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Font.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ExportFontAsCode"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool ExportFontAsCode(Font font, const char *fileName) - * } - */ - public static FunctionDescriptor ExportFontAsCode$descriptor() { - return ExportFontAsCode.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool ExportFontAsCode(Font font, const char *fileName) - * } - */ - public static MethodHandle ExportFontAsCode$handle() { - return ExportFontAsCode.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool ExportFontAsCode(Font font, const char *fileName) - * } - */ - public static MemorySegment ExportFontAsCode$address() { - return ExportFontAsCode.ADDR; - } - - /** - * {@snippet lang=c : - * bool ExportFontAsCode(Font font, const char *fileName) - * } - */ - public static boolean ExportFontAsCode(MemorySegment font, MemorySegment fileName) { - var mh$ = ExportFontAsCode.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ExportFontAsCode", font, fileName); - } - return (boolean)mh$.invokeExact(font, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawFPS { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawFPS"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawFPS(int posX, int posY) - * } - */ - public static FunctionDescriptor DrawFPS$descriptor() { - return DrawFPS.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawFPS(int posX, int posY) - * } - */ - public static MethodHandle DrawFPS$handle() { - return DrawFPS.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawFPS(int posX, int posY) - * } - */ - public static MemorySegment DrawFPS$address() { - return DrawFPS.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawFPS(int posX, int posY) - * } - */ - public static void DrawFPS(int posX, int posY) { - var mh$ = DrawFPS.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawFPS", posX, posY); - } - mh$.invokeExact(posX, posY); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawText { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawText"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static FunctionDescriptor DrawText$descriptor() { - return DrawText.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static MethodHandle DrawText$handle() { - return DrawText.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static MemorySegment DrawText$address() { - return DrawText.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) - * } - */ - public static void DrawText(MemorySegment text, int posX, int posY, int fontSize, MemorySegment color) { - var mh$ = DrawText.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawText", text, posX, posY, fontSize, color); - } - mh$.invokeExact(text, posX, posY, fontSize, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Font.layout(), - raylib.C_POINTER, - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static FunctionDescriptor DrawTextEx$descriptor() { - return DrawTextEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static MethodHandle DrawTextEx$handle() { - return DrawTextEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static MemorySegment DrawTextEx$address() { - return DrawTextEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static void DrawTextEx(MemorySegment font, MemorySegment text, MemorySegment position, float fontSize, float spacing, MemorySegment tint) { - var mh$ = DrawTextEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextEx", font, text, position, fontSize, spacing, tint); - } - mh$.invokeExact(font, text, position, fontSize, spacing, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextPro { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Font.layout(), - raylib.C_POINTER, - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextPro"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) - * } - */ - public static FunctionDescriptor DrawTextPro$descriptor() { - return DrawTextPro.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) - * } - */ - public static MethodHandle DrawTextPro$handle() { - return DrawTextPro.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) - * } - */ - public static MemorySegment DrawTextPro$address() { - return DrawTextPro.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) - * } - */ - public static void DrawTextPro(MemorySegment font, MemorySegment text, MemorySegment position, MemorySegment origin, float rotation, float fontSize, float spacing, MemorySegment tint) { - var mh$ = DrawTextPro.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextPro", font, text, position, origin, rotation, fontSize, spacing, tint); - } - mh$.invokeExact(font, text, position, origin, rotation, fontSize, spacing, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextCodepoint { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Font.layout(), - raylib.C_INT, - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextCodepoint"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) - * } - */ - public static FunctionDescriptor DrawTextCodepoint$descriptor() { - return DrawTextCodepoint.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) - * } - */ - public static MethodHandle DrawTextCodepoint$handle() { - return DrawTextCodepoint.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) - * } - */ - public static MemorySegment DrawTextCodepoint$address() { - return DrawTextCodepoint.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) - * } - */ - public static void DrawTextCodepoint(MemorySegment font, int codepoint, MemorySegment position, float fontSize, MemorySegment tint) { - var mh$ = DrawTextCodepoint.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextCodepoint", font, codepoint, position, fontSize, tint); - } - mh$.invokeExact(font, codepoint, position, fontSize, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTextCodepoints { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Font.layout(), - raylib.C_POINTER, - raylib.C_INT, - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextCodepoints"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static FunctionDescriptor DrawTextCodepoints$descriptor() { - return DrawTextCodepoints.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static MethodHandle DrawTextCodepoints$handle() { - return DrawTextCodepoints.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static MemorySegment DrawTextCodepoints$address() { - return DrawTextCodepoints.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) - * } - */ - public static void DrawTextCodepoints(MemorySegment font, MemorySegment codepoints, int codepointCount, MemorySegment position, float fontSize, float spacing, MemorySegment tint) { - var mh$ = DrawTextCodepoints.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTextCodepoints", font, codepoints, codepointCount, position, fontSize, spacing, tint); - } - mh$.invokeExact(font, codepoints, codepointCount, position, fontSize, spacing, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetTextLineSpacing { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetTextLineSpacing"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetTextLineSpacing(int spacing) - * } - */ - public static FunctionDescriptor SetTextLineSpacing$descriptor() { - return SetTextLineSpacing.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetTextLineSpacing(int spacing) - * } - */ - public static MethodHandle SetTextLineSpacing$handle() { - return SetTextLineSpacing.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetTextLineSpacing(int spacing) - * } - */ - public static MemorySegment SetTextLineSpacing$address() { - return SetTextLineSpacing.ADDR; - } - - /** - * {@snippet lang=c : - * void SetTextLineSpacing(int spacing) - * } - */ - public static void SetTextLineSpacing(int spacing) { - var mh$ = SetTextLineSpacing.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetTextLineSpacing", spacing); - } - mh$.invokeExact(spacing); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class MeasureText { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MeasureText"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int MeasureText(const char *text, int fontSize) - * } - */ - public static FunctionDescriptor MeasureText$descriptor() { - return MeasureText.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int MeasureText(const char *text, int fontSize) - * } - */ - public static MethodHandle MeasureText$handle() { - return MeasureText.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int MeasureText(const char *text, int fontSize) - * } - */ - public static MemorySegment MeasureText$address() { - return MeasureText.ADDR; - } - - /** - * {@snippet lang=c : - * int MeasureText(const char *text, int fontSize) - * } - */ - public static int MeasureText(MemorySegment text, int fontSize) { - var mh$ = MeasureText.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MeasureText", text, fontSize); - } - return (int)mh$.invokeExact(text, fontSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class MeasureTextEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Font.layout(), - raylib.C_POINTER, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MeasureTextEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) - * } - */ - public static FunctionDescriptor MeasureTextEx$descriptor() { - return MeasureTextEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) - * } - */ - public static MethodHandle MeasureTextEx$handle() { - return MeasureTextEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) - * } - */ - public static MemorySegment MeasureTextEx$address() { - return MeasureTextEx.ADDR; - } - - /** - * {@snippet lang=c : - * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) - * } - */ - public static MemorySegment MeasureTextEx(SegmentAllocator allocator, MemorySegment font, MemorySegment text, float fontSize, float spacing) { - var mh$ = MeasureTextEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MeasureTextEx", allocator, font, text, fontSize, spacing); - } - return (MemorySegment)mh$.invokeExact(allocator, font, text, fontSize, spacing); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetGlyphIndex { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - Font.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetGlyphIndex"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int GetGlyphIndex(Font font, int codepoint) - * } - */ - public static FunctionDescriptor GetGlyphIndex$descriptor() { - return GetGlyphIndex.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int GetGlyphIndex(Font font, int codepoint) - * } - */ - public static MethodHandle GetGlyphIndex$handle() { - return GetGlyphIndex.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int GetGlyphIndex(Font font, int codepoint) - * } - */ - public static MemorySegment GetGlyphIndex$address() { - return GetGlyphIndex.ADDR; - } - - /** - * {@snippet lang=c : - * int GetGlyphIndex(Font font, int codepoint) - * } - */ - public static int GetGlyphIndex(MemorySegment font, int codepoint) { - var mh$ = GetGlyphIndex.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetGlyphIndex", font, codepoint); - } - return (int)mh$.invokeExact(font, codepoint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetGlyphInfo { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - GlyphInfo.layout(), - Font.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetGlyphInfo"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * GlyphInfo GetGlyphInfo(Font font, int codepoint) - * } - */ - public static FunctionDescriptor GetGlyphInfo$descriptor() { - return GetGlyphInfo.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * GlyphInfo GetGlyphInfo(Font font, int codepoint) - * } - */ - public static MethodHandle GetGlyphInfo$handle() { - return GetGlyphInfo.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * GlyphInfo GetGlyphInfo(Font font, int codepoint) - * } - */ - public static MemorySegment GetGlyphInfo$address() { - return GetGlyphInfo.ADDR; - } - - /** - * {@snippet lang=c : - * GlyphInfo GetGlyphInfo(Font font, int codepoint) - * } - */ - public static MemorySegment GetGlyphInfo(SegmentAllocator allocator, MemorySegment font, int codepoint) { - var mh$ = GetGlyphInfo.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetGlyphInfo", allocator, font, codepoint); - } - return (MemorySegment)mh$.invokeExact(allocator, font, codepoint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetGlyphAtlasRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Rectangle.layout(), - Font.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetGlyphAtlasRec"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Rectangle GetGlyphAtlasRec(Font font, int codepoint) - * } - */ - public static FunctionDescriptor GetGlyphAtlasRec$descriptor() { - return GetGlyphAtlasRec.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Rectangle GetGlyphAtlasRec(Font font, int codepoint) - * } - */ - public static MethodHandle GetGlyphAtlasRec$handle() { - return GetGlyphAtlasRec.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Rectangle GetGlyphAtlasRec(Font font, int codepoint) - * } - */ - public static MemorySegment GetGlyphAtlasRec$address() { - return GetGlyphAtlasRec.ADDR; - } - - /** - * {@snippet lang=c : - * Rectangle GetGlyphAtlasRec(Font font, int codepoint) - * } - */ - public static MemorySegment GetGlyphAtlasRec(SegmentAllocator allocator, MemorySegment font, int codepoint) { - var mh$ = GetGlyphAtlasRec.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetGlyphAtlasRec", allocator, font, codepoint); - } - return (MemorySegment)mh$.invokeExact(allocator, font, codepoint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadUTF8 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadUTF8"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * char *LoadUTF8(const int *codepoints, int length) - * } - */ - public static FunctionDescriptor LoadUTF8$descriptor() { - return LoadUTF8.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * char *LoadUTF8(const int *codepoints, int length) - * } - */ - public static MethodHandle LoadUTF8$handle() { - return LoadUTF8.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * char *LoadUTF8(const int *codepoints, int length) - * } - */ - public static MemorySegment LoadUTF8$address() { - return LoadUTF8.ADDR; - } - - /** - * {@snippet lang=c : - * char *LoadUTF8(const int *codepoints, int length) - * } - */ - public static MemorySegment LoadUTF8(MemorySegment codepoints, int length) { - var mh$ = LoadUTF8.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadUTF8", codepoints, length); - } - return (MemorySegment)mh$.invokeExact(codepoints, length); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadUTF8 { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadUTF8"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadUTF8(char *text) - * } - */ - public static FunctionDescriptor UnloadUTF8$descriptor() { - return UnloadUTF8.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadUTF8(char *text) - * } - */ - public static MethodHandle UnloadUTF8$handle() { - return UnloadUTF8.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadUTF8(char *text) - * } - */ - public static MemorySegment UnloadUTF8$address() { - return UnloadUTF8.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadUTF8(char *text) - * } - */ - public static void UnloadUTF8(MemorySegment text) { - var mh$ = UnloadUTF8.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadUTF8", text); - } - mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadCodepoints { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadCodepoints"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int *LoadCodepoints(const char *text, int *count) - * } - */ - public static FunctionDescriptor LoadCodepoints$descriptor() { - return LoadCodepoints.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int *LoadCodepoints(const char *text, int *count) - * } - */ - public static MethodHandle LoadCodepoints$handle() { - return LoadCodepoints.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int *LoadCodepoints(const char *text, int *count) - * } - */ - public static MemorySegment LoadCodepoints$address() { - return LoadCodepoints.ADDR; - } - - /** - * {@snippet lang=c : - * int *LoadCodepoints(const char *text, int *count) - * } - */ - public static MemorySegment LoadCodepoints(MemorySegment text, MemorySegment count) { - var mh$ = LoadCodepoints.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadCodepoints", text, count); - } - return (MemorySegment)mh$.invokeExact(text, count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadCodepoints { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadCodepoints"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadCodepoints(int *codepoints) - * } - */ - public static FunctionDescriptor UnloadCodepoints$descriptor() { - return UnloadCodepoints.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadCodepoints(int *codepoints) - * } - */ - public static MethodHandle UnloadCodepoints$handle() { - return UnloadCodepoints.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadCodepoints(int *codepoints) - * } - */ - public static MemorySegment UnloadCodepoints$address() { - return UnloadCodepoints.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadCodepoints(int *codepoints) - * } - */ - public static void UnloadCodepoints(MemorySegment codepoints) { - var mh$ = UnloadCodepoints.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadCodepoints", codepoints); - } - mh$.invokeExact(codepoints); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetCodepointCount { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepointCount"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int GetCodepointCount(const char *text) - * } - */ - public static FunctionDescriptor GetCodepointCount$descriptor() { - return GetCodepointCount.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int GetCodepointCount(const char *text) - * } - */ - public static MethodHandle GetCodepointCount$handle() { - return GetCodepointCount.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int GetCodepointCount(const char *text) - * } - */ - public static MemorySegment GetCodepointCount$address() { - return GetCodepointCount.ADDR; - } - - /** - * {@snippet lang=c : - * int GetCodepointCount(const char *text) - * } - */ - public static int GetCodepointCount(MemorySegment text) { - var mh$ = GetCodepointCount.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetCodepointCount", text); - } - return (int)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetCodepoint { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepoint"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int GetCodepoint(const char *text, int *codepointSize) - * } - */ - public static FunctionDescriptor GetCodepoint$descriptor() { - return GetCodepoint.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int GetCodepoint(const char *text, int *codepointSize) - * } - */ - public static MethodHandle GetCodepoint$handle() { - return GetCodepoint.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int GetCodepoint(const char *text, int *codepointSize) - * } - */ - public static MemorySegment GetCodepoint$address() { - return GetCodepoint.ADDR; - } - - /** - * {@snippet lang=c : - * int GetCodepoint(const char *text, int *codepointSize) - * } - */ - public static int GetCodepoint(MemorySegment text, MemorySegment codepointSize) { - var mh$ = GetCodepoint.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetCodepoint", text, codepointSize); - } - return (int)mh$.invokeExact(text, codepointSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetCodepointNext { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepointNext"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int GetCodepointNext(const char *text, int *codepointSize) - * } - */ - public static FunctionDescriptor GetCodepointNext$descriptor() { - return GetCodepointNext.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int GetCodepointNext(const char *text, int *codepointSize) - * } - */ - public static MethodHandle GetCodepointNext$handle() { - return GetCodepointNext.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int GetCodepointNext(const char *text, int *codepointSize) - * } - */ - public static MemorySegment GetCodepointNext$address() { - return GetCodepointNext.ADDR; - } - - /** - * {@snippet lang=c : - * int GetCodepointNext(const char *text, int *codepointSize) - * } - */ - public static int GetCodepointNext(MemorySegment text, MemorySegment codepointSize) { - var mh$ = GetCodepointNext.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetCodepointNext", text, codepointSize); - } - return (int)mh$.invokeExact(text, codepointSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetCodepointPrevious { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepointPrevious"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int GetCodepointPrevious(const char *text, int *codepointSize) - * } - */ - public static FunctionDescriptor GetCodepointPrevious$descriptor() { - return GetCodepointPrevious.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int GetCodepointPrevious(const char *text, int *codepointSize) - * } - */ - public static MethodHandle GetCodepointPrevious$handle() { - return GetCodepointPrevious.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int GetCodepointPrevious(const char *text, int *codepointSize) - * } - */ - public static MemorySegment GetCodepointPrevious$address() { - return GetCodepointPrevious.ADDR; - } - - /** - * {@snippet lang=c : - * int GetCodepointPrevious(const char *text, int *codepointSize) - * } - */ - public static int GetCodepointPrevious(MemorySegment text, MemorySegment codepointSize) { - var mh$ = GetCodepointPrevious.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetCodepointPrevious", text, codepointSize); - } - return (int)mh$.invokeExact(text, codepointSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class CodepointToUTF8 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("CodepointToUTF8"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char *CodepointToUTF8(int codepoint, int *utf8Size) - * } - */ - public static FunctionDescriptor CodepointToUTF8$descriptor() { - return CodepointToUTF8.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char *CodepointToUTF8(int codepoint, int *utf8Size) - * } - */ - public static MethodHandle CodepointToUTF8$handle() { - return CodepointToUTF8.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char *CodepointToUTF8(int codepoint, int *utf8Size) - * } - */ - public static MemorySegment CodepointToUTF8$address() { - return CodepointToUTF8.ADDR; - } - - /** - * {@snippet lang=c : - * const char *CodepointToUTF8(int codepoint, int *utf8Size) - * } - */ - public static MemorySegment CodepointToUTF8(int codepoint, MemorySegment utf8Size) { - var mh$ = CodepointToUTF8.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("CodepointToUTF8", codepoint, utf8Size); - } - return (MemorySegment)mh$.invokeExact(codepoint, utf8Size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextCopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextCopy"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int TextCopy(char *dst, const char *src) - * } - */ - public static FunctionDescriptor TextCopy$descriptor() { - return TextCopy.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int TextCopy(char *dst, const char *src) - * } - */ - public static MethodHandle TextCopy$handle() { - return TextCopy.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int TextCopy(char *dst, const char *src) - * } - */ - public static MemorySegment TextCopy$address() { - return TextCopy.ADDR; - } - - /** - * {@snippet lang=c : - * int TextCopy(char *dst, const char *src) - * } - */ - public static int TextCopy(MemorySegment dst, MemorySegment src) { - var mh$ = TextCopy.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextCopy", dst, src); - } - return (int)mh$.invokeExact(dst, src); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextIsEqual { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextIsEqual"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool TextIsEqual(const char *text1, const char *text2) - * } - */ - public static FunctionDescriptor TextIsEqual$descriptor() { - return TextIsEqual.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool TextIsEqual(const char *text1, const char *text2) - * } - */ - public static MethodHandle TextIsEqual$handle() { - return TextIsEqual.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool TextIsEqual(const char *text1, const char *text2) - * } - */ - public static MemorySegment TextIsEqual$address() { - return TextIsEqual.ADDR; - } - - /** - * {@snippet lang=c : - * bool TextIsEqual(const char *text1, const char *text2) - * } - */ - public static boolean TextIsEqual(MemorySegment text1, MemorySegment text2) { - var mh$ = TextIsEqual.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextIsEqual", text1, text2); - } - return (boolean)mh$.invokeExact(text1, text2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextLength { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextLength"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * unsigned int TextLength(const char *text) - * } - */ - public static FunctionDescriptor TextLength$descriptor() { - return TextLength.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * unsigned int TextLength(const char *text) - * } - */ - public static MethodHandle TextLength$handle() { - return TextLength.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * unsigned int TextLength(const char *text) - * } - */ - public static MemorySegment TextLength$address() { - return TextLength.ADDR; - } - - /** - * {@snippet lang=c : - * unsigned int TextLength(const char *text) - * } - */ - public static int TextLength(MemorySegment text) { - var mh$ = TextLength.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextLength", text); - } - return (int)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - /** - * Variadic invoker class for: - * {@snippet lang=c : - * const char *TextFormat(const char *text, ...) - * } - */ - public static class TextFormat { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER - ); - private static final MemorySegment ADDR = raylib.findOrThrow("TextFormat"); - - private final MethodHandle handle; - private final FunctionDescriptor descriptor; - private final MethodHandle spreader; - - private TextFormat(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; - this.descriptor = descriptor; - this.spreader = spreader; - } - - /** - * Variadic invoker factory for: - * {@snippet lang=c : - * const char *TextFormat(const char *text, ...) - * } - */ - public static TextFormat makeInvoker(MemoryLayout... layouts) { - FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); - Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); - var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); - var spreader$ = mh$.asSpreader(Object[].class, layouts.length); - return new TextFormat(mh$, desc$, spreader$); - } - - /** - * {@return the address} - */ - public static MemorySegment address() { - return ADDR; - } - - /** - * {@return the specialized method handle} - */ - public MethodHandle handle() { - return handle; - } - - /** - * {@return the specialized descriptor} - */ - public FunctionDescriptor descriptor() { - return descriptor; - } - - public MemorySegment apply(MemorySegment text, Object... x1) { - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextFormat", text, x1); - } - return (MemorySegment)spreader.invokeExact(text, x1); - } catch(IllegalArgumentException | ClassCastException ex$) { - throw ex$; // rethrow IAE from passing wrong number/type of args - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - } - - private static class TextSubtext { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextSubtext"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char *TextSubtext(const char *text, int position, int length) - * } - */ - public static FunctionDescriptor TextSubtext$descriptor() { - return TextSubtext.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char *TextSubtext(const char *text, int position, int length) - * } - */ - public static MethodHandle TextSubtext$handle() { - return TextSubtext.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char *TextSubtext(const char *text, int position, int length) - * } - */ - public static MemorySegment TextSubtext$address() { - return TextSubtext.ADDR; - } - - /** - * {@snippet lang=c : - * const char *TextSubtext(const char *text, int position, int length) - * } - */ - public static MemorySegment TextSubtext(MemorySegment text, int position, int length) { - var mh$ = TextSubtext.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextSubtext", text, position, length); - } - return (MemorySegment)mh$.invokeExact(text, position, length); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextReplace { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextReplace"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * char *TextReplace(const char *text, const char *replace, const char *by) - * } - */ - public static FunctionDescriptor TextReplace$descriptor() { - return TextReplace.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * char *TextReplace(const char *text, const char *replace, const char *by) - * } - */ - public static MethodHandle TextReplace$handle() { - return TextReplace.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * char *TextReplace(const char *text, const char *replace, const char *by) - * } - */ - public static MemorySegment TextReplace$address() { - return TextReplace.ADDR; - } - - /** - * {@snippet lang=c : - * char *TextReplace(const char *text, const char *replace, const char *by) - * } - */ - public static MemorySegment TextReplace(MemorySegment text, MemorySegment replace, MemorySegment by) { - var mh$ = TextReplace.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextReplace", text, replace, by); - } - return (MemorySegment)mh$.invokeExact(text, replace, by); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextInsert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextInsert"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * char *TextInsert(const char *text, const char *insert, int position) - * } - */ - public static FunctionDescriptor TextInsert$descriptor() { - return TextInsert.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * char *TextInsert(const char *text, const char *insert, int position) - * } - */ - public static MethodHandle TextInsert$handle() { - return TextInsert.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * char *TextInsert(const char *text, const char *insert, int position) - * } - */ - public static MemorySegment TextInsert$address() { - return TextInsert.ADDR; - } - - /** - * {@snippet lang=c : - * char *TextInsert(const char *text, const char *insert, int position) - * } - */ - public static MemorySegment TextInsert(MemorySegment text, MemorySegment insert, int position) { - var mh$ = TextInsert.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextInsert", text, insert, position); - } - return (MemorySegment)mh$.invokeExact(text, insert, position); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextJoin { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextJoin"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char *TextJoin(const char **textList, int count, const char *delimiter) - * } - */ - public static FunctionDescriptor TextJoin$descriptor() { - return TextJoin.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char *TextJoin(const char **textList, int count, const char *delimiter) - * } - */ - public static MethodHandle TextJoin$handle() { - return TextJoin.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char *TextJoin(const char **textList, int count, const char *delimiter) - * } - */ - public static MemorySegment TextJoin$address() { - return TextJoin.ADDR; - } - - /** - * {@snippet lang=c : - * const char *TextJoin(const char **textList, int count, const char *delimiter) - * } - */ - public static MemorySegment TextJoin(MemorySegment textList, int count, MemorySegment delimiter) { - var mh$ = TextJoin.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextJoin", textList, count, delimiter); - } - return (MemorySegment)mh$.invokeExact(textList, count, delimiter); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextSplit { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_CHAR, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextSplit"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char **TextSplit(const char *text, char delimiter, int *count) - * } - */ - public static FunctionDescriptor TextSplit$descriptor() { - return TextSplit.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char **TextSplit(const char *text, char delimiter, int *count) - * } - */ - public static MethodHandle TextSplit$handle() { - return TextSplit.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char **TextSplit(const char *text, char delimiter, int *count) - * } - */ - public static MemorySegment TextSplit$address() { - return TextSplit.ADDR; - } - - /** - * {@snippet lang=c : - * const char **TextSplit(const char *text, char delimiter, int *count) - * } - */ - public static MemorySegment TextSplit(MemorySegment text, byte delimiter, MemorySegment count) { - var mh$ = TextSplit.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextSplit", text, delimiter, count); - } - return (MemorySegment)mh$.invokeExact(text, delimiter, count); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextAppend { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextAppend"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void TextAppend(char *text, const char *append, int *position) - * } - */ - public static FunctionDescriptor TextAppend$descriptor() { - return TextAppend.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void TextAppend(char *text, const char *append, int *position) - * } - */ - public static MethodHandle TextAppend$handle() { - return TextAppend.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void TextAppend(char *text, const char *append, int *position) - * } - */ - public static MemorySegment TextAppend$address() { - return TextAppend.ADDR; - } - - /** - * {@snippet lang=c : - * void TextAppend(char *text, const char *append, int *position) - * } - */ - public static void TextAppend(MemorySegment text, MemorySegment append, MemorySegment position) { - var mh$ = TextAppend.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextAppend", text, append, position); - } - mh$.invokeExact(text, append, position); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextFindIndex { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextFindIndex"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int TextFindIndex(const char *text, const char *find) - * } - */ - public static FunctionDescriptor TextFindIndex$descriptor() { - return TextFindIndex.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int TextFindIndex(const char *text, const char *find) - * } - */ - public static MethodHandle TextFindIndex$handle() { - return TextFindIndex.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int TextFindIndex(const char *text, const char *find) - * } - */ - public static MemorySegment TextFindIndex$address() { - return TextFindIndex.ADDR; - } - - /** - * {@snippet lang=c : - * int TextFindIndex(const char *text, const char *find) - * } - */ - public static int TextFindIndex(MemorySegment text, MemorySegment find) { - var mh$ = TextFindIndex.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextFindIndex", text, find); - } - return (int)mh$.invokeExact(text, find); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextToUpper { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextToUpper"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char *TextToUpper(const char *text) - * } - */ - public static FunctionDescriptor TextToUpper$descriptor() { - return TextToUpper.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char *TextToUpper(const char *text) - * } - */ - public static MethodHandle TextToUpper$handle() { - return TextToUpper.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char *TextToUpper(const char *text) - * } - */ - public static MemorySegment TextToUpper$address() { - return TextToUpper.ADDR; - } - - /** - * {@snippet lang=c : - * const char *TextToUpper(const char *text) - * } - */ - public static MemorySegment TextToUpper(MemorySegment text) { - var mh$ = TextToUpper.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextToUpper", text); - } - return (MemorySegment)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextToLower { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextToLower"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char *TextToLower(const char *text) - * } - */ - public static FunctionDescriptor TextToLower$descriptor() { - return TextToLower.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char *TextToLower(const char *text) - * } - */ - public static MethodHandle TextToLower$handle() { - return TextToLower.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char *TextToLower(const char *text) - * } - */ - public static MemorySegment TextToLower$address() { - return TextToLower.ADDR; - } - - /** - * {@snippet lang=c : - * const char *TextToLower(const char *text) - * } - */ - public static MemorySegment TextToLower(MemorySegment text) { - var mh$ = TextToLower.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextToLower", text); - } - return (MemorySegment)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextToPascal { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextToPascal"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * const char *TextToPascal(const char *text) - * } - */ - public static FunctionDescriptor TextToPascal$descriptor() { - return TextToPascal.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * const char *TextToPascal(const char *text) - * } - */ - public static MethodHandle TextToPascal$handle() { - return TextToPascal.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * const char *TextToPascal(const char *text) - * } - */ - public static MemorySegment TextToPascal$address() { - return TextToPascal.ADDR; - } - - /** - * {@snippet lang=c : - * const char *TextToPascal(const char *text) - * } - */ - public static MemorySegment TextToPascal(MemorySegment text) { - var mh$ = TextToPascal.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextToPascal", text); - } - return (MemorySegment)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextToInteger { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextToInteger"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int TextToInteger(const char *text) - * } - */ - public static FunctionDescriptor TextToInteger$descriptor() { - return TextToInteger.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int TextToInteger(const char *text) - * } - */ - public static MethodHandle TextToInteger$handle() { - return TextToInteger.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int TextToInteger(const char *text) - * } - */ - public static MemorySegment TextToInteger$address() { - return TextToInteger.ADDR; - } - - /** - * {@snippet lang=c : - * int TextToInteger(const char *text) - * } - */ - public static int TextToInteger(MemorySegment text) { - var mh$ = TextToInteger.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextToInteger", text); - } - return (int)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class TextToFloat { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("TextToFloat"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * float TextToFloat(const char *text) - * } - */ - public static FunctionDescriptor TextToFloat$descriptor() { - return TextToFloat.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * float TextToFloat(const char *text) - * } - */ - public static MethodHandle TextToFloat$handle() { - return TextToFloat.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * float TextToFloat(const char *text) - * } - */ - public static MemorySegment TextToFloat$address() { - return TextToFloat.ADDR; - } - - /** - * {@snippet lang=c : - * float TextToFloat(const char *text) - * } - */ - public static float TextToFloat(MemorySegment text) { - var mh$ = TextToFloat.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TextToFloat", text); - } - return (float)mh$.invokeExact(text); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawLine3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawLine3D"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) - * } - */ - public static FunctionDescriptor DrawLine3D$descriptor() { - return DrawLine3D.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) - * } - */ - public static MethodHandle DrawLine3D$handle() { - return DrawLine3D.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) - * } - */ - public static MemorySegment DrawLine3D$address() { - return DrawLine3D.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) - * } - */ - public static void DrawLine3D(MemorySegment startPos, MemorySegment endPos, MemorySegment color) { - var mh$ = DrawLine3D.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawLine3D", startPos, endPos, color); - } - mh$.invokeExact(startPos, endPos, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawPoint3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPoint3D"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawPoint3D(Vector3 position, Color color) - * } - */ - public static FunctionDescriptor DrawPoint3D$descriptor() { - return DrawPoint3D.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawPoint3D(Vector3 position, Color color) - * } - */ - public static MethodHandle DrawPoint3D$handle() { - return DrawPoint3D.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawPoint3D(Vector3 position, Color color) - * } - */ - public static MemorySegment DrawPoint3D$address() { - return DrawPoint3D.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawPoint3D(Vector3 position, Color color) - * } - */ - public static void DrawPoint3D(MemorySegment position, MemorySegment color) { - var mh$ = DrawPoint3D.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawPoint3D", position, color); - } - mh$.invokeExact(position, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCircle3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - Vector3.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircle3D"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) - * } - */ - public static FunctionDescriptor DrawCircle3D$descriptor() { - return DrawCircle3D.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) - * } - */ - public static MethodHandle DrawCircle3D$handle() { - return DrawCircle3D.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) - * } - */ - public static MemorySegment DrawCircle3D$address() { - return DrawCircle3D.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) - * } - */ - public static void DrawCircle3D(MemorySegment center, float radius, MemorySegment rotationAxis, float rotationAngle, MemorySegment color) { - var mh$ = DrawCircle3D.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircle3D", center, radius, rotationAxis, rotationAngle, color); - } - mh$.invokeExact(center, radius, rotationAxis, rotationAngle, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTriangle3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangle3D"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) - * } - */ - public static FunctionDescriptor DrawTriangle3D$descriptor() { - return DrawTriangle3D.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) - * } - */ - public static MethodHandle DrawTriangle3D$handle() { - return DrawTriangle3D.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) - * } - */ - public static MemorySegment DrawTriangle3D$address() { - return DrawTriangle3D.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) - * } - */ - public static void DrawTriangle3D(MemorySegment v1, MemorySegment v2, MemorySegment v3, MemorySegment color) { - var mh$ = DrawTriangle3D.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTriangle3D", v1, v2, v3, color); - } - mh$.invokeExact(v1, v2, v3, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawTriangleStrip3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleStrip3D"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) - * } - */ - public static FunctionDescriptor DrawTriangleStrip3D$descriptor() { - return DrawTriangleStrip3D.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) - * } - */ - public static MethodHandle DrawTriangleStrip3D$handle() { - return DrawTriangleStrip3D.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) - * } - */ - public static MemorySegment DrawTriangleStrip3D$address() { - return DrawTriangleStrip3D.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) - * } - */ - public static void DrawTriangleStrip3D(MemorySegment points, int pointCount, MemorySegment color) { - var mh$ = DrawTriangleStrip3D.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawTriangleStrip3D", points, pointCount, color); - } - mh$.invokeExact(points, pointCount, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCube { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCube"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCube(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static FunctionDescriptor DrawCube$descriptor() { - return DrawCube.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCube(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static MethodHandle DrawCube$handle() { - return DrawCube.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCube(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static MemorySegment DrawCube$address() { - return DrawCube.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCube(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static void DrawCube(MemorySegment position, float width, float height, float length, MemorySegment color) { - var mh$ = DrawCube.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCube", position, width, height, length, color); - } - mh$.invokeExact(position, width, height, length, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCubeV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCubeV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCubeV(Vector3 position, Vector3 size, Color color) - * } - */ - public static FunctionDescriptor DrawCubeV$descriptor() { - return DrawCubeV.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCubeV(Vector3 position, Vector3 size, Color color) - * } - */ - public static MethodHandle DrawCubeV$handle() { - return DrawCubeV.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCubeV(Vector3 position, Vector3 size, Color color) - * } - */ - public static MemorySegment DrawCubeV$address() { - return DrawCubeV.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCubeV(Vector3 position, Vector3 size, Color color) - * } - */ - public static void DrawCubeV(MemorySegment position, MemorySegment size, MemorySegment color) { - var mh$ = DrawCubeV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCubeV", position, size, color); - } - mh$.invokeExact(position, size, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCubeWires { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCubeWires"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static FunctionDescriptor DrawCubeWires$descriptor() { - return DrawCubeWires.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static MethodHandle DrawCubeWires$handle() { - return DrawCubeWires.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static MemorySegment DrawCubeWires$address() { - return DrawCubeWires.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) - * } - */ - public static void DrawCubeWires(MemorySegment position, float width, float height, float length, MemorySegment color) { - var mh$ = DrawCubeWires.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCubeWires", position, width, height, length, color); - } - mh$.invokeExact(position, width, height, length, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCubeWiresV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCubeWiresV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) - * } - */ - public static FunctionDescriptor DrawCubeWiresV$descriptor() { - return DrawCubeWiresV.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) - * } - */ - public static MethodHandle DrawCubeWiresV$handle() { - return DrawCubeWiresV.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) - * } - */ - public static MemorySegment DrawCubeWiresV$address() { - return DrawCubeWiresV.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) - * } - */ - public static void DrawCubeWiresV(MemorySegment position, MemorySegment size, MemorySegment color) { - var mh$ = DrawCubeWiresV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCubeWiresV", position, size, color); - } - mh$.invokeExact(position, size, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawSphere { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSphere"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawSphere(Vector3 centerPos, float radius, Color color) - * } - */ - public static FunctionDescriptor DrawSphere$descriptor() { - return DrawSphere.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawSphere(Vector3 centerPos, float radius, Color color) - * } - */ - public static MethodHandle DrawSphere$handle() { - return DrawSphere.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawSphere(Vector3 centerPos, float radius, Color color) - * } - */ - public static MemorySegment DrawSphere$address() { - return DrawSphere.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawSphere(Vector3 centerPos, float radius, Color color) - * } - */ - public static void DrawSphere(MemorySegment centerPos, float radius, MemorySegment color) { - var mh$ = DrawSphere.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawSphere", centerPos, radius, color); - } - mh$.invokeExact(centerPos, radius, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawSphereEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSphereEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static FunctionDescriptor DrawSphereEx$descriptor() { - return DrawSphereEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static MethodHandle DrawSphereEx$handle() { - return DrawSphereEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static MemorySegment DrawSphereEx$address() { - return DrawSphereEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static void DrawSphereEx(MemorySegment centerPos, float radius, int rings, int slices, MemorySegment color) { - var mh$ = DrawSphereEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawSphereEx", centerPos, radius, rings, slices, color); - } - mh$.invokeExact(centerPos, radius, rings, slices, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawSphereWires { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSphereWires"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static FunctionDescriptor DrawSphereWires$descriptor() { - return DrawSphereWires.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static MethodHandle DrawSphereWires$handle() { - return DrawSphereWires.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static MemorySegment DrawSphereWires$address() { - return DrawSphereWires.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) - * } - */ - public static void DrawSphereWires(MemorySegment centerPos, float radius, int rings, int slices, MemorySegment color) { - var mh$ = DrawSphereWires.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawSphereWires", centerPos, radius, rings, slices, color); - } - mh$.invokeExact(centerPos, radius, rings, slices, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCylinder { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinder"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static FunctionDescriptor DrawCylinder$descriptor() { - return DrawCylinder.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static MethodHandle DrawCylinder$handle() { - return DrawCylinder.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static MemorySegment DrawCylinder$address() { - return DrawCylinder.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static void DrawCylinder(MemorySegment position, float radiusTop, float radiusBottom, float height, int slices, MemorySegment color) { - var mh$ = DrawCylinder.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCylinder", position, radiusTop, radiusBottom, height, slices, color); - } - mh$.invokeExact(position, radiusTop, radiusBottom, height, slices, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCylinderEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinderEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static FunctionDescriptor DrawCylinderEx$descriptor() { - return DrawCylinderEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static MethodHandle DrawCylinderEx$handle() { - return DrawCylinderEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static MemorySegment DrawCylinderEx$address() { - return DrawCylinderEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static void DrawCylinderEx(MemorySegment startPos, MemorySegment endPos, float startRadius, float endRadius, int sides, MemorySegment color) { - var mh$ = DrawCylinderEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCylinderEx", startPos, endPos, startRadius, endRadius, sides, color); - } - mh$.invokeExact(startPos, endPos, startRadius, endRadius, sides, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCylinderWires { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinderWires"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static FunctionDescriptor DrawCylinderWires$descriptor() { - return DrawCylinderWires.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static MethodHandle DrawCylinderWires$handle() { - return DrawCylinderWires.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static MemorySegment DrawCylinderWires$address() { - return DrawCylinderWires.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) - * } - */ - public static void DrawCylinderWires(MemorySegment position, float radiusTop, float radiusBottom, float height, int slices, MemorySegment color) { - var mh$ = DrawCylinderWires.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCylinderWires", position, radiusTop, radiusBottom, height, slices, color); - } - mh$.invokeExact(position, radiusTop, radiusBottom, height, slices, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCylinderWiresEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinderWiresEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static FunctionDescriptor DrawCylinderWiresEx$descriptor() { - return DrawCylinderWiresEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static MethodHandle DrawCylinderWiresEx$handle() { - return DrawCylinderWiresEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static MemorySegment DrawCylinderWiresEx$address() { - return DrawCylinderWiresEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) - * } - */ - public static void DrawCylinderWiresEx(MemorySegment startPos, MemorySegment endPos, float startRadius, float endRadius, int sides, MemorySegment color) { - var mh$ = DrawCylinderWiresEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCylinderWiresEx", startPos, endPos, startRadius, endRadius, sides, color); - } - mh$.invokeExact(startPos, endPos, startRadius, endRadius, sides, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCapsule { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCapsule"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static FunctionDescriptor DrawCapsule$descriptor() { - return DrawCapsule.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static MethodHandle DrawCapsule$handle() { - return DrawCapsule.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static MemorySegment DrawCapsule$address() { - return DrawCapsule.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static void DrawCapsule(MemorySegment startPos, MemorySegment endPos, float radius, int slices, int rings, MemorySegment color) { - var mh$ = DrawCapsule.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCapsule", startPos, endPos, radius, slices, rings, color); - } - mh$.invokeExact(startPos, endPos, radius, slices, rings, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawCapsuleWires { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCapsuleWires"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static FunctionDescriptor DrawCapsuleWires$descriptor() { - return DrawCapsuleWires.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static MethodHandle DrawCapsuleWires$handle() { - return DrawCapsuleWires.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static MemorySegment DrawCapsuleWires$address() { - return DrawCapsuleWires.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) - * } - */ - public static void DrawCapsuleWires(MemorySegment startPos, MemorySegment endPos, float radius, int slices, int rings, MemorySegment color) { - var mh$ = DrawCapsuleWires.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawCapsuleWires", startPos, endPos, radius, slices, rings, color); - } - mh$.invokeExact(startPos, endPos, radius, slices, rings, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawPlane { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector3.layout(), - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPlane"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) - * } - */ - public static FunctionDescriptor DrawPlane$descriptor() { - return DrawPlane.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) - * } - */ - public static MethodHandle DrawPlane$handle() { - return DrawPlane.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) - * } - */ - public static MemorySegment DrawPlane$address() { - return DrawPlane.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) - * } - */ - public static void DrawPlane(MemorySegment centerPos, MemorySegment size, MemorySegment color) { - var mh$ = DrawPlane.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawPlane", centerPos, size, color); - } - mh$.invokeExact(centerPos, size, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawRay { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Ray.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRay"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawRay(Ray ray, Color color) - * } - */ - public static FunctionDescriptor DrawRay$descriptor() { - return DrawRay.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawRay(Ray ray, Color color) - * } - */ - public static MethodHandle DrawRay$handle() { - return DrawRay.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawRay(Ray ray, Color color) - * } - */ - public static MemorySegment DrawRay$address() { - return DrawRay.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawRay(Ray ray, Color color) - * } - */ - public static void DrawRay(MemorySegment ray, MemorySegment color) { - var mh$ = DrawRay.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawRay", ray, color); - } - mh$.invokeExact(ray, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawGrid { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawGrid"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawGrid(int slices, float spacing) - * } - */ - public static FunctionDescriptor DrawGrid$descriptor() { - return DrawGrid.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawGrid(int slices, float spacing) - * } - */ - public static MethodHandle DrawGrid$handle() { - return DrawGrid.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawGrid(int slices, float spacing) - * } - */ - public static MemorySegment DrawGrid$address() { - return DrawGrid.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawGrid(int slices, float spacing) - * } - */ - public static void DrawGrid(int slices, float spacing) { - var mh$ = DrawGrid.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawGrid", slices, spacing); - } - mh$.invokeExact(slices, spacing); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadModel { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Model.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadModel"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Model LoadModel(const char *fileName) - * } - */ - public static FunctionDescriptor LoadModel$descriptor() { - return LoadModel.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Model LoadModel(const char *fileName) - * } - */ - public static MethodHandle LoadModel$handle() { - return LoadModel.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Model LoadModel(const char *fileName) - * } - */ - public static MemorySegment LoadModel$address() { - return LoadModel.ADDR; - } - - /** - * {@snippet lang=c : - * Model LoadModel(const char *fileName) - * } - */ - public static MemorySegment LoadModel(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadModel.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadModel", allocator, fileName); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadModelFromMesh { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Model.layout(), - Mesh.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadModelFromMesh"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Model LoadModelFromMesh(Mesh mesh) - * } - */ - public static FunctionDescriptor LoadModelFromMesh$descriptor() { - return LoadModelFromMesh.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Model LoadModelFromMesh(Mesh mesh) - * } - */ - public static MethodHandle LoadModelFromMesh$handle() { - return LoadModelFromMesh.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Model LoadModelFromMesh(Mesh mesh) - * } - */ - public static MemorySegment LoadModelFromMesh$address() { - return LoadModelFromMesh.ADDR; - } - - /** - * {@snippet lang=c : - * Model LoadModelFromMesh(Mesh mesh) - * } - */ - public static MemorySegment LoadModelFromMesh(SegmentAllocator allocator, MemorySegment mesh) { - var mh$ = LoadModelFromMesh.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadModelFromMesh", allocator, mesh); - } - return (MemorySegment)mh$.invokeExact(allocator, mesh); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsModelReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Model.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsModelReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsModelReady(Model model) - * } - */ - public static FunctionDescriptor IsModelReady$descriptor() { - return IsModelReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsModelReady(Model model) - * } - */ - public static MethodHandle IsModelReady$handle() { - return IsModelReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsModelReady(Model model) - * } - */ - public static MemorySegment IsModelReady$address() { - return IsModelReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsModelReady(Model model) - * } - */ - public static boolean IsModelReady(MemorySegment model) { - var mh$ = IsModelReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsModelReady", model); - } - return (boolean)mh$.invokeExact(model); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadModel { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Model.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadModel"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadModel(Model model) - * } - */ - public static FunctionDescriptor UnloadModel$descriptor() { - return UnloadModel.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadModel(Model model) - * } - */ - public static MethodHandle UnloadModel$handle() { - return UnloadModel.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadModel(Model model) - * } - */ - public static MemorySegment UnloadModel$address() { - return UnloadModel.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadModel(Model model) - * } - */ - public static void UnloadModel(MemorySegment model) { - var mh$ = UnloadModel.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadModel", model); - } - mh$.invokeExact(model); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetModelBoundingBox { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - BoundingBox.layout(), - Model.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetModelBoundingBox"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * BoundingBox GetModelBoundingBox(Model model) - * } - */ - public static FunctionDescriptor GetModelBoundingBox$descriptor() { - return GetModelBoundingBox.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * BoundingBox GetModelBoundingBox(Model model) - * } - */ - public static MethodHandle GetModelBoundingBox$handle() { - return GetModelBoundingBox.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * BoundingBox GetModelBoundingBox(Model model) - * } - */ - public static MemorySegment GetModelBoundingBox$address() { - return GetModelBoundingBox.ADDR; - } - - /** - * {@snippet lang=c : - * BoundingBox GetModelBoundingBox(Model model) - * } - */ - public static MemorySegment GetModelBoundingBox(SegmentAllocator allocator, MemorySegment model) { - var mh$ = GetModelBoundingBox.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetModelBoundingBox", allocator, model); - } - return (MemorySegment)mh$.invokeExact(allocator, model); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawModel { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Model.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawModel"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawModel(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static FunctionDescriptor DrawModel$descriptor() { - return DrawModel.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawModel(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static MethodHandle DrawModel$handle() { - return DrawModel.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawModel(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static MemorySegment DrawModel$address() { - return DrawModel.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawModel(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static void DrawModel(MemorySegment model, MemorySegment position, float scale, MemorySegment tint) { - var mh$ = DrawModel.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawModel", model, position, scale, tint); - } - mh$.invokeExact(model, position, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawModelEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Model.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawModelEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static FunctionDescriptor DrawModelEx$descriptor() { - return DrawModelEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static MethodHandle DrawModelEx$handle() { - return DrawModelEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static MemorySegment DrawModelEx$address() { - return DrawModelEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static void DrawModelEx(MemorySegment model, MemorySegment position, MemorySegment rotationAxis, float rotationAngle, MemorySegment scale, MemorySegment tint) { - var mh$ = DrawModelEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawModelEx", model, position, rotationAxis, rotationAngle, scale, tint); - } - mh$.invokeExact(model, position, rotationAxis, rotationAngle, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawModelWires { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Model.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawModelWires"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static FunctionDescriptor DrawModelWires$descriptor() { - return DrawModelWires.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static MethodHandle DrawModelWires$handle() { - return DrawModelWires.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static MemorySegment DrawModelWires$address() { - return DrawModelWires.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) - * } - */ - public static void DrawModelWires(MemorySegment model, MemorySegment position, float scale, MemorySegment tint) { - var mh$ = DrawModelWires.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawModelWires", model, position, scale, tint); - } - mh$.invokeExact(model, position, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawModelWiresEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Model.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawModelWiresEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static FunctionDescriptor DrawModelWiresEx$descriptor() { - return DrawModelWiresEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static MethodHandle DrawModelWiresEx$handle() { - return DrawModelWiresEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static MemorySegment DrawModelWiresEx$address() { - return DrawModelWiresEx.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static void DrawModelWiresEx(MemorySegment model, MemorySegment position, MemorySegment rotationAxis, float rotationAngle, MemorySegment scale, MemorySegment tint) { - var mh$ = DrawModelWiresEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawModelWiresEx", model, position, rotationAxis, rotationAngle, scale, tint); - } - mh$.invokeExact(model, position, rotationAxis, rotationAngle, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawBoundingBox { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - BoundingBox.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawBoundingBox"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawBoundingBox(BoundingBox box, Color color) - * } - */ - public static FunctionDescriptor DrawBoundingBox$descriptor() { - return DrawBoundingBox.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawBoundingBox(BoundingBox box, Color color) - * } - */ - public static MethodHandle DrawBoundingBox$handle() { - return DrawBoundingBox.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawBoundingBox(BoundingBox box, Color color) - * } - */ - public static MemorySegment DrawBoundingBox$address() { - return DrawBoundingBox.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawBoundingBox(BoundingBox box, Color color) - * } - */ - public static void DrawBoundingBox(MemorySegment box, MemorySegment color) { - var mh$ = DrawBoundingBox.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawBoundingBox", box, color); - } - mh$.invokeExact(box, color); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawBillboard { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Camera3D.layout(), - Texture.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawBillboard"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) - * } - */ - public static FunctionDescriptor DrawBillboard$descriptor() { - return DrawBillboard.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) - * } - */ - public static MethodHandle DrawBillboard$handle() { - return DrawBillboard.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) - * } - */ - public static MemorySegment DrawBillboard$address() { - return DrawBillboard.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) - * } - */ - public static void DrawBillboard(MemorySegment camera, MemorySegment texture, MemorySegment position, float size, MemorySegment tint) { - var mh$ = DrawBillboard.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawBillboard", camera, texture, position, size, tint); - } - mh$.invokeExact(camera, texture, position, size, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawBillboardRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Camera3D.layout(), - Texture.layout(), - Rectangle.layout(), - Vector3.layout(), - Vector2.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawBillboardRec"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) - * } - */ - public static FunctionDescriptor DrawBillboardRec$descriptor() { - return DrawBillboardRec.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) - * } - */ - public static MethodHandle DrawBillboardRec$handle() { - return DrawBillboardRec.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) - * } - */ - public static MemorySegment DrawBillboardRec$address() { - return DrawBillboardRec.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) - * } - */ - public static void DrawBillboardRec(MemorySegment camera, MemorySegment texture, MemorySegment source, MemorySegment position, MemorySegment size, MemorySegment tint) { - var mh$ = DrawBillboardRec.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawBillboardRec", camera, texture, source, position, size, tint); - } - mh$.invokeExact(camera, texture, source, position, size, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawBillboardPro { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Camera3D.layout(), - Texture.layout(), - Rectangle.layout(), - Vector3.layout(), - Vector3.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawBillboardPro"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) - * } - */ - public static FunctionDescriptor DrawBillboardPro$descriptor() { - return DrawBillboardPro.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) - * } - */ - public static MethodHandle DrawBillboardPro$handle() { - return DrawBillboardPro.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) - * } - */ - public static MemorySegment DrawBillboardPro$address() { - return DrawBillboardPro.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) - * } - */ - public static void DrawBillboardPro(MemorySegment camera, MemorySegment texture, MemorySegment source, MemorySegment position, MemorySegment up, MemorySegment size, MemorySegment origin, float rotation, MemorySegment tint) { - var mh$ = DrawBillboardPro.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawBillboardPro", camera, texture, source, position, up, size, origin, rotation, tint); - } - mh$.invokeExact(camera, texture, source, position, up, size, origin, rotation, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UploadMesh { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_BOOL - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UploadMesh"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UploadMesh(Mesh *mesh, bool dynamic) - * } - */ - public static FunctionDescriptor UploadMesh$descriptor() { - return UploadMesh.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UploadMesh(Mesh *mesh, bool dynamic) - * } - */ - public static MethodHandle UploadMesh$handle() { - return UploadMesh.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UploadMesh(Mesh *mesh, bool dynamic) - * } - */ - public static MemorySegment UploadMesh$address() { - return UploadMesh.ADDR; - } - - /** - * {@snippet lang=c : - * void UploadMesh(Mesh *mesh, bool dynamic) - * } - */ - public static void UploadMesh(MemorySegment mesh, boolean dynamic) { - var mh$ = UploadMesh.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UploadMesh", mesh, dynamic); - } - mh$.invokeExact(mesh, dynamic); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateMeshBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Mesh.layout(), - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateMeshBuffer"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) - * } - */ - public static FunctionDescriptor UpdateMeshBuffer$descriptor() { - return UpdateMeshBuffer.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) - * } - */ - public static MethodHandle UpdateMeshBuffer$handle() { - return UpdateMeshBuffer.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) - * } - */ - public static MemorySegment UpdateMeshBuffer$address() { - return UpdateMeshBuffer.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) - * } - */ - public static void UpdateMeshBuffer(MemorySegment mesh, int index, MemorySegment data, int dataSize, int offset) { - var mh$ = UpdateMeshBuffer.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateMeshBuffer", mesh, index, data, dataSize, offset); - } - mh$.invokeExact(mesh, index, data, dataSize, offset); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadMesh { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Mesh.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadMesh"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadMesh(Mesh mesh) - * } - */ - public static FunctionDescriptor UnloadMesh$descriptor() { - return UnloadMesh.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadMesh(Mesh mesh) - * } - */ - public static MethodHandle UnloadMesh$handle() { - return UnloadMesh.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadMesh(Mesh mesh) - * } - */ - public static MemorySegment UnloadMesh$address() { - return UnloadMesh.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadMesh(Mesh mesh) - * } - */ - public static void UnloadMesh(MemorySegment mesh) { - var mh$ = UnloadMesh.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadMesh", mesh); - } - mh$.invokeExact(mesh); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawMesh { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Mesh.layout(), - Material.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawMesh"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawMesh(Mesh mesh, Material material, Matrix transform) - * } - */ - public static FunctionDescriptor DrawMesh$descriptor() { - return DrawMesh.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawMesh(Mesh mesh, Material material, Matrix transform) - * } - */ - public static MethodHandle DrawMesh$handle() { - return DrawMesh.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawMesh(Mesh mesh, Material material, Matrix transform) - * } - */ - public static MemorySegment DrawMesh$address() { - return DrawMesh.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawMesh(Mesh mesh, Material material, Matrix transform) - * } - */ - public static void DrawMesh(MemorySegment mesh, MemorySegment material, MemorySegment transform) { - var mh$ = DrawMesh.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawMesh", mesh, material, transform); - } - mh$.invokeExact(mesh, material, transform); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DrawMeshInstanced { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Mesh.layout(), - Material.layout(), - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DrawMeshInstanced"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) - * } - */ - public static FunctionDescriptor DrawMeshInstanced$descriptor() { - return DrawMeshInstanced.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) - * } - */ - public static MethodHandle DrawMeshInstanced$handle() { - return DrawMeshInstanced.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) - * } - */ - public static MemorySegment DrawMeshInstanced$address() { - return DrawMeshInstanced.ADDR; - } - - /** - * {@snippet lang=c : - * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) - * } - */ - public static void DrawMeshInstanced(MemorySegment mesh, MemorySegment material, MemorySegment transforms, int instances) { - var mh$ = DrawMeshInstanced.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DrawMeshInstanced", mesh, material, transforms, instances); - } - mh$.invokeExact(mesh, material, transforms, instances); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetMeshBoundingBox { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - BoundingBox.layout(), - Mesh.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetMeshBoundingBox"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * BoundingBox GetMeshBoundingBox(Mesh mesh) - * } - */ - public static FunctionDescriptor GetMeshBoundingBox$descriptor() { - return GetMeshBoundingBox.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * BoundingBox GetMeshBoundingBox(Mesh mesh) - * } - */ - public static MethodHandle GetMeshBoundingBox$handle() { - return GetMeshBoundingBox.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * BoundingBox GetMeshBoundingBox(Mesh mesh) - * } - */ - public static MemorySegment GetMeshBoundingBox$address() { - return GetMeshBoundingBox.ADDR; - } - - /** - * {@snippet lang=c : - * BoundingBox GetMeshBoundingBox(Mesh mesh) - * } - */ - public static MemorySegment GetMeshBoundingBox(SegmentAllocator allocator, MemorySegment mesh) { - var mh$ = GetMeshBoundingBox.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetMeshBoundingBox", allocator, mesh); - } - return (MemorySegment)mh$.invokeExact(allocator, mesh); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshTangents { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshTangents"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void GenMeshTangents(Mesh *mesh) - * } - */ - public static FunctionDescriptor GenMeshTangents$descriptor() { - return GenMeshTangents.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void GenMeshTangents(Mesh *mesh) - * } - */ - public static MethodHandle GenMeshTangents$handle() { - return GenMeshTangents.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void GenMeshTangents(Mesh *mesh) - * } - */ - public static MemorySegment GenMeshTangents$address() { - return GenMeshTangents.ADDR; - } - - /** - * {@snippet lang=c : - * void GenMeshTangents(Mesh *mesh) - * } - */ - public static void GenMeshTangents(MemorySegment mesh) { - var mh$ = GenMeshTangents.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshTangents", mesh); - } - mh$.invokeExact(mesh); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ExportMesh { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Mesh.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ExportMesh"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool ExportMesh(Mesh mesh, const char *fileName) - * } - */ - public static FunctionDescriptor ExportMesh$descriptor() { - return ExportMesh.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool ExportMesh(Mesh mesh, const char *fileName) - * } - */ - public static MethodHandle ExportMesh$handle() { - return ExportMesh.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool ExportMesh(Mesh mesh, const char *fileName) - * } - */ - public static MemorySegment ExportMesh$address() { - return ExportMesh.ADDR; - } - - /** - * {@snippet lang=c : - * bool ExportMesh(Mesh mesh, const char *fileName) - * } - */ - public static boolean ExportMesh(MemorySegment mesh, MemorySegment fileName) { - var mh$ = ExportMesh.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ExportMesh", mesh, fileName); - } - return (boolean)mh$.invokeExact(mesh, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ExportMeshAsCode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Mesh.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ExportMeshAsCode"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool ExportMeshAsCode(Mesh mesh, const char *fileName) - * } - */ - public static FunctionDescriptor ExportMeshAsCode$descriptor() { - return ExportMeshAsCode.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool ExportMeshAsCode(Mesh mesh, const char *fileName) - * } - */ - public static MethodHandle ExportMeshAsCode$handle() { - return ExportMeshAsCode.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool ExportMeshAsCode(Mesh mesh, const char *fileName) - * } - */ - public static MemorySegment ExportMeshAsCode$address() { - return ExportMeshAsCode.ADDR; - } - - /** - * {@snippet lang=c : - * bool ExportMeshAsCode(Mesh mesh, const char *fileName) - * } - */ - public static boolean ExportMeshAsCode(MemorySegment mesh, MemorySegment fileName) { - var mh$ = ExportMeshAsCode.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ExportMeshAsCode", mesh, fileName); - } - return (boolean)mh$.invokeExact(mesh, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshPoly { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_INT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshPoly"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshPoly(int sides, float radius) - * } - */ - public static FunctionDescriptor GenMeshPoly$descriptor() { - return GenMeshPoly.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshPoly(int sides, float radius) - * } - */ - public static MethodHandle GenMeshPoly$handle() { - return GenMeshPoly.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshPoly(int sides, float radius) - * } - */ - public static MemorySegment GenMeshPoly$address() { - return GenMeshPoly.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshPoly(int sides, float radius) - * } - */ - public static MemorySegment GenMeshPoly(SegmentAllocator allocator, int sides, float radius) { - var mh$ = GenMeshPoly.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshPoly", allocator, sides, radius); - } - return (MemorySegment)mh$.invokeExact(allocator, sides, radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshPlane { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshPlane"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshPlane(float width, float length, int resX, int resZ) - * } - */ - public static FunctionDescriptor GenMeshPlane$descriptor() { - return GenMeshPlane.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshPlane(float width, float length, int resX, int resZ) - * } - */ - public static MethodHandle GenMeshPlane$handle() { - return GenMeshPlane.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshPlane(float width, float length, int resX, int resZ) - * } - */ - public static MemorySegment GenMeshPlane$address() { - return GenMeshPlane.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshPlane(float width, float length, int resX, int resZ) - * } - */ - public static MemorySegment GenMeshPlane(SegmentAllocator allocator, float width, float length, int resX, int resZ) { - var mh$ = GenMeshPlane.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshPlane", allocator, width, length, resX, resZ); - } - return (MemorySegment)mh$.invokeExact(allocator, width, length, resX, resZ); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshCube { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCube"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshCube(float width, float height, float length) - * } - */ - public static FunctionDescriptor GenMeshCube$descriptor() { - return GenMeshCube.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshCube(float width, float height, float length) - * } - */ - public static MethodHandle GenMeshCube$handle() { - return GenMeshCube.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshCube(float width, float height, float length) - * } - */ - public static MemorySegment GenMeshCube$address() { - return GenMeshCube.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshCube(float width, float height, float length) - * } - */ - public static MemorySegment GenMeshCube(SegmentAllocator allocator, float width, float height, float length) { - var mh$ = GenMeshCube.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshCube", allocator, width, height, length); - } - return (MemorySegment)mh$.invokeExact(allocator, width, height, length); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshSphere { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshSphere"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshSphere(float radius, int rings, int slices) - * } - */ - public static FunctionDescriptor GenMeshSphere$descriptor() { - return GenMeshSphere.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshSphere(float radius, int rings, int slices) - * } - */ - public static MethodHandle GenMeshSphere$handle() { - return GenMeshSphere.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshSphere(float radius, int rings, int slices) - * } - */ - public static MemorySegment GenMeshSphere$address() { - return GenMeshSphere.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshSphere(float radius, int rings, int slices) - * } - */ - public static MemorySegment GenMeshSphere(SegmentAllocator allocator, float radius, int rings, int slices) { - var mh$ = GenMeshSphere.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshSphere", allocator, radius, rings, slices); - } - return (MemorySegment)mh$.invokeExact(allocator, radius, rings, slices); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshHemiSphere { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshHemiSphere"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshHemiSphere(float radius, int rings, int slices) - * } - */ - public static FunctionDescriptor GenMeshHemiSphere$descriptor() { - return GenMeshHemiSphere.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshHemiSphere(float radius, int rings, int slices) - * } - */ - public static MethodHandle GenMeshHemiSphere$handle() { - return GenMeshHemiSphere.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshHemiSphere(float radius, int rings, int slices) - * } - */ - public static MemorySegment GenMeshHemiSphere$address() { - return GenMeshHemiSphere.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshHemiSphere(float radius, int rings, int slices) - * } - */ - public static MemorySegment GenMeshHemiSphere(SegmentAllocator allocator, float radius, int rings, int slices) { - var mh$ = GenMeshHemiSphere.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshHemiSphere", allocator, radius, rings, slices); - } - return (MemorySegment)mh$.invokeExact(allocator, radius, rings, slices); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshCylinder { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCylinder"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshCylinder(float radius, float height, int slices) - * } - */ - public static FunctionDescriptor GenMeshCylinder$descriptor() { - return GenMeshCylinder.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshCylinder(float radius, float height, int slices) - * } - */ - public static MethodHandle GenMeshCylinder$handle() { - return GenMeshCylinder.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshCylinder(float radius, float height, int slices) - * } - */ - public static MemorySegment GenMeshCylinder$address() { - return GenMeshCylinder.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshCylinder(float radius, float height, int slices) - * } - */ - public static MemorySegment GenMeshCylinder(SegmentAllocator allocator, float radius, float height, int slices) { - var mh$ = GenMeshCylinder.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshCylinder", allocator, radius, height, slices); - } - return (MemorySegment)mh$.invokeExact(allocator, radius, height, slices); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshCone { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCone"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshCone(float radius, float height, int slices) - * } - */ - public static FunctionDescriptor GenMeshCone$descriptor() { - return GenMeshCone.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshCone(float radius, float height, int slices) - * } - */ - public static MethodHandle GenMeshCone$handle() { - return GenMeshCone.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshCone(float radius, float height, int slices) - * } - */ - public static MemorySegment GenMeshCone$address() { - return GenMeshCone.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshCone(float radius, float height, int slices) - * } - */ - public static MemorySegment GenMeshCone(SegmentAllocator allocator, float radius, float height, int slices) { - var mh$ = GenMeshCone.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshCone", allocator, radius, height, slices); - } - return (MemorySegment)mh$.invokeExact(allocator, radius, height, slices); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshTorus { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshTorus"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) - * } - */ - public static FunctionDescriptor GenMeshTorus$descriptor() { - return GenMeshTorus.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) - * } - */ - public static MethodHandle GenMeshTorus$handle() { - return GenMeshTorus.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) - * } - */ - public static MemorySegment GenMeshTorus$address() { - return GenMeshTorus.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) - * } - */ - public static MemorySegment GenMeshTorus(SegmentAllocator allocator, float radius, float size, int radSeg, int sides) { - var mh$ = GenMeshTorus.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshTorus", allocator, radius, size, radSeg, sides); - } - return (MemorySegment)mh$.invokeExact(allocator, radius, size, radSeg, sides); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshKnot { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshKnot"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) - * } - */ - public static FunctionDescriptor GenMeshKnot$descriptor() { - return GenMeshKnot.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) - * } - */ - public static MethodHandle GenMeshKnot$handle() { - return GenMeshKnot.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) - * } - */ - public static MemorySegment GenMeshKnot$address() { - return GenMeshKnot.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) - * } - */ - public static MemorySegment GenMeshKnot(SegmentAllocator allocator, float radius, float size, int radSeg, int sides) { - var mh$ = GenMeshKnot.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshKnot", allocator, radius, size, radSeg, sides); - } - return (MemorySegment)mh$.invokeExact(allocator, radius, size, radSeg, sides); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshHeightmap { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - Image.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshHeightmap"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) - * } - */ - public static FunctionDescriptor GenMeshHeightmap$descriptor() { - return GenMeshHeightmap.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) - * } - */ - public static MethodHandle GenMeshHeightmap$handle() { - return GenMeshHeightmap.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) - * } - */ - public static MemorySegment GenMeshHeightmap$address() { - return GenMeshHeightmap.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) - * } - */ - public static MemorySegment GenMeshHeightmap(SegmentAllocator allocator, MemorySegment heightmap, MemorySegment size) { - var mh$ = GenMeshHeightmap.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshHeightmap", allocator, heightmap, size); - } - return (MemorySegment)mh$.invokeExact(allocator, heightmap, size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GenMeshCubicmap { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Mesh.layout(), - Image.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCubicmap"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) - * } - */ - public static FunctionDescriptor GenMeshCubicmap$descriptor() { - return GenMeshCubicmap.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) - * } - */ - public static MethodHandle GenMeshCubicmap$handle() { - return GenMeshCubicmap.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) - * } - */ - public static MemorySegment GenMeshCubicmap$address() { - return GenMeshCubicmap.ADDR; - } - - /** - * {@snippet lang=c : - * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) - * } - */ - public static MemorySegment GenMeshCubicmap(SegmentAllocator allocator, MemorySegment cubicmap, MemorySegment cubeSize) { - var mh$ = GenMeshCubicmap.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GenMeshCubicmap", allocator, cubicmap, cubeSize); - } - return (MemorySegment)mh$.invokeExact(allocator, cubicmap, cubeSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadMaterials { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadMaterials"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Material *LoadMaterials(const char *fileName, int *materialCount) - * } - */ - public static FunctionDescriptor LoadMaterials$descriptor() { - return LoadMaterials.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Material *LoadMaterials(const char *fileName, int *materialCount) - * } - */ - public static MethodHandle LoadMaterials$handle() { - return LoadMaterials.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Material *LoadMaterials(const char *fileName, int *materialCount) - * } - */ - public static MemorySegment LoadMaterials$address() { - return LoadMaterials.ADDR; - } - - /** - * {@snippet lang=c : - * Material *LoadMaterials(const char *fileName, int *materialCount) - * } - */ - public static MemorySegment LoadMaterials(MemorySegment fileName, MemorySegment materialCount) { - var mh$ = LoadMaterials.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadMaterials", fileName, materialCount); - } - return (MemorySegment)mh$.invokeExact(fileName, materialCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadMaterialDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Material.layout() ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadMaterialDefault"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Material LoadMaterialDefault() - * } - */ - public static FunctionDescriptor LoadMaterialDefault$descriptor() { - return LoadMaterialDefault.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Material LoadMaterialDefault() - * } - */ - public static MethodHandle LoadMaterialDefault$handle() { - return LoadMaterialDefault.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Material LoadMaterialDefault() - * } - */ - public static MemorySegment LoadMaterialDefault$address() { - return LoadMaterialDefault.ADDR; - } - - /** - * {@snippet lang=c : - * Material LoadMaterialDefault() - * } - */ - public static MemorySegment LoadMaterialDefault(SegmentAllocator allocator) { - var mh$ = LoadMaterialDefault.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadMaterialDefault", allocator); - } - return (MemorySegment)mh$.invokeExact(allocator); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsMaterialReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Material.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsMaterialReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsMaterialReady(Material material) - * } - */ - public static FunctionDescriptor IsMaterialReady$descriptor() { - return IsMaterialReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsMaterialReady(Material material) - * } - */ - public static MethodHandle IsMaterialReady$handle() { - return IsMaterialReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsMaterialReady(Material material) - * } - */ - public static MemorySegment IsMaterialReady$address() { - return IsMaterialReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsMaterialReady(Material material) - * } - */ - public static boolean IsMaterialReady(MemorySegment material) { - var mh$ = IsMaterialReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsMaterialReady", material); - } - return (boolean)mh$.invokeExact(material); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadMaterial { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Material.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadMaterial"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadMaterial(Material material) - * } - */ - public static FunctionDescriptor UnloadMaterial$descriptor() { - return UnloadMaterial.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadMaterial(Material material) - * } - */ - public static MethodHandle UnloadMaterial$handle() { - return UnloadMaterial.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadMaterial(Material material) - * } - */ - public static MemorySegment UnloadMaterial$address() { - return UnloadMaterial.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadMaterial(Material material) - * } - */ - public static void UnloadMaterial(MemorySegment material) { - var mh$ = UnloadMaterial.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadMaterial", material); - } - mh$.invokeExact(material); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetMaterialTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - Texture.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetMaterialTexture"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) - * } - */ - public static FunctionDescriptor SetMaterialTexture$descriptor() { - return SetMaterialTexture.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) - * } - */ - public static MethodHandle SetMaterialTexture$handle() { - return SetMaterialTexture.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) - * } - */ - public static MemorySegment SetMaterialTexture$address() { - return SetMaterialTexture.ADDR; - } - - /** - * {@snippet lang=c : - * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) - * } - */ - public static void SetMaterialTexture(MemorySegment material, int mapType, MemorySegment texture) { - var mh$ = SetMaterialTexture.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetMaterialTexture", material, mapType, texture); - } - mh$.invokeExact(material, mapType, texture); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetModelMeshMaterial { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetModelMeshMaterial"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetModelMeshMaterial(Model *model, int meshId, int materialId) - * } - */ - public static FunctionDescriptor SetModelMeshMaterial$descriptor() { - return SetModelMeshMaterial.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetModelMeshMaterial(Model *model, int meshId, int materialId) - * } - */ - public static MethodHandle SetModelMeshMaterial$handle() { - return SetModelMeshMaterial.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetModelMeshMaterial(Model *model, int meshId, int materialId) - * } - */ - public static MemorySegment SetModelMeshMaterial$address() { - return SetModelMeshMaterial.ADDR; - } - - /** - * {@snippet lang=c : - * void SetModelMeshMaterial(Model *model, int meshId, int materialId) - * } - */ - public static void SetModelMeshMaterial(MemorySegment model, int meshId, int materialId) { - var mh$ = SetModelMeshMaterial.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetModelMeshMaterial", model, meshId, materialId); - } - mh$.invokeExact(model, meshId, materialId); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadModelAnimations { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadModelAnimations"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) - * } - */ - public static FunctionDescriptor LoadModelAnimations$descriptor() { - return LoadModelAnimations.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) - * } - */ - public static MethodHandle LoadModelAnimations$handle() { - return LoadModelAnimations.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) - * } - */ - public static MemorySegment LoadModelAnimations$address() { - return LoadModelAnimations.ADDR; - } - - /** - * {@snippet lang=c : - * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) - * } - */ - public static MemorySegment LoadModelAnimations(MemorySegment fileName, MemorySegment animCount) { - var mh$ = LoadModelAnimations.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadModelAnimations", fileName, animCount); - } - return (MemorySegment)mh$.invokeExact(fileName, animCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateModelAnimation { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Model.layout(), - ModelAnimation.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateModelAnimation"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) - * } - */ - public static FunctionDescriptor UpdateModelAnimation$descriptor() { - return UpdateModelAnimation.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) - * } - */ - public static MethodHandle UpdateModelAnimation$handle() { - return UpdateModelAnimation.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) - * } - */ - public static MemorySegment UpdateModelAnimation$address() { - return UpdateModelAnimation.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) - * } - */ - public static void UpdateModelAnimation(MemorySegment model, MemorySegment anim, int frame) { - var mh$ = UpdateModelAnimation.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateModelAnimation", model, anim, frame); - } - mh$.invokeExact(model, anim, frame); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadModelAnimation { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - ModelAnimation.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadModelAnimation"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadModelAnimation(ModelAnimation anim) - * } - */ - public static FunctionDescriptor UnloadModelAnimation$descriptor() { - return UnloadModelAnimation.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadModelAnimation(ModelAnimation anim) - * } - */ - public static MethodHandle UnloadModelAnimation$handle() { - return UnloadModelAnimation.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadModelAnimation(ModelAnimation anim) - * } - */ - public static MemorySegment UnloadModelAnimation$address() { - return UnloadModelAnimation.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadModelAnimation(ModelAnimation anim) - * } - */ - public static void UnloadModelAnimation(MemorySegment anim) { - var mh$ = UnloadModelAnimation.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadModelAnimation", anim); - } - mh$.invokeExact(anim); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadModelAnimations { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadModelAnimations"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadModelAnimations(ModelAnimation *animations, int animCount) - * } - */ - public static FunctionDescriptor UnloadModelAnimations$descriptor() { - return UnloadModelAnimations.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadModelAnimations(ModelAnimation *animations, int animCount) - * } - */ - public static MethodHandle UnloadModelAnimations$handle() { - return UnloadModelAnimations.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadModelAnimations(ModelAnimation *animations, int animCount) - * } - */ - public static MemorySegment UnloadModelAnimations$address() { - return UnloadModelAnimations.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadModelAnimations(ModelAnimation *animations, int animCount) - * } - */ - public static void UnloadModelAnimations(MemorySegment animations, int animCount) { - var mh$ = UnloadModelAnimations.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadModelAnimations", animations, animCount); - } - mh$.invokeExact(animations, animCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsModelAnimationValid { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Model.layout(), - ModelAnimation.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsModelAnimationValid"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsModelAnimationValid(Model model, ModelAnimation anim) - * } - */ - public static FunctionDescriptor IsModelAnimationValid$descriptor() { - return IsModelAnimationValid.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsModelAnimationValid(Model model, ModelAnimation anim) - * } - */ - public static MethodHandle IsModelAnimationValid$handle() { - return IsModelAnimationValid.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsModelAnimationValid(Model model, ModelAnimation anim) - * } - */ - public static MemorySegment IsModelAnimationValid$address() { - return IsModelAnimationValid.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsModelAnimationValid(Model model, ModelAnimation anim) - * } - */ - public static boolean IsModelAnimationValid(MemorySegment model, MemorySegment anim) { - var mh$ = IsModelAnimationValid.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsModelAnimationValid", model, anim); - } - return (boolean)mh$.invokeExact(model, anim); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class CheckCollisionSpheres { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Vector3.layout(), - raylib.C_FLOAT, - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionSpheres"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) - * } - */ - public static FunctionDescriptor CheckCollisionSpheres$descriptor() { - return CheckCollisionSpheres.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) - * } - */ - public static MethodHandle CheckCollisionSpheres$handle() { - return CheckCollisionSpheres.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) - * } - */ - public static MemorySegment CheckCollisionSpheres$address() { - return CheckCollisionSpheres.ADDR; - } - - /** - * {@snippet lang=c : - * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) - * } - */ - public static boolean CheckCollisionSpheres(MemorySegment center1, float radius1, MemorySegment center2, float radius2) { - var mh$ = CheckCollisionSpheres.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionSpheres", center1, radius1, center2, radius2); - } - return (boolean)mh$.invokeExact(center1, radius1, center2, radius2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class CheckCollisionBoxes { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - BoundingBox.layout(), - BoundingBox.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionBoxes"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) - * } - */ - public static FunctionDescriptor CheckCollisionBoxes$descriptor() { - return CheckCollisionBoxes.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) - * } - */ - public static MethodHandle CheckCollisionBoxes$handle() { - return CheckCollisionBoxes.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) - * } - */ - public static MemorySegment CheckCollisionBoxes$address() { - return CheckCollisionBoxes.ADDR; - } - - /** - * {@snippet lang=c : - * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) - * } - */ - public static boolean CheckCollisionBoxes(MemorySegment box1, MemorySegment box2) { - var mh$ = CheckCollisionBoxes.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionBoxes", box1, box2); - } - return (boolean)mh$.invokeExact(box1, box2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class CheckCollisionBoxSphere { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - BoundingBox.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionBoxSphere"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) - * } - */ - public static FunctionDescriptor CheckCollisionBoxSphere$descriptor() { - return CheckCollisionBoxSphere.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) - * } - */ - public static MethodHandle CheckCollisionBoxSphere$handle() { - return CheckCollisionBoxSphere.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) - * } - */ - public static MemorySegment CheckCollisionBoxSphere$address() { - return CheckCollisionBoxSphere.ADDR; - } - - /** - * {@snippet lang=c : - * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) - * } - */ - public static boolean CheckCollisionBoxSphere(MemorySegment box, MemorySegment center, float radius) { - var mh$ = CheckCollisionBoxSphere.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionBoxSphere", box, center, radius); - } - return (boolean)mh$.invokeExact(box, center, radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetRayCollisionSphere { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - RayCollision.layout(), - Ray.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionSphere"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) - * } - */ - public static FunctionDescriptor GetRayCollisionSphere$descriptor() { - return GetRayCollisionSphere.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) - * } - */ - public static MethodHandle GetRayCollisionSphere$handle() { - return GetRayCollisionSphere.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) - * } - */ - public static MemorySegment GetRayCollisionSphere$address() { - return GetRayCollisionSphere.ADDR; - } - - /** - * {@snippet lang=c : - * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) - * } - */ - public static MemorySegment GetRayCollisionSphere(SegmentAllocator allocator, MemorySegment ray, MemorySegment center, float radius) { - var mh$ = GetRayCollisionSphere.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetRayCollisionSphere", allocator, ray, center, radius); - } - return (MemorySegment)mh$.invokeExact(allocator, ray, center, radius); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetRayCollisionBox { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - RayCollision.layout(), - Ray.layout(), - BoundingBox.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionBox"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) - * } - */ - public static FunctionDescriptor GetRayCollisionBox$descriptor() { - return GetRayCollisionBox.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) - * } - */ - public static MethodHandle GetRayCollisionBox$handle() { - return GetRayCollisionBox.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) - * } - */ - public static MemorySegment GetRayCollisionBox$address() { - return GetRayCollisionBox.ADDR; - } - - /** - * {@snippet lang=c : - * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) - * } - */ - public static MemorySegment GetRayCollisionBox(SegmentAllocator allocator, MemorySegment ray, MemorySegment box) { - var mh$ = GetRayCollisionBox.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetRayCollisionBox", allocator, ray, box); - } - return (MemorySegment)mh$.invokeExact(allocator, ray, box); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetRayCollisionMesh { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - RayCollision.layout(), - Ray.layout(), - Mesh.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionMesh"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) - * } - */ - public static FunctionDescriptor GetRayCollisionMesh$descriptor() { - return GetRayCollisionMesh.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) - * } - */ - public static MethodHandle GetRayCollisionMesh$handle() { - return GetRayCollisionMesh.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) - * } - */ - public static MemorySegment GetRayCollisionMesh$address() { - return GetRayCollisionMesh.ADDR; - } - - /** - * {@snippet lang=c : - * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) - * } - */ - public static MemorySegment GetRayCollisionMesh(SegmentAllocator allocator, MemorySegment ray, MemorySegment mesh, MemorySegment transform) { - var mh$ = GetRayCollisionMesh.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetRayCollisionMesh", allocator, ray, mesh, transform); - } - return (MemorySegment)mh$.invokeExact(allocator, ray, mesh, transform); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetRayCollisionTriangle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - RayCollision.layout(), - Ray.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionTriangle"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) - * } - */ - public static FunctionDescriptor GetRayCollisionTriangle$descriptor() { - return GetRayCollisionTriangle.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) - * } - */ - public static MethodHandle GetRayCollisionTriangle$handle() { - return GetRayCollisionTriangle.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) - * } - */ - public static MemorySegment GetRayCollisionTriangle$address() { - return GetRayCollisionTriangle.ADDR; - } - - /** - * {@snippet lang=c : - * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) - * } - */ - public static MemorySegment GetRayCollisionTriangle(SegmentAllocator allocator, MemorySegment ray, MemorySegment p1, MemorySegment p2, MemorySegment p3) { - var mh$ = GetRayCollisionTriangle.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetRayCollisionTriangle", allocator, ray, p1, p2, p3); - } - return (MemorySegment)mh$.invokeExact(allocator, ray, p1, p2, p3); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetRayCollisionQuad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - RayCollision.layout(), - Ray.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionQuad"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) - * } - */ - public static FunctionDescriptor GetRayCollisionQuad$descriptor() { - return GetRayCollisionQuad.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) - * } - */ - public static MethodHandle GetRayCollisionQuad$handle() { - return GetRayCollisionQuad.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) - * } - */ - public static MemorySegment GetRayCollisionQuad$address() { - return GetRayCollisionQuad.ADDR; - } - - /** - * {@snippet lang=c : - * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) - * } - */ - public static MemorySegment GetRayCollisionQuad(SegmentAllocator allocator, MemorySegment ray, MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4) { - var mh$ = GetRayCollisionQuad.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetRayCollisionQuad", allocator, ray, p1, p2, p3, p4); - } - return (MemorySegment)mh$.invokeExact(allocator, ray, p1, p2, p3, p4); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class InitAudioDevice { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - - public static final MemorySegment ADDR = raylib.findOrThrow("InitAudioDevice"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void InitAudioDevice() - * } - */ - public static FunctionDescriptor InitAudioDevice$descriptor() { - return InitAudioDevice.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void InitAudioDevice() - * } - */ - public static MethodHandle InitAudioDevice$handle() { - return InitAudioDevice.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void InitAudioDevice() - * } - */ - public static MemorySegment InitAudioDevice$address() { - return InitAudioDevice.ADDR; - } - - /** - * {@snippet lang=c : - * void InitAudioDevice() - * } - */ - public static void InitAudioDevice() { - var mh$ = InitAudioDevice.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("InitAudioDevice"); - } - mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class CloseAudioDevice { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - - public static final MemorySegment ADDR = raylib.findOrThrow("CloseAudioDevice"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void CloseAudioDevice() - * } - */ - public static FunctionDescriptor CloseAudioDevice$descriptor() { - return CloseAudioDevice.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void CloseAudioDevice() - * } - */ - public static MethodHandle CloseAudioDevice$handle() { - return CloseAudioDevice.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void CloseAudioDevice() - * } - */ - public static MemorySegment CloseAudioDevice$address() { - return CloseAudioDevice.ADDR; - } - - /** - * {@snippet lang=c : - * void CloseAudioDevice() - * } - */ - public static void CloseAudioDevice() { - var mh$ = CloseAudioDevice.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("CloseAudioDevice"); - } - mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsAudioDeviceReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioDeviceReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsAudioDeviceReady() - * } - */ - public static FunctionDescriptor IsAudioDeviceReady$descriptor() { - return IsAudioDeviceReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsAudioDeviceReady() - * } - */ - public static MethodHandle IsAudioDeviceReady$handle() { - return IsAudioDeviceReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsAudioDeviceReady() - * } - */ - public static MemorySegment IsAudioDeviceReady$address() { - return IsAudioDeviceReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsAudioDeviceReady() - * } - */ - public static boolean IsAudioDeviceReady() { - var mh$ = IsAudioDeviceReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsAudioDeviceReady"); - } - return (boolean)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetMasterVolume { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetMasterVolume"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetMasterVolume(float volume) - * } - */ - public static FunctionDescriptor SetMasterVolume$descriptor() { - return SetMasterVolume.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetMasterVolume(float volume) - * } - */ - public static MethodHandle SetMasterVolume$handle() { - return SetMasterVolume.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetMasterVolume(float volume) - * } - */ - public static MemorySegment SetMasterVolume$address() { - return SetMasterVolume.ADDR; - } - - /** - * {@snippet lang=c : - * void SetMasterVolume(float volume) - * } - */ - public static void SetMasterVolume(float volume) { - var mh$ = SetMasterVolume.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetMasterVolume", volume); - } - mh$.invokeExact(volume); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetMasterVolume { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetMasterVolume"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * float GetMasterVolume() - * } - */ - public static FunctionDescriptor GetMasterVolume$descriptor() { - return GetMasterVolume.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * float GetMasterVolume() - * } - */ - public static MethodHandle GetMasterVolume$handle() { - return GetMasterVolume.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * float GetMasterVolume() - * } - */ - public static MemorySegment GetMasterVolume$address() { - return GetMasterVolume.ADDR; - } - - /** - * {@snippet lang=c : - * float GetMasterVolume() - * } - */ - public static float GetMasterVolume() { - var mh$ = GetMasterVolume.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetMasterVolume"); - } - return (float)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadWave { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Wave.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadWave"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Wave LoadWave(const char *fileName) - * } - */ - public static FunctionDescriptor LoadWave$descriptor() { - return LoadWave.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Wave LoadWave(const char *fileName) - * } - */ - public static MethodHandle LoadWave$handle() { - return LoadWave.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Wave LoadWave(const char *fileName) - * } - */ - public static MemorySegment LoadWave$address() { - return LoadWave.ADDR; - } - - /** - * {@snippet lang=c : - * Wave LoadWave(const char *fileName) - * } - */ - public static MemorySegment LoadWave(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadWave.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadWave", allocator, fileName); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadWaveFromMemory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Wave.layout(), - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadWaveFromMemory"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) - * } - */ - public static FunctionDescriptor LoadWaveFromMemory$descriptor() { - return LoadWaveFromMemory.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) - * } - */ - public static MethodHandle LoadWaveFromMemory$handle() { - return LoadWaveFromMemory.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) - * } - */ - public static MemorySegment LoadWaveFromMemory$address() { - return LoadWaveFromMemory.ADDR; - } - - /** - * {@snippet lang=c : - * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) - * } - */ - public static MemorySegment LoadWaveFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize) { - var mh$ = LoadWaveFromMemory.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadWaveFromMemory", allocator, fileType, fileData, dataSize); - } - return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsWaveReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Wave.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsWaveReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsWaveReady(Wave wave) - * } - */ - public static FunctionDescriptor IsWaveReady$descriptor() { - return IsWaveReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsWaveReady(Wave wave) - * } - */ - public static MethodHandle IsWaveReady$handle() { - return IsWaveReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsWaveReady(Wave wave) - * } - */ - public static MemorySegment IsWaveReady$address() { - return IsWaveReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsWaveReady(Wave wave) - * } - */ - public static boolean IsWaveReady(MemorySegment wave) { - var mh$ = IsWaveReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsWaveReady", wave); - } - return (boolean)mh$.invokeExact(wave); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadSound { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Sound.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadSound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Sound LoadSound(const char *fileName) - * } - */ - public static FunctionDescriptor LoadSound$descriptor() { - return LoadSound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Sound LoadSound(const char *fileName) - * } - */ - public static MethodHandle LoadSound$handle() { - return LoadSound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Sound LoadSound(const char *fileName) - * } - */ - public static MemorySegment LoadSound$address() { - return LoadSound.ADDR; - } - - /** - * {@snippet lang=c : - * Sound LoadSound(const char *fileName) - * } - */ - public static MemorySegment LoadSound(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadSound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadSound", allocator, fileName); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadSoundFromWave { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Sound.layout(), - Wave.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadSoundFromWave"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Sound LoadSoundFromWave(Wave wave) - * } - */ - public static FunctionDescriptor LoadSoundFromWave$descriptor() { - return LoadSoundFromWave.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Sound LoadSoundFromWave(Wave wave) - * } - */ - public static MethodHandle LoadSoundFromWave$handle() { - return LoadSoundFromWave.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Sound LoadSoundFromWave(Wave wave) - * } - */ - public static MemorySegment LoadSoundFromWave$address() { - return LoadSoundFromWave.ADDR; - } - - /** - * {@snippet lang=c : - * Sound LoadSoundFromWave(Wave wave) - * } - */ - public static MemorySegment LoadSoundFromWave(SegmentAllocator allocator, MemorySegment wave) { - var mh$ = LoadSoundFromWave.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadSoundFromWave", allocator, wave); - } - return (MemorySegment)mh$.invokeExact(allocator, wave); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadSoundAlias { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Sound.layout(), - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadSoundAlias"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Sound LoadSoundAlias(Sound source) - * } - */ - public static FunctionDescriptor LoadSoundAlias$descriptor() { - return LoadSoundAlias.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Sound LoadSoundAlias(Sound source) - * } - */ - public static MethodHandle LoadSoundAlias$handle() { - return LoadSoundAlias.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Sound LoadSoundAlias(Sound source) - * } - */ - public static MemorySegment LoadSoundAlias$address() { - return LoadSoundAlias.ADDR; - } - - /** - * {@snippet lang=c : - * Sound LoadSoundAlias(Sound source) - * } - */ - public static MemorySegment LoadSoundAlias(SegmentAllocator allocator, MemorySegment source) { - var mh$ = LoadSoundAlias.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadSoundAlias", allocator, source); - } - return (MemorySegment)mh$.invokeExact(allocator, source); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsSoundReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsSoundReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsSoundReady(Sound sound) - * } - */ - public static FunctionDescriptor IsSoundReady$descriptor() { - return IsSoundReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsSoundReady(Sound sound) - * } - */ - public static MethodHandle IsSoundReady$handle() { - return IsSoundReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsSoundReady(Sound sound) - * } - */ - public static MemorySegment IsSoundReady$address() { - return IsSoundReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsSoundReady(Sound sound) - * } - */ - public static boolean IsSoundReady(MemorySegment sound) { - var mh$ = IsSoundReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsSoundReady", sound); - } - return (boolean)mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateSound { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout(), - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateSound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateSound(Sound sound, const void *data, int sampleCount) - * } - */ - public static FunctionDescriptor UpdateSound$descriptor() { - return UpdateSound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateSound(Sound sound, const void *data, int sampleCount) - * } - */ - public static MethodHandle UpdateSound$handle() { - return UpdateSound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateSound(Sound sound, const void *data, int sampleCount) - * } - */ - public static MemorySegment UpdateSound$address() { - return UpdateSound.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateSound(Sound sound, const void *data, int sampleCount) - * } - */ - public static void UpdateSound(MemorySegment sound, MemorySegment data, int sampleCount) { - var mh$ = UpdateSound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateSound", sound, data, sampleCount); - } - mh$.invokeExact(sound, data, sampleCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadWave { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Wave.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadWave"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadWave(Wave wave) - * } - */ - public static FunctionDescriptor UnloadWave$descriptor() { - return UnloadWave.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadWave(Wave wave) - * } - */ - public static MethodHandle UnloadWave$handle() { - return UnloadWave.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadWave(Wave wave) - * } - */ - public static MemorySegment UnloadWave$address() { - return UnloadWave.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadWave(Wave wave) - * } - */ - public static void UnloadWave(MemorySegment wave) { - var mh$ = UnloadWave.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadWave", wave); - } - mh$.invokeExact(wave); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadSound { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadSound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadSound(Sound sound) - * } - */ - public static FunctionDescriptor UnloadSound$descriptor() { - return UnloadSound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadSound(Sound sound) - * } - */ - public static MethodHandle UnloadSound$handle() { - return UnloadSound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadSound(Sound sound) - * } - */ - public static MemorySegment UnloadSound$address() { - return UnloadSound.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadSound(Sound sound) - * } - */ - public static void UnloadSound(MemorySegment sound) { - var mh$ = UnloadSound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadSound", sound); - } - mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadSoundAlias { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadSoundAlias"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadSoundAlias(Sound alias) - * } - */ - public static FunctionDescriptor UnloadSoundAlias$descriptor() { - return UnloadSoundAlias.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadSoundAlias(Sound alias) - * } - */ - public static MethodHandle UnloadSoundAlias$handle() { - return UnloadSoundAlias.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadSoundAlias(Sound alias) - * } - */ - public static MemorySegment UnloadSoundAlias$address() { - return UnloadSoundAlias.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadSoundAlias(Sound alias) - * } - */ - public static void UnloadSoundAlias(MemorySegment alias) { - var mh$ = UnloadSoundAlias.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadSoundAlias", alias); - } - mh$.invokeExact(alias); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ExportWave { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Wave.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ExportWave"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool ExportWave(Wave wave, const char *fileName) - * } - */ - public static FunctionDescriptor ExportWave$descriptor() { - return ExportWave.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool ExportWave(Wave wave, const char *fileName) - * } - */ - public static MethodHandle ExportWave$handle() { - return ExportWave.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool ExportWave(Wave wave, const char *fileName) - * } - */ - public static MemorySegment ExportWave$address() { - return ExportWave.ADDR; - } - - /** - * {@snippet lang=c : - * bool ExportWave(Wave wave, const char *fileName) - * } - */ - public static boolean ExportWave(MemorySegment wave, MemorySegment fileName) { - var mh$ = ExportWave.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ExportWave", wave, fileName); - } - return (boolean)mh$.invokeExact(wave, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ExportWaveAsCode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Wave.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ExportWaveAsCode"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool ExportWaveAsCode(Wave wave, const char *fileName) - * } - */ - public static FunctionDescriptor ExportWaveAsCode$descriptor() { - return ExportWaveAsCode.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool ExportWaveAsCode(Wave wave, const char *fileName) - * } - */ - public static MethodHandle ExportWaveAsCode$handle() { - return ExportWaveAsCode.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool ExportWaveAsCode(Wave wave, const char *fileName) - * } - */ - public static MemorySegment ExportWaveAsCode$address() { - return ExportWaveAsCode.ADDR; - } - - /** - * {@snippet lang=c : - * bool ExportWaveAsCode(Wave wave, const char *fileName) - * } - */ - public static boolean ExportWaveAsCode(MemorySegment wave, MemorySegment fileName) { - var mh$ = ExportWaveAsCode.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ExportWaveAsCode", wave, fileName); - } - return (boolean)mh$.invokeExact(wave, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class PlaySound { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("PlaySound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void PlaySound(Sound sound) - * } - */ - public static FunctionDescriptor PlaySound$descriptor() { - return PlaySound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void PlaySound(Sound sound) - * } - */ - public static MethodHandle PlaySound$handle() { - return PlaySound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void PlaySound(Sound sound) - * } - */ - public static MemorySegment PlaySound$address() { - return PlaySound.ADDR; - } - - /** - * {@snippet lang=c : - * void PlaySound(Sound sound) - * } - */ - public static void PlaySound(MemorySegment sound) { - var mh$ = PlaySound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("PlaySound", sound); - } - mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class StopSound { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("StopSound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void StopSound(Sound sound) - * } - */ - public static FunctionDescriptor StopSound$descriptor() { - return StopSound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void StopSound(Sound sound) - * } - */ - public static MethodHandle StopSound$handle() { - return StopSound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void StopSound(Sound sound) - * } - */ - public static MemorySegment StopSound$address() { - return StopSound.ADDR; - } - - /** - * {@snippet lang=c : - * void StopSound(Sound sound) - * } - */ - public static void StopSound(MemorySegment sound) { - var mh$ = StopSound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("StopSound", sound); - } - mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class PauseSound { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("PauseSound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void PauseSound(Sound sound) - * } - */ - public static FunctionDescriptor PauseSound$descriptor() { - return PauseSound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void PauseSound(Sound sound) - * } - */ - public static MethodHandle PauseSound$handle() { - return PauseSound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void PauseSound(Sound sound) - * } - */ - public static MemorySegment PauseSound$address() { - return PauseSound.ADDR; - } - - /** - * {@snippet lang=c : - * void PauseSound(Sound sound) - * } - */ - public static void PauseSound(MemorySegment sound) { - var mh$ = PauseSound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("PauseSound", sound); - } - mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ResumeSound { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ResumeSound"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void ResumeSound(Sound sound) - * } - */ - public static FunctionDescriptor ResumeSound$descriptor() { - return ResumeSound.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void ResumeSound(Sound sound) - * } - */ - public static MethodHandle ResumeSound$handle() { - return ResumeSound.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void ResumeSound(Sound sound) - * } - */ - public static MemorySegment ResumeSound$address() { - return ResumeSound.ADDR; - } - - /** - * {@snippet lang=c : - * void ResumeSound(Sound sound) - * } - */ - public static void ResumeSound(MemorySegment sound) { - var mh$ = ResumeSound.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ResumeSound", sound); - } - mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsSoundPlaying { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Sound.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsSoundPlaying"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsSoundPlaying(Sound sound) - * } - */ - public static FunctionDescriptor IsSoundPlaying$descriptor() { - return IsSoundPlaying.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsSoundPlaying(Sound sound) - * } - */ - public static MethodHandle IsSoundPlaying$handle() { - return IsSoundPlaying.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsSoundPlaying(Sound sound) - * } - */ - public static MemorySegment IsSoundPlaying$address() { - return IsSoundPlaying.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsSoundPlaying(Sound sound) - * } - */ - public static boolean IsSoundPlaying(MemorySegment sound) { - var mh$ = IsSoundPlaying.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsSoundPlaying", sound); - } - return (boolean)mh$.invokeExact(sound); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetSoundVolume { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetSoundVolume"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetSoundVolume(Sound sound, float volume) - * } - */ - public static FunctionDescriptor SetSoundVolume$descriptor() { - return SetSoundVolume.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetSoundVolume(Sound sound, float volume) - * } - */ - public static MethodHandle SetSoundVolume$handle() { - return SetSoundVolume.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetSoundVolume(Sound sound, float volume) - * } - */ - public static MemorySegment SetSoundVolume$address() { - return SetSoundVolume.ADDR; - } - - /** - * {@snippet lang=c : - * void SetSoundVolume(Sound sound, float volume) - * } - */ - public static void SetSoundVolume(MemorySegment sound, float volume) { - var mh$ = SetSoundVolume.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetSoundVolume", sound, volume); - } - mh$.invokeExact(sound, volume); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetSoundPitch { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetSoundPitch"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetSoundPitch(Sound sound, float pitch) - * } - */ - public static FunctionDescriptor SetSoundPitch$descriptor() { - return SetSoundPitch.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetSoundPitch(Sound sound, float pitch) - * } - */ - public static MethodHandle SetSoundPitch$handle() { - return SetSoundPitch.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetSoundPitch(Sound sound, float pitch) - * } - */ - public static MemorySegment SetSoundPitch$address() { - return SetSoundPitch.ADDR; - } - - /** - * {@snippet lang=c : - * void SetSoundPitch(Sound sound, float pitch) - * } - */ - public static void SetSoundPitch(MemorySegment sound, float pitch) { - var mh$ = SetSoundPitch.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetSoundPitch", sound, pitch); - } - mh$.invokeExact(sound, pitch); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetSoundPan { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Sound.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetSoundPan"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetSoundPan(Sound sound, float pan) - * } - */ - public static FunctionDescriptor SetSoundPan$descriptor() { - return SetSoundPan.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetSoundPan(Sound sound, float pan) - * } - */ - public static MethodHandle SetSoundPan$handle() { - return SetSoundPan.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetSoundPan(Sound sound, float pan) - * } - */ - public static MemorySegment SetSoundPan$address() { - return SetSoundPan.ADDR; - } - - /** - * {@snippet lang=c : - * void SetSoundPan(Sound sound, float pan) - * } - */ - public static void SetSoundPan(MemorySegment sound, float pan) { - var mh$ = SetSoundPan.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetSoundPan", sound, pan); - } - mh$.invokeExact(sound, pan); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class WaveCopy { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Wave.layout(), - Wave.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("WaveCopy"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Wave WaveCopy(Wave wave) - * } - */ - public static FunctionDescriptor WaveCopy$descriptor() { - return WaveCopy.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Wave WaveCopy(Wave wave) - * } - */ - public static MethodHandle WaveCopy$handle() { - return WaveCopy.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Wave WaveCopy(Wave wave) - * } - */ - public static MemorySegment WaveCopy$address() { - return WaveCopy.ADDR; - } - - /** - * {@snippet lang=c : - * Wave WaveCopy(Wave wave) - * } - */ - public static MemorySegment WaveCopy(SegmentAllocator allocator, MemorySegment wave) { - var mh$ = WaveCopy.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("WaveCopy", allocator, wave); - } - return (MemorySegment)mh$.invokeExact(allocator, wave); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class WaveCrop { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("WaveCrop"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void WaveCrop(Wave *wave, int initSample, int finalSample) - * } - */ - public static FunctionDescriptor WaveCrop$descriptor() { - return WaveCrop.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void WaveCrop(Wave *wave, int initSample, int finalSample) - * } - */ - public static MethodHandle WaveCrop$handle() { - return WaveCrop.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void WaveCrop(Wave *wave, int initSample, int finalSample) - * } - */ - public static MemorySegment WaveCrop$address() { - return WaveCrop.ADDR; - } - - /** - * {@snippet lang=c : - * void WaveCrop(Wave *wave, int initSample, int finalSample) - * } - */ - public static void WaveCrop(MemorySegment wave, int initSample, int finalSample) { - var mh$ = WaveCrop.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("WaveCrop", wave, initSample, finalSample); - } - mh$.invokeExact(wave, initSample, finalSample); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class WaveFormat { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("WaveFormat"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) - * } - */ - public static FunctionDescriptor WaveFormat$descriptor() { - return WaveFormat.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) - * } - */ - public static MethodHandle WaveFormat$handle() { - return WaveFormat.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) - * } - */ - public static MemorySegment WaveFormat$address() { - return WaveFormat.ADDR; - } - - /** - * {@snippet lang=c : - * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) - * } - */ - public static void WaveFormat(MemorySegment wave, int sampleRate, int sampleSize, int channels) { - var mh$ = WaveFormat.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("WaveFormat", wave, sampleRate, sampleSize, channels); - } - mh$.invokeExact(wave, sampleRate, sampleSize, channels); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadWaveSamples { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - Wave.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadWaveSamples"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * float *LoadWaveSamples(Wave wave) - * } - */ - public static FunctionDescriptor LoadWaveSamples$descriptor() { - return LoadWaveSamples.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * float *LoadWaveSamples(Wave wave) - * } - */ - public static MethodHandle LoadWaveSamples$handle() { - return LoadWaveSamples.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * float *LoadWaveSamples(Wave wave) - * } - */ - public static MemorySegment LoadWaveSamples$address() { - return LoadWaveSamples.ADDR; - } - - /** - * {@snippet lang=c : - * float *LoadWaveSamples(Wave wave) - * } - */ - public static MemorySegment LoadWaveSamples(MemorySegment wave) { - var mh$ = LoadWaveSamples.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadWaveSamples", wave); - } - return (MemorySegment)mh$.invokeExact(wave); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadWaveSamples { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadWaveSamples"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadWaveSamples(float *samples) - * } - */ - public static FunctionDescriptor UnloadWaveSamples$descriptor() { - return UnloadWaveSamples.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadWaveSamples(float *samples) - * } - */ - public static MethodHandle UnloadWaveSamples$handle() { - return UnloadWaveSamples.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadWaveSamples(float *samples) - * } - */ - public static MemorySegment UnloadWaveSamples$address() { - return UnloadWaveSamples.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadWaveSamples(float *samples) - * } - */ - public static void UnloadWaveSamples(MemorySegment samples) { - var mh$ = UnloadWaveSamples.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadWaveSamples", samples); - } - mh$.invokeExact(samples); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Music.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Music LoadMusicStream(const char *fileName) - * } - */ - public static FunctionDescriptor LoadMusicStream$descriptor() { - return LoadMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Music LoadMusicStream(const char *fileName) - * } - */ - public static MethodHandle LoadMusicStream$handle() { - return LoadMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Music LoadMusicStream(const char *fileName) - * } - */ - public static MemorySegment LoadMusicStream$address() { - return LoadMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * Music LoadMusicStream(const char *fileName) - * } - */ - public static MemorySegment LoadMusicStream(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadMusicStream", allocator, fileName); - } - return (MemorySegment)mh$.invokeExact(allocator, fileName); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadMusicStreamFromMemory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Music.layout(), - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadMusicStreamFromMemory"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) - * } - */ - public static FunctionDescriptor LoadMusicStreamFromMemory$descriptor() { - return LoadMusicStreamFromMemory.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) - * } - */ - public static MethodHandle LoadMusicStreamFromMemory$handle() { - return LoadMusicStreamFromMemory.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) - * } - */ - public static MemorySegment LoadMusicStreamFromMemory$address() { - return LoadMusicStreamFromMemory.ADDR; - } - - /** - * {@snippet lang=c : - * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) - * } - */ - public static MemorySegment LoadMusicStreamFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment data, int dataSize) { - var mh$ = LoadMusicStreamFromMemory.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadMusicStreamFromMemory", allocator, fileType, data, dataSize); - } - return (MemorySegment)mh$.invokeExact(allocator, fileType, data, dataSize); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsMusicReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsMusicReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsMusicReady(Music music) - * } - */ - public static FunctionDescriptor IsMusicReady$descriptor() { - return IsMusicReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsMusicReady(Music music) - * } - */ - public static MethodHandle IsMusicReady$handle() { - return IsMusicReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsMusicReady(Music music) - * } - */ - public static MemorySegment IsMusicReady$address() { - return IsMusicReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsMusicReady(Music music) - * } - */ - public static boolean IsMusicReady(MemorySegment music) { - var mh$ = IsMusicReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsMusicReady", music); - } - return (boolean)mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadMusicStream(Music music) - * } - */ - public static FunctionDescriptor UnloadMusicStream$descriptor() { - return UnloadMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadMusicStream(Music music) - * } - */ - public static MethodHandle UnloadMusicStream$handle() { - return UnloadMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadMusicStream(Music music) - * } - */ - public static MemorySegment UnloadMusicStream$address() { - return UnloadMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadMusicStream(Music music) - * } - */ - public static void UnloadMusicStream(MemorySegment music) { - var mh$ = UnloadMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadMusicStream", music); - } - mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class PlayMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("PlayMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void PlayMusicStream(Music music) - * } - */ - public static FunctionDescriptor PlayMusicStream$descriptor() { - return PlayMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void PlayMusicStream(Music music) - * } - */ - public static MethodHandle PlayMusicStream$handle() { - return PlayMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void PlayMusicStream(Music music) - * } - */ - public static MemorySegment PlayMusicStream$address() { - return PlayMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void PlayMusicStream(Music music) - * } - */ - public static void PlayMusicStream(MemorySegment music) { - var mh$ = PlayMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("PlayMusicStream", music); - } - mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsMusicStreamPlaying { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsMusicStreamPlaying"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsMusicStreamPlaying(Music music) - * } - */ - public static FunctionDescriptor IsMusicStreamPlaying$descriptor() { - return IsMusicStreamPlaying.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsMusicStreamPlaying(Music music) - * } - */ - public static MethodHandle IsMusicStreamPlaying$handle() { - return IsMusicStreamPlaying.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsMusicStreamPlaying(Music music) - * } - */ - public static MemorySegment IsMusicStreamPlaying$address() { - return IsMusicStreamPlaying.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsMusicStreamPlaying(Music music) - * } - */ - public static boolean IsMusicStreamPlaying(MemorySegment music) { - var mh$ = IsMusicStreamPlaying.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsMusicStreamPlaying", music); - } - return (boolean)mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateMusicStream(Music music) - * } - */ - public static FunctionDescriptor UpdateMusicStream$descriptor() { - return UpdateMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateMusicStream(Music music) - * } - */ - public static MethodHandle UpdateMusicStream$handle() { - return UpdateMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateMusicStream(Music music) - * } - */ - public static MemorySegment UpdateMusicStream$address() { - return UpdateMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateMusicStream(Music music) - * } - */ - public static void UpdateMusicStream(MemorySegment music) { - var mh$ = UpdateMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateMusicStream", music); - } - mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class StopMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("StopMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void StopMusicStream(Music music) - * } - */ - public static FunctionDescriptor StopMusicStream$descriptor() { - return StopMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void StopMusicStream(Music music) - * } - */ - public static MethodHandle StopMusicStream$handle() { - return StopMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void StopMusicStream(Music music) - * } - */ - public static MemorySegment StopMusicStream$address() { - return StopMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void StopMusicStream(Music music) - * } - */ - public static void StopMusicStream(MemorySegment music) { - var mh$ = StopMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("StopMusicStream", music); - } - mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class PauseMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("PauseMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void PauseMusicStream(Music music) - * } - */ - public static FunctionDescriptor PauseMusicStream$descriptor() { - return PauseMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void PauseMusicStream(Music music) - * } - */ - public static MethodHandle PauseMusicStream$handle() { - return PauseMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void PauseMusicStream(Music music) - * } - */ - public static MemorySegment PauseMusicStream$address() { - return PauseMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void PauseMusicStream(Music music) - * } - */ - public static void PauseMusicStream(MemorySegment music) { - var mh$ = PauseMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("PauseMusicStream", music); - } - mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ResumeMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ResumeMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void ResumeMusicStream(Music music) - * } - */ - public static FunctionDescriptor ResumeMusicStream$descriptor() { - return ResumeMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void ResumeMusicStream(Music music) - * } - */ - public static MethodHandle ResumeMusicStream$handle() { - return ResumeMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void ResumeMusicStream(Music music) - * } - */ - public static MemorySegment ResumeMusicStream$address() { - return ResumeMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void ResumeMusicStream(Music music) - * } - */ - public static void ResumeMusicStream(MemorySegment music) { - var mh$ = ResumeMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ResumeMusicStream", music); - } - mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SeekMusicStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SeekMusicStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SeekMusicStream(Music music, float position) - * } - */ - public static FunctionDescriptor SeekMusicStream$descriptor() { - return SeekMusicStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SeekMusicStream(Music music, float position) - * } - */ - public static MethodHandle SeekMusicStream$handle() { - return SeekMusicStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SeekMusicStream(Music music, float position) - * } - */ - public static MemorySegment SeekMusicStream$address() { - return SeekMusicStream.ADDR; - } - - /** - * {@snippet lang=c : - * void SeekMusicStream(Music music, float position) - * } - */ - public static void SeekMusicStream(MemorySegment music, float position) { - var mh$ = SeekMusicStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SeekMusicStream", music, position); - } - mh$.invokeExact(music, position); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetMusicVolume { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetMusicVolume"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetMusicVolume(Music music, float volume) - * } - */ - public static FunctionDescriptor SetMusicVolume$descriptor() { - return SetMusicVolume.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetMusicVolume(Music music, float volume) - * } - */ - public static MethodHandle SetMusicVolume$handle() { - return SetMusicVolume.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetMusicVolume(Music music, float volume) - * } - */ - public static MemorySegment SetMusicVolume$address() { - return SetMusicVolume.ADDR; - } - - /** - * {@snippet lang=c : - * void SetMusicVolume(Music music, float volume) - * } - */ - public static void SetMusicVolume(MemorySegment music, float volume) { - var mh$ = SetMusicVolume.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetMusicVolume", music, volume); - } - mh$.invokeExact(music, volume); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetMusicPitch { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetMusicPitch"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetMusicPitch(Music music, float pitch) - * } - */ - public static FunctionDescriptor SetMusicPitch$descriptor() { - return SetMusicPitch.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetMusicPitch(Music music, float pitch) - * } - */ - public static MethodHandle SetMusicPitch$handle() { - return SetMusicPitch.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetMusicPitch(Music music, float pitch) - * } - */ - public static MemorySegment SetMusicPitch$address() { - return SetMusicPitch.ADDR; - } - - /** - * {@snippet lang=c : - * void SetMusicPitch(Music music, float pitch) - * } - */ - public static void SetMusicPitch(MemorySegment music, float pitch) { - var mh$ = SetMusicPitch.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetMusicPitch", music, pitch); - } - mh$.invokeExact(music, pitch); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetMusicPan { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Music.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetMusicPan"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetMusicPan(Music music, float pan) - * } - */ - public static FunctionDescriptor SetMusicPan$descriptor() { - return SetMusicPan.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetMusicPan(Music music, float pan) - * } - */ - public static MethodHandle SetMusicPan$handle() { - return SetMusicPan.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetMusicPan(Music music, float pan) - * } - */ - public static MemorySegment SetMusicPan$address() { - return SetMusicPan.ADDR; - } - - /** - * {@snippet lang=c : - * void SetMusicPan(Music music, float pan) - * } - */ - public static void SetMusicPan(MemorySegment music, float pan) { - var mh$ = SetMusicPan.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetMusicPan", music, pan); - } - mh$.invokeExact(music, pan); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetMusicTimeLength { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetMusicTimeLength"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * float GetMusicTimeLength(Music music) - * } - */ - public static FunctionDescriptor GetMusicTimeLength$descriptor() { - return GetMusicTimeLength.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * float GetMusicTimeLength(Music music) - * } - */ - public static MethodHandle GetMusicTimeLength$handle() { - return GetMusicTimeLength.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * float GetMusicTimeLength(Music music) - * } - */ - public static MemorySegment GetMusicTimeLength$address() { - return GetMusicTimeLength.ADDR; - } - - /** - * {@snippet lang=c : - * float GetMusicTimeLength(Music music) - * } - */ - public static float GetMusicTimeLength(MemorySegment music) { - var mh$ = GetMusicTimeLength.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetMusicTimeLength", music); - } - return (float)mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class GetMusicTimePlayed { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Music.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("GetMusicTimePlayed"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * float GetMusicTimePlayed(Music music) - * } - */ - public static FunctionDescriptor GetMusicTimePlayed$descriptor() { - return GetMusicTimePlayed.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * float GetMusicTimePlayed(Music music) - * } - */ - public static MethodHandle GetMusicTimePlayed$handle() { - return GetMusicTimePlayed.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * float GetMusicTimePlayed(Music music) - * } - */ - public static MemorySegment GetMusicTimePlayed$address() { - return GetMusicTimePlayed.ADDR; - } - - /** - * {@snippet lang=c : - * float GetMusicTimePlayed(Music music) - * } - */ - public static float GetMusicTimePlayed(MemorySegment music) { - var mh$ = GetMusicTimePlayed.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetMusicTimePlayed", music); - } - return (float)mh$.invokeExact(music); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class LoadAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - AudioStream.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("LoadAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) - * } - */ - public static FunctionDescriptor LoadAudioStream$descriptor() { - return LoadAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) - * } - */ - public static MethodHandle LoadAudioStream$handle() { - return LoadAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) - * } - */ - public static MemorySegment LoadAudioStream$address() { - return LoadAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) - * } - */ - public static MemorySegment LoadAudioStream(SegmentAllocator allocator, int sampleRate, int sampleSize, int channels) { - var mh$ = LoadAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("LoadAudioStream", allocator, sampleRate, sampleSize, channels); - } - return (MemorySegment)mh$.invokeExact(allocator, sampleRate, sampleSize, channels); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsAudioStreamReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioStreamReady"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsAudioStreamReady(AudioStream stream) - * } - */ - public static FunctionDescriptor IsAudioStreamReady$descriptor() { - return IsAudioStreamReady.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsAudioStreamReady(AudioStream stream) - * } - */ - public static MethodHandle IsAudioStreamReady$handle() { - return IsAudioStreamReady.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsAudioStreamReady(AudioStream stream) - * } - */ - public static MemorySegment IsAudioStreamReady$address() { - return IsAudioStreamReady.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsAudioStreamReady(AudioStream stream) - * } - */ - public static boolean IsAudioStreamReady(MemorySegment stream) { - var mh$ = IsAudioStreamReady.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsAudioStreamReady", stream); - } - return (boolean)mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UnloadAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UnloadAudioStream(AudioStream stream) - * } - */ - public static FunctionDescriptor UnloadAudioStream$descriptor() { - return UnloadAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UnloadAudioStream(AudioStream stream) - * } - */ - public static MethodHandle UnloadAudioStream$handle() { - return UnloadAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UnloadAudioStream(AudioStream stream) - * } - */ - public static MemorySegment UnloadAudioStream$address() { - return UnloadAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * void UnloadAudioStream(AudioStream stream) - * } - */ - public static void UnloadAudioStream(MemorySegment stream) { - var mh$ = UnloadAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UnloadAudioStream", stream); - } - mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class UpdateAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_POINTER, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) - * } - */ - public static FunctionDescriptor UpdateAudioStream$descriptor() { - return UpdateAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) - * } - */ - public static MethodHandle UpdateAudioStream$handle() { - return UpdateAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) - * } - */ - public static MemorySegment UpdateAudioStream$address() { - return UpdateAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) - * } - */ - public static void UpdateAudioStream(MemorySegment stream, MemorySegment data, int frameCount) { - var mh$ = UpdateAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("UpdateAudioStream", stream, data, frameCount); - } - mh$.invokeExact(stream, data, frameCount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsAudioStreamProcessed { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioStreamProcessed"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsAudioStreamProcessed(AudioStream stream) - * } - */ - public static FunctionDescriptor IsAudioStreamProcessed$descriptor() { - return IsAudioStreamProcessed.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsAudioStreamProcessed(AudioStream stream) - * } - */ - public static MethodHandle IsAudioStreamProcessed$handle() { - return IsAudioStreamProcessed.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsAudioStreamProcessed(AudioStream stream) - * } - */ - public static MemorySegment IsAudioStreamProcessed$address() { - return IsAudioStreamProcessed.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsAudioStreamProcessed(AudioStream stream) - * } - */ - public static boolean IsAudioStreamProcessed(MemorySegment stream) { - var mh$ = IsAudioStreamProcessed.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsAudioStreamProcessed", stream); - } - return (boolean)mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class PlayAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("PlayAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void PlayAudioStream(AudioStream stream) - * } - */ - public static FunctionDescriptor PlayAudioStream$descriptor() { - return PlayAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void PlayAudioStream(AudioStream stream) - * } - */ - public static MethodHandle PlayAudioStream$handle() { - return PlayAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void PlayAudioStream(AudioStream stream) - * } - */ - public static MemorySegment PlayAudioStream$address() { - return PlayAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * void PlayAudioStream(AudioStream stream) - * } - */ - public static void PlayAudioStream(MemorySegment stream) { - var mh$ = PlayAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("PlayAudioStream", stream); - } - mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class PauseAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("PauseAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void PauseAudioStream(AudioStream stream) - * } - */ - public static FunctionDescriptor PauseAudioStream$descriptor() { - return PauseAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void PauseAudioStream(AudioStream stream) - * } - */ - public static MethodHandle PauseAudioStream$handle() { - return PauseAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void PauseAudioStream(AudioStream stream) - * } - */ - public static MemorySegment PauseAudioStream$address() { - return PauseAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * void PauseAudioStream(AudioStream stream) - * } - */ - public static void PauseAudioStream(MemorySegment stream) { - var mh$ = PauseAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("PauseAudioStream", stream); - } - mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class ResumeAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("ResumeAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void ResumeAudioStream(AudioStream stream) - * } - */ - public static FunctionDescriptor ResumeAudioStream$descriptor() { - return ResumeAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void ResumeAudioStream(AudioStream stream) - * } - */ - public static MethodHandle ResumeAudioStream$handle() { - return ResumeAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void ResumeAudioStream(AudioStream stream) - * } - */ - public static MemorySegment ResumeAudioStream$address() { - return ResumeAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * void ResumeAudioStream(AudioStream stream) - * } - */ - public static void ResumeAudioStream(MemorySegment stream) { - var mh$ = ResumeAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("ResumeAudioStream", stream); - } - mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class IsAudioStreamPlaying { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioStreamPlaying"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * bool IsAudioStreamPlaying(AudioStream stream) - * } - */ - public static FunctionDescriptor IsAudioStreamPlaying$descriptor() { - return IsAudioStreamPlaying.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * bool IsAudioStreamPlaying(AudioStream stream) - * } - */ - public static MethodHandle IsAudioStreamPlaying$handle() { - return IsAudioStreamPlaying.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * bool IsAudioStreamPlaying(AudioStream stream) - * } - */ - public static MemorySegment IsAudioStreamPlaying$address() { - return IsAudioStreamPlaying.ADDR; - } - - /** - * {@snippet lang=c : - * bool IsAudioStreamPlaying(AudioStream stream) - * } - */ - public static boolean IsAudioStreamPlaying(MemorySegment stream) { - var mh$ = IsAudioStreamPlaying.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("IsAudioStreamPlaying", stream); - } - return (boolean)mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class StopAudioStream { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("StopAudioStream"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void StopAudioStream(AudioStream stream) - * } - */ - public static FunctionDescriptor StopAudioStream$descriptor() { - return StopAudioStream.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void StopAudioStream(AudioStream stream) - * } - */ - public static MethodHandle StopAudioStream$handle() { - return StopAudioStream.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void StopAudioStream(AudioStream stream) - * } - */ - public static MemorySegment StopAudioStream$address() { - return StopAudioStream.ADDR; - } - - /** - * {@snippet lang=c : - * void StopAudioStream(AudioStream stream) - * } - */ - public static void StopAudioStream(MemorySegment stream) { - var mh$ = StopAudioStream.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("StopAudioStream", stream); - } - mh$.invokeExact(stream); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetAudioStreamVolume { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamVolume"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetAudioStreamVolume(AudioStream stream, float volume) - * } - */ - public static FunctionDescriptor SetAudioStreamVolume$descriptor() { - return SetAudioStreamVolume.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetAudioStreamVolume(AudioStream stream, float volume) - * } - */ - public static MethodHandle SetAudioStreamVolume$handle() { - return SetAudioStreamVolume.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetAudioStreamVolume(AudioStream stream, float volume) - * } - */ - public static MemorySegment SetAudioStreamVolume$address() { - return SetAudioStreamVolume.ADDR; - } - - /** - * {@snippet lang=c : - * void SetAudioStreamVolume(AudioStream stream, float volume) - * } - */ - public static void SetAudioStreamVolume(MemorySegment stream, float volume) { - var mh$ = SetAudioStreamVolume.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetAudioStreamVolume", stream, volume); - } - mh$.invokeExact(stream, volume); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetAudioStreamPitch { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamPitch"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetAudioStreamPitch(AudioStream stream, float pitch) - * } - */ - public static FunctionDescriptor SetAudioStreamPitch$descriptor() { - return SetAudioStreamPitch.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetAudioStreamPitch(AudioStream stream, float pitch) - * } - */ - public static MethodHandle SetAudioStreamPitch$handle() { - return SetAudioStreamPitch.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetAudioStreamPitch(AudioStream stream, float pitch) - * } - */ - public static MemorySegment SetAudioStreamPitch$address() { - return SetAudioStreamPitch.ADDR; - } - - /** - * {@snippet lang=c : - * void SetAudioStreamPitch(AudioStream stream, float pitch) - * } - */ - public static void SetAudioStreamPitch(MemorySegment stream, float pitch) { - var mh$ = SetAudioStreamPitch.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetAudioStreamPitch", stream, pitch); - } - mh$.invokeExact(stream, pitch); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetAudioStreamPan { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamPan"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetAudioStreamPan(AudioStream stream, float pan) - * } - */ - public static FunctionDescriptor SetAudioStreamPan$descriptor() { - return SetAudioStreamPan.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetAudioStreamPan(AudioStream stream, float pan) - * } - */ - public static MethodHandle SetAudioStreamPan$handle() { - return SetAudioStreamPan.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetAudioStreamPan(AudioStream stream, float pan) - * } - */ - public static MemorySegment SetAudioStreamPan$address() { - return SetAudioStreamPan.ADDR; - } - - /** - * {@snippet lang=c : - * void SetAudioStreamPan(AudioStream stream, float pan) - * } - */ - public static void SetAudioStreamPan(MemorySegment stream, float pan) { - var mh$ = SetAudioStreamPan.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetAudioStreamPan", stream, pan); - } - mh$.invokeExact(stream, pan); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetAudioStreamBufferSizeDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamBufferSizeDefault"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetAudioStreamBufferSizeDefault(int size) - * } - */ - public static FunctionDescriptor SetAudioStreamBufferSizeDefault$descriptor() { - return SetAudioStreamBufferSizeDefault.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetAudioStreamBufferSizeDefault(int size) - * } - */ - public static MethodHandle SetAudioStreamBufferSizeDefault$handle() { - return SetAudioStreamBufferSizeDefault.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetAudioStreamBufferSizeDefault(int size) - * } - */ - public static MemorySegment SetAudioStreamBufferSizeDefault$address() { - return SetAudioStreamBufferSizeDefault.ADDR; - } - - /** - * {@snippet lang=c : - * void SetAudioStreamBufferSizeDefault(int size) - * } - */ - public static void SetAudioStreamBufferSizeDefault(int size) { - var mh$ = SetAudioStreamBufferSizeDefault.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetAudioStreamBufferSizeDefault", size); - } - mh$.invokeExact(size); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class SetAudioStreamCallback { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamCallback"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) - * } - */ - public static FunctionDescriptor SetAudioStreamCallback$descriptor() { - return SetAudioStreamCallback.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) - * } - */ - public static MethodHandle SetAudioStreamCallback$handle() { - return SetAudioStreamCallback.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) - * } - */ - public static MemorySegment SetAudioStreamCallback$address() { - return SetAudioStreamCallback.ADDR; - } - - /** - * {@snippet lang=c : - * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) - * } - */ - public static void SetAudioStreamCallback(MemorySegment stream, MemorySegment callback) { - var mh$ = SetAudioStreamCallback.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("SetAudioStreamCallback", stream, callback); - } - mh$.invokeExact(stream, callback); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class AttachAudioStreamProcessor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("AttachAudioStreamProcessor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static FunctionDescriptor AttachAudioStreamProcessor$descriptor() { - return AttachAudioStreamProcessor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static MethodHandle AttachAudioStreamProcessor$handle() { - return AttachAudioStreamProcessor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static MemorySegment AttachAudioStreamProcessor$address() { - return AttachAudioStreamProcessor.ADDR; - } - - /** - * {@snippet lang=c : - * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static void AttachAudioStreamProcessor(MemorySegment stream, MemorySegment processor) { - var mh$ = AttachAudioStreamProcessor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("AttachAudioStreamProcessor", stream, processor); - } - mh$.invokeExact(stream, processor); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DetachAudioStreamProcessor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AudioStream.layout(), - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DetachAudioStreamProcessor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static FunctionDescriptor DetachAudioStreamProcessor$descriptor() { - return DetachAudioStreamProcessor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static MethodHandle DetachAudioStreamProcessor$handle() { - return DetachAudioStreamProcessor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static MemorySegment DetachAudioStreamProcessor$address() { - return DetachAudioStreamProcessor.ADDR; - } - - /** - * {@snippet lang=c : - * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) - * } - */ - public static void DetachAudioStreamProcessor(MemorySegment stream, MemorySegment processor) { - var mh$ = DetachAudioStreamProcessor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DetachAudioStreamProcessor", stream, processor); - } - mh$.invokeExact(stream, processor); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class AttachAudioMixedProcessor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("AttachAudioMixedProcessor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void AttachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static FunctionDescriptor AttachAudioMixedProcessor$descriptor() { - return AttachAudioMixedProcessor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void AttachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static MethodHandle AttachAudioMixedProcessor$handle() { - return AttachAudioMixedProcessor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void AttachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static MemorySegment AttachAudioMixedProcessor$address() { - return AttachAudioMixedProcessor.ADDR; - } - - /** - * {@snippet lang=c : - * void AttachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static void AttachAudioMixedProcessor(MemorySegment processor) { - var mh$ = AttachAudioMixedProcessor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("AttachAudioMixedProcessor", processor); - } - mh$.invokeExact(processor); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class DetachAudioMixedProcessor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("DetachAudioMixedProcessor"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void DetachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static FunctionDescriptor DetachAudioMixedProcessor$descriptor() { - return DetachAudioMixedProcessor.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void DetachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static MethodHandle DetachAudioMixedProcessor$handle() { - return DetachAudioMixedProcessor.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void DetachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static MemorySegment DetachAudioMixedProcessor$address() { - return DetachAudioMixedProcessor.ADDR; - } - - /** - * {@snippet lang=c : - * void DetachAudioMixedProcessor(AudioCallback processor) - * } - */ - public static void DetachAudioMixedProcessor(MemorySegment processor) { - var mh$ = DetachAudioMixedProcessor.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("DetachAudioMixedProcessor", processor); - } - mh$.invokeExact(processor); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyDrawModel { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - VyModel.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyDrawModel"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) - * } - */ - public static FunctionDescriptor VyDrawModel$descriptor() { - return VyDrawModel.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) - * } - */ - public static MethodHandle VyDrawModel$handle() { - return VyDrawModel.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) - * } - */ - public static MemorySegment VyDrawModel$address() { - return VyDrawModel.ADDR; - } - - /** - * {@snippet lang=c : - * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) - * } - */ - public static void VyDrawModel(MemorySegment vyModel, MemorySegment position, float scale, MemorySegment tint) { - var mh$ = VyDrawModel.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyDrawModel", vyModel, position, scale, tint); - } - mh$.invokeExact(vyModel, position, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyDrawModelEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - VyModel.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyDrawModelEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static FunctionDescriptor VyDrawModelEx$descriptor() { - return VyDrawModelEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static MethodHandle VyDrawModelEx$handle() { - return VyDrawModelEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static MemorySegment VyDrawModelEx$address() { - return VyDrawModelEx.ADDR; - } - - /** - * {@snippet lang=c : - * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) - * } - */ - public static void VyDrawModelEx(MemorySegment vyModel, MemorySegment position, MemorySegment rotationAxis, float rotationAngle, MemorySegment scale, MemorySegment tint) { - var mh$ = VyDrawModelEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyDrawModelEx", vyModel, position, rotationAxis, rotationAngle, scale, tint); - } - mh$.invokeExact(vyModel, position, rotationAxis, rotationAngle, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyDrawModelExQuat { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - VyModel.layout(), - Vector3.layout(), - Vector4.layout(), - Vector3.layout(), - Color.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyDrawModelExQuat"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) - * } - */ - public static FunctionDescriptor VyDrawModelExQuat$descriptor() { - return VyDrawModelExQuat.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) - * } - */ - public static MethodHandle VyDrawModelExQuat$handle() { - return VyDrawModelExQuat.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) - * } - */ - public static MemorySegment VyDrawModelExQuat$address() { - return VyDrawModelExQuat.ADDR; - } - - /** - * {@snippet lang=c : - * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) - * } - */ - public static void VyDrawModelExQuat(MemorySegment vyModel, MemorySegment position, MemorySegment quaternion, MemorySegment scale, MemorySegment tint) { - var mh$ = VyDrawModelExQuat.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyDrawModelExQuat", vyModel, position, quaternion, scale, tint); - } - mh$.invokeExact(vyModel, position, quaternion, scale, tint); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyBeginMode3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - VyCamera.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyBeginMode3D"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void VyBeginMode3D(VyCamera camera) - * } - */ - public static FunctionDescriptor VyBeginMode3D$descriptor() { - return VyBeginMode3D.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void VyBeginMode3D(VyCamera camera) - * } - */ - public static MethodHandle VyBeginMode3D$handle() { - return VyBeginMode3D.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void VyBeginMode3D(VyCamera camera) - * } - */ - public static MemorySegment VyBeginMode3D$address() { - return VyBeginMode3D.ADDR; - } - - /** - * {@snippet lang=c : - * void VyBeginMode3D(VyCamera camera) - * } - */ - public static void VyBeginMode3D(MemorySegment camera) { - var mh$ = VyBeginMode3D.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyBeginMode3D", camera); - } - mh$.invokeExact(camera); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyQuaternionToAxisAngle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyQuaternionToAxisAngle"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * float VyQuaternionToAxisAngle(Quaternion q) - * } - */ - public static FunctionDescriptor VyQuaternionToAxisAngle$descriptor() { - return VyQuaternionToAxisAngle.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * float VyQuaternionToAxisAngle(Quaternion q) - * } - */ - public static MethodHandle VyQuaternionToAxisAngle$handle() { - return VyQuaternionToAxisAngle.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * float VyQuaternionToAxisAngle(Quaternion q) - * } - */ - public static MemorySegment VyQuaternionToAxisAngle$address() { - return VyQuaternionToAxisAngle.ADDR; - } - - /** - * {@snippet lang=c : - * float VyQuaternionToAxisAngle(Quaternion q) - * } - */ - public static float VyQuaternionToAxisAngle(MemorySegment q) { - var mh$ = VyQuaternionToAxisAngle.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyQuaternionToAxisAngle", q); - } - return (float)mh$.invokeExact(q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyQuaternionToAxisVector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyQuaternionToAxisVector"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Vector3 VyQuaternionToAxisVector(Quaternion q) - * } - */ - public static FunctionDescriptor VyQuaternionToAxisVector$descriptor() { - return VyQuaternionToAxisVector.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Vector3 VyQuaternionToAxisVector(Quaternion q) - * } - */ - public static MethodHandle VyQuaternionToAxisVector$handle() { - return VyQuaternionToAxisVector.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Vector3 VyQuaternionToAxisVector(Quaternion q) - * } - */ - public static MemorySegment VyQuaternionToAxisVector$address() { - return VyQuaternionToAxisVector.ADDR; - } - - /** - * {@snippet lang=c : - * Vector3 VyQuaternionToAxisVector(Quaternion q) - * } - */ - public static MemorySegment VyQuaternionToAxisVector(SegmentAllocator allocator, MemorySegment q) { - var mh$ = VyQuaternionToAxisVector.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyQuaternionToAxisVector", allocator, q); - } - return (MemorySegment)mh$.invokeExact(allocator, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyGetScreenToWorldRay { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Ray.layout(), - Vector2.layout(), - VyCamera.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyGetScreenToWorldRay"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) - * } - */ - public static FunctionDescriptor VyGetScreenToWorldRay$descriptor() { - return VyGetScreenToWorldRay.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) - * } - */ - public static MethodHandle VyGetScreenToWorldRay$handle() { - return VyGetScreenToWorldRay.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) - * } - */ - public static MemorySegment VyGetScreenToWorldRay$address() { - return VyGetScreenToWorldRay.ADDR; - } - - /** - * {@snippet lang=c : - * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) - * } - */ - public static MemorySegment VyGetScreenToWorldRay(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { - var mh$ = VyGetScreenToWorldRay.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyGetScreenToWorldRay", allocator, position, camera); - } - return (MemorySegment)mh$.invokeExact(allocator, position, camera); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyGetScreenToWorldRayEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Ray.layout(), - Vector2.layout(), - VyCamera.layout(), - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyGetScreenToWorldRayEx"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) - * } - */ - public static FunctionDescriptor VyGetScreenToWorldRayEx$descriptor() { - return VyGetScreenToWorldRayEx.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) - * } - */ - public static MethodHandle VyGetScreenToWorldRayEx$handle() { - return VyGetScreenToWorldRayEx.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) - * } - */ - public static MemorySegment VyGetScreenToWorldRayEx$address() { - return VyGetScreenToWorldRayEx.ADDR; - } - - /** - * {@snippet lang=c : - * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) - * } - */ - public static MemorySegment VyGetScreenToWorldRayEx(SegmentAllocator allocator, MemorySegment position, MemorySegment camera, int width, int height) { - var mh$ = VyGetScreenToWorldRayEx.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyGetScreenToWorldRayEx", allocator, position, camera, width, height); - } - return (MemorySegment)mh$.invokeExact(allocator, position, camera, width, height); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyGlGetActiveParameters { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - VyShaderParameters.layout(), - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyGlGetActiveParameters"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * VyShaderParameters VyGlGetActiveParameters(int id) - * } - */ - public static FunctionDescriptor VyGlGetActiveParameters$descriptor() { - return VyGlGetActiveParameters.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * VyShaderParameters VyGlGetActiveParameters(int id) - * } - */ - public static MethodHandle VyGlGetActiveParameters$handle() { - return VyGlGetActiveParameters.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * VyShaderParameters VyGlGetActiveParameters(int id) - * } - */ - public static MemorySegment VyGlGetActiveParameters$address() { - return VyGlGetActiveParameters.ADDR; - } - - /** - * {@snippet lang=c : - * VyShaderParameters VyGlGetActiveParameters(int id) - * } - */ - public static MemorySegment VyGlGetActiveParameters(SegmentAllocator allocator, int id) { - var mh$ = VyGlGetActiveParameters.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyGlGetActiveParameters", allocator, id); - } - return (MemorySegment)mh$.invokeExact(allocator, id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyGlGetActiveUniformsCount { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyGlGetActiveUniformsCount"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int VyGlGetActiveUniformsCount(int id) - * } - */ - public static FunctionDescriptor VyGlGetActiveUniformsCount$descriptor() { - return VyGlGetActiveUniformsCount.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int VyGlGetActiveUniformsCount(int id) - * } - */ - public static MethodHandle VyGlGetActiveUniformsCount$handle() { - return VyGlGetActiveUniformsCount.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int VyGlGetActiveUniformsCount(int id) - * } - */ - public static MemorySegment VyGlGetActiveUniformsCount$address() { - return VyGlGetActiveUniformsCount.ADDR; - } - - /** - * {@snippet lang=c : - * int VyGlGetActiveUniformsCount(int id) - * } - */ - public static int VyGlGetActiveUniformsCount(int id) { - var mh$ = VyGlGetActiveUniformsCount.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyGlGetActiveUniformsCount", id); - } - return (int)mh$.invokeExact(id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class VyGlGetActiveAttributesCount { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("VyGlGetActiveAttributesCount"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * int VyGlGetActiveAttributesCount(int id) - * } - */ - public static FunctionDescriptor VyGlGetActiveAttributesCount$descriptor() { - return VyGlGetActiveAttributesCount.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * int VyGlGetActiveAttributesCount(int id) - * } - */ - public static MethodHandle VyGlGetActiveAttributesCount$handle() { - return VyGlGetActiveAttributesCount.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * int VyGlGetActiveAttributesCount(int id) - * } - */ - public static MemorySegment VyGlGetActiveAttributesCount$address() { - return VyGlGetActiveAttributesCount.ADDR; - } - - /** - * {@snippet lang=c : - * int VyGlGetActiveAttributesCount(int id) - * } - */ - public static int VyGlGetActiveAttributesCount(int id) { - var mh$ = VyGlGetActiveAttributesCount.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("VyGlGetActiveAttributesCount", id); - } - return (int)mh$.invokeExact(id); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - private static final int RL_OPENGL_11 = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_OPENGL_11 = 1 - * } - */ - public static int RL_OPENGL_11() { - return RL_OPENGL_11; - } - private static final int RL_OPENGL_21 = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_OPENGL_21 = 2 - * } - */ - public static int RL_OPENGL_21() { - return RL_OPENGL_21; - } - private static final int RL_OPENGL_33 = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_OPENGL_33 = 3 - * } - */ - public static int RL_OPENGL_33() { - return RL_OPENGL_33; - } - private static final int RL_OPENGL_43 = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_OPENGL_43 = 4 - * } - */ - public static int RL_OPENGL_43() { - return RL_OPENGL_43; - } - private static final int RL_OPENGL_ES_20 = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_OPENGL_ES_20 = 5 - * } - */ - public static int RL_OPENGL_ES_20() { - return RL_OPENGL_ES_20; - } - private static final int RL_OPENGL_ES_30 = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_OPENGL_ES_30 = 6 - * } - */ - public static int RL_OPENGL_ES_30() { - return RL_OPENGL_ES_30; - } - private static final int RL_LOG_ALL = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_LOG_ALL = 0 - * } - */ - public static int RL_LOG_ALL() { - return RL_LOG_ALL; - } - private static final int RL_LOG_TRACE = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_LOG_TRACE = 1 - * } - */ - public static int RL_LOG_TRACE() { - return RL_LOG_TRACE; - } - private static final int RL_LOG_DEBUG = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_LOG_DEBUG = 2 - * } - */ - public static int RL_LOG_DEBUG() { - return RL_LOG_DEBUG; - } - private static final int RL_LOG_INFO = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_LOG_INFO = 3 - * } - */ - public static int RL_LOG_INFO() { - return RL_LOG_INFO; - } - private static final int RL_LOG_WARNING = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_LOG_WARNING = 4 - * } - */ - public static int RL_LOG_WARNING() { - return RL_LOG_WARNING; - } - private static final int RL_LOG_ERROR = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_LOG_ERROR = 5 - * } - */ - public static int RL_LOG_ERROR() { - return RL_LOG_ERROR; - } - private static final int RL_LOG_FATAL = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_LOG_FATAL = 6 - * } - */ - public static int RL_LOG_FATAL() { - return RL_LOG_FATAL; - } - private static final int RL_LOG_NONE = (int)7L; - /** - * {@snippet lang=c : - * enum .RL_LOG_NONE = 7 - * } - */ - public static int RL_LOG_NONE() { - return RL_LOG_NONE; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE() { - return RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA() { - return RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5() { - return RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8() { - return RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1() { - return RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4() { - return RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = (int)7L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8() { - return RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R32 = (int)8L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R32 = 8 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R32() { - return RL_PIXELFORMAT_UNCOMPRESSED_R32; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = (int)9L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32() { - return RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = (int)10L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32() { - return RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R16 = (int)11L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R16 = 11 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R16() { - return RL_PIXELFORMAT_UNCOMPRESSED_R16; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = (int)12L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16() { - return RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16; - } - private static final int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = (int)13L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 - * } - */ - public static int RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16() { - return RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16; - } - private static final int RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = (int)14L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_DXT1_RGB() { - return RL_PIXELFORMAT_COMPRESSED_DXT1_RGB; - } - private static final int RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = (int)15L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA; - } - private static final int RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = (int)16L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA; - } - private static final int RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = (int)17L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA; - } - private static final int RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = (int)18L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_ETC1_RGB() { - return RL_PIXELFORMAT_COMPRESSED_ETC1_RGB; - } - private static final int RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = (int)19L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_ETC2_RGB() { - return RL_PIXELFORMAT_COMPRESSED_ETC2_RGB; - } - private static final int RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = (int)20L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA; - } - private static final int RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = (int)21L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_PVRT_RGB() { - return RL_PIXELFORMAT_COMPRESSED_PVRT_RGB; - } - private static final int RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = (int)22L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA; - } - private static final int RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = (int)23L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA; - } - private static final int RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = (int)24L; - /** - * {@snippet lang=c : - * enum .RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 - * } - */ - public static int RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA() { - return RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA; - } - private static final int RL_TEXTURE_FILTER_POINT = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_TEXTURE_FILTER_POINT = 0 - * } - */ - public static int RL_TEXTURE_FILTER_POINT() { - return RL_TEXTURE_FILTER_POINT; - } - private static final int RL_TEXTURE_FILTER_BILINEAR = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_TEXTURE_FILTER_BILINEAR = 1 - * } - */ - public static int RL_TEXTURE_FILTER_BILINEAR() { - return RL_TEXTURE_FILTER_BILINEAR; - } - private static final int RL_TEXTURE_FILTER_TRILINEAR = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_TEXTURE_FILTER_TRILINEAR = 2 - * } - */ - public static int RL_TEXTURE_FILTER_TRILINEAR() { - return RL_TEXTURE_FILTER_TRILINEAR; - } - private static final int RL_TEXTURE_FILTER_ANISOTROPIC_4X = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_TEXTURE_FILTER_ANISOTROPIC_4X = 3 - * } - */ - public static int RL_TEXTURE_FILTER_ANISOTROPIC_4X() { - return RL_TEXTURE_FILTER_ANISOTROPIC_4X; - } - private static final int RL_TEXTURE_FILTER_ANISOTROPIC_8X = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_TEXTURE_FILTER_ANISOTROPIC_8X = 4 - * } - */ - public static int RL_TEXTURE_FILTER_ANISOTROPIC_8X() { - return RL_TEXTURE_FILTER_ANISOTROPIC_8X; - } - private static final int RL_TEXTURE_FILTER_ANISOTROPIC_16X = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_TEXTURE_FILTER_ANISOTROPIC_16X = 5 - * } - */ - public static int RL_TEXTURE_FILTER_ANISOTROPIC_16X() { - return RL_TEXTURE_FILTER_ANISOTROPIC_16X; - } - private static final int RL_BLEND_ALPHA = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_ALPHA = 0 - * } - */ - public static int RL_BLEND_ALPHA() { - return RL_BLEND_ALPHA; - } - private static final int RL_BLEND_ADDITIVE = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_ADDITIVE = 1 - * } - */ - public static int RL_BLEND_ADDITIVE() { - return RL_BLEND_ADDITIVE; - } - private static final int RL_BLEND_MULTIPLIED = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_MULTIPLIED = 2 - * } - */ - public static int RL_BLEND_MULTIPLIED() { - return RL_BLEND_MULTIPLIED; - } - private static final int RL_BLEND_ADD_COLORS = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_ADD_COLORS = 3 - * } - */ - public static int RL_BLEND_ADD_COLORS() { - return RL_BLEND_ADD_COLORS; - } - private static final int RL_BLEND_SUBTRACT_COLORS = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_SUBTRACT_COLORS = 4 - * } - */ - public static int RL_BLEND_SUBTRACT_COLORS() { - return RL_BLEND_SUBTRACT_COLORS; - } - private static final int RL_BLEND_ALPHA_PREMULTIPLY = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_ALPHA_PREMULTIPLY = 5 - * } - */ - public static int RL_BLEND_ALPHA_PREMULTIPLY() { - return RL_BLEND_ALPHA_PREMULTIPLY; - } - private static final int RL_BLEND_CUSTOM = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_CUSTOM = 6 - * } - */ - public static int RL_BLEND_CUSTOM() { - return RL_BLEND_CUSTOM; - } - private static final int RL_BLEND_CUSTOM_SEPARATE = (int)7L; - /** - * {@snippet lang=c : - * enum .RL_BLEND_CUSTOM_SEPARATE = 7 - * } - */ - public static int RL_BLEND_CUSTOM_SEPARATE() { - return RL_BLEND_CUSTOM_SEPARATE; - } - private static final int RL_SHADER_LOC_VERTEX_POSITION = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VERTEX_POSITION = 0 - * } - */ - public static int RL_SHADER_LOC_VERTEX_POSITION() { - return RL_SHADER_LOC_VERTEX_POSITION; - } - private static final int RL_SHADER_LOC_VERTEX_TEXCOORD01 = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1 - * } - */ - public static int RL_SHADER_LOC_VERTEX_TEXCOORD01() { - return RL_SHADER_LOC_VERTEX_TEXCOORD01; - } - private static final int RL_SHADER_LOC_VERTEX_TEXCOORD02 = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2 - * } - */ - public static int RL_SHADER_LOC_VERTEX_TEXCOORD02() { - return RL_SHADER_LOC_VERTEX_TEXCOORD02; - } - private static final int RL_SHADER_LOC_VERTEX_NORMAL = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VERTEX_NORMAL = 3 - * } - */ - public static int RL_SHADER_LOC_VERTEX_NORMAL() { - return RL_SHADER_LOC_VERTEX_NORMAL; - } - private static final int RL_SHADER_LOC_VERTEX_TANGENT = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VERTEX_TANGENT = 4 - * } - */ - public static int RL_SHADER_LOC_VERTEX_TANGENT() { - return RL_SHADER_LOC_VERTEX_TANGENT; - } - private static final int RL_SHADER_LOC_VERTEX_COLOR = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VERTEX_COLOR = 5 - * } - */ - public static int RL_SHADER_LOC_VERTEX_COLOR() { - return RL_SHADER_LOC_VERTEX_COLOR; - } - private static final int RL_SHADER_LOC_MATRIX_MVP = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MATRIX_MVP = 6 - * } - */ - public static int RL_SHADER_LOC_MATRIX_MVP() { - return RL_SHADER_LOC_MATRIX_MVP; - } - private static final int RL_SHADER_LOC_MATRIX_VIEW = (int)7L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MATRIX_VIEW = 7 - * } - */ - public static int RL_SHADER_LOC_MATRIX_VIEW() { - return RL_SHADER_LOC_MATRIX_VIEW; - } - private static final int RL_SHADER_LOC_MATRIX_PROJECTION = (int)8L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MATRIX_PROJECTION = 8 - * } - */ - public static int RL_SHADER_LOC_MATRIX_PROJECTION() { - return RL_SHADER_LOC_MATRIX_PROJECTION; - } - private static final int RL_SHADER_LOC_MATRIX_MODEL = (int)9L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MATRIX_MODEL = 9 - * } - */ - public static int RL_SHADER_LOC_MATRIX_MODEL() { - return RL_SHADER_LOC_MATRIX_MODEL; - } - private static final int RL_SHADER_LOC_MATRIX_NORMAL = (int)10L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MATRIX_NORMAL = 10 - * } - */ - public static int RL_SHADER_LOC_MATRIX_NORMAL() { - return RL_SHADER_LOC_MATRIX_NORMAL; - } - private static final int RL_SHADER_LOC_VECTOR_VIEW = (int)11L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_VECTOR_VIEW = 11 - * } - */ - public static int RL_SHADER_LOC_VECTOR_VIEW() { - return RL_SHADER_LOC_VECTOR_VIEW; - } - private static final int RL_SHADER_LOC_COLOR_DIFFUSE = (int)12L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_COLOR_DIFFUSE = 12 - * } - */ - public static int RL_SHADER_LOC_COLOR_DIFFUSE() { - return RL_SHADER_LOC_COLOR_DIFFUSE; - } - private static final int RL_SHADER_LOC_COLOR_SPECULAR = (int)13L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_COLOR_SPECULAR = 13 - * } - */ - public static int RL_SHADER_LOC_COLOR_SPECULAR() { - return RL_SHADER_LOC_COLOR_SPECULAR; - } - private static final int RL_SHADER_LOC_COLOR_AMBIENT = (int)14L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_COLOR_AMBIENT = 14 - * } - */ - public static int RL_SHADER_LOC_COLOR_AMBIENT() { - return RL_SHADER_LOC_COLOR_AMBIENT; - } - private static final int RL_SHADER_LOC_MAP_ALBEDO = (int)15L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_ALBEDO = 15 - * } - */ - public static int RL_SHADER_LOC_MAP_ALBEDO() { - return RL_SHADER_LOC_MAP_ALBEDO; - } - private static final int RL_SHADER_LOC_MAP_METALNESS = (int)16L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_METALNESS = 16 - * } - */ - public static int RL_SHADER_LOC_MAP_METALNESS() { - return RL_SHADER_LOC_MAP_METALNESS; - } - private static final int RL_SHADER_LOC_MAP_NORMAL = (int)17L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_NORMAL = 17 - * } - */ - public static int RL_SHADER_LOC_MAP_NORMAL() { - return RL_SHADER_LOC_MAP_NORMAL; - } - private static final int RL_SHADER_LOC_MAP_ROUGHNESS = (int)18L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_ROUGHNESS = 18 - * } - */ - public static int RL_SHADER_LOC_MAP_ROUGHNESS() { - return RL_SHADER_LOC_MAP_ROUGHNESS; - } - private static final int RL_SHADER_LOC_MAP_OCCLUSION = (int)19L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_OCCLUSION = 19 - * } - */ - public static int RL_SHADER_LOC_MAP_OCCLUSION() { - return RL_SHADER_LOC_MAP_OCCLUSION; - } - private static final int RL_SHADER_LOC_MAP_EMISSION = (int)20L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_EMISSION = 20 - * } - */ - public static int RL_SHADER_LOC_MAP_EMISSION() { - return RL_SHADER_LOC_MAP_EMISSION; - } - private static final int RL_SHADER_LOC_MAP_HEIGHT = (int)21L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_HEIGHT = 21 - * } - */ - public static int RL_SHADER_LOC_MAP_HEIGHT() { - return RL_SHADER_LOC_MAP_HEIGHT; - } - private static final int RL_SHADER_LOC_MAP_CUBEMAP = (int)22L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_CUBEMAP = 22 - * } - */ - public static int RL_SHADER_LOC_MAP_CUBEMAP() { - return RL_SHADER_LOC_MAP_CUBEMAP; - } - private static final int RL_SHADER_LOC_MAP_IRRADIANCE = (int)23L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_IRRADIANCE = 23 - * } - */ - public static int RL_SHADER_LOC_MAP_IRRADIANCE() { - return RL_SHADER_LOC_MAP_IRRADIANCE; - } - private static final int RL_SHADER_LOC_MAP_PREFILTER = (int)24L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_PREFILTER = 24 - * } - */ - public static int RL_SHADER_LOC_MAP_PREFILTER() { - return RL_SHADER_LOC_MAP_PREFILTER; - } - private static final int RL_SHADER_LOC_MAP_BRDF = (int)25L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_LOC_MAP_BRDF = 25 - * } - */ - public static int RL_SHADER_LOC_MAP_BRDF() { - return RL_SHADER_LOC_MAP_BRDF; - } - private static final int RL_SHADER_UNIFORM_FLOAT = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_FLOAT = 0 - * } - */ - public static int RL_SHADER_UNIFORM_FLOAT() { - return RL_SHADER_UNIFORM_FLOAT; - } - private static final int RL_SHADER_UNIFORM_VEC2 = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_VEC2 = 1 - * } - */ - public static int RL_SHADER_UNIFORM_VEC2() { - return RL_SHADER_UNIFORM_VEC2; - } - private static final int RL_SHADER_UNIFORM_VEC3 = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_VEC3 = 2 - * } - */ - public static int RL_SHADER_UNIFORM_VEC3() { - return RL_SHADER_UNIFORM_VEC3; - } - private static final int RL_SHADER_UNIFORM_VEC4 = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_VEC4 = 3 - * } - */ - public static int RL_SHADER_UNIFORM_VEC4() { - return RL_SHADER_UNIFORM_VEC4; - } - private static final int RL_SHADER_UNIFORM_INT = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_INT = 4 - * } - */ - public static int RL_SHADER_UNIFORM_INT() { - return RL_SHADER_UNIFORM_INT; - } - private static final int RL_SHADER_UNIFORM_IVEC2 = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_IVEC2 = 5 - * } - */ - public static int RL_SHADER_UNIFORM_IVEC2() { - return RL_SHADER_UNIFORM_IVEC2; - } - private static final int RL_SHADER_UNIFORM_IVEC3 = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_IVEC3 = 6 - * } - */ - public static int RL_SHADER_UNIFORM_IVEC3() { - return RL_SHADER_UNIFORM_IVEC3; - } - private static final int RL_SHADER_UNIFORM_IVEC4 = (int)7L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_IVEC4 = 7 - * } - */ - public static int RL_SHADER_UNIFORM_IVEC4() { - return RL_SHADER_UNIFORM_IVEC4; - } - private static final int RL_SHADER_UNIFORM_SAMPLER2D = (int)8L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_UNIFORM_SAMPLER2D = 8 - * } - */ - public static int RL_SHADER_UNIFORM_SAMPLER2D() { - return RL_SHADER_UNIFORM_SAMPLER2D; - } - private static final int RL_SHADER_ATTRIB_FLOAT = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_ATTRIB_FLOAT = 0 - * } - */ - public static int RL_SHADER_ATTRIB_FLOAT() { - return RL_SHADER_ATTRIB_FLOAT; - } - private static final int RL_SHADER_ATTRIB_VEC2 = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_ATTRIB_VEC2 = 1 - * } - */ - public static int RL_SHADER_ATTRIB_VEC2() { - return RL_SHADER_ATTRIB_VEC2; - } - private static final int RL_SHADER_ATTRIB_VEC3 = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_ATTRIB_VEC3 = 2 - * } - */ - public static int RL_SHADER_ATTRIB_VEC3() { - return RL_SHADER_ATTRIB_VEC3; - } - private static final int RL_SHADER_ATTRIB_VEC4 = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_SHADER_ATTRIB_VEC4 = 3 - * } - */ - public static int RL_SHADER_ATTRIB_VEC4() { - return RL_SHADER_ATTRIB_VEC4; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL0 = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL0 = 0 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL0() { - return RL_ATTACHMENT_COLOR_CHANNEL0; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL1 = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL1 = 1 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL1() { - return RL_ATTACHMENT_COLOR_CHANNEL1; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL2 = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL2 = 2 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL2() { - return RL_ATTACHMENT_COLOR_CHANNEL2; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL3 = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL3 = 3 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL3() { - return RL_ATTACHMENT_COLOR_CHANNEL3; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL4 = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL4 = 4 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL4() { - return RL_ATTACHMENT_COLOR_CHANNEL4; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL5 = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL5 = 5 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL5() { - return RL_ATTACHMENT_COLOR_CHANNEL5; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL6 = (int)6L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL6 = 6 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL6() { - return RL_ATTACHMENT_COLOR_CHANNEL6; - } - private static final int RL_ATTACHMENT_COLOR_CHANNEL7 = (int)7L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_COLOR_CHANNEL7 = 7 - * } - */ - public static int RL_ATTACHMENT_COLOR_CHANNEL7() { - return RL_ATTACHMENT_COLOR_CHANNEL7; - } - private static final int RL_ATTACHMENT_DEPTH = (int)100L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_DEPTH = 100 - * } - */ - public static int RL_ATTACHMENT_DEPTH() { - return RL_ATTACHMENT_DEPTH; - } - private static final int RL_ATTACHMENT_STENCIL = (int)200L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_STENCIL = 200 - * } - */ - public static int RL_ATTACHMENT_STENCIL() { - return RL_ATTACHMENT_STENCIL; - } - private static final int RL_ATTACHMENT_CUBEMAP_POSITIVE_X = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0 - * } - */ - public static int RL_ATTACHMENT_CUBEMAP_POSITIVE_X() { - return RL_ATTACHMENT_CUBEMAP_POSITIVE_X; - } - private static final int RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = 1 - * } - */ - public static int RL_ATTACHMENT_CUBEMAP_NEGATIVE_X() { - return RL_ATTACHMENT_CUBEMAP_NEGATIVE_X; - } - private static final int RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = (int)2L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = 2 - * } - */ - public static int RL_ATTACHMENT_CUBEMAP_POSITIVE_Y() { - return RL_ATTACHMENT_CUBEMAP_POSITIVE_Y; - } - private static final int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = (int)3L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = 3 - * } - */ - public static int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y() { - return RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y; - } - private static final int RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = (int)4L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = 4 - * } - */ - public static int RL_ATTACHMENT_CUBEMAP_POSITIVE_Z() { - return RL_ATTACHMENT_CUBEMAP_POSITIVE_Z; - } - private static final int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = (int)5L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = 5 - * } - */ - public static int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z() { - return RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z; - } - private static final int RL_ATTACHMENT_TEXTURE2D = (int)100L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_TEXTURE2D = 100 - * } - */ - public static int RL_ATTACHMENT_TEXTURE2D() { - return RL_ATTACHMENT_TEXTURE2D; - } - private static final int RL_ATTACHMENT_RENDERBUFFER = (int)200L; - /** - * {@snippet lang=c : - * enum .RL_ATTACHMENT_RENDERBUFFER = 200 - * } - */ - public static int RL_ATTACHMENT_RENDERBUFFER() { - return RL_ATTACHMENT_RENDERBUFFER; - } - private static final int RL_CULL_FACE_FRONT = (int)0L; - /** - * {@snippet lang=c : - * enum .RL_CULL_FACE_FRONT = 0 - * } - */ - public static int RL_CULL_FACE_FRONT() { - return RL_CULL_FACE_FRONT; - } - private static final int RL_CULL_FACE_BACK = (int)1L; - /** - * {@snippet lang=c : - * enum .RL_CULL_FACE_BACK = 1 - * } - */ - public static int RL_CULL_FACE_BACK() { - return RL_CULL_FACE_BACK; - } - - private static class rlMatrixMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlMatrixMode"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlMatrixMode(int mode) - * } - */ - public static FunctionDescriptor rlMatrixMode$descriptor() { - return rlMatrixMode.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlMatrixMode(int mode) - * } - */ - public static MethodHandle rlMatrixMode$handle() { - return rlMatrixMode.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlMatrixMode(int mode) - * } - */ - public static MemorySegment rlMatrixMode$address() { - return rlMatrixMode.ADDR; - } - - /** - * {@snippet lang=c : - * void rlMatrixMode(int mode) - * } - */ - public static void rlMatrixMode(int mode) { - var mh$ = rlMatrixMode.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlMatrixMode", mode); - } - mh$.invokeExact(mode); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlPushMatrix { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlPushMatrix"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlPushMatrix() - * } - */ - public static FunctionDescriptor rlPushMatrix$descriptor() { - return rlPushMatrix.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlPushMatrix() - * } - */ - public static MethodHandle rlPushMatrix$handle() { - return rlPushMatrix.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlPushMatrix() - * } - */ - public static MemorySegment rlPushMatrix$address() { - return rlPushMatrix.ADDR; - } - - /** - * {@snippet lang=c : - * void rlPushMatrix() - * } - */ - public static void rlPushMatrix() { - var mh$ = rlPushMatrix.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlPushMatrix"); - } - mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlPopMatrix { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlPopMatrix"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlPopMatrix() - * } - */ - public static FunctionDescriptor rlPopMatrix$descriptor() { - return rlPopMatrix.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlPopMatrix() - * } - */ - public static MethodHandle rlPopMatrix$handle() { - return rlPopMatrix.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlPopMatrix() - * } - */ - public static MemorySegment rlPopMatrix$address() { - return rlPopMatrix.ADDR; - } - - /** - * {@snippet lang=c : - * void rlPopMatrix() - * } - */ - public static void rlPopMatrix() { - var mh$ = rlPopMatrix.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlPopMatrix"); - } - mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlLoadIdentity { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadIdentity"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlLoadIdentity() - * } - */ - public static FunctionDescriptor rlLoadIdentity$descriptor() { - return rlLoadIdentity.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlLoadIdentity() - * } - */ - public static MethodHandle rlLoadIdentity$handle() { - return rlLoadIdentity.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlLoadIdentity() - * } - */ - public static MemorySegment rlLoadIdentity$address() { - return rlLoadIdentity.ADDR; - } - - /** - * {@snippet lang=c : - * void rlLoadIdentity() - * } - */ - public static void rlLoadIdentity() { - var mh$ = rlLoadIdentity.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadIdentity"); - } - mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlTranslatef { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlTranslatef"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlTranslatef(float x, float y, float z) - * } - */ - public static FunctionDescriptor rlTranslatef$descriptor() { - return rlTranslatef.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlTranslatef(float x, float y, float z) - * } - */ - public static MethodHandle rlTranslatef$handle() { - return rlTranslatef.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlTranslatef(float x, float y, float z) - * } - */ - public static MemorySegment rlTranslatef$address() { - return rlTranslatef.ADDR; - } - - /** - * {@snippet lang=c : - * void rlTranslatef(float x, float y, float z) - * } - */ - public static void rlTranslatef(float x, float y, float z) { - var mh$ = rlTranslatef.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlTranslatef", x, y, z); - } - mh$.invokeExact(x, y, z); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlRotatef { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlRotatef"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlRotatef(float angle, float x, float y, float z) - * } - */ - public static FunctionDescriptor rlRotatef$descriptor() { - return rlRotatef.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlRotatef(float angle, float x, float y, float z) - * } - */ - public static MethodHandle rlRotatef$handle() { - return rlRotatef.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlRotatef(float angle, float x, float y, float z) - * } - */ - public static MemorySegment rlRotatef$address() { - return rlRotatef.ADDR; - } - - /** - * {@snippet lang=c : - * void rlRotatef(float angle, float x, float y, float z) - * } - */ - public static void rlRotatef(float angle, float x, float y, float z) { - var mh$ = rlRotatef.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlRotatef", angle, x, y, z); - } - mh$.invokeExact(angle, x, y, z); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlScalef { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlScalef"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlScalef(float x, float y, float z) - * } - */ - public static FunctionDescriptor rlScalef$descriptor() { - return rlScalef.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlScalef(float x, float y, float z) - * } - */ - public static MethodHandle rlScalef$handle() { - return rlScalef.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlScalef(float x, float y, float z) - * } - */ - public static MemorySegment rlScalef$address() { - return rlScalef.ADDR; - } - - /** - * {@snippet lang=c : - * void rlScalef(float x, float y, float z) - * } - */ - public static void rlScalef(float x, float y, float z) { - var mh$ = rlScalef.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlScalef", x, y, z); - } - mh$.invokeExact(x, y, z); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlMultMatrixf { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlMultMatrixf"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlMultMatrixf(const float *matf) - * } - */ - public static FunctionDescriptor rlMultMatrixf$descriptor() { - return rlMultMatrixf.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlMultMatrixf(const float *matf) - * } - */ - public static MethodHandle rlMultMatrixf$handle() { - return rlMultMatrixf.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlMultMatrixf(const float *matf) - * } - */ - public static MemorySegment rlMultMatrixf$address() { - return rlMultMatrixf.ADDR; - } - - /** - * {@snippet lang=c : - * void rlMultMatrixf(const float *matf) - * } - */ - public static void rlMultMatrixf(MemorySegment matf) { - var mh$ = rlMultMatrixf.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlMultMatrixf", matf); - } - mh$.invokeExact(matf); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlFrustum { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlFrustum"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static FunctionDescriptor rlFrustum$descriptor() { - return rlFrustum.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static MethodHandle rlFrustum$handle() { - return rlFrustum.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static MemorySegment rlFrustum$address() { - return rlFrustum.ADDR; - } - - /** - * {@snippet lang=c : - * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) { - var mh$ = rlFrustum.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlFrustum", left, right, bottom, top, znear, zfar); - } - mh$.invokeExact(left, right, bottom, top, znear, zfar); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlOrtho { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlOrtho"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static FunctionDescriptor rlOrtho$descriptor() { - return rlOrtho.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static MethodHandle rlOrtho$handle() { - return rlOrtho.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static MemorySegment rlOrtho$address() { - return rlOrtho.ADDR; - } - - /** - * {@snippet lang=c : - * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) - * } - */ - public static void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) { - var mh$ = rlOrtho.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlOrtho", left, right, bottom, top, znear, zfar); - } - mh$.invokeExact(left, right, bottom, top, znear, zfar); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlViewport { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlViewport"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlViewport(int x, int y, int width, int height) - * } - */ - public static FunctionDescriptor rlViewport$descriptor() { - return rlViewport.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlViewport(int x, int y, int width, int height) - * } - */ - public static MethodHandle rlViewport$handle() { - return rlViewport.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlViewport(int x, int y, int width, int height) - * } - */ - public static MemorySegment rlViewport$address() { - return rlViewport.ADDR; - } - - /** - * {@snippet lang=c : - * void rlViewport(int x, int y, int width, int height) - * } - */ - public static void rlViewport(int x, int y, int width, int height) { - var mh$ = rlViewport.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlViewport", x, y, width, height); - } - mh$.invokeExact(x, y, width, height); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlSetClipPlanes { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetClipPlanes"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * void rlSetClipPlanes(double near, double far) - * } - */ - public static FunctionDescriptor rlSetClipPlanes$descriptor() { - return rlSetClipPlanes.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * void rlSetClipPlanes(double near, double far) - * } - */ - public static MethodHandle rlSetClipPlanes$handle() { - return rlSetClipPlanes.HANDLE; - } - - /** - * Address for: - * {@snippet lang=c : - * void rlSetClipPlanes(double near, double far) - * } - */ - public static MemorySegment rlSetClipPlanes$address() { - return rlSetClipPlanes.ADDR; - } - - /** - * {@snippet lang=c : - * void rlSetClipPlanes(double near, double far) - * } - */ - public static void rlSetClipPlanes(double near, double far) { - var mh$ = rlSetClipPlanes.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlSetClipPlanes", near, far); - } - mh$.invokeExact(near, far); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlGetCullDistanceNear { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetCullDistanceNear"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - - /** - * Function descriptor for: - * {@snippet lang=c : - * double rlGetCullDistanceNear() - * } - */ - public static FunctionDescriptor rlGetCullDistanceNear$descriptor() { - return rlGetCullDistanceNear.DESC; - } - - /** - * Downcall method handle for: - * {@snippet lang=c : - * double rlGetCullDistanceNear() - * } - */ - public static MethodHandle rlGetCullDistanceNear$handle() { - return rlGetCullDistanceNear.HANDLE; + public static int RL_SHADER_ATTRIB_VEC2() { + return RL_SHADER_ATTRIB_VEC2; } - + private static final int RL_SHADER_ATTRIB_VEC3 = (int)2L; /** - * Address for: * {@snippet lang=c : - * double rlGetCullDistanceNear() + * enum .RL_SHADER_ATTRIB_VEC3 = 2 * } */ - public static MemorySegment rlGetCullDistanceNear$address() { - return rlGetCullDistanceNear.ADDR; + public static int RL_SHADER_ATTRIB_VEC3() { + return RL_SHADER_ATTRIB_VEC3; } - + private static final int RL_SHADER_ATTRIB_VEC4 = (int)3L; /** * {@snippet lang=c : - * double rlGetCullDistanceNear() + * enum .RL_SHADER_ATTRIB_VEC4 = 3 * } */ - public static double rlGetCullDistanceNear() { - var mh$ = rlGetCullDistanceNear.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlGetCullDistanceNear"); - } - return (double)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlGetCullDistanceFar { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetCullDistanceFar"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_SHADER_ATTRIB_VEC4() { + return RL_SHADER_ATTRIB_VEC4; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL0 = (int)0L; /** - * Function descriptor for: * {@snippet lang=c : - * double rlGetCullDistanceFar() + * enum .RL_ATTACHMENT_COLOR_CHANNEL0 = 0 * } */ - public static FunctionDescriptor rlGetCullDistanceFar$descriptor() { - return rlGetCullDistanceFar.DESC; + public static int RL_ATTACHMENT_COLOR_CHANNEL0() { + return RL_ATTACHMENT_COLOR_CHANNEL0; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL1 = (int)1L; /** - * Downcall method handle for: * {@snippet lang=c : - * double rlGetCullDistanceFar() + * enum .RL_ATTACHMENT_COLOR_CHANNEL1 = 1 * } */ - public static MethodHandle rlGetCullDistanceFar$handle() { - return rlGetCullDistanceFar.HANDLE; + public static int RL_ATTACHMENT_COLOR_CHANNEL1() { + return RL_ATTACHMENT_COLOR_CHANNEL1; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL2 = (int)2L; /** - * Address for: * {@snippet lang=c : - * double rlGetCullDistanceFar() + * enum .RL_ATTACHMENT_COLOR_CHANNEL2 = 2 * } */ - public static MemorySegment rlGetCullDistanceFar$address() { - return rlGetCullDistanceFar.ADDR; + public static int RL_ATTACHMENT_COLOR_CHANNEL2() { + return RL_ATTACHMENT_COLOR_CHANNEL2; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL3 = (int)3L; /** * {@snippet lang=c : - * double rlGetCullDistanceFar() + * enum .RL_ATTACHMENT_COLOR_CHANNEL3 = 3 * } */ - public static double rlGetCullDistanceFar() { - var mh$ = rlGetCullDistanceFar.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlGetCullDistanceFar"); - } - return (double)mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlBegin { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlBegin"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_ATTACHMENT_COLOR_CHANNEL3() { + return RL_ATTACHMENT_COLOR_CHANNEL3; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL4 = (int)4L; /** - * Function descriptor for: * {@snippet lang=c : - * void rlBegin(int mode) + * enum .RL_ATTACHMENT_COLOR_CHANNEL4 = 4 * } */ - public static FunctionDescriptor rlBegin$descriptor() { - return rlBegin.DESC; + public static int RL_ATTACHMENT_COLOR_CHANNEL4() { + return RL_ATTACHMENT_COLOR_CHANNEL4; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL5 = (int)5L; /** - * Downcall method handle for: * {@snippet lang=c : - * void rlBegin(int mode) + * enum .RL_ATTACHMENT_COLOR_CHANNEL5 = 5 * } */ - public static MethodHandle rlBegin$handle() { - return rlBegin.HANDLE; + public static int RL_ATTACHMENT_COLOR_CHANNEL5() { + return RL_ATTACHMENT_COLOR_CHANNEL5; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL6 = (int)6L; /** - * Address for: * {@snippet lang=c : - * void rlBegin(int mode) + * enum .RL_ATTACHMENT_COLOR_CHANNEL6 = 6 * } */ - public static MemorySegment rlBegin$address() { - return rlBegin.ADDR; + public static int RL_ATTACHMENT_COLOR_CHANNEL6() { + return RL_ATTACHMENT_COLOR_CHANNEL6; } - + private static final int RL_ATTACHMENT_COLOR_CHANNEL7 = (int)7L; /** * {@snippet lang=c : - * void rlBegin(int mode) + * enum .RL_ATTACHMENT_COLOR_CHANNEL7 = 7 * } */ - public static void rlBegin(int mode) { - var mh$ = rlBegin.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlBegin", mode); - } - mh$.invokeExact(mode); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlEnd { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnd"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_ATTACHMENT_COLOR_CHANNEL7() { + return RL_ATTACHMENT_COLOR_CHANNEL7; } - + private static final int RL_ATTACHMENT_DEPTH = (int)100L; /** - * Function descriptor for: * {@snippet lang=c : - * void rlEnd() + * enum .RL_ATTACHMENT_DEPTH = 100 * } */ - public static FunctionDescriptor rlEnd$descriptor() { - return rlEnd.DESC; + public static int RL_ATTACHMENT_DEPTH() { + return RL_ATTACHMENT_DEPTH; } - + private static final int RL_ATTACHMENT_STENCIL = (int)200L; /** - * Downcall method handle for: * {@snippet lang=c : - * void rlEnd() + * enum .RL_ATTACHMENT_STENCIL = 200 * } */ - public static MethodHandle rlEnd$handle() { - return rlEnd.HANDLE; + public static int RL_ATTACHMENT_STENCIL() { + return RL_ATTACHMENT_STENCIL; } - + private static final int RL_ATTACHMENT_CUBEMAP_POSITIVE_X = (int)0L; /** - * Address for: * {@snippet lang=c : - * void rlEnd() + * enum .RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0 * } */ - public static MemorySegment rlEnd$address() { - return rlEnd.ADDR; + public static int RL_ATTACHMENT_CUBEMAP_POSITIVE_X() { + return RL_ATTACHMENT_CUBEMAP_POSITIVE_X; } - + private static final int RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = (int)1L; /** * {@snippet lang=c : - * void rlEnd() + * enum .RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = 1 * } */ - public static void rlEnd() { - var mh$ = rlEnd.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlEnd"); - } - mh$.invokeExact(); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlVertex2i { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlVertex2i"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_ATTACHMENT_CUBEMAP_NEGATIVE_X() { + return RL_ATTACHMENT_CUBEMAP_NEGATIVE_X; } - + private static final int RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = (int)2L; /** - * Function descriptor for: * {@snippet lang=c : - * void rlVertex2i(int x, int y) + * enum .RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = 2 * } */ - public static FunctionDescriptor rlVertex2i$descriptor() { - return rlVertex2i.DESC; + public static int RL_ATTACHMENT_CUBEMAP_POSITIVE_Y() { + return RL_ATTACHMENT_CUBEMAP_POSITIVE_Y; } - + private static final int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = (int)3L; /** - * Downcall method handle for: * {@snippet lang=c : - * void rlVertex2i(int x, int y) + * enum .RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = 3 * } */ - public static MethodHandle rlVertex2i$handle() { - return rlVertex2i.HANDLE; + public static int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y() { + return RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y; } - + private static final int RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = (int)4L; /** - * Address for: * {@snippet lang=c : - * void rlVertex2i(int x, int y) + * enum .RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = 4 * } */ - public static MemorySegment rlVertex2i$address() { - return rlVertex2i.ADDR; + public static int RL_ATTACHMENT_CUBEMAP_POSITIVE_Z() { + return RL_ATTACHMENT_CUBEMAP_POSITIVE_Z; } - + private static final int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = (int)5L; /** * {@snippet lang=c : - * void rlVertex2i(int x, int y) + * enum .RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = 5 * } */ - public static void rlVertex2i(int x, int y) { - var mh$ = rlVertex2i.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlVertex2i", x, y); - } - mh$.invokeExact(x, y); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlVertex2f { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("rlVertex2f"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z() { + return RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z; } - + private static final int RL_ATTACHMENT_TEXTURE2D = (int)100L; /** - * Function descriptor for: * {@snippet lang=c : - * void rlVertex2f(float x, float y) + * enum .RL_ATTACHMENT_TEXTURE2D = 100 * } */ - public static FunctionDescriptor rlVertex2f$descriptor() { - return rlVertex2f.DESC; + public static int RL_ATTACHMENT_TEXTURE2D() { + return RL_ATTACHMENT_TEXTURE2D; } - + private static final int RL_ATTACHMENT_RENDERBUFFER = (int)200L; /** - * Downcall method handle for: * {@snippet lang=c : - * void rlVertex2f(float x, float y) + * enum .RL_ATTACHMENT_RENDERBUFFER = 200 * } */ - public static MethodHandle rlVertex2f$handle() { - return rlVertex2f.HANDLE; + public static int RL_ATTACHMENT_RENDERBUFFER() { + return RL_ATTACHMENT_RENDERBUFFER; } - + private static final int RL_CULL_FACE_FRONT = (int)0L; /** - * Address for: * {@snippet lang=c : - * void rlVertex2f(float x, float y) + * enum .RL_CULL_FACE_FRONT = 0 * } */ - public static MemorySegment rlVertex2f$address() { - return rlVertex2f.ADDR; + public static int RL_CULL_FACE_FRONT() { + return RL_CULL_FACE_FRONT; } - + private static final int RL_CULL_FACE_BACK = (int)1L; /** * {@snippet lang=c : - * void rlVertex2f(float x, float y) + * enum .RL_CULL_FACE_BACK = 1 * } */ - public static void rlVertex2f(float x, float y) { - var mh$ = rlVertex2f.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("rlVertex2f", x, y); - } - mh$.invokeExact(x, y); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int RL_CULL_FACE_BACK() { + return RL_CULL_FACE_BACK; } - private static class rlVertex3f { + private static class rlMatrixMode { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlVertex3f"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlMatrixMode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17065,57 +922,54 @@ private static class rlVertex3f { /** * Function descriptor for: * {@snippet lang=c : - * void rlVertex3f(float x, float y, float z) + * void rlMatrixMode(int mode) * } */ - public static FunctionDescriptor rlVertex3f$descriptor() { - return rlVertex3f.DESC; + public static FunctionDescriptor rlMatrixMode$descriptor() { + return rlMatrixMode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlVertex3f(float x, float y, float z) + * void rlMatrixMode(int mode) * } */ - public static MethodHandle rlVertex3f$handle() { - return rlVertex3f.HANDLE; + public static MethodHandle rlMatrixMode$handle() { + return rlMatrixMode.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlVertex3f(float x, float y, float z) + * void rlMatrixMode(int mode) * } */ - public static MemorySegment rlVertex3f$address() { - return rlVertex3f.ADDR; + public static MemorySegment rlMatrixMode$address() { + return rlMatrixMode.ADDR; } /** * {@snippet lang=c : - * void rlVertex3f(float x, float y, float z) + * void rlMatrixMode(int mode) * } */ - public static void rlVertex3f(float x, float y, float z) { - var mh$ = rlVertex3f.HANDLE; + public static void rlMatrixMode(int mode) { + var mh$ = rlMatrixMode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlVertex3f", x, y, z); + traceDowncall("rlMatrixMode", mode); } - mh$.invokeExact(x, y, z); + mh$.invokeExact(mode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlTexCoord2f { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT - ); + private static class rlPushMatrix { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlTexCoord2f"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlPushMatrix"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17123,58 +977,54 @@ private static class rlTexCoord2f { /** * Function descriptor for: * {@snippet lang=c : - * void rlTexCoord2f(float x, float y) + * void rlPushMatrix() * } */ - public static FunctionDescriptor rlTexCoord2f$descriptor() { - return rlTexCoord2f.DESC; + public static FunctionDescriptor rlPushMatrix$descriptor() { + return rlPushMatrix.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlTexCoord2f(float x, float y) + * void rlPushMatrix() * } */ - public static MethodHandle rlTexCoord2f$handle() { - return rlTexCoord2f.HANDLE; + public static MethodHandle rlPushMatrix$handle() { + return rlPushMatrix.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlTexCoord2f(float x, float y) + * void rlPushMatrix() * } */ - public static MemorySegment rlTexCoord2f$address() { - return rlTexCoord2f.ADDR; + public static MemorySegment rlPushMatrix$address() { + return rlPushMatrix.ADDR; } /** * {@snippet lang=c : - * void rlTexCoord2f(float x, float y) + * void rlPushMatrix() * } */ - public static void rlTexCoord2f(float x, float y) { - var mh$ = rlTexCoord2f.HANDLE; + public static void rlPushMatrix() { + var mh$ = rlPushMatrix.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlTexCoord2f", x, y); + traceDowncall("rlPushMatrix"); } - mh$.invokeExact(x, y); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlNormal3f { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); + private static class rlPopMatrix { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlNormal3f"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlPopMatrix"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17182,59 +1032,54 @@ private static class rlNormal3f { /** * Function descriptor for: * {@snippet lang=c : - * void rlNormal3f(float x, float y, float z) + * void rlPopMatrix() * } */ - public static FunctionDescriptor rlNormal3f$descriptor() { - return rlNormal3f.DESC; + public static FunctionDescriptor rlPopMatrix$descriptor() { + return rlPopMatrix.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlNormal3f(float x, float y, float z) + * void rlPopMatrix() * } */ - public static MethodHandle rlNormal3f$handle() { - return rlNormal3f.HANDLE; + public static MethodHandle rlPopMatrix$handle() { + return rlPopMatrix.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlNormal3f(float x, float y, float z) + * void rlPopMatrix() * } */ - public static MemorySegment rlNormal3f$address() { - return rlNormal3f.ADDR; + public static MemorySegment rlPopMatrix$address() { + return rlPopMatrix.ADDR; } /** * {@snippet lang=c : - * void rlNormal3f(float x, float y, float z) + * void rlPopMatrix() * } */ - public static void rlNormal3f(float x, float y, float z) { - var mh$ = rlNormal3f.HANDLE; + public static void rlPopMatrix() { + var mh$ = rlPopMatrix.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlNormal3f", x, y, z); + traceDowncall("rlPopMatrix"); } - mh$.invokeExact(x, y, z); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlColor4ub { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_CHAR, - raylib.C_CHAR, - raylib.C_CHAR, - raylib.C_CHAR - ); + private static class rlLoadIdentity { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlColor4ub"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadIdentity"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17242,58 +1087,58 @@ private static class rlColor4ub { /** * Function descriptor for: * {@snippet lang=c : - * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlLoadIdentity() * } */ - public static FunctionDescriptor rlColor4ub$descriptor() { - return rlColor4ub.DESC; + public static FunctionDescriptor rlLoadIdentity$descriptor() { + return rlLoadIdentity.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlLoadIdentity() * } */ - public static MethodHandle rlColor4ub$handle() { - return rlColor4ub.HANDLE; + public static MethodHandle rlLoadIdentity$handle() { + return rlLoadIdentity.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlLoadIdentity() * } */ - public static MemorySegment rlColor4ub$address() { - return rlColor4ub.ADDR; + public static MemorySegment rlLoadIdentity$address() { + return rlLoadIdentity.ADDR; } /** * {@snippet lang=c : - * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlLoadIdentity() * } */ - public static void rlColor4ub(byte r, byte g, byte b, byte a) { - var mh$ = rlColor4ub.HANDLE; + public static void rlLoadIdentity() { + var mh$ = rlLoadIdentity.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlColor4ub", r, g, b, a); + traceDowncall("rlLoadIdentity"); } - mh$.invokeExact(r, g, b, a); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlColor3f { + private static class rlTranslatef { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_FLOAT, raylib.C_FLOAT, raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlColor3f"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlTranslatef"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17301,43 +1146,43 @@ private static class rlColor3f { /** * Function descriptor for: * {@snippet lang=c : - * void rlColor3f(float x, float y, float z) + * void rlTranslatef(float x, float y, float z) * } */ - public static FunctionDescriptor rlColor3f$descriptor() { - return rlColor3f.DESC; + public static FunctionDescriptor rlTranslatef$descriptor() { + return rlTranslatef.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlColor3f(float x, float y, float z) + * void rlTranslatef(float x, float y, float z) * } */ - public static MethodHandle rlColor3f$handle() { - return rlColor3f.HANDLE; + public static MethodHandle rlTranslatef$handle() { + return rlTranslatef.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlColor3f(float x, float y, float z) + * void rlTranslatef(float x, float y, float z) * } */ - public static MemorySegment rlColor3f$address() { - return rlColor3f.ADDR; + public static MemorySegment rlTranslatef$address() { + return rlTranslatef.ADDR; } /** * {@snippet lang=c : - * void rlColor3f(float x, float y, float z) + * void rlTranslatef(float x, float y, float z) * } */ - public static void rlColor3f(float x, float y, float z) { - var mh$ = rlColor3f.HANDLE; + public static void rlTranslatef(float x, float y, float z) { + var mh$ = rlTranslatef.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlColor3f", x, y, z); + traceDowncall("rlTranslatef", x, y, z); } mh$.invokeExact(x, y, z); } catch (Throwable ex$) { @@ -17345,7 +1190,7 @@ public static void rlColor3f(float x, float y, float z) { } } - private static class rlColor4f { + private static class rlRotatef { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_FLOAT, raylib.C_FLOAT, @@ -17353,7 +1198,7 @@ private static class rlColor4f { raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlColor4f"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlRotatef"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17361,57 +1206,58 @@ private static class rlColor4f { /** * Function descriptor for: * {@snippet lang=c : - * void rlColor4f(float x, float y, float z, float w) + * void rlRotatef(float angle, float x, float y, float z) * } */ - public static FunctionDescriptor rlColor4f$descriptor() { - return rlColor4f.DESC; + public static FunctionDescriptor rlRotatef$descriptor() { + return rlRotatef.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlColor4f(float x, float y, float z, float w) + * void rlRotatef(float angle, float x, float y, float z) * } */ - public static MethodHandle rlColor4f$handle() { - return rlColor4f.HANDLE; + public static MethodHandle rlRotatef$handle() { + return rlRotatef.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlColor4f(float x, float y, float z, float w) + * void rlRotatef(float angle, float x, float y, float z) * } */ - public static MemorySegment rlColor4f$address() { - return rlColor4f.ADDR; + public static MemorySegment rlRotatef$address() { + return rlRotatef.ADDR; } /** * {@snippet lang=c : - * void rlColor4f(float x, float y, float z, float w) + * void rlRotatef(float angle, float x, float y, float z) * } */ - public static void rlColor4f(float x, float y, float z, float w) { - var mh$ = rlColor4f.HANDLE; + public static void rlRotatef(float angle, float x, float y, float z) { + var mh$ = rlRotatef.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlColor4f", x, y, z, w); + traceDowncall("rlRotatef", angle, x, y, z); } - mh$.invokeExact(x, y, z, w); + mh$.invokeExact(angle, x, y, z); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableVertexArray { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class rlScalef { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexArray"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlScalef"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17419,54 +1265,56 @@ private static class rlEnableVertexArray { /** * Function descriptor for: * {@snippet lang=c : - * bool rlEnableVertexArray(unsigned int vaoId) + * void rlScalef(float x, float y, float z) * } */ - public static FunctionDescriptor rlEnableVertexArray$descriptor() { - return rlEnableVertexArray.DESC; + public static FunctionDescriptor rlScalef$descriptor() { + return rlScalef.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool rlEnableVertexArray(unsigned int vaoId) + * void rlScalef(float x, float y, float z) * } */ - public static MethodHandle rlEnableVertexArray$handle() { - return rlEnableVertexArray.HANDLE; + public static MethodHandle rlScalef$handle() { + return rlScalef.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool rlEnableVertexArray(unsigned int vaoId) + * void rlScalef(float x, float y, float z) * } */ - public static MemorySegment rlEnableVertexArray$address() { - return rlEnableVertexArray.ADDR; + public static MemorySegment rlScalef$address() { + return rlScalef.ADDR; } /** * {@snippet lang=c : - * bool rlEnableVertexArray(unsigned int vaoId) + * void rlScalef(float x, float y, float z) * } */ - public static boolean rlEnableVertexArray(int vaoId) { - var mh$ = rlEnableVertexArray.HANDLE; + public static void rlScalef(float x, float y, float z) { + var mh$ = rlScalef.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableVertexArray", vaoId); + traceDowncall("rlScalef", x, y, z); } - return (boolean)mh$.invokeExact(vaoId); + mh$.invokeExact(x, y, z); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableVertexArray { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlMultMatrixf { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexArray"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlMultMatrixf"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17474,56 +1322,61 @@ private static class rlDisableVertexArray { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableVertexArray() + * void rlMultMatrixf(const float *matf) * } */ - public static FunctionDescriptor rlDisableVertexArray$descriptor() { - return rlDisableVertexArray.DESC; + public static FunctionDescriptor rlMultMatrixf$descriptor() { + return rlMultMatrixf.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableVertexArray() + * void rlMultMatrixf(const float *matf) * } */ - public static MethodHandle rlDisableVertexArray$handle() { - return rlDisableVertexArray.HANDLE; + public static MethodHandle rlMultMatrixf$handle() { + return rlMultMatrixf.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableVertexArray() + * void rlMultMatrixf(const float *matf) * } */ - public static MemorySegment rlDisableVertexArray$address() { - return rlDisableVertexArray.ADDR; + public static MemorySegment rlMultMatrixf$address() { + return rlMultMatrixf.ADDR; } /** * {@snippet lang=c : - * void rlDisableVertexArray() + * void rlMultMatrixf(const float *matf) * } */ - public static void rlDisableVertexArray() { - var mh$ = rlDisableVertexArray.HANDLE; + public static void rlMultMatrixf(MemorySegment matf) { + var mh$ = rlMultMatrixf.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableVertexArray"); + traceDowncall("rlMultMatrixf", matf); } - mh$.invokeExact(); + mh$.invokeExact(matf); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableVertexBuffer { + private static class rlFrustum { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlFrustum"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17531,54 +1384,61 @@ private static class rlEnableVertexBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableVertexBuffer(unsigned int id) + * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static FunctionDescriptor rlEnableVertexBuffer$descriptor() { - return rlEnableVertexBuffer.DESC; + public static FunctionDescriptor rlFrustum$descriptor() { + return rlFrustum.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableVertexBuffer(unsigned int id) + * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static MethodHandle rlEnableVertexBuffer$handle() { - return rlEnableVertexBuffer.HANDLE; + public static MethodHandle rlFrustum$handle() { + return rlFrustum.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableVertexBuffer(unsigned int id) + * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static MemorySegment rlEnableVertexBuffer$address() { - return rlEnableVertexBuffer.ADDR; + public static MemorySegment rlFrustum$address() { + return rlFrustum.ADDR; } /** * {@snippet lang=c : - * void rlEnableVertexBuffer(unsigned int id) + * void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static void rlEnableVertexBuffer(int id) { - var mh$ = rlEnableVertexBuffer.HANDLE; + public static void rlFrustum(double left, double right, double bottom, double top, double znear, double zfar) { + var mh$ = rlFrustum.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableVertexBuffer", id); + traceDowncall("rlFrustum", left, right, bottom, top, znear, zfar); } - mh$.invokeExact(id); + mh$.invokeExact(left, right, bottom, top, znear, zfar); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableVertexBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlOrtho { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlOrtho"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17586,56 +1446,59 @@ private static class rlDisableVertexBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableVertexBuffer() + * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static FunctionDescriptor rlDisableVertexBuffer$descriptor() { - return rlDisableVertexBuffer.DESC; + public static FunctionDescriptor rlOrtho$descriptor() { + return rlOrtho.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableVertexBuffer() + * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static MethodHandle rlDisableVertexBuffer$handle() { - return rlDisableVertexBuffer.HANDLE; + public static MethodHandle rlOrtho$handle() { + return rlOrtho.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableVertexBuffer() + * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static MemorySegment rlDisableVertexBuffer$address() { - return rlDisableVertexBuffer.ADDR; + public static MemorySegment rlOrtho$address() { + return rlOrtho.ADDR; } /** * {@snippet lang=c : - * void rlDisableVertexBuffer() + * void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) * } */ - public static void rlDisableVertexBuffer() { - var mh$ = rlDisableVertexBuffer.HANDLE; + public static void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar) { + var mh$ = rlOrtho.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableVertexBuffer"); + traceDowncall("rlOrtho", left, right, bottom, top, znear, zfar); } - mh$.invokeExact(); + mh$.invokeExact(left, right, bottom, top, znear, zfar); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableVertexBufferElement { + private static class rlViewport { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexBufferElement"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlViewport"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17643,54 +1506,57 @@ private static class rlEnableVertexBufferElement { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableVertexBufferElement(unsigned int id) + * void rlViewport(int x, int y, int width, int height) * } */ - public static FunctionDescriptor rlEnableVertexBufferElement$descriptor() { - return rlEnableVertexBufferElement.DESC; + public static FunctionDescriptor rlViewport$descriptor() { + return rlViewport.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableVertexBufferElement(unsigned int id) + * void rlViewport(int x, int y, int width, int height) * } */ - public static MethodHandle rlEnableVertexBufferElement$handle() { - return rlEnableVertexBufferElement.HANDLE; + public static MethodHandle rlViewport$handle() { + return rlViewport.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableVertexBufferElement(unsigned int id) + * void rlViewport(int x, int y, int width, int height) * } */ - public static MemorySegment rlEnableVertexBufferElement$address() { - return rlEnableVertexBufferElement.ADDR; + public static MemorySegment rlViewport$address() { + return rlViewport.ADDR; } /** * {@snippet lang=c : - * void rlEnableVertexBufferElement(unsigned int id) + * void rlViewport(int x, int y, int width, int height) * } */ - public static void rlEnableVertexBufferElement(int id) { - var mh$ = rlEnableVertexBufferElement.HANDLE; + public static void rlViewport(int x, int y, int width, int height) { + var mh$ = rlViewport.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableVertexBufferElement", id); + traceDowncall("rlViewport", x, y, width, height); } - mh$.invokeExact(id); + mh$.invokeExact(x, y, width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableVertexBufferElement { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlSetClipPlanes { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_DOUBLE, + raylib.C_DOUBLE + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexBufferElement"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetClipPlanes"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17698,56 +1564,55 @@ private static class rlDisableVertexBufferElement { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableVertexBufferElement() + * void rlSetClipPlanes(double near, double far) * } */ - public static FunctionDescriptor rlDisableVertexBufferElement$descriptor() { - return rlDisableVertexBufferElement.DESC; + public static FunctionDescriptor rlSetClipPlanes$descriptor() { + return rlSetClipPlanes.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableVertexBufferElement() + * void rlSetClipPlanes(double near, double far) * } */ - public static MethodHandle rlDisableVertexBufferElement$handle() { - return rlDisableVertexBufferElement.HANDLE; + public static MethodHandle rlSetClipPlanes$handle() { + return rlSetClipPlanes.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableVertexBufferElement() + * void rlSetClipPlanes(double near, double far) * } */ - public static MemorySegment rlDisableVertexBufferElement$address() { - return rlDisableVertexBufferElement.ADDR; + public static MemorySegment rlSetClipPlanes$address() { + return rlSetClipPlanes.ADDR; } /** * {@snippet lang=c : - * void rlDisableVertexBufferElement() + * void rlSetClipPlanes(double near, double far) * } */ - public static void rlDisableVertexBufferElement() { - var mh$ = rlDisableVertexBufferElement.HANDLE; + public static void rlSetClipPlanes(double near, double far) { + var mh$ = rlSetClipPlanes.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableVertexBufferElement"); + traceDowncall("rlSetClipPlanes", near, far); } - mh$.invokeExact(); + mh$.invokeExact(near, far); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableVertexAttribute { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); + private static class rlGetCullDistanceNear { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_DOUBLE ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexAttribute"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetCullDistanceNear"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17755,56 +1620,55 @@ private static class rlEnableVertexAttribute { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableVertexAttribute(unsigned int index) + * double rlGetCullDistanceNear() * } */ - public static FunctionDescriptor rlEnableVertexAttribute$descriptor() { - return rlEnableVertexAttribute.DESC; + public static FunctionDescriptor rlGetCullDistanceNear$descriptor() { + return rlGetCullDistanceNear.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableVertexAttribute(unsigned int index) + * double rlGetCullDistanceNear() * } */ - public static MethodHandle rlEnableVertexAttribute$handle() { - return rlEnableVertexAttribute.HANDLE; + public static MethodHandle rlGetCullDistanceNear$handle() { + return rlGetCullDistanceNear.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableVertexAttribute(unsigned int index) + * double rlGetCullDistanceNear() * } */ - public static MemorySegment rlEnableVertexAttribute$address() { - return rlEnableVertexAttribute.ADDR; + public static MemorySegment rlGetCullDistanceNear$address() { + return rlGetCullDistanceNear.ADDR; } /** * {@snippet lang=c : - * void rlEnableVertexAttribute(unsigned int index) + * double rlGetCullDistanceNear() * } */ - public static void rlEnableVertexAttribute(int index) { - var mh$ = rlEnableVertexAttribute.HANDLE; + public static double rlGetCullDistanceNear() { + var mh$ = rlGetCullDistanceNear.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableVertexAttribute", index); + traceDowncall("rlGetCullDistanceNear"); } - mh$.invokeExact(index); + return (double)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableVertexAttribute { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); + private static class rlGetCullDistanceFar { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_DOUBLE ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexAttribute"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetCullDistanceFar"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17812,56 +1676,56 @@ private static class rlDisableVertexAttribute { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableVertexAttribute(unsigned int index) + * double rlGetCullDistanceFar() * } */ - public static FunctionDescriptor rlDisableVertexAttribute$descriptor() { - return rlDisableVertexAttribute.DESC; + public static FunctionDescriptor rlGetCullDistanceFar$descriptor() { + return rlGetCullDistanceFar.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableVertexAttribute(unsigned int index) + * double rlGetCullDistanceFar() * } */ - public static MethodHandle rlDisableVertexAttribute$handle() { - return rlDisableVertexAttribute.HANDLE; + public static MethodHandle rlGetCullDistanceFar$handle() { + return rlGetCullDistanceFar.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableVertexAttribute(unsigned int index) + * double rlGetCullDistanceFar() * } */ - public static MemorySegment rlDisableVertexAttribute$address() { - return rlDisableVertexAttribute.ADDR; + public static MemorySegment rlGetCullDistanceFar$address() { + return rlGetCullDistanceFar.ADDR; } /** * {@snippet lang=c : - * void rlDisableVertexAttribute(unsigned int index) + * double rlGetCullDistanceFar() * } */ - public static void rlDisableVertexAttribute(int index) { - var mh$ = rlDisableVertexAttribute.HANDLE; + public static double rlGetCullDistanceFar() { + var mh$ = rlGetCullDistanceFar.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableVertexAttribute", index); + traceDowncall("rlGetCullDistanceFar"); } - mh$.invokeExact(index); + return (double)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlActiveTextureSlot { + private static class rlBegin { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlActiveTextureSlot"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlBegin"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17869,56 +1733,54 @@ private static class rlActiveTextureSlot { /** * Function descriptor for: * {@snippet lang=c : - * void rlActiveTextureSlot(int slot) + * void rlBegin(int mode) * } */ - public static FunctionDescriptor rlActiveTextureSlot$descriptor() { - return rlActiveTextureSlot.DESC; + public static FunctionDescriptor rlBegin$descriptor() { + return rlBegin.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlActiveTextureSlot(int slot) + * void rlBegin(int mode) * } */ - public static MethodHandle rlActiveTextureSlot$handle() { - return rlActiveTextureSlot.HANDLE; + public static MethodHandle rlBegin$handle() { + return rlBegin.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlActiveTextureSlot(int slot) + * void rlBegin(int mode) * } */ - public static MemorySegment rlActiveTextureSlot$address() { - return rlActiveTextureSlot.ADDR; + public static MemorySegment rlBegin$address() { + return rlBegin.ADDR; } /** * {@snippet lang=c : - * void rlActiveTextureSlot(int slot) + * void rlBegin(int mode) * } */ - public static void rlActiveTextureSlot(int slot) { - var mh$ = rlActiveTextureSlot.HANDLE; + public static void rlBegin(int mode) { + var mh$ = rlBegin.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlActiveTextureSlot", slot); + traceDowncall("rlBegin", mode); } - mh$.invokeExact(slot); + mh$.invokeExact(mode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); + private static class rlEnd { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnd"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17926,54 +1788,57 @@ private static class rlEnableTexture { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableTexture(unsigned int id) + * void rlEnd() * } */ - public static FunctionDescriptor rlEnableTexture$descriptor() { - return rlEnableTexture.DESC; + public static FunctionDescriptor rlEnd$descriptor() { + return rlEnd.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableTexture(unsigned int id) + * void rlEnd() * } */ - public static MethodHandle rlEnableTexture$handle() { - return rlEnableTexture.HANDLE; + public static MethodHandle rlEnd$handle() { + return rlEnd.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableTexture(unsigned int id) + * void rlEnd() * } */ - public static MemorySegment rlEnableTexture$address() { - return rlEnableTexture.ADDR; + public static MemorySegment rlEnd$address() { + return rlEnd.ADDR; } /** * {@snippet lang=c : - * void rlEnableTexture(unsigned int id) + * void rlEnd() * } */ - public static void rlEnableTexture(int id) { - var mh$ = rlEnableTexture.HANDLE; + public static void rlEnd() { + var mh$ = rlEnd.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableTexture", id); + traceDowncall("rlEnd"); } - mh$.invokeExact(id); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlVertex2i { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlVertex2i"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17981,56 +1846,57 @@ private static class rlDisableTexture { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableTexture() + * void rlVertex2i(int x, int y) * } */ - public static FunctionDescriptor rlDisableTexture$descriptor() { - return rlDisableTexture.DESC; + public static FunctionDescriptor rlVertex2i$descriptor() { + return rlVertex2i.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableTexture() + * void rlVertex2i(int x, int y) * } */ - public static MethodHandle rlDisableTexture$handle() { - return rlDisableTexture.HANDLE; + public static MethodHandle rlVertex2i$handle() { + return rlVertex2i.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableTexture() + * void rlVertex2i(int x, int y) * } */ - public static MemorySegment rlDisableTexture$address() { - return rlDisableTexture.ADDR; + public static MemorySegment rlVertex2i$address() { + return rlVertex2i.ADDR; } /** * {@snippet lang=c : - * void rlDisableTexture() + * void rlVertex2i(int x, int y) * } */ - public static void rlDisableTexture() { - var mh$ = rlDisableTexture.HANDLE; + public static void rlVertex2i(int x, int y) { + var mh$ = rlVertex2i.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableTexture"); + traceDowncall("rlVertex2i", x, y); } - mh$.invokeExact(); + mh$.invokeExact(x, y); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableTextureCubemap { + private static class rlVertex2f { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableTextureCubemap"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlVertex2f"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18038,54 +1904,58 @@ private static class rlEnableTextureCubemap { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableTextureCubemap(unsigned int id) + * void rlVertex2f(float x, float y) * } */ - public static FunctionDescriptor rlEnableTextureCubemap$descriptor() { - return rlEnableTextureCubemap.DESC; + public static FunctionDescriptor rlVertex2f$descriptor() { + return rlVertex2f.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableTextureCubemap(unsigned int id) + * void rlVertex2f(float x, float y) * } */ - public static MethodHandle rlEnableTextureCubemap$handle() { - return rlEnableTextureCubemap.HANDLE; + public static MethodHandle rlVertex2f$handle() { + return rlVertex2f.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableTextureCubemap(unsigned int id) + * void rlVertex2f(float x, float y) * } */ - public static MemorySegment rlEnableTextureCubemap$address() { - return rlEnableTextureCubemap.ADDR; + public static MemorySegment rlVertex2f$address() { + return rlVertex2f.ADDR; } /** * {@snippet lang=c : - * void rlEnableTextureCubemap(unsigned int id) + * void rlVertex2f(float x, float y) * } */ - public static void rlEnableTextureCubemap(int id) { - var mh$ = rlEnableTextureCubemap.HANDLE; + public static void rlVertex2f(float x, float y) { + var mh$ = rlVertex2f.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableTextureCubemap", id); + traceDowncall("rlVertex2f", x, y); } - mh$.invokeExact(id); + mh$.invokeExact(x, y); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableTextureCubemap { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlVertex3f { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableTextureCubemap"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlVertex3f"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18093,58 +1963,57 @@ private static class rlDisableTextureCubemap { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableTextureCubemap() + * void rlVertex3f(float x, float y, float z) * } */ - public static FunctionDescriptor rlDisableTextureCubemap$descriptor() { - return rlDisableTextureCubemap.DESC; + public static FunctionDescriptor rlVertex3f$descriptor() { + return rlVertex3f.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableTextureCubemap() + * void rlVertex3f(float x, float y, float z) * } */ - public static MethodHandle rlDisableTextureCubemap$handle() { - return rlDisableTextureCubemap.HANDLE; + public static MethodHandle rlVertex3f$handle() { + return rlVertex3f.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableTextureCubemap() + * void rlVertex3f(float x, float y, float z) * } */ - public static MemorySegment rlDisableTextureCubemap$address() { - return rlDisableTextureCubemap.ADDR; + public static MemorySegment rlVertex3f$address() { + return rlVertex3f.ADDR; } /** * {@snippet lang=c : - * void rlDisableTextureCubemap() + * void rlVertex3f(float x, float y, float z) * } */ - public static void rlDisableTextureCubemap() { - var mh$ = rlDisableTextureCubemap.HANDLE; + public static void rlVertex3f(float x, float y, float z) { + var mh$ = rlVertex3f.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableTextureCubemap"); + traceDowncall("rlVertex3f", x, y, z); } - mh$.invokeExact(); + mh$.invokeExact(x, y, z); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlTextureParameters { + private static class rlTexCoord2f { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlTextureParameters"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlTexCoord2f"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18152,58 +2021,58 @@ private static class rlTextureParameters { /** * Function descriptor for: * {@snippet lang=c : - * void rlTextureParameters(unsigned int id, int param, int value) + * void rlTexCoord2f(float x, float y) * } */ - public static FunctionDescriptor rlTextureParameters$descriptor() { - return rlTextureParameters.DESC; + public static FunctionDescriptor rlTexCoord2f$descriptor() { + return rlTexCoord2f.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlTextureParameters(unsigned int id, int param, int value) + * void rlTexCoord2f(float x, float y) * } */ - public static MethodHandle rlTextureParameters$handle() { - return rlTextureParameters.HANDLE; + public static MethodHandle rlTexCoord2f$handle() { + return rlTexCoord2f.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlTextureParameters(unsigned int id, int param, int value) + * void rlTexCoord2f(float x, float y) * } */ - public static MemorySegment rlTextureParameters$address() { - return rlTextureParameters.ADDR; + public static MemorySegment rlTexCoord2f$address() { + return rlTexCoord2f.ADDR; } /** * {@snippet lang=c : - * void rlTextureParameters(unsigned int id, int param, int value) + * void rlTexCoord2f(float x, float y) * } */ - public static void rlTextureParameters(int id, int param, int value) { - var mh$ = rlTextureParameters.HANDLE; + public static void rlTexCoord2f(float x, float y) { + var mh$ = rlTexCoord2f.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlTextureParameters", id, param, value); + traceDowncall("rlTexCoord2f", x, y); } - mh$.invokeExact(id, param, value); + mh$.invokeExact(x, y); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlCubemapParameters { + private static class rlNormal3f { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlCubemapParameters"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlNormal3f"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18211,56 +2080,59 @@ private static class rlCubemapParameters { /** * Function descriptor for: * {@snippet lang=c : - * void rlCubemapParameters(unsigned int id, int param, int value) + * void rlNormal3f(float x, float y, float z) * } */ - public static FunctionDescriptor rlCubemapParameters$descriptor() { - return rlCubemapParameters.DESC; + public static FunctionDescriptor rlNormal3f$descriptor() { + return rlNormal3f.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlCubemapParameters(unsigned int id, int param, int value) + * void rlNormal3f(float x, float y, float z) * } */ - public static MethodHandle rlCubemapParameters$handle() { - return rlCubemapParameters.HANDLE; + public static MethodHandle rlNormal3f$handle() { + return rlNormal3f.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlCubemapParameters(unsigned int id, int param, int value) + * void rlNormal3f(float x, float y, float z) * } */ - public static MemorySegment rlCubemapParameters$address() { - return rlCubemapParameters.ADDR; + public static MemorySegment rlNormal3f$address() { + return rlNormal3f.ADDR; } /** * {@snippet lang=c : - * void rlCubemapParameters(unsigned int id, int param, int value) + * void rlNormal3f(float x, float y, float z) * } */ - public static void rlCubemapParameters(int id, int param, int value) { - var mh$ = rlCubemapParameters.HANDLE; + public static void rlNormal3f(float x, float y, float z) { + var mh$ = rlNormal3f.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlCubemapParameters", id, param, value); + traceDowncall("rlNormal3f", x, y, z); } - mh$.invokeExact(id, param, value); + mh$.invokeExact(x, y, z); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableShader { + private static class rlColor4ub { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + raylib.C_CHAR, + raylib.C_CHAR, + raylib.C_CHAR, + raylib.C_CHAR ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableShader"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlColor4ub"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18268,54 +2140,58 @@ private static class rlEnableShader { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableShader(unsigned int id) + * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static FunctionDescriptor rlEnableShader$descriptor() { - return rlEnableShader.DESC; + public static FunctionDescriptor rlColor4ub$descriptor() { + return rlColor4ub.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableShader(unsigned int id) + * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static MethodHandle rlEnableShader$handle() { - return rlEnableShader.HANDLE; + public static MethodHandle rlColor4ub$handle() { + return rlColor4ub.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableShader(unsigned int id) + * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static MemorySegment rlEnableShader$address() { - return rlEnableShader.ADDR; + public static MemorySegment rlColor4ub$address() { + return rlColor4ub.ADDR; } /** * {@snippet lang=c : - * void rlEnableShader(unsigned int id) + * void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static void rlEnableShader(int id) { - var mh$ = rlEnableShader.HANDLE; + public static void rlColor4ub(byte r, byte g, byte b, byte a) { + var mh$ = rlColor4ub.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableShader", id); + traceDowncall("rlColor4ub", r, g, b, a); } - mh$.invokeExact(id); + mh$.invokeExact(r, g, b, a); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableShader { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlColor3f { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableShader"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlColor3f"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18323,56 +2199,59 @@ private static class rlDisableShader { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableShader() + * void rlColor3f(float x, float y, float z) * } */ - public static FunctionDescriptor rlDisableShader$descriptor() { - return rlDisableShader.DESC; + public static FunctionDescriptor rlColor3f$descriptor() { + return rlColor3f.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableShader() + * void rlColor3f(float x, float y, float z) * } */ - public static MethodHandle rlDisableShader$handle() { - return rlDisableShader.HANDLE; + public static MethodHandle rlColor3f$handle() { + return rlColor3f.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableShader() + * void rlColor3f(float x, float y, float z) * } */ - public static MemorySegment rlDisableShader$address() { - return rlDisableShader.ADDR; + public static MemorySegment rlColor3f$address() { + return rlColor3f.ADDR; } /** * {@snippet lang=c : - * void rlDisableShader() + * void rlColor3f(float x, float y, float z) * } */ - public static void rlDisableShader() { - var mh$ = rlDisableShader.HANDLE; + public static void rlColor3f(float x, float y, float z) { + var mh$ = rlColor3f.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableShader"); + traceDowncall("rlColor3f", x, y, z); } - mh$.invokeExact(); + mh$.invokeExact(x, y, z); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableFramebuffer { + private static class rlColor4f { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlColor4f"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18380,54 +2259,57 @@ private static class rlEnableFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableFramebuffer(unsigned int id) + * void rlColor4f(float x, float y, float z, float w) * } */ - public static FunctionDescriptor rlEnableFramebuffer$descriptor() { - return rlEnableFramebuffer.DESC; + public static FunctionDescriptor rlColor4f$descriptor() { + return rlColor4f.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableFramebuffer(unsigned int id) + * void rlColor4f(float x, float y, float z, float w) * } */ - public static MethodHandle rlEnableFramebuffer$handle() { - return rlEnableFramebuffer.HANDLE; + public static MethodHandle rlColor4f$handle() { + return rlColor4f.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableFramebuffer(unsigned int id) + * void rlColor4f(float x, float y, float z, float w) * } */ - public static MemorySegment rlEnableFramebuffer$address() { - return rlEnableFramebuffer.ADDR; + public static MemorySegment rlColor4f$address() { + return rlColor4f.ADDR; } /** * {@snippet lang=c : - * void rlEnableFramebuffer(unsigned int id) + * void rlColor4f(float x, float y, float z, float w) * } */ - public static void rlEnableFramebuffer(int id) { - var mh$ = rlEnableFramebuffer.HANDLE; + public static void rlColor4f(float x, float y, float z, float w) { + var mh$ = rlColor4f.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableFramebuffer", id); + traceDowncall("rlColor4f", x, y, z, w); } - mh$.invokeExact(id); + mh$.invokeExact(x, y, z, w); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableFramebuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlEnableVertexArray { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexArray"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18435,55 +2317,54 @@ private static class rlDisableFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableFramebuffer() + * bool rlEnableVertexArray(unsigned int vaoId) * } */ - public static FunctionDescriptor rlDisableFramebuffer$descriptor() { - return rlDisableFramebuffer.DESC; + public static FunctionDescriptor rlEnableVertexArray$descriptor() { + return rlEnableVertexArray.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableFramebuffer() + * bool rlEnableVertexArray(unsigned int vaoId) * } */ - public static MethodHandle rlDisableFramebuffer$handle() { - return rlDisableFramebuffer.HANDLE; + public static MethodHandle rlEnableVertexArray$handle() { + return rlEnableVertexArray.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableFramebuffer() + * bool rlEnableVertexArray(unsigned int vaoId) * } */ - public static MemorySegment rlDisableFramebuffer$address() { - return rlDisableFramebuffer.ADDR; + public static MemorySegment rlEnableVertexArray$address() { + return rlEnableVertexArray.ADDR; } /** * {@snippet lang=c : - * void rlDisableFramebuffer() + * bool rlEnableVertexArray(unsigned int vaoId) * } */ - public static void rlDisableFramebuffer() { - var mh$ = rlDisableFramebuffer.HANDLE; + public static boolean rlEnableVertexArray(int vaoId) { + var mh$ = rlEnableVertexArray.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableFramebuffer"); + traceDowncall("rlEnableVertexArray", vaoId); } - mh$.invokeExact(); + return (boolean)mh$.invokeExact(vaoId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetActiveFramebuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlDisableVertexArray { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetActiveFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexArray"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18491,56 +2372,56 @@ private static class rlGetActiveFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlGetActiveFramebuffer() + * void rlDisableVertexArray() * } */ - public static FunctionDescriptor rlGetActiveFramebuffer$descriptor() { - return rlGetActiveFramebuffer.DESC; + public static FunctionDescriptor rlDisableVertexArray$descriptor() { + return rlDisableVertexArray.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlGetActiveFramebuffer() + * void rlDisableVertexArray() * } */ - public static MethodHandle rlGetActiveFramebuffer$handle() { - return rlGetActiveFramebuffer.HANDLE; + public static MethodHandle rlDisableVertexArray$handle() { + return rlDisableVertexArray.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlGetActiveFramebuffer() + * void rlDisableVertexArray() * } */ - public static MemorySegment rlGetActiveFramebuffer$address() { - return rlGetActiveFramebuffer.ADDR; + public static MemorySegment rlDisableVertexArray$address() { + return rlDisableVertexArray.ADDR; } /** * {@snippet lang=c : - * unsigned int rlGetActiveFramebuffer() + * void rlDisableVertexArray() * } */ - public static int rlGetActiveFramebuffer() { - var mh$ = rlGetActiveFramebuffer.HANDLE; + public static void rlDisableVertexArray() { + var mh$ = rlDisableVertexArray.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetActiveFramebuffer"); + traceDowncall("rlDisableVertexArray"); } - return (int)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlActiveDrawBuffers { + private static class rlEnableVertexBuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlActiveDrawBuffers"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18548,64 +2429,54 @@ private static class rlActiveDrawBuffers { /** * Function descriptor for: * {@snippet lang=c : - * void rlActiveDrawBuffers(int count) + * void rlEnableVertexBuffer(unsigned int id) * } */ - public static FunctionDescriptor rlActiveDrawBuffers$descriptor() { - return rlActiveDrawBuffers.DESC; + public static FunctionDescriptor rlEnableVertexBuffer$descriptor() { + return rlEnableVertexBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlActiveDrawBuffers(int count) + * void rlEnableVertexBuffer(unsigned int id) * } */ - public static MethodHandle rlActiveDrawBuffers$handle() { - return rlActiveDrawBuffers.HANDLE; + public static MethodHandle rlEnableVertexBuffer$handle() { + return rlEnableVertexBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlActiveDrawBuffers(int count) + * void rlEnableVertexBuffer(unsigned int id) * } */ - public static MemorySegment rlActiveDrawBuffers$address() { - return rlActiveDrawBuffers.ADDR; + public static MemorySegment rlEnableVertexBuffer$address() { + return rlEnableVertexBuffer.ADDR; } /** * {@snippet lang=c : - * void rlActiveDrawBuffers(int count) + * void rlEnableVertexBuffer(unsigned int id) * } */ - public static void rlActiveDrawBuffers(int count) { - var mh$ = rlActiveDrawBuffers.HANDLE; + public static void rlEnableVertexBuffer(int id) { + var mh$ = rlEnableVertexBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlActiveDrawBuffers", count); + traceDowncall("rlEnableVertexBuffer", id); } - mh$.invokeExact(count); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlBlitFramebuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); + private static class rlDisableVertexBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlBlitFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18613,57 +2484,56 @@ private static class rlBlitFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) + * void rlDisableVertexBuffer() * } */ - public static FunctionDescriptor rlBlitFramebuffer$descriptor() { - return rlBlitFramebuffer.DESC; + public static FunctionDescriptor rlDisableVertexBuffer$descriptor() { + return rlDisableVertexBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) + * void rlDisableVertexBuffer() * } */ - public static MethodHandle rlBlitFramebuffer$handle() { - return rlBlitFramebuffer.HANDLE; + public static MethodHandle rlDisableVertexBuffer$handle() { + return rlDisableVertexBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) + * void rlDisableVertexBuffer() * } */ - public static MemorySegment rlBlitFramebuffer$address() { - return rlBlitFramebuffer.ADDR; + public static MemorySegment rlDisableVertexBuffer$address() { + return rlDisableVertexBuffer.ADDR; } /** * {@snippet lang=c : - * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) + * void rlDisableVertexBuffer() * } */ - public static void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) { - var mh$ = rlBlitFramebuffer.HANDLE; + public static void rlDisableVertexBuffer() { + var mh$ = rlDisableVertexBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlBlitFramebuffer", srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask); + traceDowncall("rlDisableVertexBuffer"); } - mh$.invokeExact(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlBindFramebuffer { + private static class rlEnableVertexBufferElement { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlBindFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexBufferElement"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18671,54 +2541,54 @@ private static class rlBindFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) + * void rlEnableVertexBufferElement(unsigned int id) * } */ - public static FunctionDescriptor rlBindFramebuffer$descriptor() { - return rlBindFramebuffer.DESC; + public static FunctionDescriptor rlEnableVertexBufferElement$descriptor() { + return rlEnableVertexBufferElement.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) + * void rlEnableVertexBufferElement(unsigned int id) * } */ - public static MethodHandle rlBindFramebuffer$handle() { - return rlBindFramebuffer.HANDLE; + public static MethodHandle rlEnableVertexBufferElement$handle() { + return rlEnableVertexBufferElement.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) + * void rlEnableVertexBufferElement(unsigned int id) * } */ - public static MemorySegment rlBindFramebuffer$address() { - return rlBindFramebuffer.ADDR; + public static MemorySegment rlEnableVertexBufferElement$address() { + return rlEnableVertexBufferElement.ADDR; } /** * {@snippet lang=c : - * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) + * void rlEnableVertexBufferElement(unsigned int id) * } */ - public static void rlBindFramebuffer(int target, int framebuffer) { - var mh$ = rlBindFramebuffer.HANDLE; + public static void rlEnableVertexBufferElement(int id) { + var mh$ = rlEnableVertexBufferElement.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlBindFramebuffer", target, framebuffer); + traceDowncall("rlEnableVertexBufferElement", id); } - mh$.invokeExact(target, framebuffer); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableColorBlend { + private static class rlDisableVertexBufferElement { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableColorBlend"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexBufferElement"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18726,43 +2596,43 @@ private static class rlEnableColorBlend { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableColorBlend() + * void rlDisableVertexBufferElement() * } */ - public static FunctionDescriptor rlEnableColorBlend$descriptor() { - return rlEnableColorBlend.DESC; + public static FunctionDescriptor rlDisableVertexBufferElement$descriptor() { + return rlDisableVertexBufferElement.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableColorBlend() + * void rlDisableVertexBufferElement() * } */ - public static MethodHandle rlEnableColorBlend$handle() { - return rlEnableColorBlend.HANDLE; + public static MethodHandle rlDisableVertexBufferElement$handle() { + return rlDisableVertexBufferElement.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableColorBlend() + * void rlDisableVertexBufferElement() * } */ - public static MemorySegment rlEnableColorBlend$address() { - return rlEnableColorBlend.ADDR; + public static MemorySegment rlDisableVertexBufferElement$address() { + return rlDisableVertexBufferElement.ADDR; } /** * {@snippet lang=c : - * void rlEnableColorBlend() + * void rlDisableVertexBufferElement() * } */ - public static void rlEnableColorBlend() { - var mh$ = rlEnableColorBlend.HANDLE; + public static void rlDisableVertexBufferElement() { + var mh$ = rlDisableVertexBufferElement.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableColorBlend"); + traceDowncall("rlDisableVertexBufferElement"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -18770,10 +2640,12 @@ public static void rlEnableColorBlend() { } } - private static class rlDisableColorBlend { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlEnableVertexAttribute { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableColorBlend"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableVertexAttribute"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18781,54 +2653,56 @@ private static class rlDisableColorBlend { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableColorBlend() + * void rlEnableVertexAttribute(unsigned int index) * } */ - public static FunctionDescriptor rlDisableColorBlend$descriptor() { - return rlDisableColorBlend.DESC; + public static FunctionDescriptor rlEnableVertexAttribute$descriptor() { + return rlEnableVertexAttribute.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableColorBlend() + * void rlEnableVertexAttribute(unsigned int index) * } */ - public static MethodHandle rlDisableColorBlend$handle() { - return rlDisableColorBlend.HANDLE; + public static MethodHandle rlEnableVertexAttribute$handle() { + return rlEnableVertexAttribute.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableColorBlend() + * void rlEnableVertexAttribute(unsigned int index) * } */ - public static MemorySegment rlDisableColorBlend$address() { - return rlDisableColorBlend.ADDR; + public static MemorySegment rlEnableVertexAttribute$address() { + return rlEnableVertexAttribute.ADDR; } /** * {@snippet lang=c : - * void rlDisableColorBlend() + * void rlEnableVertexAttribute(unsigned int index) * } */ - public static void rlDisableColorBlend() { - var mh$ = rlDisableColorBlend.HANDLE; + public static void rlEnableVertexAttribute(int index) { + var mh$ = rlEnableVertexAttribute.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableColorBlend"); + traceDowncall("rlEnableVertexAttribute", index); } - mh$.invokeExact(); + mh$.invokeExact(index); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableDepthTest { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlDisableVertexAttribute { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableDepthTest"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableVertexAttribute"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18836,54 +2710,56 @@ private static class rlEnableDepthTest { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableDepthTest() + * void rlDisableVertexAttribute(unsigned int index) * } */ - public static FunctionDescriptor rlEnableDepthTest$descriptor() { - return rlEnableDepthTest.DESC; + public static FunctionDescriptor rlDisableVertexAttribute$descriptor() { + return rlDisableVertexAttribute.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableDepthTest() + * void rlDisableVertexAttribute(unsigned int index) * } */ - public static MethodHandle rlEnableDepthTest$handle() { - return rlEnableDepthTest.HANDLE; + public static MethodHandle rlDisableVertexAttribute$handle() { + return rlDisableVertexAttribute.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableDepthTest() + * void rlDisableVertexAttribute(unsigned int index) * } */ - public static MemorySegment rlEnableDepthTest$address() { - return rlEnableDepthTest.ADDR; + public static MemorySegment rlDisableVertexAttribute$address() { + return rlDisableVertexAttribute.ADDR; } /** * {@snippet lang=c : - * void rlEnableDepthTest() + * void rlDisableVertexAttribute(unsigned int index) * } */ - public static void rlEnableDepthTest() { - var mh$ = rlEnableDepthTest.HANDLE; + public static void rlDisableVertexAttribute(int index) { + var mh$ = rlDisableVertexAttribute.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableDepthTest"); + traceDowncall("rlDisableVertexAttribute", index); } - mh$.invokeExact(); + mh$.invokeExact(index); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableDepthTest { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlActiveTextureSlot { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableDepthTest"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlActiveTextureSlot"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18891,54 +2767,56 @@ private static class rlDisableDepthTest { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableDepthTest() + * void rlActiveTextureSlot(int slot) * } */ - public static FunctionDescriptor rlDisableDepthTest$descriptor() { - return rlDisableDepthTest.DESC; + public static FunctionDescriptor rlActiveTextureSlot$descriptor() { + return rlActiveTextureSlot.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableDepthTest() + * void rlActiveTextureSlot(int slot) * } */ - public static MethodHandle rlDisableDepthTest$handle() { - return rlDisableDepthTest.HANDLE; + public static MethodHandle rlActiveTextureSlot$handle() { + return rlActiveTextureSlot.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableDepthTest() + * void rlActiveTextureSlot(int slot) * } */ - public static MemorySegment rlDisableDepthTest$address() { - return rlDisableDepthTest.ADDR; + public static MemorySegment rlActiveTextureSlot$address() { + return rlActiveTextureSlot.ADDR; } /** * {@snippet lang=c : - * void rlDisableDepthTest() + * void rlActiveTextureSlot(int slot) * } */ - public static void rlDisableDepthTest() { - var mh$ = rlDisableDepthTest.HANDLE; + public static void rlActiveTextureSlot(int slot) { + var mh$ = rlActiveTextureSlot.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableDepthTest"); + traceDowncall("rlActiveTextureSlot", slot); } - mh$.invokeExact(); + mh$.invokeExact(slot); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableDepthMask { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlEnableTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableDepthMask"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18946,54 +2824,54 @@ private static class rlEnableDepthMask { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableDepthMask() + * void rlEnableTexture(unsigned int id) * } */ - public static FunctionDescriptor rlEnableDepthMask$descriptor() { - return rlEnableDepthMask.DESC; + public static FunctionDescriptor rlEnableTexture$descriptor() { + return rlEnableTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableDepthMask() + * void rlEnableTexture(unsigned int id) * } */ - public static MethodHandle rlEnableDepthMask$handle() { - return rlEnableDepthMask.HANDLE; + public static MethodHandle rlEnableTexture$handle() { + return rlEnableTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableDepthMask() + * void rlEnableTexture(unsigned int id) * } */ - public static MemorySegment rlEnableDepthMask$address() { - return rlEnableDepthMask.ADDR; + public static MemorySegment rlEnableTexture$address() { + return rlEnableTexture.ADDR; } /** * {@snippet lang=c : - * void rlEnableDepthMask() + * void rlEnableTexture(unsigned int id) * } */ - public static void rlEnableDepthMask() { - var mh$ = rlEnableDepthMask.HANDLE; + public static void rlEnableTexture(int id) { + var mh$ = rlEnableTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableDepthMask"); + traceDowncall("rlEnableTexture", id); } - mh$.invokeExact(); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableDepthMask { + private static class rlDisableTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableDepthMask"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19001,43 +2879,43 @@ private static class rlDisableDepthMask { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableDepthMask() + * void rlDisableTexture() * } */ - public static FunctionDescriptor rlDisableDepthMask$descriptor() { - return rlDisableDepthMask.DESC; + public static FunctionDescriptor rlDisableTexture$descriptor() { + return rlDisableTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableDepthMask() + * void rlDisableTexture() * } */ - public static MethodHandle rlDisableDepthMask$handle() { - return rlDisableDepthMask.HANDLE; + public static MethodHandle rlDisableTexture$handle() { + return rlDisableTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableDepthMask() + * void rlDisableTexture() * } */ - public static MemorySegment rlDisableDepthMask$address() { - return rlDisableDepthMask.ADDR; + public static MemorySegment rlDisableTexture$address() { + return rlDisableTexture.ADDR; } /** * {@snippet lang=c : - * void rlDisableDepthMask() + * void rlDisableTexture() * } */ - public static void rlDisableDepthMask() { - var mh$ = rlDisableDepthMask.HANDLE; + public static void rlDisableTexture() { + var mh$ = rlDisableTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableDepthMask"); + traceDowncall("rlDisableTexture"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19045,10 +2923,12 @@ public static void rlDisableDepthMask() { } } - private static class rlEnableBackfaceCulling { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlEnableTextureCubemap { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableBackfaceCulling"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableTextureCubemap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19056,54 +2936,54 @@ private static class rlEnableBackfaceCulling { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableBackfaceCulling() + * void rlEnableTextureCubemap(unsigned int id) * } */ - public static FunctionDescriptor rlEnableBackfaceCulling$descriptor() { - return rlEnableBackfaceCulling.DESC; + public static FunctionDescriptor rlEnableTextureCubemap$descriptor() { + return rlEnableTextureCubemap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableBackfaceCulling() + * void rlEnableTextureCubemap(unsigned int id) * } */ - public static MethodHandle rlEnableBackfaceCulling$handle() { - return rlEnableBackfaceCulling.HANDLE; + public static MethodHandle rlEnableTextureCubemap$handle() { + return rlEnableTextureCubemap.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableBackfaceCulling() + * void rlEnableTextureCubemap(unsigned int id) * } */ - public static MemorySegment rlEnableBackfaceCulling$address() { - return rlEnableBackfaceCulling.ADDR; + public static MemorySegment rlEnableTextureCubemap$address() { + return rlEnableTextureCubemap.ADDR; } /** * {@snippet lang=c : - * void rlEnableBackfaceCulling() + * void rlEnableTextureCubemap(unsigned int id) * } */ - public static void rlEnableBackfaceCulling() { - var mh$ = rlEnableBackfaceCulling.HANDLE; + public static void rlEnableTextureCubemap(int id) { + var mh$ = rlEnableTextureCubemap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableBackfaceCulling"); + traceDowncall("rlEnableTextureCubemap", id); } - mh$.invokeExact(); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableBackfaceCulling { + private static class rlDisableTextureCubemap { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableBackfaceCulling"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableTextureCubemap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19111,43 +2991,43 @@ private static class rlDisableBackfaceCulling { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableBackfaceCulling() + * void rlDisableTextureCubemap() * } */ - public static FunctionDescriptor rlDisableBackfaceCulling$descriptor() { - return rlDisableBackfaceCulling.DESC; + public static FunctionDescriptor rlDisableTextureCubemap$descriptor() { + return rlDisableTextureCubemap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableBackfaceCulling() + * void rlDisableTextureCubemap() * } */ - public static MethodHandle rlDisableBackfaceCulling$handle() { - return rlDisableBackfaceCulling.HANDLE; + public static MethodHandle rlDisableTextureCubemap$handle() { + return rlDisableTextureCubemap.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableBackfaceCulling() + * void rlDisableTextureCubemap() * } */ - public static MemorySegment rlDisableBackfaceCulling$address() { - return rlDisableBackfaceCulling.ADDR; + public static MemorySegment rlDisableTextureCubemap$address() { + return rlDisableTextureCubemap.ADDR; } /** * {@snippet lang=c : - * void rlDisableBackfaceCulling() + * void rlDisableTextureCubemap() * } */ - public static void rlDisableBackfaceCulling() { - var mh$ = rlDisableBackfaceCulling.HANDLE; + public static void rlDisableTextureCubemap() { + var mh$ = rlDisableTextureCubemap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableBackfaceCulling"); + traceDowncall("rlDisableTextureCubemap"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19155,15 +3035,14 @@ public static void rlDisableBackfaceCulling() { } } - private static class rlColorMask { + private static class rlTextureParameters { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_BOOL, - raylib.C_BOOL, - raylib.C_BOOL, - raylib.C_BOOL + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlColorMask"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlTextureParameters"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19171,56 +3050,58 @@ private static class rlColorMask { /** * Function descriptor for: * {@snippet lang=c : - * void rlColorMask(bool r, bool g, bool b, bool a) + * void rlTextureParameters(unsigned int id, int param, int value) * } */ - public static FunctionDescriptor rlColorMask$descriptor() { - return rlColorMask.DESC; + public static FunctionDescriptor rlTextureParameters$descriptor() { + return rlTextureParameters.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlColorMask(bool r, bool g, bool b, bool a) + * void rlTextureParameters(unsigned int id, int param, int value) * } */ - public static MethodHandle rlColorMask$handle() { - return rlColorMask.HANDLE; + public static MethodHandle rlTextureParameters$handle() { + return rlTextureParameters.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlColorMask(bool r, bool g, bool b, bool a) + * void rlTextureParameters(unsigned int id, int param, int value) * } */ - public static MemorySegment rlColorMask$address() { - return rlColorMask.ADDR; + public static MemorySegment rlTextureParameters$address() { + return rlTextureParameters.ADDR; } /** * {@snippet lang=c : - * void rlColorMask(bool r, bool g, bool b, bool a) + * void rlTextureParameters(unsigned int id, int param, int value) * } */ - public static void rlColorMask(boolean r, boolean g, boolean b, boolean a) { - var mh$ = rlColorMask.HANDLE; + public static void rlTextureParameters(int id, int param, int value) { + var mh$ = rlTextureParameters.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlColorMask", r, g, b, a); + traceDowncall("rlTextureParameters", id, param, value); } - mh$.invokeExact(r, g, b, a); + mh$.invokeExact(id, param, value); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetCullFace { + private static class rlCubemapParameters { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetCullFace"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlCubemapParameters"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19228,54 +3109,56 @@ private static class rlSetCullFace { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetCullFace(int mode) + * void rlCubemapParameters(unsigned int id, int param, int value) * } */ - public static FunctionDescriptor rlSetCullFace$descriptor() { - return rlSetCullFace.DESC; + public static FunctionDescriptor rlCubemapParameters$descriptor() { + return rlCubemapParameters.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetCullFace(int mode) + * void rlCubemapParameters(unsigned int id, int param, int value) * } */ - public static MethodHandle rlSetCullFace$handle() { - return rlSetCullFace.HANDLE; + public static MethodHandle rlCubemapParameters$handle() { + return rlCubemapParameters.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetCullFace(int mode) + * void rlCubemapParameters(unsigned int id, int param, int value) * } */ - public static MemorySegment rlSetCullFace$address() { - return rlSetCullFace.ADDR; + public static MemorySegment rlCubemapParameters$address() { + return rlCubemapParameters.ADDR; } /** * {@snippet lang=c : - * void rlSetCullFace(int mode) + * void rlCubemapParameters(unsigned int id, int param, int value) * } */ - public static void rlSetCullFace(int mode) { - var mh$ = rlSetCullFace.HANDLE; + public static void rlCubemapParameters(int id, int param, int value) { + var mh$ = rlCubemapParameters.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetCullFace", mode); + traceDowncall("rlCubemapParameters", id, param, value); } - mh$.invokeExact(mode); + mh$.invokeExact(id, param, value); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableScissorTest { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlEnableShader { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableScissorTest"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableShader"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19283,54 +3166,54 @@ private static class rlEnableScissorTest { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableScissorTest() + * void rlEnableShader(unsigned int id) * } */ - public static FunctionDescriptor rlEnableScissorTest$descriptor() { - return rlEnableScissorTest.DESC; + public static FunctionDescriptor rlEnableShader$descriptor() { + return rlEnableShader.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableScissorTest() + * void rlEnableShader(unsigned int id) * } */ - public static MethodHandle rlEnableScissorTest$handle() { - return rlEnableScissorTest.HANDLE; + public static MethodHandle rlEnableShader$handle() { + return rlEnableShader.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableScissorTest() + * void rlEnableShader(unsigned int id) * } */ - public static MemorySegment rlEnableScissorTest$address() { - return rlEnableScissorTest.ADDR; + public static MemorySegment rlEnableShader$address() { + return rlEnableShader.ADDR; } /** * {@snippet lang=c : - * void rlEnableScissorTest() + * void rlEnableShader(unsigned int id) * } */ - public static void rlEnableScissorTest() { - var mh$ = rlEnableScissorTest.HANDLE; + public static void rlEnableShader(int id) { + var mh$ = rlEnableShader.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableScissorTest"); + traceDowncall("rlEnableShader", id); } - mh$.invokeExact(); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableScissorTest { + private static class rlDisableShader { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableScissorTest"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableShader"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19338,43 +3221,43 @@ private static class rlDisableScissorTest { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableScissorTest() + * void rlDisableShader() * } */ - public static FunctionDescriptor rlDisableScissorTest$descriptor() { - return rlDisableScissorTest.DESC; + public static FunctionDescriptor rlDisableShader$descriptor() { + return rlDisableShader.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableScissorTest() + * void rlDisableShader() * } */ - public static MethodHandle rlDisableScissorTest$handle() { - return rlDisableScissorTest.HANDLE; + public static MethodHandle rlDisableShader$handle() { + return rlDisableShader.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableScissorTest() + * void rlDisableShader() * } */ - public static MemorySegment rlDisableScissorTest$address() { - return rlDisableScissorTest.ADDR; + public static MemorySegment rlDisableShader$address() { + return rlDisableShader.ADDR; } /** * {@snippet lang=c : - * void rlDisableScissorTest() + * void rlDisableShader() * } */ - public static void rlDisableScissorTest() { - var mh$ = rlDisableScissorTest.HANDLE; + public static void rlDisableShader() { + var mh$ = rlDisableShader.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableScissorTest"); + traceDowncall("rlDisableShader"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19382,15 +3265,12 @@ public static void rlDisableScissorTest() { } } - private static class rlScissor { + private static class rlEnableFramebuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlScissor"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19398,54 +3278,54 @@ private static class rlScissor { /** * Function descriptor for: * {@snippet lang=c : - * void rlScissor(int x, int y, int width, int height) + * void rlEnableFramebuffer(unsigned int id) * } */ - public static FunctionDescriptor rlScissor$descriptor() { - return rlScissor.DESC; + public static FunctionDescriptor rlEnableFramebuffer$descriptor() { + return rlEnableFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlScissor(int x, int y, int width, int height) + * void rlEnableFramebuffer(unsigned int id) * } */ - public static MethodHandle rlScissor$handle() { - return rlScissor.HANDLE; + public static MethodHandle rlEnableFramebuffer$handle() { + return rlEnableFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlScissor(int x, int y, int width, int height) + * void rlEnableFramebuffer(unsigned int id) * } */ - public static MemorySegment rlScissor$address() { - return rlScissor.ADDR; + public static MemorySegment rlEnableFramebuffer$address() { + return rlEnableFramebuffer.ADDR; } /** * {@snippet lang=c : - * void rlScissor(int x, int y, int width, int height) + * void rlEnableFramebuffer(unsigned int id) * } */ - public static void rlScissor(int x, int y, int width, int height) { - var mh$ = rlScissor.HANDLE; + public static void rlEnableFramebuffer(int id) { + var mh$ = rlEnableFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlScissor", x, y, width, height); + traceDowncall("rlEnableFramebuffer", id); } - mh$.invokeExact(x, y, width, height); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableWireMode { + private static class rlDisableFramebuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableWireMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19453,43 +3333,43 @@ private static class rlEnableWireMode { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableWireMode() + * void rlDisableFramebuffer() * } */ - public static FunctionDescriptor rlEnableWireMode$descriptor() { - return rlEnableWireMode.DESC; + public static FunctionDescriptor rlDisableFramebuffer$descriptor() { + return rlDisableFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableWireMode() + * void rlDisableFramebuffer() * } */ - public static MethodHandle rlEnableWireMode$handle() { - return rlEnableWireMode.HANDLE; + public static MethodHandle rlDisableFramebuffer$handle() { + return rlDisableFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableWireMode() + * void rlDisableFramebuffer() * } */ - public static MemorySegment rlEnableWireMode$address() { - return rlEnableWireMode.ADDR; + public static MemorySegment rlDisableFramebuffer$address() { + return rlDisableFramebuffer.ADDR; } /** * {@snippet lang=c : - * void rlEnableWireMode() + * void rlDisableFramebuffer() * } */ - public static void rlEnableWireMode() { - var mh$ = rlEnableWireMode.HANDLE; + public static void rlDisableFramebuffer() { + var mh$ = rlDisableFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableWireMode"); + traceDowncall("rlDisableFramebuffer"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19497,10 +3377,11 @@ public static void rlEnableWireMode() { } } - private static class rlEnablePointMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlGetActiveFramebuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnablePointMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetActiveFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19508,54 +3389,56 @@ private static class rlEnablePointMode { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnablePointMode() + * unsigned int rlGetActiveFramebuffer() * } */ - public static FunctionDescriptor rlEnablePointMode$descriptor() { - return rlEnablePointMode.DESC; + public static FunctionDescriptor rlGetActiveFramebuffer$descriptor() { + return rlGetActiveFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnablePointMode() + * unsigned int rlGetActiveFramebuffer() * } */ - public static MethodHandle rlEnablePointMode$handle() { - return rlEnablePointMode.HANDLE; + public static MethodHandle rlGetActiveFramebuffer$handle() { + return rlGetActiveFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnablePointMode() + * unsigned int rlGetActiveFramebuffer() * } */ - public static MemorySegment rlEnablePointMode$address() { - return rlEnablePointMode.ADDR; + public static MemorySegment rlGetActiveFramebuffer$address() { + return rlGetActiveFramebuffer.ADDR; } /** * {@snippet lang=c : - * void rlEnablePointMode() + * unsigned int rlGetActiveFramebuffer() * } */ - public static void rlEnablePointMode() { - var mh$ = rlEnablePointMode.HANDLE; + public static int rlGetActiveFramebuffer() { + var mh$ = rlGetActiveFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnablePointMode"); + traceDowncall("rlGetActiveFramebuffer"); } - mh$.invokeExact(); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDisableWireMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlActiveDrawBuffers { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableWireMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlActiveDrawBuffers"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19563,56 +3446,64 @@ private static class rlDisableWireMode { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableWireMode() + * void rlActiveDrawBuffers(int count) * } */ - public static FunctionDescriptor rlDisableWireMode$descriptor() { - return rlDisableWireMode.DESC; + public static FunctionDescriptor rlActiveDrawBuffers$descriptor() { + return rlActiveDrawBuffers.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableWireMode() + * void rlActiveDrawBuffers(int count) * } */ - public static MethodHandle rlDisableWireMode$handle() { - return rlDisableWireMode.HANDLE; + public static MethodHandle rlActiveDrawBuffers$handle() { + return rlActiveDrawBuffers.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableWireMode() + * void rlActiveDrawBuffers(int count) * } */ - public static MemorySegment rlDisableWireMode$address() { - return rlDisableWireMode.ADDR; + public static MemorySegment rlActiveDrawBuffers$address() { + return rlActiveDrawBuffers.ADDR; } /** * {@snippet lang=c : - * void rlDisableWireMode() + * void rlActiveDrawBuffers(int count) * } */ - public static void rlDisableWireMode() { - var mh$ = rlDisableWireMode.HANDLE; + public static void rlActiveDrawBuffers(int count) { + var mh$ = rlActiveDrawBuffers.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableWireMode"); + traceDowncall("rlActiveDrawBuffers", count); } - mh$.invokeExact(); + mh$.invokeExact(count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetLineWidth { + private static class rlBlitFramebuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetLineWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlBlitFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19620,55 +3511,57 @@ private static class rlSetLineWidth { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetLineWidth(float width) + * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) * } */ - public static FunctionDescriptor rlSetLineWidth$descriptor() { - return rlSetLineWidth.DESC; + public static FunctionDescriptor rlBlitFramebuffer$descriptor() { + return rlBlitFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetLineWidth(float width) + * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) * } */ - public static MethodHandle rlSetLineWidth$handle() { - return rlSetLineWidth.HANDLE; + public static MethodHandle rlBlitFramebuffer$handle() { + return rlBlitFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetLineWidth(float width) + * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) * } */ - public static MemorySegment rlSetLineWidth$address() { - return rlSetLineWidth.ADDR; + public static MemorySegment rlBlitFramebuffer$address() { + return rlBlitFramebuffer.ADDR; } /** * {@snippet lang=c : - * void rlSetLineWidth(float width) + * void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) * } */ - public static void rlSetLineWidth(float width) { - var mh$ = rlSetLineWidth.HANDLE; + public static void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask) { + var mh$ = rlBlitFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetLineWidth", width); + traceDowncall("rlBlitFramebuffer", srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask); } - mh$.invokeExact(width); + mh$.invokeExact(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetLineWidth { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); + private static class rlBindFramebuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetLineWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlBindFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19676,54 +3569,54 @@ private static class rlGetLineWidth { /** * Function descriptor for: * {@snippet lang=c : - * float rlGetLineWidth() + * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) * } */ - public static FunctionDescriptor rlGetLineWidth$descriptor() { - return rlGetLineWidth.DESC; + public static FunctionDescriptor rlBindFramebuffer$descriptor() { + return rlBindFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float rlGetLineWidth() + * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) * } */ - public static MethodHandle rlGetLineWidth$handle() { - return rlGetLineWidth.HANDLE; + public static MethodHandle rlBindFramebuffer$handle() { + return rlBindFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * float rlGetLineWidth() + * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) * } */ - public static MemorySegment rlGetLineWidth$address() { - return rlGetLineWidth.ADDR; + public static MemorySegment rlBindFramebuffer$address() { + return rlBindFramebuffer.ADDR; } /** * {@snippet lang=c : - * float rlGetLineWidth() + * void rlBindFramebuffer(unsigned int target, unsigned int framebuffer) * } */ - public static float rlGetLineWidth() { - var mh$ = rlGetLineWidth.HANDLE; + public static void rlBindFramebuffer(int target, int framebuffer) { + var mh$ = rlBindFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetLineWidth"); + traceDowncall("rlBindFramebuffer", target, framebuffer); } - return (float)mh$.invokeExact(); + mh$.invokeExact(target, framebuffer); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlEnableSmoothLines { + private static class rlEnableColorBlend { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableSmoothLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableColorBlend"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19731,43 +3624,43 @@ private static class rlEnableSmoothLines { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableSmoothLines() + * void rlEnableColorBlend() * } */ - public static FunctionDescriptor rlEnableSmoothLines$descriptor() { - return rlEnableSmoothLines.DESC; + public static FunctionDescriptor rlEnableColorBlend$descriptor() { + return rlEnableColorBlend.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableSmoothLines() + * void rlEnableColorBlend() * } */ - public static MethodHandle rlEnableSmoothLines$handle() { - return rlEnableSmoothLines.HANDLE; + public static MethodHandle rlEnableColorBlend$handle() { + return rlEnableColorBlend.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableSmoothLines() + * void rlEnableColorBlend() * } */ - public static MemorySegment rlEnableSmoothLines$address() { - return rlEnableSmoothLines.ADDR; + public static MemorySegment rlEnableColorBlend$address() { + return rlEnableColorBlend.ADDR; } /** * {@snippet lang=c : - * void rlEnableSmoothLines() + * void rlEnableColorBlend() * } */ - public static void rlEnableSmoothLines() { - var mh$ = rlEnableSmoothLines.HANDLE; + public static void rlEnableColorBlend() { + var mh$ = rlEnableColorBlend.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableSmoothLines"); + traceDowncall("rlEnableColorBlend"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19775,10 +3668,10 @@ public static void rlEnableSmoothLines() { } } - private static class rlDisableSmoothLines { + private static class rlDisableColorBlend { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableSmoothLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableColorBlend"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19786,43 +3679,43 @@ private static class rlDisableSmoothLines { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableSmoothLines() + * void rlDisableColorBlend() * } */ - public static FunctionDescriptor rlDisableSmoothLines$descriptor() { - return rlDisableSmoothLines.DESC; + public static FunctionDescriptor rlDisableColorBlend$descriptor() { + return rlDisableColorBlend.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableSmoothLines() + * void rlDisableColorBlend() * } */ - public static MethodHandle rlDisableSmoothLines$handle() { - return rlDisableSmoothLines.HANDLE; + public static MethodHandle rlDisableColorBlend$handle() { + return rlDisableColorBlend.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableSmoothLines() + * void rlDisableColorBlend() * } */ - public static MemorySegment rlDisableSmoothLines$address() { - return rlDisableSmoothLines.ADDR; + public static MemorySegment rlDisableColorBlend$address() { + return rlDisableColorBlend.ADDR; } /** * {@snippet lang=c : - * void rlDisableSmoothLines() + * void rlDisableColorBlend() * } */ - public static void rlDisableSmoothLines() { - var mh$ = rlDisableSmoothLines.HANDLE; + public static void rlDisableColorBlend() { + var mh$ = rlDisableColorBlend.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableSmoothLines"); + traceDowncall("rlDisableColorBlend"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19830,10 +3723,10 @@ public static void rlDisableSmoothLines() { } } - private static class rlEnableStereoRender { + private static class rlEnableDepthTest { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableStereoRender"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableDepthTest"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19841,43 +3734,43 @@ private static class rlEnableStereoRender { /** * Function descriptor for: * {@snippet lang=c : - * void rlEnableStereoRender() + * void rlEnableDepthTest() * } */ - public static FunctionDescriptor rlEnableStereoRender$descriptor() { - return rlEnableStereoRender.DESC; + public static FunctionDescriptor rlEnableDepthTest$descriptor() { + return rlEnableDepthTest.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlEnableStereoRender() + * void rlEnableDepthTest() * } */ - public static MethodHandle rlEnableStereoRender$handle() { - return rlEnableStereoRender.HANDLE; + public static MethodHandle rlEnableDepthTest$handle() { + return rlEnableDepthTest.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlEnableStereoRender() + * void rlEnableDepthTest() * } */ - public static MemorySegment rlEnableStereoRender$address() { - return rlEnableStereoRender.ADDR; + public static MemorySegment rlEnableDepthTest$address() { + return rlEnableDepthTest.ADDR; } /** * {@snippet lang=c : - * void rlEnableStereoRender() + * void rlEnableDepthTest() * } */ - public static void rlEnableStereoRender() { - var mh$ = rlEnableStereoRender.HANDLE; + public static void rlEnableDepthTest() { + var mh$ = rlEnableDepthTest.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlEnableStereoRender"); + traceDowncall("rlEnableDepthTest"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19885,10 +3778,10 @@ public static void rlEnableStereoRender() { } } - private static class rlDisableStereoRender { + private static class rlDisableDepthTest { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableStereoRender"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableDepthTest"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19896,43 +3789,43 @@ private static class rlDisableStereoRender { /** * Function descriptor for: * {@snippet lang=c : - * void rlDisableStereoRender() + * void rlDisableDepthTest() * } */ - public static FunctionDescriptor rlDisableStereoRender$descriptor() { - return rlDisableStereoRender.DESC; + public static FunctionDescriptor rlDisableDepthTest$descriptor() { + return rlDisableDepthTest.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDisableStereoRender() + * void rlDisableDepthTest() * } */ - public static MethodHandle rlDisableStereoRender$handle() { - return rlDisableStereoRender.HANDLE; + public static MethodHandle rlDisableDepthTest$handle() { + return rlDisableDepthTest.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDisableStereoRender() + * void rlDisableDepthTest() * } */ - public static MemorySegment rlDisableStereoRender$address() { - return rlDisableStereoRender.ADDR; + public static MemorySegment rlDisableDepthTest$address() { + return rlDisableDepthTest.ADDR; } /** * {@snippet lang=c : - * void rlDisableStereoRender() + * void rlDisableDepthTest() * } */ - public static void rlDisableStereoRender() { - var mh$ = rlDisableStereoRender.HANDLE; + public static void rlDisableDepthTest() { + var mh$ = rlDisableDepthTest.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDisableStereoRender"); + traceDowncall("rlDisableDepthTest"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -19940,11 +3833,10 @@ public static void rlDisableStereoRender() { } } - private static class rlIsStereoRenderEnabled { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + private static class rlEnableDepthMask { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlIsStereoRenderEnabled"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableDepthMask"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19952,59 +3844,54 @@ private static class rlIsStereoRenderEnabled { /** * Function descriptor for: * {@snippet lang=c : - * bool rlIsStereoRenderEnabled() + * void rlEnableDepthMask() * } */ - public static FunctionDescriptor rlIsStereoRenderEnabled$descriptor() { - return rlIsStereoRenderEnabled.DESC; + public static FunctionDescriptor rlEnableDepthMask$descriptor() { + return rlEnableDepthMask.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool rlIsStereoRenderEnabled() + * void rlEnableDepthMask() * } */ - public static MethodHandle rlIsStereoRenderEnabled$handle() { - return rlIsStereoRenderEnabled.HANDLE; + public static MethodHandle rlEnableDepthMask$handle() { + return rlEnableDepthMask.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool rlIsStereoRenderEnabled() + * void rlEnableDepthMask() * } */ - public static MemorySegment rlIsStereoRenderEnabled$address() { - return rlIsStereoRenderEnabled.ADDR; + public static MemorySegment rlEnableDepthMask$address() { + return rlEnableDepthMask.ADDR; } /** * {@snippet lang=c : - * bool rlIsStereoRenderEnabled() + * void rlEnableDepthMask() * } */ - public static boolean rlIsStereoRenderEnabled() { - var mh$ = rlIsStereoRenderEnabled.HANDLE; + public static void rlEnableDepthMask() { + var mh$ = rlEnableDepthMask.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlIsStereoRenderEnabled"); + traceDowncall("rlEnableDepthMask"); } - return (boolean)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlClearColor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_CHAR, - raylib.C_CHAR, - raylib.C_CHAR, - raylib.C_CHAR - ); + private static class rlDisableDepthMask { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlClearColor"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableDepthMask"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20012,54 +3899,54 @@ private static class rlClearColor { /** * Function descriptor for: * {@snippet lang=c : - * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlDisableDepthMask() * } */ - public static FunctionDescriptor rlClearColor$descriptor() { - return rlClearColor.DESC; + public static FunctionDescriptor rlDisableDepthMask$descriptor() { + return rlDisableDepthMask.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlDisableDepthMask() * } */ - public static MethodHandle rlClearColor$handle() { - return rlClearColor.HANDLE; + public static MethodHandle rlDisableDepthMask$handle() { + return rlDisableDepthMask.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlDisableDepthMask() * } */ - public static MemorySegment rlClearColor$address() { - return rlClearColor.ADDR; + public static MemorySegment rlDisableDepthMask$address() { + return rlDisableDepthMask.ADDR; } /** * {@snippet lang=c : - * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) + * void rlDisableDepthMask() * } */ - public static void rlClearColor(byte r, byte g, byte b, byte a) { - var mh$ = rlClearColor.HANDLE; + public static void rlDisableDepthMask() { + var mh$ = rlDisableDepthMask.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlClearColor", r, g, b, a); + traceDowncall("rlDisableDepthMask"); } - mh$.invokeExact(r, g, b, a); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlClearScreenBuffers { + private static class rlEnableBackfaceCulling { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlClearScreenBuffers"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableBackfaceCulling"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20067,43 +3954,43 @@ private static class rlClearScreenBuffers { /** * Function descriptor for: * {@snippet lang=c : - * void rlClearScreenBuffers() + * void rlEnableBackfaceCulling() * } */ - public static FunctionDescriptor rlClearScreenBuffers$descriptor() { - return rlClearScreenBuffers.DESC; + public static FunctionDescriptor rlEnableBackfaceCulling$descriptor() { + return rlEnableBackfaceCulling.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlClearScreenBuffers() + * void rlEnableBackfaceCulling() * } */ - public static MethodHandle rlClearScreenBuffers$handle() { - return rlClearScreenBuffers.HANDLE; + public static MethodHandle rlEnableBackfaceCulling$handle() { + return rlEnableBackfaceCulling.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlClearScreenBuffers() + * void rlEnableBackfaceCulling() * } */ - public static MemorySegment rlClearScreenBuffers$address() { - return rlClearScreenBuffers.ADDR; + public static MemorySegment rlEnableBackfaceCulling$address() { + return rlEnableBackfaceCulling.ADDR; } /** * {@snippet lang=c : - * void rlClearScreenBuffers() + * void rlEnableBackfaceCulling() * } */ - public static void rlClearScreenBuffers() { - var mh$ = rlClearScreenBuffers.HANDLE; + public static void rlEnableBackfaceCulling() { + var mh$ = rlEnableBackfaceCulling.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlClearScreenBuffers"); + traceDowncall("rlEnableBackfaceCulling"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -20111,10 +3998,10 @@ public static void rlClearScreenBuffers() { } } - private static class rlCheckErrors { + private static class rlDisableBackfaceCulling { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlCheckErrors"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableBackfaceCulling"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20122,43 +4009,43 @@ private static class rlCheckErrors { /** * Function descriptor for: * {@snippet lang=c : - * void rlCheckErrors() + * void rlDisableBackfaceCulling() * } */ - public static FunctionDescriptor rlCheckErrors$descriptor() { - return rlCheckErrors.DESC; + public static FunctionDescriptor rlDisableBackfaceCulling$descriptor() { + return rlDisableBackfaceCulling.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlCheckErrors() + * void rlDisableBackfaceCulling() * } */ - public static MethodHandle rlCheckErrors$handle() { - return rlCheckErrors.HANDLE; + public static MethodHandle rlDisableBackfaceCulling$handle() { + return rlDisableBackfaceCulling.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlCheckErrors() + * void rlDisableBackfaceCulling() * } */ - public static MemorySegment rlCheckErrors$address() { - return rlCheckErrors.ADDR; + public static MemorySegment rlDisableBackfaceCulling$address() { + return rlDisableBackfaceCulling.ADDR; } /** * {@snippet lang=c : - * void rlCheckErrors() + * void rlDisableBackfaceCulling() * } */ - public static void rlCheckErrors() { - var mh$ = rlCheckErrors.HANDLE; + public static void rlDisableBackfaceCulling() { + var mh$ = rlDisableBackfaceCulling.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlCheckErrors"); + traceDowncall("rlDisableBackfaceCulling"); } mh$.invokeExact(); } catch (Throwable ex$) { @@ -20166,12 +4053,15 @@ public static void rlCheckErrors() { } } - private static class rlSetBlendMode { + private static class rlColorMask { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + raylib.C_BOOL, + raylib.C_BOOL, + raylib.C_BOOL, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetBlendMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlColorMask"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20179,58 +4069,56 @@ private static class rlSetBlendMode { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetBlendMode(int mode) + * void rlColorMask(bool r, bool g, bool b, bool a) * } */ - public static FunctionDescriptor rlSetBlendMode$descriptor() { - return rlSetBlendMode.DESC; + public static FunctionDescriptor rlColorMask$descriptor() { + return rlColorMask.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetBlendMode(int mode) + * void rlColorMask(bool r, bool g, bool b, bool a) * } */ - public static MethodHandle rlSetBlendMode$handle() { - return rlSetBlendMode.HANDLE; + public static MethodHandle rlColorMask$handle() { + return rlColorMask.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetBlendMode(int mode) + * void rlColorMask(bool r, bool g, bool b, bool a) * } */ - public static MemorySegment rlSetBlendMode$address() { - return rlSetBlendMode.ADDR; + public static MemorySegment rlColorMask$address() { + return rlColorMask.ADDR; } /** * {@snippet lang=c : - * void rlSetBlendMode(int mode) + * void rlColorMask(bool r, bool g, bool b, bool a) * } */ - public static void rlSetBlendMode(int mode) { - var mh$ = rlSetBlendMode.HANDLE; + public static void rlColorMask(boolean r, boolean g, boolean b, boolean a) { + var mh$ = rlColorMask.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetBlendMode", mode); + traceDowncall("rlColorMask", r, g, b, a); } - mh$.invokeExact(mode); + mh$.invokeExact(r, g, b, a); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetBlendFactors { + private static class rlSetCullFace { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetBlendFactors"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetCullFace"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20238,61 +4126,54 @@ private static class rlSetBlendFactors { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) + * void rlSetCullFace(int mode) * } */ - public static FunctionDescriptor rlSetBlendFactors$descriptor() { - return rlSetBlendFactors.DESC; + public static FunctionDescriptor rlSetCullFace$descriptor() { + return rlSetCullFace.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) + * void rlSetCullFace(int mode) * } */ - public static MethodHandle rlSetBlendFactors$handle() { - return rlSetBlendFactors.HANDLE; + public static MethodHandle rlSetCullFace$handle() { + return rlSetCullFace.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) + * void rlSetCullFace(int mode) * } */ - public static MemorySegment rlSetBlendFactors$address() { - return rlSetBlendFactors.ADDR; + public static MemorySegment rlSetCullFace$address() { + return rlSetCullFace.ADDR; } /** * {@snippet lang=c : - * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) + * void rlSetCullFace(int mode) * } */ - public static void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) { - var mh$ = rlSetBlendFactors.HANDLE; + public static void rlSetCullFace(int mode) { + var mh$ = rlSetCullFace.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetBlendFactors", glSrcFactor, glDstFactor, glEquation); + traceDowncall("rlSetCullFace", mode); } - mh$.invokeExact(glSrcFactor, glDstFactor, glEquation); + mh$.invokeExact(mode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetBlendFactorsSeparate { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT - ); + private static class rlEnableScissorTest { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetBlendFactorsSeparate"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableScissorTest"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20300,57 +4181,54 @@ private static class rlSetBlendFactorsSeparate { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) + * void rlEnableScissorTest() * } */ - public static FunctionDescriptor rlSetBlendFactorsSeparate$descriptor() { - return rlSetBlendFactorsSeparate.DESC; + public static FunctionDescriptor rlEnableScissorTest$descriptor() { + return rlEnableScissorTest.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) + * void rlEnableScissorTest() * } */ - public static MethodHandle rlSetBlendFactorsSeparate$handle() { - return rlSetBlendFactorsSeparate.HANDLE; + public static MethodHandle rlEnableScissorTest$handle() { + return rlEnableScissorTest.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) + * void rlEnableScissorTest() * } */ - public static MemorySegment rlSetBlendFactorsSeparate$address() { - return rlSetBlendFactorsSeparate.ADDR; + public static MemorySegment rlEnableScissorTest$address() { + return rlEnableScissorTest.ADDR; } /** * {@snippet lang=c : - * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) + * void rlEnableScissorTest() * } */ - public static void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) { - var mh$ = rlSetBlendFactorsSeparate.HANDLE; + public static void rlEnableScissorTest() { + var mh$ = rlEnableScissorTest.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetBlendFactorsSeparate", glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha); + traceDowncall("rlEnableScissorTest"); } - mh$.invokeExact(glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlglInit { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT - ); + private static class rlDisableScissorTest { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlglInit"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableScissorTest"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20358,54 +4236,59 @@ private static class rlglInit { /** * Function descriptor for: * {@snippet lang=c : - * void rlglInit(int width, int height) + * void rlDisableScissorTest() * } */ - public static FunctionDescriptor rlglInit$descriptor() { - return rlglInit.DESC; + public static FunctionDescriptor rlDisableScissorTest$descriptor() { + return rlDisableScissorTest.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlglInit(int width, int height) + * void rlDisableScissorTest() * } */ - public static MethodHandle rlglInit$handle() { - return rlglInit.HANDLE; + public static MethodHandle rlDisableScissorTest$handle() { + return rlDisableScissorTest.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlglInit(int width, int height) + * void rlDisableScissorTest() * } */ - public static MemorySegment rlglInit$address() { - return rlglInit.ADDR; + public static MemorySegment rlDisableScissorTest$address() { + return rlDisableScissorTest.ADDR; } /** * {@snippet lang=c : - * void rlglInit(int width, int height) + * void rlDisableScissorTest() * } */ - public static void rlglInit(int width, int height) { - var mh$ = rlglInit.HANDLE; + public static void rlDisableScissorTest() { + var mh$ = rlDisableScissorTest.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlglInit", width, height); + traceDowncall("rlDisableScissorTest"); } - mh$.invokeExact(width, height); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlglClose { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlScissor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlglClose"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlScissor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20413,56 +4296,54 @@ private static class rlglClose { /** * Function descriptor for: * {@snippet lang=c : - * void rlglClose() + * void rlScissor(int x, int y, int width, int height) * } */ - public static FunctionDescriptor rlglClose$descriptor() { - return rlglClose.DESC; + public static FunctionDescriptor rlScissor$descriptor() { + return rlScissor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlglClose() + * void rlScissor(int x, int y, int width, int height) * } */ - public static MethodHandle rlglClose$handle() { - return rlglClose.HANDLE; + public static MethodHandle rlScissor$handle() { + return rlScissor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlglClose() + * void rlScissor(int x, int y, int width, int height) * } */ - public static MemorySegment rlglClose$address() { - return rlglClose.ADDR; + public static MemorySegment rlScissor$address() { + return rlScissor.ADDR; } /** * {@snippet lang=c : - * void rlglClose() + * void rlScissor(int x, int y, int width, int height) * } */ - public static void rlglClose() { - var mh$ = rlglClose.HANDLE; + public static void rlScissor(int x, int y, int width, int height) { + var mh$ = rlScissor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlglClose"); + traceDowncall("rlScissor", x, y, width, height); } - mh$.invokeExact(); + mh$.invokeExact(x, y, width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadExtensions { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); + private static class rlEnableWireMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadExtensions"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableWireMode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20470,55 +4351,54 @@ private static class rlLoadExtensions { /** * Function descriptor for: * {@snippet lang=c : - * void rlLoadExtensions(void *loader) + * void rlEnableWireMode() * } */ - public static FunctionDescriptor rlLoadExtensions$descriptor() { - return rlLoadExtensions.DESC; + public static FunctionDescriptor rlEnableWireMode$descriptor() { + return rlEnableWireMode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlLoadExtensions(void *loader) + * void rlEnableWireMode() * } */ - public static MethodHandle rlLoadExtensions$handle() { - return rlLoadExtensions.HANDLE; + public static MethodHandle rlEnableWireMode$handle() { + return rlEnableWireMode.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlLoadExtensions(void *loader) + * void rlEnableWireMode() * } */ - public static MemorySegment rlLoadExtensions$address() { - return rlLoadExtensions.ADDR; + public static MemorySegment rlEnableWireMode$address() { + return rlEnableWireMode.ADDR; } /** * {@snippet lang=c : - * void rlLoadExtensions(void *loader) + * void rlEnableWireMode() * } */ - public static void rlLoadExtensions(MemorySegment loader) { - var mh$ = rlLoadExtensions.HANDLE; + public static void rlEnableWireMode() { + var mh$ = rlEnableWireMode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadExtensions", loader); + traceDowncall("rlEnableWireMode"); } - mh$.invokeExact(loader); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetVersion { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlEnablePointMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetVersion"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnablePointMode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20526,56 +4406,54 @@ private static class rlGetVersion { /** * Function descriptor for: * {@snippet lang=c : - * int rlGetVersion() + * void rlEnablePointMode() * } */ - public static FunctionDescriptor rlGetVersion$descriptor() { - return rlGetVersion.DESC; + public static FunctionDescriptor rlEnablePointMode$descriptor() { + return rlEnablePointMode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int rlGetVersion() + * void rlEnablePointMode() * } */ - public static MethodHandle rlGetVersion$handle() { - return rlGetVersion.HANDLE; + public static MethodHandle rlEnablePointMode$handle() { + return rlEnablePointMode.HANDLE; } /** * Address for: * {@snippet lang=c : - * int rlGetVersion() + * void rlEnablePointMode() * } */ - public static MemorySegment rlGetVersion$address() { - return rlGetVersion.ADDR; + public static MemorySegment rlEnablePointMode$address() { + return rlEnablePointMode.ADDR; } /** * {@snippet lang=c : - * int rlGetVersion() + * void rlEnablePointMode() * } */ - public static int rlGetVersion() { - var mh$ = rlGetVersion.HANDLE; + public static void rlEnablePointMode() { + var mh$ = rlEnablePointMode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetVersion"); + traceDowncall("rlEnablePointMode"); } - return (int)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetFramebufferWidth { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); + private static class rlDisableWireMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetFramebufferWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableWireMode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20583,55 +4461,56 @@ private static class rlSetFramebufferWidth { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetFramebufferWidth(int width) + * void rlDisableWireMode() * } */ - public static FunctionDescriptor rlSetFramebufferWidth$descriptor() { - return rlSetFramebufferWidth.DESC; + public static FunctionDescriptor rlDisableWireMode$descriptor() { + return rlDisableWireMode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetFramebufferWidth(int width) + * void rlDisableWireMode() * } */ - public static MethodHandle rlSetFramebufferWidth$handle() { - return rlSetFramebufferWidth.HANDLE; + public static MethodHandle rlDisableWireMode$handle() { + return rlDisableWireMode.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetFramebufferWidth(int width) + * void rlDisableWireMode() * } */ - public static MemorySegment rlSetFramebufferWidth$address() { - return rlSetFramebufferWidth.ADDR; + public static MemorySegment rlDisableWireMode$address() { + return rlDisableWireMode.ADDR; } /** * {@snippet lang=c : - * void rlSetFramebufferWidth(int width) + * void rlDisableWireMode() * } */ - public static void rlSetFramebufferWidth(int width) { - var mh$ = rlSetFramebufferWidth.HANDLE; + public static void rlDisableWireMode() { + var mh$ = rlDisableWireMode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetFramebufferWidth", width); + traceDowncall("rlDisableWireMode"); } - mh$.invokeExact(width); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetFramebufferWidth { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlSetLineWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetFramebufferWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetLineWidth"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20639,56 +4518,55 @@ private static class rlGetFramebufferWidth { /** * Function descriptor for: * {@snippet lang=c : - * int rlGetFramebufferWidth() + * void rlSetLineWidth(float width) * } */ - public static FunctionDescriptor rlGetFramebufferWidth$descriptor() { - return rlGetFramebufferWidth.DESC; + public static FunctionDescriptor rlSetLineWidth$descriptor() { + return rlSetLineWidth.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int rlGetFramebufferWidth() + * void rlSetLineWidth(float width) * } */ - public static MethodHandle rlGetFramebufferWidth$handle() { - return rlGetFramebufferWidth.HANDLE; + public static MethodHandle rlSetLineWidth$handle() { + return rlSetLineWidth.HANDLE; } /** * Address for: * {@snippet lang=c : - * int rlGetFramebufferWidth() + * void rlSetLineWidth(float width) * } */ - public static MemorySegment rlGetFramebufferWidth$address() { - return rlGetFramebufferWidth.ADDR; + public static MemorySegment rlSetLineWidth$address() { + return rlSetLineWidth.ADDR; } /** * {@snippet lang=c : - * int rlGetFramebufferWidth() + * void rlSetLineWidth(float width) * } */ - public static int rlGetFramebufferWidth() { - var mh$ = rlGetFramebufferWidth.HANDLE; + public static void rlSetLineWidth(float width) { + var mh$ = rlSetLineWidth.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetFramebufferWidth"); + traceDowncall("rlSetLineWidth", width); } - return (int)mh$.invokeExact(); + mh$.invokeExact(width); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetFramebufferHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); + private static class rlGetLineWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetFramebufferHeight"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetLineWidth"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20696,55 +4574,54 @@ private static class rlSetFramebufferHeight { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetFramebufferHeight(int height) + * float rlGetLineWidth() * } */ - public static FunctionDescriptor rlSetFramebufferHeight$descriptor() { - return rlSetFramebufferHeight.DESC; + public static FunctionDescriptor rlGetLineWidth$descriptor() { + return rlGetLineWidth.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetFramebufferHeight(int height) + * float rlGetLineWidth() * } */ - public static MethodHandle rlSetFramebufferHeight$handle() { - return rlSetFramebufferHeight.HANDLE; + public static MethodHandle rlGetLineWidth$handle() { + return rlGetLineWidth.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetFramebufferHeight(int height) + * float rlGetLineWidth() * } */ - public static MemorySegment rlSetFramebufferHeight$address() { - return rlSetFramebufferHeight.ADDR; + public static MemorySegment rlGetLineWidth$address() { + return rlGetLineWidth.ADDR; } /** * {@snippet lang=c : - * void rlSetFramebufferHeight(int height) + * float rlGetLineWidth() * } */ - public static void rlSetFramebufferHeight(int height) { - var mh$ = rlSetFramebufferHeight.HANDLE; + public static float rlGetLineWidth() { + var mh$ = rlGetLineWidth.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetFramebufferHeight", height); + traceDowncall("rlGetLineWidth"); } - mh$.invokeExact(height); + return (float)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetFramebufferHeight { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlEnableSmoothLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetFramebufferHeight"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableSmoothLines"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20752,55 +4629,54 @@ private static class rlGetFramebufferHeight { /** * Function descriptor for: * {@snippet lang=c : - * int rlGetFramebufferHeight() + * void rlEnableSmoothLines() * } */ - public static FunctionDescriptor rlGetFramebufferHeight$descriptor() { - return rlGetFramebufferHeight.DESC; + public static FunctionDescriptor rlEnableSmoothLines$descriptor() { + return rlEnableSmoothLines.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int rlGetFramebufferHeight() + * void rlEnableSmoothLines() * } */ - public static MethodHandle rlGetFramebufferHeight$handle() { - return rlGetFramebufferHeight.HANDLE; + public static MethodHandle rlEnableSmoothLines$handle() { + return rlEnableSmoothLines.HANDLE; } /** * Address for: * {@snippet lang=c : - * int rlGetFramebufferHeight() + * void rlEnableSmoothLines() * } */ - public static MemorySegment rlGetFramebufferHeight$address() { - return rlGetFramebufferHeight.ADDR; + public static MemorySegment rlEnableSmoothLines$address() { + return rlEnableSmoothLines.ADDR; } /** * {@snippet lang=c : - * int rlGetFramebufferHeight() + * void rlEnableSmoothLines() * } */ - public static int rlGetFramebufferHeight() { - var mh$ = rlGetFramebufferHeight.HANDLE; + public static void rlEnableSmoothLines() { + var mh$ = rlEnableSmoothLines.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetFramebufferHeight"); + traceDowncall("rlEnableSmoothLines"); } - return (int)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetTextureIdDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlDisableSmoothLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetTextureIdDefault"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableSmoothLines"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20808,55 +4684,54 @@ private static class rlGetTextureIdDefault { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlGetTextureIdDefault() + * void rlDisableSmoothLines() * } */ - public static FunctionDescriptor rlGetTextureIdDefault$descriptor() { - return rlGetTextureIdDefault.DESC; + public static FunctionDescriptor rlDisableSmoothLines$descriptor() { + return rlDisableSmoothLines.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlGetTextureIdDefault() + * void rlDisableSmoothLines() * } */ - public static MethodHandle rlGetTextureIdDefault$handle() { - return rlGetTextureIdDefault.HANDLE; + public static MethodHandle rlDisableSmoothLines$handle() { + return rlDisableSmoothLines.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlGetTextureIdDefault() + * void rlDisableSmoothLines() * } */ - public static MemorySegment rlGetTextureIdDefault$address() { - return rlGetTextureIdDefault.ADDR; + public static MemorySegment rlDisableSmoothLines$address() { + return rlDisableSmoothLines.ADDR; } /** * {@snippet lang=c : - * unsigned int rlGetTextureIdDefault() + * void rlDisableSmoothLines() * } */ - public static int rlGetTextureIdDefault() { - var mh$ = rlGetTextureIdDefault.HANDLE; + public static void rlDisableSmoothLines() { + var mh$ = rlDisableSmoothLines.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetTextureIdDefault"); + traceDowncall("rlDisableSmoothLines"); } - return (int)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetShaderIdDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlEnableStereoRender { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetShaderIdDefault"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlEnableStereoRender"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20864,55 +4739,54 @@ private static class rlGetShaderIdDefault { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlGetShaderIdDefault() + * void rlEnableStereoRender() * } */ - public static FunctionDescriptor rlGetShaderIdDefault$descriptor() { - return rlGetShaderIdDefault.DESC; + public static FunctionDescriptor rlEnableStereoRender$descriptor() { + return rlEnableStereoRender.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlGetShaderIdDefault() + * void rlEnableStereoRender() * } */ - public static MethodHandle rlGetShaderIdDefault$handle() { - return rlGetShaderIdDefault.HANDLE; + public static MethodHandle rlEnableStereoRender$handle() { + return rlEnableStereoRender.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlGetShaderIdDefault() + * void rlEnableStereoRender() * } */ - public static MemorySegment rlGetShaderIdDefault$address() { - return rlGetShaderIdDefault.ADDR; + public static MemorySegment rlEnableStereoRender$address() { + return rlEnableStereoRender.ADDR; } /** * {@snippet lang=c : - * unsigned int rlGetShaderIdDefault() + * void rlEnableStereoRender() * } */ - public static int rlGetShaderIdDefault() { - var mh$ = rlGetShaderIdDefault.HANDLE; + public static void rlEnableStereoRender() { + var mh$ = rlEnableStereoRender.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetShaderIdDefault"); + traceDowncall("rlEnableStereoRender"); } - return (int)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetShaderLocsDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER ); + private static class rlDisableStereoRender { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetShaderLocsDefault"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDisableStereoRender"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20920,58 +4794,55 @@ private static class rlGetShaderLocsDefault { /** * Function descriptor for: * {@snippet lang=c : - * int *rlGetShaderLocsDefault() + * void rlDisableStereoRender() * } */ - public static FunctionDescriptor rlGetShaderLocsDefault$descriptor() { - return rlGetShaderLocsDefault.DESC; + public static FunctionDescriptor rlDisableStereoRender$descriptor() { + return rlDisableStereoRender.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int *rlGetShaderLocsDefault() + * void rlDisableStereoRender() * } */ - public static MethodHandle rlGetShaderLocsDefault$handle() { - return rlGetShaderLocsDefault.HANDLE; + public static MethodHandle rlDisableStereoRender$handle() { + return rlDisableStereoRender.HANDLE; } /** * Address for: * {@snippet lang=c : - * int *rlGetShaderLocsDefault() + * void rlDisableStereoRender() * } */ - public static MemorySegment rlGetShaderLocsDefault$address() { - return rlGetShaderLocsDefault.ADDR; + public static MemorySegment rlDisableStereoRender$address() { + return rlDisableStereoRender.ADDR; } /** * {@snippet lang=c : - * int *rlGetShaderLocsDefault() + * void rlDisableStereoRender() * } */ - public static MemorySegment rlGetShaderLocsDefault() { - var mh$ = rlGetShaderLocsDefault.HANDLE; + public static void rlDisableStereoRender() { + var mh$ = rlDisableStereoRender.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetShaderLocsDefault"); + traceDowncall("rlDisableStereoRender"); } - return (MemorySegment)mh$.invokeExact(); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadRenderBatch { + private static class rlIsStereoRenderEnabled { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - rlRenderBatch.layout(), - raylib.C_INT, - raylib.C_INT - ); + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadRenderBatch"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlIsStereoRenderEnabled"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20979,56 +4850,59 @@ private static class rlLoadRenderBatch { /** * Function descriptor for: * {@snippet lang=c : - * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) + * bool rlIsStereoRenderEnabled() * } */ - public static FunctionDescriptor rlLoadRenderBatch$descriptor() { - return rlLoadRenderBatch.DESC; + public static FunctionDescriptor rlIsStereoRenderEnabled$descriptor() { + return rlIsStereoRenderEnabled.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) + * bool rlIsStereoRenderEnabled() * } */ - public static MethodHandle rlLoadRenderBatch$handle() { - return rlLoadRenderBatch.HANDLE; + public static MethodHandle rlIsStereoRenderEnabled$handle() { + return rlIsStereoRenderEnabled.HANDLE; } /** * Address for: * {@snippet lang=c : - * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) + * bool rlIsStereoRenderEnabled() * } */ - public static MemorySegment rlLoadRenderBatch$address() { - return rlLoadRenderBatch.ADDR; + public static MemorySegment rlIsStereoRenderEnabled$address() { + return rlIsStereoRenderEnabled.ADDR; } /** * {@snippet lang=c : - * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) + * bool rlIsStereoRenderEnabled() * } */ - public static MemorySegment rlLoadRenderBatch(SegmentAllocator allocator, int numBuffers, int bufferElements) { - var mh$ = rlLoadRenderBatch.HANDLE; + public static boolean rlIsStereoRenderEnabled() { + var mh$ = rlIsStereoRenderEnabled.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadRenderBatch", allocator, numBuffers, bufferElements); + traceDowncall("rlIsStereoRenderEnabled"); } - return (MemorySegment)mh$.invokeExact(allocator, numBuffers, bufferElements); + return (boolean)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadRenderBatch { + private static class rlClearColor { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - rlRenderBatch.layout() + raylib.C_CHAR, + raylib.C_CHAR, + raylib.C_CHAR, + raylib.C_CHAR ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadRenderBatch"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlClearColor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21036,56 +4910,54 @@ private static class rlUnloadRenderBatch { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadRenderBatch(rlRenderBatch batch) + * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static FunctionDescriptor rlUnloadRenderBatch$descriptor() { - return rlUnloadRenderBatch.DESC; + public static FunctionDescriptor rlClearColor$descriptor() { + return rlClearColor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadRenderBatch(rlRenderBatch batch) + * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static MethodHandle rlUnloadRenderBatch$handle() { - return rlUnloadRenderBatch.HANDLE; + public static MethodHandle rlClearColor$handle() { + return rlClearColor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadRenderBatch(rlRenderBatch batch) + * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static MemorySegment rlUnloadRenderBatch$address() { - return rlUnloadRenderBatch.ADDR; + public static MemorySegment rlClearColor$address() { + return rlClearColor.ADDR; } /** * {@snippet lang=c : - * void rlUnloadRenderBatch(rlRenderBatch batch) + * void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) * } */ - public static void rlUnloadRenderBatch(MemorySegment batch) { - var mh$ = rlUnloadRenderBatch.HANDLE; + public static void rlClearColor(byte r, byte g, byte b, byte a) { + var mh$ = rlClearColor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadRenderBatch", batch); + traceDowncall("rlClearColor", r, g, b, a); } - mh$.invokeExact(batch); + mh$.invokeExact(r, g, b, a); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDrawRenderBatch { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); + private static class rlClearScreenBuffers { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawRenderBatch"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlClearScreenBuffers"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21093,56 +4965,54 @@ private static class rlDrawRenderBatch { /** * Function descriptor for: * {@snippet lang=c : - * void rlDrawRenderBatch(rlRenderBatch *batch) + * void rlClearScreenBuffers() * } */ - public static FunctionDescriptor rlDrawRenderBatch$descriptor() { - return rlDrawRenderBatch.DESC; + public static FunctionDescriptor rlClearScreenBuffers$descriptor() { + return rlClearScreenBuffers.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDrawRenderBatch(rlRenderBatch *batch) + * void rlClearScreenBuffers() * } */ - public static MethodHandle rlDrawRenderBatch$handle() { - return rlDrawRenderBatch.HANDLE; + public static MethodHandle rlClearScreenBuffers$handle() { + return rlClearScreenBuffers.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDrawRenderBatch(rlRenderBatch *batch) + * void rlClearScreenBuffers() * } */ - public static MemorySegment rlDrawRenderBatch$address() { - return rlDrawRenderBatch.ADDR; + public static MemorySegment rlClearScreenBuffers$address() { + return rlClearScreenBuffers.ADDR; } /** * {@snippet lang=c : - * void rlDrawRenderBatch(rlRenderBatch *batch) + * void rlClearScreenBuffers() * } */ - public static void rlDrawRenderBatch(MemorySegment batch) { - var mh$ = rlDrawRenderBatch.HANDLE; + public static void rlClearScreenBuffers() { + var mh$ = rlClearScreenBuffers.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDrawRenderBatch", batch); + traceDowncall("rlClearScreenBuffers"); } - mh$.invokeExact(batch); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetRenderBatchActive { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER - ); + private static class rlCheckErrors { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetRenderBatchActive"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlCheckErrors"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21150,54 +5020,56 @@ private static class rlSetRenderBatchActive { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetRenderBatchActive(rlRenderBatch *batch) + * void rlCheckErrors() * } */ - public static FunctionDescriptor rlSetRenderBatchActive$descriptor() { - return rlSetRenderBatchActive.DESC; + public static FunctionDescriptor rlCheckErrors$descriptor() { + return rlCheckErrors.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetRenderBatchActive(rlRenderBatch *batch) + * void rlCheckErrors() * } */ - public static MethodHandle rlSetRenderBatchActive$handle() { - return rlSetRenderBatchActive.HANDLE; + public static MethodHandle rlCheckErrors$handle() { + return rlCheckErrors.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetRenderBatchActive(rlRenderBatch *batch) + * void rlCheckErrors() * } */ - public static MemorySegment rlSetRenderBatchActive$address() { - return rlSetRenderBatchActive.ADDR; + public static MemorySegment rlCheckErrors$address() { + return rlCheckErrors.ADDR; } /** * {@snippet lang=c : - * void rlSetRenderBatchActive(rlRenderBatch *batch) + * void rlCheckErrors() * } */ - public static void rlSetRenderBatchActive(MemorySegment batch) { - var mh$ = rlSetRenderBatchActive.HANDLE; + public static void rlCheckErrors() { + var mh$ = rlCheckErrors.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetRenderBatchActive", batch); + traceDowncall("rlCheckErrors"); } - mh$.invokeExact(batch); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDrawRenderBatchActive { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlSetBlendMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawRenderBatchActive"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetBlendMode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21205,57 +5077,58 @@ private static class rlDrawRenderBatchActive { /** * Function descriptor for: * {@snippet lang=c : - * void rlDrawRenderBatchActive() + * void rlSetBlendMode(int mode) * } */ - public static FunctionDescriptor rlDrawRenderBatchActive$descriptor() { - return rlDrawRenderBatchActive.DESC; + public static FunctionDescriptor rlSetBlendMode$descriptor() { + return rlSetBlendMode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDrawRenderBatchActive() + * void rlSetBlendMode(int mode) * } */ - public static MethodHandle rlDrawRenderBatchActive$handle() { - return rlDrawRenderBatchActive.HANDLE; + public static MethodHandle rlSetBlendMode$handle() { + return rlSetBlendMode.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDrawRenderBatchActive() + * void rlSetBlendMode(int mode) * } */ - public static MemorySegment rlDrawRenderBatchActive$address() { - return rlDrawRenderBatchActive.ADDR; + public static MemorySegment rlSetBlendMode$address() { + return rlSetBlendMode.ADDR; } /** * {@snippet lang=c : - * void rlDrawRenderBatchActive() + * void rlSetBlendMode(int mode) * } */ - public static void rlDrawRenderBatchActive() { - var mh$ = rlDrawRenderBatchActive.HANDLE; + public static void rlSetBlendMode(int mode) { + var mh$ = rlSetBlendMode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDrawRenderBatchActive"); + traceDowncall("rlSetBlendMode", mode); } - mh$.invokeExact(); + mh$.invokeExact(mode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlCheckRenderBatchLimit { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, + private static class rlSetBlendFactors { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlCheckRenderBatchLimit"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetBlendFactors"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21263,56 +5136,61 @@ private static class rlCheckRenderBatchLimit { /** * Function descriptor for: * {@snippet lang=c : - * bool rlCheckRenderBatchLimit(int vCount) + * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) * } */ - public static FunctionDescriptor rlCheckRenderBatchLimit$descriptor() { - return rlCheckRenderBatchLimit.DESC; + public static FunctionDescriptor rlSetBlendFactors$descriptor() { + return rlSetBlendFactors.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool rlCheckRenderBatchLimit(int vCount) + * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) * } */ - public static MethodHandle rlCheckRenderBatchLimit$handle() { - return rlCheckRenderBatchLimit.HANDLE; + public static MethodHandle rlSetBlendFactors$handle() { + return rlSetBlendFactors.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool rlCheckRenderBatchLimit(int vCount) + * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) * } */ - public static MemorySegment rlCheckRenderBatchLimit$address() { - return rlCheckRenderBatchLimit.ADDR; + public static MemorySegment rlSetBlendFactors$address() { + return rlSetBlendFactors.ADDR; } /** * {@snippet lang=c : - * bool rlCheckRenderBatchLimit(int vCount) + * void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) * } */ - public static boolean rlCheckRenderBatchLimit(int vCount) { - var mh$ = rlCheckRenderBatchLimit.HANDLE; + public static void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation) { + var mh$ = rlSetBlendFactors.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlCheckRenderBatchLimit", vCount); + traceDowncall("rlSetBlendFactors", glSrcFactor, glDstFactor, glEquation); } - return (boolean)mh$.invokeExact(vCount); + mh$.invokeExact(glSrcFactor, glDstFactor, glEquation); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetTexture { + private static class rlSetBlendFactorsSeparate { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetBlendFactorsSeparate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21320,55 +5198,57 @@ private static class rlSetTexture { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetTexture(unsigned int id) + * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) * } */ - public static FunctionDescriptor rlSetTexture$descriptor() { - return rlSetTexture.DESC; + public static FunctionDescriptor rlSetBlendFactorsSeparate$descriptor() { + return rlSetBlendFactorsSeparate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetTexture(unsigned int id) + * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) * } */ - public static MethodHandle rlSetTexture$handle() { - return rlSetTexture.HANDLE; + public static MethodHandle rlSetBlendFactorsSeparate$handle() { + return rlSetBlendFactorsSeparate.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetTexture(unsigned int id) + * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) * } */ - public static MemorySegment rlSetTexture$address() { - return rlSetTexture.ADDR; + public static MemorySegment rlSetBlendFactorsSeparate$address() { + return rlSetBlendFactorsSeparate.ADDR; } /** * {@snippet lang=c : - * void rlSetTexture(unsigned int id) + * void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) * } */ - public static void rlSetTexture(int id) { - var mh$ = rlSetTexture.HANDLE; + public static void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha) { + var mh$ = rlSetBlendFactorsSeparate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetTexture", id); + traceDowncall("rlSetBlendFactorsSeparate", glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha); } - mh$.invokeExact(id); + mh$.invokeExact(glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadVertexArray { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlglInit { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadVertexArray"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlglInit"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21376,59 +5256,54 @@ private static class rlLoadVertexArray { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadVertexArray() + * void rlglInit(int width, int height) * } */ - public static FunctionDescriptor rlLoadVertexArray$descriptor() { - return rlLoadVertexArray.DESC; + public static FunctionDescriptor rlglInit$descriptor() { + return rlglInit.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadVertexArray() + * void rlglInit(int width, int height) * } */ - public static MethodHandle rlLoadVertexArray$handle() { - return rlLoadVertexArray.HANDLE; + public static MethodHandle rlglInit$handle() { + return rlglInit.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadVertexArray() + * void rlglInit(int width, int height) * } */ - public static MemorySegment rlLoadVertexArray$address() { - return rlLoadVertexArray.ADDR; + public static MemorySegment rlglInit$address() { + return rlglInit.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadVertexArray() + * void rlglInit(int width, int height) * } */ - public static int rlLoadVertexArray() { - var mh$ = rlLoadVertexArray.HANDLE; + public static void rlglInit(int width, int height) { + var mh$ = rlglInit.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadVertexArray"); + traceDowncall("rlglInit", width, height); } - return (int)mh$.invokeExact(); + mh$.invokeExact(width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadVertexBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_BOOL - ); + private static class rlglClose { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadVertexBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlglClose"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21436,59 +5311,56 @@ private static class rlLoadVertexBuffer { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) + * void rlglClose() * } */ - public static FunctionDescriptor rlLoadVertexBuffer$descriptor() { - return rlLoadVertexBuffer.DESC; + public static FunctionDescriptor rlglClose$descriptor() { + return rlglClose.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) + * void rlglClose() * } */ - public static MethodHandle rlLoadVertexBuffer$handle() { - return rlLoadVertexBuffer.HANDLE; + public static MethodHandle rlglClose$handle() { + return rlglClose.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) + * void rlglClose() * } */ - public static MemorySegment rlLoadVertexBuffer$address() { - return rlLoadVertexBuffer.ADDR; + public static MemorySegment rlglClose$address() { + return rlglClose.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) + * void rlglClose() * } */ - public static int rlLoadVertexBuffer(MemorySegment buffer, int size, boolean dynamic) { - var mh$ = rlLoadVertexBuffer.HANDLE; + public static void rlglClose() { + var mh$ = rlglClose.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadVertexBuffer", buffer, size, dynamic); + traceDowncall("rlglClose"); } - return (int)mh$.invokeExact(buffer, size, dynamic); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadVertexBufferElement { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_BOOL + private static class rlLoadExtensions { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadVertexBufferElement"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadExtensions"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21496,59 +5368,55 @@ private static class rlLoadVertexBufferElement { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) + * void rlLoadExtensions(void *loader) * } */ - public static FunctionDescriptor rlLoadVertexBufferElement$descriptor() { - return rlLoadVertexBufferElement.DESC; + public static FunctionDescriptor rlLoadExtensions$descriptor() { + return rlLoadExtensions.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) + * void rlLoadExtensions(void *loader) * } */ - public static MethodHandle rlLoadVertexBufferElement$handle() { - return rlLoadVertexBufferElement.HANDLE; + public static MethodHandle rlLoadExtensions$handle() { + return rlLoadExtensions.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) + * void rlLoadExtensions(void *loader) * } */ - public static MemorySegment rlLoadVertexBufferElement$address() { - return rlLoadVertexBufferElement.ADDR; + public static MemorySegment rlLoadExtensions$address() { + return rlLoadExtensions.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) + * void rlLoadExtensions(void *loader) * } */ - public static int rlLoadVertexBufferElement(MemorySegment buffer, int size, boolean dynamic) { - var mh$ = rlLoadVertexBufferElement.HANDLE; + public static void rlLoadExtensions(MemorySegment loader) { + var mh$ = rlLoadExtensions.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadVertexBufferElement", buffer, size, dynamic); + traceDowncall("rlLoadExtensions", loader); } - return (int)mh$.invokeExact(buffer, size, dynamic); + mh$.invokeExact(loader); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUpdateVertexBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); + private static class rlGetVersion { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateVertexBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetVersion"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21556,59 +5424,56 @@ private static class rlUpdateVertexBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) + * int rlGetVersion() * } */ - public static FunctionDescriptor rlUpdateVertexBuffer$descriptor() { - return rlUpdateVertexBuffer.DESC; + public static FunctionDescriptor rlGetVersion$descriptor() { + return rlGetVersion.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) + * int rlGetVersion() * } */ - public static MethodHandle rlUpdateVertexBuffer$handle() { - return rlUpdateVertexBuffer.HANDLE; + public static MethodHandle rlGetVersion$handle() { + return rlGetVersion.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) + * int rlGetVersion() * } */ - public static MemorySegment rlUpdateVertexBuffer$address() { - return rlUpdateVertexBuffer.ADDR; + public static MemorySegment rlGetVersion$address() { + return rlGetVersion.ADDR; } /** * {@snippet lang=c : - * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) + * int rlGetVersion() * } */ - public static void rlUpdateVertexBuffer(int bufferId, MemorySegment data, int dataSize, int offset) { - var mh$ = rlUpdateVertexBuffer.HANDLE; + public static int rlGetVersion() { + var mh$ = rlGetVersion.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUpdateVertexBuffer", bufferId, data, dataSize, offset); + traceDowncall("rlGetVersion"); } - mh$.invokeExact(bufferId, data, dataSize, offset); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUpdateVertexBufferElements { + private static class rlSetFramebufferWidth { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateVertexBufferElements"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetFramebufferWidth"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21616,56 +5481,55 @@ private static class rlUpdateVertexBufferElements { /** * Function descriptor for: * {@snippet lang=c : - * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) + * void rlSetFramebufferWidth(int width) * } */ - public static FunctionDescriptor rlUpdateVertexBufferElements$descriptor() { - return rlUpdateVertexBufferElements.DESC; + public static FunctionDescriptor rlSetFramebufferWidth$descriptor() { + return rlSetFramebufferWidth.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) + * void rlSetFramebufferWidth(int width) * } */ - public static MethodHandle rlUpdateVertexBufferElements$handle() { - return rlUpdateVertexBufferElements.HANDLE; + public static MethodHandle rlSetFramebufferWidth$handle() { + return rlSetFramebufferWidth.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) + * void rlSetFramebufferWidth(int width) * } */ - public static MemorySegment rlUpdateVertexBufferElements$address() { - return rlUpdateVertexBufferElements.ADDR; + public static MemorySegment rlSetFramebufferWidth$address() { + return rlSetFramebufferWidth.ADDR; } /** * {@snippet lang=c : - * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) + * void rlSetFramebufferWidth(int width) * } */ - public static void rlUpdateVertexBufferElements(int id, MemorySegment data, int dataSize, int offset) { - var mh$ = rlUpdateVertexBufferElements.HANDLE; + public static void rlSetFramebufferWidth(int width) { + var mh$ = rlSetFramebufferWidth.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUpdateVertexBufferElements", id, data, dataSize, offset); + traceDowncall("rlSetFramebufferWidth", width); } - mh$.invokeExact(id, data, dataSize, offset); + mh$.invokeExact(width); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadVertexArray { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT - ); + private static class rlGetFramebufferWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadVertexArray"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetFramebufferWidth"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21673,56 +5537,56 @@ private static class rlUnloadVertexArray { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadVertexArray(unsigned int vaoId) + * int rlGetFramebufferWidth() * } */ - public static FunctionDescriptor rlUnloadVertexArray$descriptor() { - return rlUnloadVertexArray.DESC; + public static FunctionDescriptor rlGetFramebufferWidth$descriptor() { + return rlGetFramebufferWidth.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadVertexArray(unsigned int vaoId) + * int rlGetFramebufferWidth() * } */ - public static MethodHandle rlUnloadVertexArray$handle() { - return rlUnloadVertexArray.HANDLE; + public static MethodHandle rlGetFramebufferWidth$handle() { + return rlGetFramebufferWidth.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadVertexArray(unsigned int vaoId) + * int rlGetFramebufferWidth() * } */ - public static MemorySegment rlUnloadVertexArray$address() { - return rlUnloadVertexArray.ADDR; + public static MemorySegment rlGetFramebufferWidth$address() { + return rlGetFramebufferWidth.ADDR; } /** * {@snippet lang=c : - * void rlUnloadVertexArray(unsigned int vaoId) + * int rlGetFramebufferWidth() * } */ - public static void rlUnloadVertexArray(int vaoId) { - var mh$ = rlUnloadVertexArray.HANDLE; + public static int rlGetFramebufferWidth() { + var mh$ = rlGetFramebufferWidth.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadVertexArray", vaoId); + traceDowncall("rlGetFramebufferWidth"); } - mh$.invokeExact(vaoId); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadVertexBuffer { + private static class rlSetFramebufferHeight { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadVertexBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetFramebufferHeight"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21730,61 +5594,55 @@ private static class rlUnloadVertexBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadVertexBuffer(unsigned int vboId) + * void rlSetFramebufferHeight(int height) * } */ - public static FunctionDescriptor rlUnloadVertexBuffer$descriptor() { - return rlUnloadVertexBuffer.DESC; + public static FunctionDescriptor rlSetFramebufferHeight$descriptor() { + return rlSetFramebufferHeight.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadVertexBuffer(unsigned int vboId) + * void rlSetFramebufferHeight(int height) * } */ - public static MethodHandle rlUnloadVertexBuffer$handle() { - return rlUnloadVertexBuffer.HANDLE; + public static MethodHandle rlSetFramebufferHeight$handle() { + return rlSetFramebufferHeight.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadVertexBuffer(unsigned int vboId) + * void rlSetFramebufferHeight(int height) * } */ - public static MemorySegment rlUnloadVertexBuffer$address() { - return rlUnloadVertexBuffer.ADDR; + public static MemorySegment rlSetFramebufferHeight$address() { + return rlSetFramebufferHeight.ADDR; } /** * {@snippet lang=c : - * void rlUnloadVertexBuffer(unsigned int vboId) + * void rlSetFramebufferHeight(int height) * } */ - public static void rlUnloadVertexBuffer(int vboId) { - var mh$ = rlUnloadVertexBuffer.HANDLE; + public static void rlSetFramebufferHeight(int height) { + var mh$ = rlSetFramebufferHeight.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadVertexBuffer", vboId); + traceDowncall("rlSetFramebufferHeight", height); } - mh$.invokeExact(vboId); + mh$.invokeExact(height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetVertexAttribute { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_BOOL, - raylib.C_INT, - raylib.C_INT - ); + private static class rlGetFramebufferHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetVertexAttribute"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetFramebufferHeight"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21792,57 +5650,55 @@ private static class rlSetVertexAttribute { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) + * int rlGetFramebufferHeight() * } */ - public static FunctionDescriptor rlSetVertexAttribute$descriptor() { - return rlSetVertexAttribute.DESC; + public static FunctionDescriptor rlGetFramebufferHeight$descriptor() { + return rlGetFramebufferHeight.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) + * int rlGetFramebufferHeight() * } */ - public static MethodHandle rlSetVertexAttribute$handle() { - return rlSetVertexAttribute.HANDLE; + public static MethodHandle rlGetFramebufferHeight$handle() { + return rlGetFramebufferHeight.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) + * int rlGetFramebufferHeight() * } */ - public static MemorySegment rlSetVertexAttribute$address() { - return rlSetVertexAttribute.ADDR; + public static MemorySegment rlGetFramebufferHeight$address() { + return rlGetFramebufferHeight.ADDR; } /** * {@snippet lang=c : - * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) + * int rlGetFramebufferHeight() * } */ - public static void rlSetVertexAttribute(int index, int compSize, int type, boolean normalized, int stride, int offset) { - var mh$ = rlSetVertexAttribute.HANDLE; + public static int rlGetFramebufferHeight() { + var mh$ = rlGetFramebufferHeight.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetVertexAttribute", index, compSize, type, normalized, stride, offset); + traceDowncall("rlGetFramebufferHeight"); } - mh$.invokeExact(index, compSize, type, normalized, stride, offset); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetVertexAttributeDivisor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT - ); + private static class rlGetTextureIdDefault { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetVertexAttributeDivisor"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetTextureIdDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21850,59 +5706,55 @@ private static class rlSetVertexAttributeDivisor { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) + * unsigned int rlGetTextureIdDefault() * } */ - public static FunctionDescriptor rlSetVertexAttributeDivisor$descriptor() { - return rlSetVertexAttributeDivisor.DESC; + public static FunctionDescriptor rlGetTextureIdDefault$descriptor() { + return rlGetTextureIdDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) + * unsigned int rlGetTextureIdDefault() * } */ - public static MethodHandle rlSetVertexAttributeDivisor$handle() { - return rlSetVertexAttributeDivisor.HANDLE; + public static MethodHandle rlGetTextureIdDefault$handle() { + return rlGetTextureIdDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) + * unsigned int rlGetTextureIdDefault() * } */ - public static MemorySegment rlSetVertexAttributeDivisor$address() { - return rlSetVertexAttributeDivisor.ADDR; + public static MemorySegment rlGetTextureIdDefault$address() { + return rlGetTextureIdDefault.ADDR; } /** * {@snippet lang=c : - * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) + * unsigned int rlGetTextureIdDefault() * } */ - public static void rlSetVertexAttributeDivisor(int index, int divisor) { - var mh$ = rlSetVertexAttributeDivisor.HANDLE; + public static int rlGetTextureIdDefault() { + var mh$ = rlGetTextureIdDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetVertexAttributeDivisor", index, divisor); + traceDowncall("rlGetTextureIdDefault"); } - mh$.invokeExact(index, divisor); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetVertexAttributeDefault { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); + private static class rlGetShaderIdDefault { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetVertexAttributeDefault"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetShaderIdDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21910,57 +5762,55 @@ private static class rlSetVertexAttributeDefault { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) + * unsigned int rlGetShaderIdDefault() * } */ - public static FunctionDescriptor rlSetVertexAttributeDefault$descriptor() { - return rlSetVertexAttributeDefault.DESC; + public static FunctionDescriptor rlGetShaderIdDefault$descriptor() { + return rlGetShaderIdDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) + * unsigned int rlGetShaderIdDefault() * } */ - public static MethodHandle rlSetVertexAttributeDefault$handle() { - return rlSetVertexAttributeDefault.HANDLE; + public static MethodHandle rlGetShaderIdDefault$handle() { + return rlGetShaderIdDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) + * unsigned int rlGetShaderIdDefault() * } */ - public static MemorySegment rlSetVertexAttributeDefault$address() { - return rlSetVertexAttributeDefault.ADDR; + public static MemorySegment rlGetShaderIdDefault$address() { + return rlGetShaderIdDefault.ADDR; } /** * {@snippet lang=c : - * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) + * unsigned int rlGetShaderIdDefault() * } */ - public static void rlSetVertexAttributeDefault(int locIndex, MemorySegment value, int attribType, int count) { - var mh$ = rlSetVertexAttributeDefault.HANDLE; + public static int rlGetShaderIdDefault() { + var mh$ = rlGetShaderIdDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetVertexAttributeDefault", locIndex, value, attribType, count); + traceDowncall("rlGetShaderIdDefault"); } - mh$.invokeExact(locIndex, value, attribType, count); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDrawVertexArray { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT - ); + private static class rlGetShaderLocsDefault { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArray"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetShaderLocsDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21968,58 +5818,58 @@ private static class rlDrawVertexArray { /** * Function descriptor for: * {@snippet lang=c : - * void rlDrawVertexArray(int offset, int count) + * int *rlGetShaderLocsDefault() * } */ - public static FunctionDescriptor rlDrawVertexArray$descriptor() { - return rlDrawVertexArray.DESC; + public static FunctionDescriptor rlGetShaderLocsDefault$descriptor() { + return rlGetShaderLocsDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDrawVertexArray(int offset, int count) + * int *rlGetShaderLocsDefault() * } */ - public static MethodHandle rlDrawVertexArray$handle() { - return rlDrawVertexArray.HANDLE; + public static MethodHandle rlGetShaderLocsDefault$handle() { + return rlGetShaderLocsDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDrawVertexArray(int offset, int count) + * int *rlGetShaderLocsDefault() * } */ - public static MemorySegment rlDrawVertexArray$address() { - return rlDrawVertexArray.ADDR; + public static MemorySegment rlGetShaderLocsDefault$address() { + return rlGetShaderLocsDefault.ADDR; } /** * {@snippet lang=c : - * void rlDrawVertexArray(int offset, int count) + * int *rlGetShaderLocsDefault() * } */ - public static void rlDrawVertexArray(int offset, int count) { - var mh$ = rlDrawVertexArray.HANDLE; + public static MemorySegment rlGetShaderLocsDefault() { + var mh$ = rlGetShaderLocsDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDrawVertexArray", offset, count); + traceDowncall("rlGetShaderLocsDefault"); } - mh$.invokeExact(offset, count); + return (MemorySegment)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDrawVertexArrayElements { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, + private static class rlLoadRenderBatch { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + rlRenderBatch.layout(), raylib.C_INT, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArrayElements"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadRenderBatch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22027,58 +5877,56 @@ private static class rlDrawVertexArrayElements { /** * Function descriptor for: * {@snippet lang=c : - * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) + * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) * } */ - public static FunctionDescriptor rlDrawVertexArrayElements$descriptor() { - return rlDrawVertexArrayElements.DESC; + public static FunctionDescriptor rlLoadRenderBatch$descriptor() { + return rlLoadRenderBatch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) + * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) * } */ - public static MethodHandle rlDrawVertexArrayElements$handle() { - return rlDrawVertexArrayElements.HANDLE; + public static MethodHandle rlLoadRenderBatch$handle() { + return rlLoadRenderBatch.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) + * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) * } */ - public static MemorySegment rlDrawVertexArrayElements$address() { - return rlDrawVertexArrayElements.ADDR; + public static MemorySegment rlLoadRenderBatch$address() { + return rlLoadRenderBatch.ADDR; } /** * {@snippet lang=c : - * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) + * rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements) * } */ - public static void rlDrawVertexArrayElements(int offset, int count, MemorySegment buffer) { - var mh$ = rlDrawVertexArrayElements.HANDLE; + public static MemorySegment rlLoadRenderBatch(SegmentAllocator allocator, int numBuffers, int bufferElements) { + var mh$ = rlLoadRenderBatch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDrawVertexArrayElements", offset, count, buffer); + traceDowncall("rlLoadRenderBatch", allocator, numBuffers, bufferElements); } - mh$.invokeExact(offset, count, buffer); + return (MemorySegment)mh$.invokeExact(allocator, numBuffers, bufferElements); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDrawVertexArrayInstanced { + private static class rlUnloadRenderBatch { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + rlRenderBatch.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArrayInstanced"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadRenderBatch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22086,59 +5934,56 @@ private static class rlDrawVertexArrayInstanced { /** * Function descriptor for: * {@snippet lang=c : - * void rlDrawVertexArrayInstanced(int offset, int count, int instances) + * void rlUnloadRenderBatch(rlRenderBatch batch) * } */ - public static FunctionDescriptor rlDrawVertexArrayInstanced$descriptor() { - return rlDrawVertexArrayInstanced.DESC; + public static FunctionDescriptor rlUnloadRenderBatch$descriptor() { + return rlUnloadRenderBatch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDrawVertexArrayInstanced(int offset, int count, int instances) + * void rlUnloadRenderBatch(rlRenderBatch batch) * } */ - public static MethodHandle rlDrawVertexArrayInstanced$handle() { - return rlDrawVertexArrayInstanced.HANDLE; + public static MethodHandle rlUnloadRenderBatch$handle() { + return rlUnloadRenderBatch.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDrawVertexArrayInstanced(int offset, int count, int instances) + * void rlUnloadRenderBatch(rlRenderBatch batch) * } */ - public static MemorySegment rlDrawVertexArrayInstanced$address() { - return rlDrawVertexArrayInstanced.ADDR; + public static MemorySegment rlUnloadRenderBatch$address() { + return rlUnloadRenderBatch.ADDR; } /** * {@snippet lang=c : - * void rlDrawVertexArrayInstanced(int offset, int count, int instances) + * void rlUnloadRenderBatch(rlRenderBatch batch) * } */ - public static void rlDrawVertexArrayInstanced(int offset, int count, int instances) { - var mh$ = rlDrawVertexArrayInstanced.HANDLE; + public static void rlUnloadRenderBatch(MemorySegment batch) { + var mh$ = rlUnloadRenderBatch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDrawVertexArrayInstanced", offset, count, instances); + traceDowncall("rlUnloadRenderBatch", batch); } - mh$.invokeExact(offset, count, instances); + mh$.invokeExact(batch); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlDrawVertexArrayElementsInstanced { + private static class rlDrawRenderBatch { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArrayElementsInstanced"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawRenderBatch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22146,61 +5991,56 @@ private static class rlDrawVertexArrayElementsInstanced { /** * Function descriptor for: * {@snippet lang=c : - * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) + * void rlDrawRenderBatch(rlRenderBatch *batch) * } */ - public static FunctionDescriptor rlDrawVertexArrayElementsInstanced$descriptor() { - return rlDrawVertexArrayElementsInstanced.DESC; + public static FunctionDescriptor rlDrawRenderBatch$descriptor() { + return rlDrawRenderBatch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) + * void rlDrawRenderBatch(rlRenderBatch *batch) * } */ - public static MethodHandle rlDrawVertexArrayElementsInstanced$handle() { - return rlDrawVertexArrayElementsInstanced.HANDLE; + public static MethodHandle rlDrawRenderBatch$handle() { + return rlDrawRenderBatch.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) + * void rlDrawRenderBatch(rlRenderBatch *batch) * } */ - public static MemorySegment rlDrawVertexArrayElementsInstanced$address() { - return rlDrawVertexArrayElementsInstanced.ADDR; + public static MemorySegment rlDrawRenderBatch$address() { + return rlDrawRenderBatch.ADDR; } /** * {@snippet lang=c : - * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) + * void rlDrawRenderBatch(rlRenderBatch *batch) * } */ - public static void rlDrawVertexArrayElementsInstanced(int offset, int count, MemorySegment buffer, int instances) { - var mh$ = rlDrawVertexArrayElementsInstanced.HANDLE; + public static void rlDrawRenderBatch(MemorySegment batch) { + var mh$ = rlDrawRenderBatch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlDrawVertexArrayElementsInstanced", offset, count, buffer, instances); + traceDowncall("rlDrawRenderBatch", batch); } - mh$.invokeExact(offset, count, buffer, instances); + mh$.invokeExact(batch); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + private static class rlSetRenderBatchActive { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetRenderBatchActive"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22208,59 +6048,54 @@ private static class rlLoadTexture { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) + * void rlSetRenderBatchActive(rlRenderBatch *batch) * } */ - public static FunctionDescriptor rlLoadTexture$descriptor() { - return rlLoadTexture.DESC; + public static FunctionDescriptor rlSetRenderBatchActive$descriptor() { + return rlSetRenderBatchActive.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) + * void rlSetRenderBatchActive(rlRenderBatch *batch) * } */ - public static MethodHandle rlLoadTexture$handle() { - return rlLoadTexture.HANDLE; + public static MethodHandle rlSetRenderBatchActive$handle() { + return rlSetRenderBatchActive.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) + * void rlSetRenderBatchActive(rlRenderBatch *batch) * } */ - public static MemorySegment rlLoadTexture$address() { - return rlLoadTexture.ADDR; + public static MemorySegment rlSetRenderBatchActive$address() { + return rlSetRenderBatchActive.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) + * void rlSetRenderBatchActive(rlRenderBatch *batch) * } */ - public static int rlLoadTexture(MemorySegment data, int width, int height, int format, int mipmapCount) { - var mh$ = rlLoadTexture.HANDLE; + public static void rlSetRenderBatchActive(MemorySegment batch) { + var mh$ = rlSetRenderBatchActive.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadTexture", data, width, height, format, mipmapCount); + traceDowncall("rlSetRenderBatchActive", batch); } - return (int)mh$.invokeExact(data, width, height, format, mipmapCount); + mh$.invokeExact(batch); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadTextureDepth { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_BOOL - ); + private static class rlDrawRenderBatchActive { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadTextureDepth"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawRenderBatchActive"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22268,59 +6103,57 @@ private static class rlLoadTextureDepth { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) + * void rlDrawRenderBatchActive() * } */ - public static FunctionDescriptor rlLoadTextureDepth$descriptor() { - return rlLoadTextureDepth.DESC; + public static FunctionDescriptor rlDrawRenderBatchActive$descriptor() { + return rlDrawRenderBatchActive.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) + * void rlDrawRenderBatchActive() * } */ - public static MethodHandle rlLoadTextureDepth$handle() { - return rlLoadTextureDepth.HANDLE; + public static MethodHandle rlDrawRenderBatchActive$handle() { + return rlDrawRenderBatchActive.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) + * void rlDrawRenderBatchActive() * } */ - public static MemorySegment rlLoadTextureDepth$address() { - return rlLoadTextureDepth.ADDR; + public static MemorySegment rlDrawRenderBatchActive$address() { + return rlDrawRenderBatchActive.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) + * void rlDrawRenderBatchActive() * } */ - public static int rlLoadTextureDepth(int width, int height, boolean useRenderBuffer) { - var mh$ = rlLoadTextureDepth.HANDLE; + public static void rlDrawRenderBatchActive() { + var mh$ = rlDrawRenderBatchActive.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadTextureDepth", width, height, useRenderBuffer); + traceDowncall("rlDrawRenderBatchActive"); } - return (int)mh$.invokeExact(width, height, useRenderBuffer); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadTextureCubemap { + private static class rlCheckRenderBatchLimit { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, + raylib.C_BOOL, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadTextureCubemap"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlCheckRenderBatchLimit"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22328,62 +6161,56 @@ private static class rlLoadTextureCubemap { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) + * bool rlCheckRenderBatchLimit(int vCount) * } */ - public static FunctionDescriptor rlLoadTextureCubemap$descriptor() { - return rlLoadTextureCubemap.DESC; + public static FunctionDescriptor rlCheckRenderBatchLimit$descriptor() { + return rlCheckRenderBatchLimit.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) + * bool rlCheckRenderBatchLimit(int vCount) * } */ - public static MethodHandle rlLoadTextureCubemap$handle() { - return rlLoadTextureCubemap.HANDLE; + public static MethodHandle rlCheckRenderBatchLimit$handle() { + return rlCheckRenderBatchLimit.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) + * bool rlCheckRenderBatchLimit(int vCount) * } */ - public static MemorySegment rlLoadTextureCubemap$address() { - return rlLoadTextureCubemap.ADDR; + public static MemorySegment rlCheckRenderBatchLimit$address() { + return rlCheckRenderBatchLimit.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) + * bool rlCheckRenderBatchLimit(int vCount) * } */ - public static int rlLoadTextureCubemap(MemorySegment data, int size, int format) { - var mh$ = rlLoadTextureCubemap.HANDLE; + public static boolean rlCheckRenderBatchLimit(int vCount) { + var mh$ = rlCheckRenderBatchLimit.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadTextureCubemap", data, size, format); + traceDowncall("rlCheckRenderBatchLimit", vCount); } - return (int)mh$.invokeExact(data, size, format); + return (boolean)mh$.invokeExact(vCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUpdateTexture { + private static class rlSetTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22391,59 +6218,55 @@ private static class rlUpdateTexture { /** * Function descriptor for: * {@snippet lang=c : - * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) + * void rlSetTexture(unsigned int id) * } */ - public static FunctionDescriptor rlUpdateTexture$descriptor() { - return rlUpdateTexture.DESC; + public static FunctionDescriptor rlSetTexture$descriptor() { + return rlSetTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) + * void rlSetTexture(unsigned int id) * } */ - public static MethodHandle rlUpdateTexture$handle() { - return rlUpdateTexture.HANDLE; + public static MethodHandle rlSetTexture$handle() { + return rlSetTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) + * void rlSetTexture(unsigned int id) * } */ - public static MemorySegment rlUpdateTexture$address() { - return rlUpdateTexture.ADDR; + public static MemorySegment rlSetTexture$address() { + return rlSetTexture.ADDR; } /** * {@snippet lang=c : - * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) + * void rlSetTexture(unsigned int id) * } */ - public static void rlUpdateTexture(int id, int offsetX, int offsetY, int width, int height, int format, MemorySegment data) { - var mh$ = rlUpdateTexture.HANDLE; + public static void rlSetTexture(int id) { + var mh$ = rlSetTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUpdateTexture", id, offsetX, offsetY, width, height, format, data); + traceDowncall("rlSetTexture", id); } - mh$.invokeExact(id, offsetX, offsetY, width, height, format, data); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class rlGetGlTextureFormats { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER - ); + mh$.invokeExact(id); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetGlTextureFormats"); + private static class rlLoadVertexArray { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadVertexArray"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22451,57 +6274,59 @@ private static class rlGetGlTextureFormats { /** * Function descriptor for: * {@snippet lang=c : - * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) + * unsigned int rlLoadVertexArray() * } */ - public static FunctionDescriptor rlGetGlTextureFormats$descriptor() { - return rlGetGlTextureFormats.DESC; + public static FunctionDescriptor rlLoadVertexArray$descriptor() { + return rlLoadVertexArray.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) + * unsigned int rlLoadVertexArray() * } */ - public static MethodHandle rlGetGlTextureFormats$handle() { - return rlGetGlTextureFormats.HANDLE; + public static MethodHandle rlLoadVertexArray$handle() { + return rlLoadVertexArray.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) + * unsigned int rlLoadVertexArray() * } */ - public static MemorySegment rlGetGlTextureFormats$address() { - return rlGetGlTextureFormats.ADDR; + public static MemorySegment rlLoadVertexArray$address() { + return rlLoadVertexArray.ADDR; } /** * {@snippet lang=c : - * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) + * unsigned int rlLoadVertexArray() * } */ - public static void rlGetGlTextureFormats(int format, MemorySegment glInternalFormat, MemorySegment glFormat, MemorySegment glType) { - var mh$ = rlGetGlTextureFormats.HANDLE; + public static int rlLoadVertexArray() { + var mh$ = rlLoadVertexArray.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetGlTextureFormats", format, glInternalFormat, glFormat, glType); + traceDowncall("rlLoadVertexArray"); } - mh$.invokeExact(format, glInternalFormat, glFormat, glType); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetPixelFormatName { + private static class rlLoadVertexBuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, raylib.C_POINTER, - raylib.C_INT + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetPixelFormatName"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadVertexBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22509,56 +6334,59 @@ private static class rlGetPixelFormatName { /** * Function descriptor for: * {@snippet lang=c : - * const char *rlGetPixelFormatName(unsigned int format) + * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) * } */ - public static FunctionDescriptor rlGetPixelFormatName$descriptor() { - return rlGetPixelFormatName.DESC; + public static FunctionDescriptor rlLoadVertexBuffer$descriptor() { + return rlLoadVertexBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *rlGetPixelFormatName(unsigned int format) + * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) * } */ - public static MethodHandle rlGetPixelFormatName$handle() { - return rlGetPixelFormatName.HANDLE; + public static MethodHandle rlLoadVertexBuffer$handle() { + return rlLoadVertexBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *rlGetPixelFormatName(unsigned int format) + * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) * } */ - public static MemorySegment rlGetPixelFormatName$address() { - return rlGetPixelFormatName.ADDR; + public static MemorySegment rlLoadVertexBuffer$address() { + return rlLoadVertexBuffer.ADDR; } /** * {@snippet lang=c : - * const char *rlGetPixelFormatName(unsigned int format) + * unsigned int rlLoadVertexBuffer(const void *buffer, int size, bool dynamic) * } */ - public static MemorySegment rlGetPixelFormatName(int format) { - var mh$ = rlGetPixelFormatName.HANDLE; + public static int rlLoadVertexBuffer(MemorySegment buffer, int size, boolean dynamic) { + var mh$ = rlLoadVertexBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetPixelFormatName", format); + traceDowncall("rlLoadVertexBuffer", buffer, size, dynamic); } - return (MemorySegment)mh$.invokeExact(format); + return (int)mh$.invokeExact(buffer, size, dynamic); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class rlLoadVertexBufferElement { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadVertexBufferElement"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22566,60 +6394,59 @@ private static class rlUnloadTexture { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadTexture(unsigned int id) + * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) * } */ - public static FunctionDescriptor rlUnloadTexture$descriptor() { - return rlUnloadTexture.DESC; + public static FunctionDescriptor rlLoadVertexBufferElement$descriptor() { + return rlLoadVertexBufferElement.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadTexture(unsigned int id) + * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) * } */ - public static MethodHandle rlUnloadTexture$handle() { - return rlUnloadTexture.HANDLE; + public static MethodHandle rlLoadVertexBufferElement$handle() { + return rlLoadVertexBufferElement.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadTexture(unsigned int id) + * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) * } */ - public static MemorySegment rlUnloadTexture$address() { - return rlUnloadTexture.ADDR; + public static MemorySegment rlLoadVertexBufferElement$address() { + return rlLoadVertexBufferElement.ADDR; } /** * {@snippet lang=c : - * void rlUnloadTexture(unsigned int id) + * unsigned int rlLoadVertexBufferElement(const void *buffer, int size, bool dynamic) * } */ - public static void rlUnloadTexture(int id) { - var mh$ = rlUnloadTexture.HANDLE; + public static int rlLoadVertexBufferElement(MemorySegment buffer, int size, boolean dynamic) { + var mh$ = rlLoadVertexBufferElement.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadTexture", id); + traceDowncall("rlLoadVertexBufferElement", buffer, size, dynamic); } - mh$.invokeExact(id); + return (int)mh$.invokeExact(buffer, size, dynamic); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGenTextureMipmaps { + private static class rlUpdateVertexBuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, + raylib.C_POINTER, raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGenTextureMipmaps"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateVertexBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22627,60 +6454,59 @@ private static class rlGenTextureMipmaps { /** * Function descriptor for: * {@snippet lang=c : - * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) + * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) * } */ - public static FunctionDescriptor rlGenTextureMipmaps$descriptor() { - return rlGenTextureMipmaps.DESC; + public static FunctionDescriptor rlUpdateVertexBuffer$descriptor() { + return rlUpdateVertexBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) + * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) * } */ - public static MethodHandle rlGenTextureMipmaps$handle() { - return rlGenTextureMipmaps.HANDLE; + public static MethodHandle rlUpdateVertexBuffer$handle() { + return rlUpdateVertexBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) + * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) * } */ - public static MemorySegment rlGenTextureMipmaps$address() { - return rlGenTextureMipmaps.ADDR; + public static MemorySegment rlUpdateVertexBuffer$address() { + return rlUpdateVertexBuffer.ADDR; } /** * {@snippet lang=c : - * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) + * void rlUpdateVertexBuffer(unsigned int bufferId, const void *data, int dataSize, int offset) * } */ - public static void rlGenTextureMipmaps(int id, int width, int height, int format, MemorySegment mipmaps) { - var mh$ = rlGenTextureMipmaps.HANDLE; + public static void rlUpdateVertexBuffer(int bufferId, MemorySegment data, int dataSize, int offset) { + var mh$ = rlUpdateVertexBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGenTextureMipmaps", id, width, height, format, mipmaps); + traceDowncall("rlUpdateVertexBuffer", bufferId, data, dataSize, offset); } - mh$.invokeExact(id, width, height, format, mipmaps); + mh$.invokeExact(bufferId, data, dataSize, offset); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlReadTexturePixels { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_INT, + private static class rlUpdateVertexBufferElements { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, + raylib.C_POINTER, raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlReadTexturePixels"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateVertexBufferElements"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22688,58 +6514,56 @@ private static class rlReadTexturePixels { /** * Function descriptor for: * {@snippet lang=c : - * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) + * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) * } */ - public static FunctionDescriptor rlReadTexturePixels$descriptor() { - return rlReadTexturePixels.DESC; + public static FunctionDescriptor rlUpdateVertexBufferElements$descriptor() { + return rlUpdateVertexBufferElements.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) + * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) * } */ - public static MethodHandle rlReadTexturePixels$handle() { - return rlReadTexturePixels.HANDLE; + public static MethodHandle rlUpdateVertexBufferElements$handle() { + return rlUpdateVertexBufferElements.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) + * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) * } */ - public static MemorySegment rlReadTexturePixels$address() { - return rlReadTexturePixels.ADDR; + public static MemorySegment rlUpdateVertexBufferElements$address() { + return rlUpdateVertexBufferElements.ADDR; } /** * {@snippet lang=c : - * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) + * void rlUpdateVertexBufferElements(unsigned int id, const void *data, int dataSize, int offset) * } */ - public static MemorySegment rlReadTexturePixels(int id, int width, int height, int format) { - var mh$ = rlReadTexturePixels.HANDLE; + public static void rlUpdateVertexBufferElements(int id, MemorySegment data, int dataSize, int offset) { + var mh$ = rlUpdateVertexBufferElements.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlReadTexturePixels", id, width, height, format); + traceDowncall("rlUpdateVertexBufferElements", id, data, dataSize, offset); } - return (MemorySegment)mh$.invokeExact(id, width, height, format); + mh$.invokeExact(id, data, dataSize, offset); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlReadScreenPixels { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_INT, + private static class rlUnloadVertexArray { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlReadScreenPixels"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadVertexArray"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22747,55 +6571,56 @@ private static class rlReadScreenPixels { /** * Function descriptor for: * {@snippet lang=c : - * unsigned char *rlReadScreenPixels(int width, int height) + * void rlUnloadVertexArray(unsigned int vaoId) * } */ - public static FunctionDescriptor rlReadScreenPixels$descriptor() { - return rlReadScreenPixels.DESC; + public static FunctionDescriptor rlUnloadVertexArray$descriptor() { + return rlUnloadVertexArray.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned char *rlReadScreenPixels(int width, int height) + * void rlUnloadVertexArray(unsigned int vaoId) * } */ - public static MethodHandle rlReadScreenPixels$handle() { - return rlReadScreenPixels.HANDLE; + public static MethodHandle rlUnloadVertexArray$handle() { + return rlUnloadVertexArray.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned char *rlReadScreenPixels(int width, int height) + * void rlUnloadVertexArray(unsigned int vaoId) * } */ - public static MemorySegment rlReadScreenPixels$address() { - return rlReadScreenPixels.ADDR; + public static MemorySegment rlUnloadVertexArray$address() { + return rlUnloadVertexArray.ADDR; } /** * {@snippet lang=c : - * unsigned char *rlReadScreenPixels(int width, int height) + * void rlUnloadVertexArray(unsigned int vaoId) * } */ - public static MemorySegment rlReadScreenPixels(int width, int height) { - var mh$ = rlReadScreenPixels.HANDLE; + public static void rlUnloadVertexArray(int vaoId) { + var mh$ = rlUnloadVertexArray.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlReadScreenPixels", width, height); + traceDowncall("rlUnloadVertexArray", vaoId); } - return (MemorySegment)mh$.invokeExact(width, height); + mh$.invokeExact(vaoId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadFramebuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlUnloadVertexBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadVertexBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22803,60 +6628,61 @@ private static class rlLoadFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadFramebuffer() + * void rlUnloadVertexBuffer(unsigned int vboId) * } */ - public static FunctionDescriptor rlLoadFramebuffer$descriptor() { - return rlLoadFramebuffer.DESC; + public static FunctionDescriptor rlUnloadVertexBuffer$descriptor() { + return rlUnloadVertexBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadFramebuffer() + * void rlUnloadVertexBuffer(unsigned int vboId) * } */ - public static MethodHandle rlLoadFramebuffer$handle() { - return rlLoadFramebuffer.HANDLE; + public static MethodHandle rlUnloadVertexBuffer$handle() { + return rlUnloadVertexBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadFramebuffer() + * void rlUnloadVertexBuffer(unsigned int vboId) * } */ - public static MemorySegment rlLoadFramebuffer$address() { - return rlLoadFramebuffer.ADDR; + public static MemorySegment rlUnloadVertexBuffer$address() { + return rlUnloadVertexBuffer.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadFramebuffer() + * void rlUnloadVertexBuffer(unsigned int vboId) * } */ - public static int rlLoadFramebuffer() { - var mh$ = rlLoadFramebuffer.HANDLE; + public static void rlUnloadVertexBuffer(int vboId) { + var mh$ = rlUnloadVertexBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadFramebuffer"); + traceDowncall("rlUnloadVertexBuffer", vboId); } - return (int)mh$.invokeExact(); + mh$.invokeExact(vboId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlFramebufferAttach { + private static class rlSetVertexAttribute { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, raylib.C_INT, raylib.C_INT, + raylib.C_BOOL, raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlFramebufferAttach"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetVertexAttribute"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22864,57 +6690,57 @@ private static class rlFramebufferAttach { /** * Function descriptor for: * {@snippet lang=c : - * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) + * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) * } */ - public static FunctionDescriptor rlFramebufferAttach$descriptor() { - return rlFramebufferAttach.DESC; + public static FunctionDescriptor rlSetVertexAttribute$descriptor() { + return rlSetVertexAttribute.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) + * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) * } */ - public static MethodHandle rlFramebufferAttach$handle() { - return rlFramebufferAttach.HANDLE; + public static MethodHandle rlSetVertexAttribute$handle() { + return rlSetVertexAttribute.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) + * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) * } */ - public static MemorySegment rlFramebufferAttach$address() { - return rlFramebufferAttach.ADDR; + public static MemorySegment rlSetVertexAttribute$address() { + return rlSetVertexAttribute.ADDR; } /** * {@snippet lang=c : - * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) + * void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset) * } */ - public static void rlFramebufferAttach(int fboId, int texId, int attachType, int texType, int mipLevel) { - var mh$ = rlFramebufferAttach.HANDLE; + public static void rlSetVertexAttribute(int index, int compSize, int type, boolean normalized, int stride, int offset) { + var mh$ = rlSetVertexAttribute.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlFramebufferAttach", fboId, texId, attachType, texType, mipLevel); + traceDowncall("rlSetVertexAttribute", index, compSize, type, normalized, stride, offset); } - mh$.invokeExact(fboId, texId, attachType, texType, mipLevel); + mh$.invokeExact(index, compSize, type, normalized, stride, offset); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlFramebufferComplete { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, + private static class rlSetVertexAttributeDivisor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlFramebufferComplete"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetVertexAttributeDivisor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22922,56 +6748,59 @@ private static class rlFramebufferComplete { /** * Function descriptor for: * {@snippet lang=c : - * bool rlFramebufferComplete(unsigned int id) + * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) * } */ - public static FunctionDescriptor rlFramebufferComplete$descriptor() { - return rlFramebufferComplete.DESC; + public static FunctionDescriptor rlSetVertexAttributeDivisor$descriptor() { + return rlSetVertexAttributeDivisor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool rlFramebufferComplete(unsigned int id) + * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) * } */ - public static MethodHandle rlFramebufferComplete$handle() { - return rlFramebufferComplete.HANDLE; + public static MethodHandle rlSetVertexAttributeDivisor$handle() { + return rlSetVertexAttributeDivisor.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool rlFramebufferComplete(unsigned int id) + * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) * } */ - public static MemorySegment rlFramebufferComplete$address() { - return rlFramebufferComplete.ADDR; + public static MemorySegment rlSetVertexAttributeDivisor$address() { + return rlSetVertexAttributeDivisor.ADDR; } /** * {@snippet lang=c : - * bool rlFramebufferComplete(unsigned int id) + * void rlSetVertexAttributeDivisor(unsigned int index, int divisor) * } */ - public static boolean rlFramebufferComplete(int id) { - var mh$ = rlFramebufferComplete.HANDLE; + public static void rlSetVertexAttributeDivisor(int index, int divisor) { + var mh$ = rlSetVertexAttributeDivisor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlFramebufferComplete", id); + traceDowncall("rlSetVertexAttributeDivisor", index, divisor); } - return (boolean)mh$.invokeExact(id); + mh$.invokeExact(index, divisor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadFramebuffer { + private static class rlSetVertexAttributeDefault { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadFramebuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetVertexAttributeDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22979,58 +6808,57 @@ private static class rlUnloadFramebuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadFramebuffer(unsigned int id) + * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) * } */ - public static FunctionDescriptor rlUnloadFramebuffer$descriptor() { - return rlUnloadFramebuffer.DESC; + public static FunctionDescriptor rlSetVertexAttributeDefault$descriptor() { + return rlSetVertexAttributeDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadFramebuffer(unsigned int id) + * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) * } */ - public static MethodHandle rlUnloadFramebuffer$handle() { - return rlUnloadFramebuffer.HANDLE; + public static MethodHandle rlSetVertexAttributeDefault$handle() { + return rlSetVertexAttributeDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadFramebuffer(unsigned int id) + * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) * } */ - public static MemorySegment rlUnloadFramebuffer$address() { - return rlUnloadFramebuffer.ADDR; + public static MemorySegment rlSetVertexAttributeDefault$address() { + return rlSetVertexAttributeDefault.ADDR; } /** * {@snippet lang=c : - * void rlUnloadFramebuffer(unsigned int id) + * void rlSetVertexAttributeDefault(int locIndex, const void *value, int attribType, int count) * } */ - public static void rlUnloadFramebuffer(int id) { - var mh$ = rlUnloadFramebuffer.HANDLE; + public static void rlSetVertexAttributeDefault(int locIndex, MemorySegment value, int attribType, int count) { + var mh$ = rlSetVertexAttributeDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadFramebuffer", id); + traceDowncall("rlSetVertexAttributeDefault", locIndex, value, attribType, count); } - mh$.invokeExact(id); + mh$.invokeExact(locIndex, value, attribType, count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadShaderCode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class rlDrawVertexArray { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, - raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadShaderCode"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArray"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23038,58 +6866,58 @@ private static class rlLoadShaderCode { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) + * void rlDrawVertexArray(int offset, int count) * } */ - public static FunctionDescriptor rlLoadShaderCode$descriptor() { - return rlLoadShaderCode.DESC; + public static FunctionDescriptor rlDrawVertexArray$descriptor() { + return rlDrawVertexArray.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) + * void rlDrawVertexArray(int offset, int count) * } */ - public static MethodHandle rlLoadShaderCode$handle() { - return rlLoadShaderCode.HANDLE; + public static MethodHandle rlDrawVertexArray$handle() { + return rlDrawVertexArray.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) + * void rlDrawVertexArray(int offset, int count) * } */ - public static MemorySegment rlLoadShaderCode$address() { - return rlLoadShaderCode.ADDR; + public static MemorySegment rlDrawVertexArray$address() { + return rlDrawVertexArray.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) + * void rlDrawVertexArray(int offset, int count) * } */ - public static int rlLoadShaderCode(MemorySegment vsCode, MemorySegment fsCode) { - var mh$ = rlLoadShaderCode.HANDLE; + public static void rlDrawVertexArray(int offset, int count) { + var mh$ = rlDrawVertexArray.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadShaderCode", vsCode, fsCode); + traceDowncall("rlDrawVertexArray", offset, count); } - return (int)mh$.invokeExact(vsCode, fsCode); + mh$.invokeExact(offset, count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlCompileShader { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class rlDrawVertexArrayElements { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlCompileShader"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArrayElements"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23097,58 +6925,58 @@ private static class rlCompileShader { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlCompileShader(const char *shaderCode, int type) + * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) * } */ - public static FunctionDescriptor rlCompileShader$descriptor() { - return rlCompileShader.DESC; + public static FunctionDescriptor rlDrawVertexArrayElements$descriptor() { + return rlDrawVertexArrayElements.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlCompileShader(const char *shaderCode, int type) + * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) * } */ - public static MethodHandle rlCompileShader$handle() { - return rlCompileShader.HANDLE; + public static MethodHandle rlDrawVertexArrayElements$handle() { + return rlDrawVertexArrayElements.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlCompileShader(const char *shaderCode, int type) + * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) * } */ - public static MemorySegment rlCompileShader$address() { - return rlCompileShader.ADDR; + public static MemorySegment rlDrawVertexArrayElements$address() { + return rlDrawVertexArrayElements.ADDR; } /** * {@snippet lang=c : - * unsigned int rlCompileShader(const char *shaderCode, int type) + * void rlDrawVertexArrayElements(int offset, int count, const void *buffer) * } */ - public static int rlCompileShader(MemorySegment shaderCode, int type) { - var mh$ = rlCompileShader.HANDLE; + public static void rlDrawVertexArrayElements(int offset, int count, MemorySegment buffer) { + var mh$ = rlDrawVertexArrayElements.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlCompileShader", shaderCode, type); + traceDowncall("rlDrawVertexArrayElements", offset, count, buffer); } - return (int)mh$.invokeExact(shaderCode, type); + mh$.invokeExact(offset, count, buffer); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadShaderProgram { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class rlDrawVertexArrayInstanced { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadShaderProgram"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArrayInstanced"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23156,56 +6984,59 @@ private static class rlLoadShaderProgram { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) + * void rlDrawVertexArrayInstanced(int offset, int count, int instances) * } */ - public static FunctionDescriptor rlLoadShaderProgram$descriptor() { - return rlLoadShaderProgram.DESC; + public static FunctionDescriptor rlDrawVertexArrayInstanced$descriptor() { + return rlDrawVertexArrayInstanced.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) + * void rlDrawVertexArrayInstanced(int offset, int count, int instances) * } */ - public static MethodHandle rlLoadShaderProgram$handle() { - return rlLoadShaderProgram.HANDLE; + public static MethodHandle rlDrawVertexArrayInstanced$handle() { + return rlDrawVertexArrayInstanced.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) + * void rlDrawVertexArrayInstanced(int offset, int count, int instances) * } */ - public static MemorySegment rlLoadShaderProgram$address() { - return rlLoadShaderProgram.ADDR; + public static MemorySegment rlDrawVertexArrayInstanced$address() { + return rlDrawVertexArrayInstanced.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) + * void rlDrawVertexArrayInstanced(int offset, int count, int instances) * } */ - public static int rlLoadShaderProgram(int vShaderId, int fShaderId) { - var mh$ = rlLoadShaderProgram.HANDLE; + public static void rlDrawVertexArrayInstanced(int offset, int count, int instances) { + var mh$ = rlDrawVertexArrayInstanced.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadShaderProgram", vShaderId, fShaderId); + traceDowncall("rlDrawVertexArrayInstanced", offset, count, instances); } - return (int)mh$.invokeExact(vShaderId, fShaderId); + mh$.invokeExact(offset, count, instances); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadShaderProgram { + private static class rlDrawVertexArrayElementsInstanced { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadShaderProgram"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlDrawVertexArrayElementsInstanced"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23213,58 +7044,61 @@ private static class rlUnloadShaderProgram { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadShaderProgram(unsigned int id) + * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) * } */ - public static FunctionDescriptor rlUnloadShaderProgram$descriptor() { - return rlUnloadShaderProgram.DESC; + public static FunctionDescriptor rlDrawVertexArrayElementsInstanced$descriptor() { + return rlDrawVertexArrayElementsInstanced.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadShaderProgram(unsigned int id) + * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) * } */ - public static MethodHandle rlUnloadShaderProgram$handle() { - return rlUnloadShaderProgram.HANDLE; + public static MethodHandle rlDrawVertexArrayElementsInstanced$handle() { + return rlDrawVertexArrayElementsInstanced.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadShaderProgram(unsigned int id) + * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) * } */ - public static MemorySegment rlUnloadShaderProgram$address() { - return rlUnloadShaderProgram.ADDR; + public static MemorySegment rlDrawVertexArrayElementsInstanced$address() { + return rlDrawVertexArrayElementsInstanced.ADDR; } /** * {@snippet lang=c : - * void rlUnloadShaderProgram(unsigned int id) + * void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances) * } */ - public static void rlUnloadShaderProgram(int id) { - var mh$ = rlUnloadShaderProgram.HANDLE; + public static void rlDrawVertexArrayElementsInstanced(int offset, int count, MemorySegment buffer, int instances) { + var mh$ = rlDrawVertexArrayElementsInstanced.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadShaderProgram", id); + traceDowncall("rlDrawVertexArrayElementsInstanced", offset, count, buffer, instances); } - mh$.invokeExact(id); + mh$.invokeExact(offset, count, buffer, instances); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetLocationUniform { + private static class rlLoadTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER, raylib.C_INT, raylib.C_INT, - raylib.C_POINTER + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetLocationUniform"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23272,58 +7106,59 @@ private static class rlGetLocationUniform { /** * Function descriptor for: * {@snippet lang=c : - * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) + * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) * } */ - public static FunctionDescriptor rlGetLocationUniform$descriptor() { - return rlGetLocationUniform.DESC; + public static FunctionDescriptor rlLoadTexture$descriptor() { + return rlLoadTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) + * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) * } */ - public static MethodHandle rlGetLocationUniform$handle() { - return rlGetLocationUniform.HANDLE; + public static MethodHandle rlLoadTexture$handle() { + return rlLoadTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) + * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) * } */ - public static MemorySegment rlGetLocationUniform$address() { - return rlGetLocationUniform.ADDR; + public static MemorySegment rlLoadTexture$address() { + return rlLoadTexture.ADDR; } /** * {@snippet lang=c : - * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) + * unsigned int rlLoadTexture(const void *data, int width, int height, int format, int mipmapCount) * } */ - public static int rlGetLocationUniform(int shaderId, MemorySegment uniformName) { - var mh$ = rlGetLocationUniform.HANDLE; + public static int rlLoadTexture(MemorySegment data, int width, int height, int format, int mipmapCount) { + var mh$ = rlLoadTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetLocationUniform", shaderId, uniformName); + traceDowncall("rlLoadTexture", data, width, height, format, mipmapCount); } - return (int)mh$.invokeExact(shaderId, uniformName); + return (int)mh$.invokeExact(data, width, height, format, mipmapCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetLocationAttrib { + private static class rlLoadTextureDepth { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, raylib.C_INT, - raylib.C_POINTER + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetLocationAttrib"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadTextureDepth"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23331,59 +7166,59 @@ private static class rlGetLocationAttrib { /** * Function descriptor for: * {@snippet lang=c : - * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) + * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) * } */ - public static FunctionDescriptor rlGetLocationAttrib$descriptor() { - return rlGetLocationAttrib.DESC; + public static FunctionDescriptor rlLoadTextureDepth$descriptor() { + return rlLoadTextureDepth.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) + * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) * } */ - public static MethodHandle rlGetLocationAttrib$handle() { - return rlGetLocationAttrib.HANDLE; + public static MethodHandle rlLoadTextureDepth$handle() { + return rlLoadTextureDepth.HANDLE; } /** * Address for: * {@snippet lang=c : - * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) + * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) * } */ - public static MemorySegment rlGetLocationAttrib$address() { - return rlGetLocationAttrib.ADDR; + public static MemorySegment rlLoadTextureDepth$address() { + return rlLoadTextureDepth.ADDR; } /** * {@snippet lang=c : - * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) + * unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer) * } */ - public static int rlGetLocationAttrib(int shaderId, MemorySegment attribName) { - var mh$ = rlGetLocationAttrib.HANDLE; + public static int rlLoadTextureDepth(int width, int height, boolean useRenderBuffer) { + var mh$ = rlLoadTextureDepth.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetLocationAttrib", shaderId, attribName); + traceDowncall("rlLoadTextureDepth", width, height, useRenderBuffer); } - return (int)mh$.invokeExact(shaderId, attribName); + return (int)mh$.invokeExact(width, height, useRenderBuffer); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetUniform { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + private static class rlLoadTextureCubemap { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, raylib.C_POINTER, raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetUniform"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadTextureCubemap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23391,57 +7226,62 @@ private static class rlSetUniform { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) + * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) * } */ - public static FunctionDescriptor rlSetUniform$descriptor() { - return rlSetUniform.DESC; + public static FunctionDescriptor rlLoadTextureCubemap$descriptor() { + return rlLoadTextureCubemap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) + * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) * } */ - public static MethodHandle rlSetUniform$handle() { - return rlSetUniform.HANDLE; + public static MethodHandle rlLoadTextureCubemap$handle() { + return rlLoadTextureCubemap.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) + * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) * } */ - public static MemorySegment rlSetUniform$address() { - return rlSetUniform.ADDR; + public static MemorySegment rlLoadTextureCubemap$address() { + return rlLoadTextureCubemap.ADDR; } /** * {@snippet lang=c : - * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) + * unsigned int rlLoadTextureCubemap(const void *data, int size, int format) * } */ - public static void rlSetUniform(int locIndex, MemorySegment value, int uniformType, int count) { - var mh$ = rlSetUniform.HANDLE; + public static int rlLoadTextureCubemap(MemorySegment data, int size, int format) { + var mh$ = rlLoadTextureCubemap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetUniform", locIndex, value, uniformType, count); + traceDowncall("rlLoadTextureCubemap", data, size, format); } - mh$.invokeExact(locIndex, value, uniformType, count); + return (int)mh$.invokeExact(data, size, format); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetUniformMatrix { + private static class rlUpdateTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, - Matrix.layout() + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetUniformMatrix"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23449,57 +7289,59 @@ private static class rlSetUniformMatrix { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetUniformMatrix(int locIndex, Matrix mat) + * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) * } */ - public static FunctionDescriptor rlSetUniformMatrix$descriptor() { - return rlSetUniformMatrix.DESC; + public static FunctionDescriptor rlUpdateTexture$descriptor() { + return rlUpdateTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetUniformMatrix(int locIndex, Matrix mat) + * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) * } */ - public static MethodHandle rlSetUniformMatrix$handle() { - return rlSetUniformMatrix.HANDLE; + public static MethodHandle rlUpdateTexture$handle() { + return rlUpdateTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetUniformMatrix(int locIndex, Matrix mat) + * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) * } */ - public static MemorySegment rlSetUniformMatrix$address() { - return rlSetUniformMatrix.ADDR; + public static MemorySegment rlUpdateTexture$address() { + return rlUpdateTexture.ADDR; } /** * {@snippet lang=c : - * void rlSetUniformMatrix(int locIndex, Matrix mat) + * void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) * } */ - public static void rlSetUniformMatrix(int locIndex, MemorySegment mat) { - var mh$ = rlSetUniformMatrix.HANDLE; + public static void rlUpdateTexture(int id, int offsetX, int offsetY, int width, int height, int format, MemorySegment data) { + var mh$ = rlUpdateTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetUniformMatrix", locIndex, mat); + traceDowncall("rlUpdateTexture", id, offsetX, offsetY, width, height, format, data); } - mh$.invokeExact(locIndex, mat); + mh$.invokeExact(id, offsetX, offsetY, width, height, format, data); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetUniformSampler { + private static class rlGetGlTextureFormats { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetUniformSampler"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetGlTextureFormats"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23507,57 +7349,57 @@ private static class rlSetUniformSampler { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetUniformSampler(int locIndex, unsigned int textureId) + * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) * } */ - public static FunctionDescriptor rlSetUniformSampler$descriptor() { - return rlSetUniformSampler.DESC; + public static FunctionDescriptor rlGetGlTextureFormats$descriptor() { + return rlGetGlTextureFormats.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetUniformSampler(int locIndex, unsigned int textureId) + * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) * } */ - public static MethodHandle rlSetUniformSampler$handle() { - return rlSetUniformSampler.HANDLE; + public static MethodHandle rlGetGlTextureFormats$handle() { + return rlGetGlTextureFormats.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetUniformSampler(int locIndex, unsigned int textureId) + * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) * } */ - public static MemorySegment rlSetUniformSampler$address() { - return rlSetUniformSampler.ADDR; + public static MemorySegment rlGetGlTextureFormats$address() { + return rlGetGlTextureFormats.ADDR; } /** * {@snippet lang=c : - * void rlSetUniformSampler(int locIndex, unsigned int textureId) + * void rlGetGlTextureFormats(int format, unsigned int *glInternalFormat, unsigned int *glFormat, unsigned int *glType) * } */ - public static void rlSetUniformSampler(int locIndex, int textureId) { - var mh$ = rlSetUniformSampler.HANDLE; + public static void rlGetGlTextureFormats(int format, MemorySegment glInternalFormat, MemorySegment glFormat, MemorySegment glType) { + var mh$ = rlGetGlTextureFormats.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetUniformSampler", locIndex, textureId); + traceDowncall("rlGetGlTextureFormats", format, glInternalFormat, glFormat, glType); } - mh$.invokeExact(locIndex, textureId); + mh$.invokeExact(format, glInternalFormat, glFormat, glType); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetShader { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER + private static class rlGetPixelFormatName { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetShader"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetPixelFormatName"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23565,57 +7407,56 @@ private static class rlSetShader { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetShader(unsigned int id, int *locs) + * const char *rlGetPixelFormatName(unsigned int format) * } */ - public static FunctionDescriptor rlSetShader$descriptor() { - return rlSetShader.DESC; + public static FunctionDescriptor rlGetPixelFormatName$descriptor() { + return rlGetPixelFormatName.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetShader(unsigned int id, int *locs) + * const char *rlGetPixelFormatName(unsigned int format) * } */ - public static MethodHandle rlSetShader$handle() { - return rlSetShader.HANDLE; + public static MethodHandle rlGetPixelFormatName$handle() { + return rlGetPixelFormatName.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetShader(unsigned int id, int *locs) + * const char *rlGetPixelFormatName(unsigned int format) * } */ - public static MemorySegment rlSetShader$address() { - return rlSetShader.ADDR; + public static MemorySegment rlGetPixelFormatName$address() { + return rlGetPixelFormatName.ADDR; } /** * {@snippet lang=c : - * void rlSetShader(unsigned int id, int *locs) + * const char *rlGetPixelFormatName(unsigned int format) * } */ - public static void rlSetShader(int id, MemorySegment locs) { - var mh$ = rlSetShader.HANDLE; + public static MemorySegment rlGetPixelFormatName(int format) { + var mh$ = rlGetPixelFormatName.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetShader", id, locs); + traceDowncall("rlGetPixelFormatName", format); } - mh$.invokeExact(id, locs); + return (MemorySegment)mh$.invokeExact(format); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadComputeShaderProgram { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, + private static class rlUnloadTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadComputeShaderProgram"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23623,58 +7464,60 @@ private static class rlLoadComputeShaderProgram { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) + * void rlUnloadTexture(unsigned int id) * } */ - public static FunctionDescriptor rlLoadComputeShaderProgram$descriptor() { - return rlLoadComputeShaderProgram.DESC; + public static FunctionDescriptor rlUnloadTexture$descriptor() { + return rlUnloadTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) + * void rlUnloadTexture(unsigned int id) * } */ - public static MethodHandle rlLoadComputeShaderProgram$handle() { - return rlLoadComputeShaderProgram.HANDLE; + public static MethodHandle rlUnloadTexture$handle() { + return rlUnloadTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) + * void rlUnloadTexture(unsigned int id) * } */ - public static MemorySegment rlLoadComputeShaderProgram$address() { - return rlLoadComputeShaderProgram.ADDR; + public static MemorySegment rlUnloadTexture$address() { + return rlUnloadTexture.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) + * void rlUnloadTexture(unsigned int id) * } */ - public static int rlLoadComputeShaderProgram(int shaderId) { - var mh$ = rlLoadComputeShaderProgram.HANDLE; + public static void rlUnloadTexture(int id) { + var mh$ = rlUnloadTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadComputeShaderProgram", shaderId); + traceDowncall("rlUnloadTexture", id); } - return (int)mh$.invokeExact(shaderId); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlComputeShaderDispatch { + private static class rlGenTextureMipmaps { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, raylib.C_INT, - raylib.C_INT + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlComputeShaderDispatch"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGenTextureMipmaps"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23682,59 +7525,60 @@ private static class rlComputeShaderDispatch { /** * Function descriptor for: * {@snippet lang=c : - * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) + * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) * } */ - public static FunctionDescriptor rlComputeShaderDispatch$descriptor() { - return rlComputeShaderDispatch.DESC; + public static FunctionDescriptor rlGenTextureMipmaps$descriptor() { + return rlGenTextureMipmaps.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) + * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) * } */ - public static MethodHandle rlComputeShaderDispatch$handle() { - return rlComputeShaderDispatch.HANDLE; + public static MethodHandle rlGenTextureMipmaps$handle() { + return rlGenTextureMipmaps.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) + * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) * } */ - public static MemorySegment rlComputeShaderDispatch$address() { - return rlComputeShaderDispatch.ADDR; + public static MemorySegment rlGenTextureMipmaps$address() { + return rlGenTextureMipmaps.ADDR; } /** * {@snippet lang=c : - * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) + * void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int *mipmaps) * } */ - public static void rlComputeShaderDispatch(int groupX, int groupY, int groupZ) { - var mh$ = rlComputeShaderDispatch.HANDLE; + public static void rlGenTextureMipmaps(int id, int width, int height, int format, MemorySegment mipmaps) { + var mh$ = rlGenTextureMipmaps.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlComputeShaderDispatch", groupX, groupY, groupZ); + traceDowncall("rlGenTextureMipmaps", id, width, height, format, mipmaps); } - mh$.invokeExact(groupX, groupY, groupZ); + mh$.invokeExact(id, width, height, format, mipmaps); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadShaderBuffer { + private static class rlReadTexturePixels { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT, raylib.C_INT, raylib.C_INT, - raylib.C_POINTER, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadShaderBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlReadTexturePixels"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23742,56 +7586,58 @@ private static class rlLoadShaderBuffer { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) + * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) * } */ - public static FunctionDescriptor rlLoadShaderBuffer$descriptor() { - return rlLoadShaderBuffer.DESC; + public static FunctionDescriptor rlReadTexturePixels$descriptor() { + return rlReadTexturePixels.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) + * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) * } */ - public static MethodHandle rlLoadShaderBuffer$handle() { - return rlLoadShaderBuffer.HANDLE; + public static MethodHandle rlReadTexturePixels$handle() { + return rlReadTexturePixels.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) + * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) * } */ - public static MemorySegment rlLoadShaderBuffer$address() { - return rlLoadShaderBuffer.ADDR; + public static MemorySegment rlReadTexturePixels$address() { + return rlReadTexturePixels.ADDR; } /** * {@snippet lang=c : - * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) + * void *rlReadTexturePixels(unsigned int id, int width, int height, int format) * } */ - public static int rlLoadShaderBuffer(int size, MemorySegment data, int usageHint) { - var mh$ = rlLoadShaderBuffer.HANDLE; + public static MemorySegment rlReadTexturePixels(int id, int width, int height, int format) { + var mh$ = rlReadTexturePixels.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadShaderBuffer", size, data, usageHint); + traceDowncall("rlReadTexturePixels", id, width, height, format); } - return (int)mh$.invokeExact(size, data, usageHint); + return (MemorySegment)mh$.invokeExact(id, width, height, format); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUnloadShaderBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + private static class rlReadScreenPixels { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadShaderBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlReadScreenPixels"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23799,59 +7645,55 @@ private static class rlUnloadShaderBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlUnloadShaderBuffer(unsigned int ssboId) + * unsigned char *rlReadScreenPixels(int width, int height) * } */ - public static FunctionDescriptor rlUnloadShaderBuffer$descriptor() { - return rlUnloadShaderBuffer.DESC; + public static FunctionDescriptor rlReadScreenPixels$descriptor() { + return rlReadScreenPixels.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUnloadShaderBuffer(unsigned int ssboId) + * unsigned char *rlReadScreenPixels(int width, int height) * } */ - public static MethodHandle rlUnloadShaderBuffer$handle() { - return rlUnloadShaderBuffer.HANDLE; + public static MethodHandle rlReadScreenPixels$handle() { + return rlReadScreenPixels.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUnloadShaderBuffer(unsigned int ssboId) + * unsigned char *rlReadScreenPixels(int width, int height) * } */ - public static MemorySegment rlUnloadShaderBuffer$address() { - return rlUnloadShaderBuffer.ADDR; + public static MemorySegment rlReadScreenPixels$address() { + return rlReadScreenPixels.ADDR; } /** * {@snippet lang=c : - * void rlUnloadShaderBuffer(unsigned int ssboId) + * unsigned char *rlReadScreenPixels(int width, int height) * } */ - public static void rlUnloadShaderBuffer(int ssboId) { - var mh$ = rlUnloadShaderBuffer.HANDLE; + public static MemorySegment rlReadScreenPixels(int width, int height) { + var mh$ = rlReadScreenPixels.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUnloadShaderBuffer", ssboId); + traceDowncall("rlReadScreenPixels", width, height); } - mh$.invokeExact(ssboId); + return (MemorySegment)mh$.invokeExact(width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlUpdateShaderBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT - ); + private static class rlLoadFramebuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateShaderBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23859,57 +7701,60 @@ private static class rlUpdateShaderBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) + * unsigned int rlLoadFramebuffer() * } */ - public static FunctionDescriptor rlUpdateShaderBuffer$descriptor() { - return rlUpdateShaderBuffer.DESC; + public static FunctionDescriptor rlLoadFramebuffer$descriptor() { + return rlLoadFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) + * unsigned int rlLoadFramebuffer() * } */ - public static MethodHandle rlUpdateShaderBuffer$handle() { - return rlUpdateShaderBuffer.HANDLE; + public static MethodHandle rlLoadFramebuffer$handle() { + return rlLoadFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) + * unsigned int rlLoadFramebuffer() * } */ - public static MemorySegment rlUpdateShaderBuffer$address() { - return rlUpdateShaderBuffer.ADDR; + public static MemorySegment rlLoadFramebuffer$address() { + return rlLoadFramebuffer.ADDR; } /** * {@snippet lang=c : - * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) + * unsigned int rlLoadFramebuffer() * } */ - public static void rlUpdateShaderBuffer(int id, MemorySegment data, int dataSize, int offset) { - var mh$ = rlUpdateShaderBuffer.HANDLE; + public static int rlLoadFramebuffer() { + var mh$ = rlLoadFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlUpdateShaderBuffer", id, data, dataSize, offset); + traceDowncall("rlLoadFramebuffer"); } - mh$.invokeExact(id, data, dataSize, offset); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlBindShaderBuffer { + private static class rlFramebufferAttach { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlBindShaderBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlFramebufferAttach"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23917,59 +7762,57 @@ private static class rlBindShaderBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlBindShaderBuffer(unsigned int id, unsigned int index) + * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) * } */ - public static FunctionDescriptor rlBindShaderBuffer$descriptor() { - return rlBindShaderBuffer.DESC; + public static FunctionDescriptor rlFramebufferAttach$descriptor() { + return rlFramebufferAttach.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlBindShaderBuffer(unsigned int id, unsigned int index) + * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) * } */ - public static MethodHandle rlBindShaderBuffer$handle() { - return rlBindShaderBuffer.HANDLE; + public static MethodHandle rlFramebufferAttach$handle() { + return rlFramebufferAttach.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlBindShaderBuffer(unsigned int id, unsigned int index) + * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) * } */ - public static MemorySegment rlBindShaderBuffer$address() { - return rlBindShaderBuffer.ADDR; + public static MemorySegment rlFramebufferAttach$address() { + return rlFramebufferAttach.ADDR; } /** * {@snippet lang=c : - * void rlBindShaderBuffer(unsigned int id, unsigned int index) + * void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel) * } */ - public static void rlBindShaderBuffer(int id, int index) { - var mh$ = rlBindShaderBuffer.HANDLE; + public static void rlFramebufferAttach(int fboId, int texId, int attachType, int texType, int mipLevel) { + var mh$ = rlFramebufferAttach.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlBindShaderBuffer", id, index); + traceDowncall("rlFramebufferAttach", fboId, texId, attachType, texType, mipLevel); } - mh$.invokeExact(id, index); + mh$.invokeExact(fboId, texId, attachType, texType, mipLevel); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlReadShaderBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER, - raylib.C_INT, + private static class rlFramebufferComplete { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlReadShaderBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlFramebufferComplete"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23977,60 +7820,56 @@ private static class rlReadShaderBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) + * bool rlFramebufferComplete(unsigned int id) * } */ - public static FunctionDescriptor rlReadShaderBuffer$descriptor() { - return rlReadShaderBuffer.DESC; + public static FunctionDescriptor rlFramebufferComplete$descriptor() { + return rlFramebufferComplete.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) + * bool rlFramebufferComplete(unsigned int id) * } */ - public static MethodHandle rlReadShaderBuffer$handle() { - return rlReadShaderBuffer.HANDLE; + public static MethodHandle rlFramebufferComplete$handle() { + return rlFramebufferComplete.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) + * bool rlFramebufferComplete(unsigned int id) * } */ - public static MemorySegment rlReadShaderBuffer$address() { - return rlReadShaderBuffer.ADDR; + public static MemorySegment rlFramebufferComplete$address() { + return rlFramebufferComplete.ADDR; } /** * {@snippet lang=c : - * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) + * bool rlFramebufferComplete(unsigned int id) * } */ - public static void rlReadShaderBuffer(int id, MemorySegment dest, int count, int offset) { - var mh$ = rlReadShaderBuffer.HANDLE; + public static boolean rlFramebufferComplete(int id) { + var mh$ = rlFramebufferComplete.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlReadShaderBuffer", id, dest, count, offset); + traceDowncall("rlFramebufferComplete", id); } - mh$.invokeExact(id, dest, count, offset); + return (boolean)mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlCopyShaderBuffer { + private static class rlUnloadFramebuffer { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlCopyShaderBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadFramebuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24038,57 +7877,58 @@ private static class rlCopyShaderBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) + * void rlUnloadFramebuffer(unsigned int id) * } */ - public static FunctionDescriptor rlCopyShaderBuffer$descriptor() { - return rlCopyShaderBuffer.DESC; + public static FunctionDescriptor rlUnloadFramebuffer$descriptor() { + return rlUnloadFramebuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) + * void rlUnloadFramebuffer(unsigned int id) * } */ - public static MethodHandle rlCopyShaderBuffer$handle() { - return rlCopyShaderBuffer.HANDLE; + public static MethodHandle rlUnloadFramebuffer$handle() { + return rlUnloadFramebuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) + * void rlUnloadFramebuffer(unsigned int id) * } */ - public static MemorySegment rlCopyShaderBuffer$address() { - return rlCopyShaderBuffer.ADDR; + public static MemorySegment rlUnloadFramebuffer$address() { + return rlUnloadFramebuffer.ADDR; } /** * {@snippet lang=c : - * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) + * void rlUnloadFramebuffer(unsigned int id) * } */ - public static void rlCopyShaderBuffer(int destId, int srcId, int destOffset, int srcOffset, int count) { - var mh$ = rlCopyShaderBuffer.HANDLE; + public static void rlUnloadFramebuffer(int id) { + var mh$ = rlUnloadFramebuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlCopyShaderBuffer", destId, srcId, destOffset, srcOffset, count); + traceDowncall("rlUnloadFramebuffer", id); } - mh$.invokeExact(destId, srcId, destOffset, srcOffset, count); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetShaderBufferSize { + private static class rlLoadShaderCode { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetShaderBufferSize"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadShaderCode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24096,59 +7936,58 @@ private static class rlGetShaderBufferSize { /** * Function descriptor for: * {@snippet lang=c : - * unsigned int rlGetShaderBufferSize(unsigned int id) + * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) * } */ - public static FunctionDescriptor rlGetShaderBufferSize$descriptor() { - return rlGetShaderBufferSize.DESC; + public static FunctionDescriptor rlLoadShaderCode$descriptor() { + return rlLoadShaderCode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned int rlGetShaderBufferSize(unsigned int id) + * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) * } */ - public static MethodHandle rlGetShaderBufferSize$handle() { - return rlGetShaderBufferSize.HANDLE; + public static MethodHandle rlLoadShaderCode$handle() { + return rlLoadShaderCode.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned int rlGetShaderBufferSize(unsigned int id) + * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) * } */ - public static MemorySegment rlGetShaderBufferSize$address() { - return rlGetShaderBufferSize.ADDR; + public static MemorySegment rlLoadShaderCode$address() { + return rlLoadShaderCode.ADDR; } /** * {@snippet lang=c : - * unsigned int rlGetShaderBufferSize(unsigned int id) + * unsigned int rlLoadShaderCode(const char *vsCode, const char *fsCode) * } */ - public static int rlGetShaderBufferSize(int id) { - var mh$ = rlGetShaderBufferSize.HANDLE; + public static int rlLoadShaderCode(MemorySegment vsCode, MemorySegment fsCode) { + var mh$ = rlLoadShaderCode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetShaderBufferSize", id); + traceDowncall("rlLoadShaderCode", vsCode, fsCode); } - return (int)mh$.invokeExact(id); + return (int)mh$.invokeExact(vsCode, fsCode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlBindImageTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, + private static class rlCompileShader { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, - raylib.C_BOOL + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlBindImageTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlCompileShader"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24156,55 +7995,58 @@ private static class rlBindImageTexture { /** * Function descriptor for: * {@snippet lang=c : - * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) + * unsigned int rlCompileShader(const char *shaderCode, int type) * } */ - public static FunctionDescriptor rlBindImageTexture$descriptor() { - return rlBindImageTexture.DESC; + public static FunctionDescriptor rlCompileShader$descriptor() { + return rlCompileShader.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) + * unsigned int rlCompileShader(const char *shaderCode, int type) * } */ - public static MethodHandle rlBindImageTexture$handle() { - return rlBindImageTexture.HANDLE; + public static MethodHandle rlCompileShader$handle() { + return rlCompileShader.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) + * unsigned int rlCompileShader(const char *shaderCode, int type) * } */ - public static MemorySegment rlBindImageTexture$address() { - return rlBindImageTexture.ADDR; + public static MemorySegment rlCompileShader$address() { + return rlCompileShader.ADDR; } /** * {@snippet lang=c : - * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) + * unsigned int rlCompileShader(const char *shaderCode, int type) * } */ - public static void rlBindImageTexture(int id, int index, int format, boolean readonly) { - var mh$ = rlBindImageTexture.HANDLE; + public static int rlCompileShader(MemorySegment shaderCode, int type) { + var mh$ = rlCompileShader.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlBindImageTexture", id, index, format, readonly); + traceDowncall("rlCompileShader", shaderCode, type); } - mh$.invokeExact(id, index, format, readonly); + return (int)mh$.invokeExact(shaderCode, type); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetMatrixModelview { + private static class rlLoadShaderProgram { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout() ); + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixModelview"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadShaderProgram"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24212,55 +8054,56 @@ private static class rlGetMatrixModelview { /** * Function descriptor for: * {@snippet lang=c : - * Matrix rlGetMatrixModelview() + * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) * } */ - public static FunctionDescriptor rlGetMatrixModelview$descriptor() { - return rlGetMatrixModelview.DESC; + public static FunctionDescriptor rlLoadShaderProgram$descriptor() { + return rlLoadShaderProgram.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix rlGetMatrixModelview() + * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) * } */ - public static MethodHandle rlGetMatrixModelview$handle() { - return rlGetMatrixModelview.HANDLE; + public static MethodHandle rlLoadShaderProgram$handle() { + return rlLoadShaderProgram.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix rlGetMatrixModelview() + * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) * } */ - public static MemorySegment rlGetMatrixModelview$address() { - return rlGetMatrixModelview.ADDR; + public static MemorySegment rlLoadShaderProgram$address() { + return rlLoadShaderProgram.ADDR; } /** * {@snippet lang=c : - * Matrix rlGetMatrixModelview() + * unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) * } */ - public static MemorySegment rlGetMatrixModelview(SegmentAllocator allocator) { - var mh$ = rlGetMatrixModelview.HANDLE; + public static int rlLoadShaderProgram(int vShaderId, int fShaderId) { + var mh$ = rlLoadShaderProgram.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetMatrixModelview", allocator); + traceDowncall("rlLoadShaderProgram", vShaderId, fShaderId); } - return (MemorySegment)mh$.invokeExact(allocator); + return (int)mh$.invokeExact(vShaderId, fShaderId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetMatrixProjection { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout() ); + private static class rlUnloadShaderProgram { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixProjection"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadShaderProgram"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24268,55 +8111,58 @@ private static class rlGetMatrixProjection { /** * Function descriptor for: * {@snippet lang=c : - * Matrix rlGetMatrixProjection() + * void rlUnloadShaderProgram(unsigned int id) * } */ - public static FunctionDescriptor rlGetMatrixProjection$descriptor() { - return rlGetMatrixProjection.DESC; + public static FunctionDescriptor rlUnloadShaderProgram$descriptor() { + return rlUnloadShaderProgram.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix rlGetMatrixProjection() + * void rlUnloadShaderProgram(unsigned int id) * } */ - public static MethodHandle rlGetMatrixProjection$handle() { - return rlGetMatrixProjection.HANDLE; + public static MethodHandle rlUnloadShaderProgram$handle() { + return rlUnloadShaderProgram.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix rlGetMatrixProjection() + * void rlUnloadShaderProgram(unsigned int id) * } */ - public static MemorySegment rlGetMatrixProjection$address() { - return rlGetMatrixProjection.ADDR; + public static MemorySegment rlUnloadShaderProgram$address() { + return rlUnloadShaderProgram.ADDR; } /** * {@snippet lang=c : - * Matrix rlGetMatrixProjection() + * void rlUnloadShaderProgram(unsigned int id) * } */ - public static MemorySegment rlGetMatrixProjection(SegmentAllocator allocator) { - var mh$ = rlGetMatrixProjection.HANDLE; + public static void rlUnloadShaderProgram(int id) { + var mh$ = rlUnloadShaderProgram.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetMatrixProjection", allocator); + traceDowncall("rlUnloadShaderProgram", id); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetMatrixTransform { + private static class rlGetLocationUniform { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout() ); + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixTransform"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetLocationUniform"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24324,57 +8170,58 @@ private static class rlGetMatrixTransform { /** * Function descriptor for: * {@snippet lang=c : - * Matrix rlGetMatrixTransform() + * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) * } */ - public static FunctionDescriptor rlGetMatrixTransform$descriptor() { - return rlGetMatrixTransform.DESC; + public static FunctionDescriptor rlGetLocationUniform$descriptor() { + return rlGetLocationUniform.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix rlGetMatrixTransform() + * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) * } */ - public static MethodHandle rlGetMatrixTransform$handle() { - return rlGetMatrixTransform.HANDLE; + public static MethodHandle rlGetLocationUniform$handle() { + return rlGetLocationUniform.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix rlGetMatrixTransform() + * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) * } */ - public static MemorySegment rlGetMatrixTransform$address() { - return rlGetMatrixTransform.ADDR; + public static MemorySegment rlGetLocationUniform$address() { + return rlGetLocationUniform.ADDR; } /** * {@snippet lang=c : - * Matrix rlGetMatrixTransform() + * int rlGetLocationUniform(unsigned int shaderId, const char *uniformName) * } */ - public static MemorySegment rlGetMatrixTransform(SegmentAllocator allocator) { - var mh$ = rlGetMatrixTransform.HANDLE; + public static int rlGetLocationUniform(int shaderId, MemorySegment uniformName) { + var mh$ = rlGetLocationUniform.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetMatrixTransform", allocator); + traceDowncall("rlGetLocationUniform", shaderId, uniformName); } - return (MemorySegment)mh$.invokeExact(allocator); + return (int)mh$.invokeExact(shaderId, uniformName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetMatrixProjectionStereo { + private static class rlGetLocationAttrib { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_INT + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixProjectionStereo"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetLocationAttrib"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24382,57 +8229,59 @@ private static class rlGetMatrixProjectionStereo { /** * Function descriptor for: * {@snippet lang=c : - * Matrix rlGetMatrixProjectionStereo(int eye) + * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) * } */ - public static FunctionDescriptor rlGetMatrixProjectionStereo$descriptor() { - return rlGetMatrixProjectionStereo.DESC; + public static FunctionDescriptor rlGetLocationAttrib$descriptor() { + return rlGetLocationAttrib.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix rlGetMatrixProjectionStereo(int eye) + * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) * } */ - public static MethodHandle rlGetMatrixProjectionStereo$handle() { - return rlGetMatrixProjectionStereo.HANDLE; + public static MethodHandle rlGetLocationAttrib$handle() { + return rlGetLocationAttrib.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix rlGetMatrixProjectionStereo(int eye) + * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) * } */ - public static MemorySegment rlGetMatrixProjectionStereo$address() { - return rlGetMatrixProjectionStereo.ADDR; + public static MemorySegment rlGetLocationAttrib$address() { + return rlGetLocationAttrib.ADDR; } /** * {@snippet lang=c : - * Matrix rlGetMatrixProjectionStereo(int eye) + * int rlGetLocationAttrib(unsigned int shaderId, const char *attribName) * } */ - public static MemorySegment rlGetMatrixProjectionStereo(SegmentAllocator allocator, int eye) { - var mh$ = rlGetMatrixProjectionStereo.HANDLE; + public static int rlGetLocationAttrib(int shaderId, MemorySegment attribName) { + var mh$ = rlGetLocationAttrib.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetMatrixProjectionStereo", allocator, eye); + traceDowncall("rlGetLocationAttrib", shaderId, attribName); } - return (MemorySegment)mh$.invokeExact(allocator, eye); + return (int)mh$.invokeExact(shaderId, attribName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlGetMatrixViewOffsetStereo { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), + private static class rlSetUniform { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixViewOffsetStereo"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetUniform"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24440,56 +8289,57 @@ private static class rlGetMatrixViewOffsetStereo { /** * Function descriptor for: * {@snippet lang=c : - * Matrix rlGetMatrixViewOffsetStereo(int eye) + * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) * } */ - public static FunctionDescriptor rlGetMatrixViewOffsetStereo$descriptor() { - return rlGetMatrixViewOffsetStereo.DESC; + public static FunctionDescriptor rlSetUniform$descriptor() { + return rlSetUniform.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix rlGetMatrixViewOffsetStereo(int eye) + * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) * } */ - public static MethodHandle rlGetMatrixViewOffsetStereo$handle() { - return rlGetMatrixViewOffsetStereo.HANDLE; + public static MethodHandle rlSetUniform$handle() { + return rlSetUniform.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix rlGetMatrixViewOffsetStereo(int eye) + * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) * } */ - public static MemorySegment rlGetMatrixViewOffsetStereo$address() { - return rlGetMatrixViewOffsetStereo.ADDR; + public static MemorySegment rlSetUniform$address() { + return rlSetUniform.ADDR; } /** * {@snippet lang=c : - * Matrix rlGetMatrixViewOffsetStereo(int eye) + * void rlSetUniform(int locIndex, const void *value, int uniformType, int count) * } */ - public static MemorySegment rlGetMatrixViewOffsetStereo(SegmentAllocator allocator, int eye) { - var mh$ = rlGetMatrixViewOffsetStereo.HANDLE; + public static void rlSetUniform(int locIndex, MemorySegment value, int uniformType, int count) { + var mh$ = rlSetUniform.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlGetMatrixViewOffsetStereo", allocator, eye); + traceDowncall("rlSetUniform", locIndex, value, uniformType, count); } - return (MemorySegment)mh$.invokeExact(allocator, eye); + mh$.invokeExact(locIndex, value, uniformType, count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetMatrixProjection { + private static class rlSetUniformMatrix { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixProjection"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetUniformMatrix"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24497,56 +8347,57 @@ private static class rlSetMatrixProjection { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetMatrixProjection(Matrix proj) + * void rlSetUniformMatrix(int locIndex, Matrix mat) * } */ - public static FunctionDescriptor rlSetMatrixProjection$descriptor() { - return rlSetMatrixProjection.DESC; + public static FunctionDescriptor rlSetUniformMatrix$descriptor() { + return rlSetUniformMatrix.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetMatrixProjection(Matrix proj) + * void rlSetUniformMatrix(int locIndex, Matrix mat) * } */ - public static MethodHandle rlSetMatrixProjection$handle() { - return rlSetMatrixProjection.HANDLE; + public static MethodHandle rlSetUniformMatrix$handle() { + return rlSetUniformMatrix.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetMatrixProjection(Matrix proj) + * void rlSetUniformMatrix(int locIndex, Matrix mat) * } */ - public static MemorySegment rlSetMatrixProjection$address() { - return rlSetMatrixProjection.ADDR; + public static MemorySegment rlSetUniformMatrix$address() { + return rlSetUniformMatrix.ADDR; } /** * {@snippet lang=c : - * void rlSetMatrixProjection(Matrix proj) + * void rlSetUniformMatrix(int locIndex, Matrix mat) * } */ - public static void rlSetMatrixProjection(MemorySegment proj) { - var mh$ = rlSetMatrixProjection.HANDLE; + public static void rlSetUniformMatrix(int locIndex, MemorySegment mat) { + var mh$ = rlSetUniformMatrix.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetMatrixProjection", proj); + traceDowncall("rlSetUniformMatrix", locIndex, mat); } - mh$.invokeExact(proj); + mh$.invokeExact(locIndex, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetMatrixModelview { + private static class rlSetUniformSampler { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Matrix.layout() + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixModelview"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetUniformSampler"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24554,57 +8405,57 @@ private static class rlSetMatrixModelview { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetMatrixModelview(Matrix view) + * void rlSetUniformSampler(int locIndex, unsigned int textureId) * } */ - public static FunctionDescriptor rlSetMatrixModelview$descriptor() { - return rlSetMatrixModelview.DESC; + public static FunctionDescriptor rlSetUniformSampler$descriptor() { + return rlSetUniformSampler.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetMatrixModelview(Matrix view) + * void rlSetUniformSampler(int locIndex, unsigned int textureId) * } */ - public static MethodHandle rlSetMatrixModelview$handle() { - return rlSetMatrixModelview.HANDLE; + public static MethodHandle rlSetUniformSampler$handle() { + return rlSetUniformSampler.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetMatrixModelview(Matrix view) + * void rlSetUniformSampler(int locIndex, unsigned int textureId) * } */ - public static MemorySegment rlSetMatrixModelview$address() { - return rlSetMatrixModelview.ADDR; + public static MemorySegment rlSetUniformSampler$address() { + return rlSetUniformSampler.ADDR; } /** * {@snippet lang=c : - * void rlSetMatrixModelview(Matrix view) + * void rlSetUniformSampler(int locIndex, unsigned int textureId) * } */ - public static void rlSetMatrixModelview(MemorySegment view) { - var mh$ = rlSetMatrixModelview.HANDLE; + public static void rlSetUniformSampler(int locIndex, int textureId) { + var mh$ = rlSetUniformSampler.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetMatrixModelview", view); + traceDowncall("rlSetUniformSampler", locIndex, textureId); } - mh$.invokeExact(view); + mh$.invokeExact(locIndex, textureId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetMatrixProjectionStereo { + private static class rlSetShader { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Matrix.layout(), - Matrix.layout() + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixProjectionStereo"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetShader"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24612,57 +8463,57 @@ private static class rlSetMatrixProjectionStereo { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) + * void rlSetShader(unsigned int id, int *locs) * } */ - public static FunctionDescriptor rlSetMatrixProjectionStereo$descriptor() { - return rlSetMatrixProjectionStereo.DESC; + public static FunctionDescriptor rlSetShader$descriptor() { + return rlSetShader.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) + * void rlSetShader(unsigned int id, int *locs) * } */ - public static MethodHandle rlSetMatrixProjectionStereo$handle() { - return rlSetMatrixProjectionStereo.HANDLE; + public static MethodHandle rlSetShader$handle() { + return rlSetShader.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) + * void rlSetShader(unsigned int id, int *locs) * } */ - public static MemorySegment rlSetMatrixProjectionStereo$address() { - return rlSetMatrixProjectionStereo.ADDR; + public static MemorySegment rlSetShader$address() { + return rlSetShader.ADDR; } /** * {@snippet lang=c : - * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) + * void rlSetShader(unsigned int id, int *locs) * } */ - public static void rlSetMatrixProjectionStereo(MemorySegment right, MemorySegment left) { - var mh$ = rlSetMatrixProjectionStereo.HANDLE; + public static void rlSetShader(int id, MemorySegment locs) { + var mh$ = rlSetShader.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetMatrixProjectionStereo", right, left); + traceDowncall("rlSetShader", id, locs); } - mh$.invokeExact(right, left); + mh$.invokeExact(id, locs); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlSetMatrixViewOffsetStereo { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Matrix.layout(), - Matrix.layout() + private static class rlLoadComputeShaderProgram { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixViewOffsetStereo"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadComputeShaderProgram"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24670,54 +8521,58 @@ private static class rlSetMatrixViewOffsetStereo { /** * Function descriptor for: * {@snippet lang=c : - * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) + * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) * } */ - public static FunctionDescriptor rlSetMatrixViewOffsetStereo$descriptor() { - return rlSetMatrixViewOffsetStereo.DESC; + public static FunctionDescriptor rlLoadComputeShaderProgram$descriptor() { + return rlLoadComputeShaderProgram.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) + * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) * } */ - public static MethodHandle rlSetMatrixViewOffsetStereo$handle() { - return rlSetMatrixViewOffsetStereo.HANDLE; + public static MethodHandle rlLoadComputeShaderProgram$handle() { + return rlLoadComputeShaderProgram.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) + * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) * } */ - public static MemorySegment rlSetMatrixViewOffsetStereo$address() { - return rlSetMatrixViewOffsetStereo.ADDR; + public static MemorySegment rlLoadComputeShaderProgram$address() { + return rlLoadComputeShaderProgram.ADDR; } /** * {@snippet lang=c : - * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) + * unsigned int rlLoadComputeShaderProgram(unsigned int shaderId) * } */ - public static void rlSetMatrixViewOffsetStereo(MemorySegment right, MemorySegment left) { - var mh$ = rlSetMatrixViewOffsetStereo.HANDLE; + public static int rlLoadComputeShaderProgram(int shaderId) { + var mh$ = rlLoadComputeShaderProgram.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlSetMatrixViewOffsetStereo", right, left); + traceDowncall("rlLoadComputeShaderProgram", shaderId); } - mh$.invokeExact(right, left); + return (int)mh$.invokeExact(shaderId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadDrawCube { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlComputeShaderDispatch { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadDrawCube"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlComputeShaderDispatch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24725,54 +8580,59 @@ private static class rlLoadDrawCube { /** * Function descriptor for: * {@snippet lang=c : - * void rlLoadDrawCube() + * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) * } */ - public static FunctionDescriptor rlLoadDrawCube$descriptor() { - return rlLoadDrawCube.DESC; + public static FunctionDescriptor rlComputeShaderDispatch$descriptor() { + return rlComputeShaderDispatch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlLoadDrawCube() + * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) * } */ - public static MethodHandle rlLoadDrawCube$handle() { - return rlLoadDrawCube.HANDLE; + public static MethodHandle rlComputeShaderDispatch$handle() { + return rlComputeShaderDispatch.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlLoadDrawCube() + * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) * } */ - public static MemorySegment rlLoadDrawCube$address() { - return rlLoadDrawCube.ADDR; + public static MemorySegment rlComputeShaderDispatch$address() { + return rlComputeShaderDispatch.ADDR; } /** * {@snippet lang=c : - * void rlLoadDrawCube() + * void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ) * } */ - public static void rlLoadDrawCube() { - var mh$ = rlLoadDrawCube.HANDLE; + public static void rlComputeShaderDispatch(int groupX, int groupY, int groupZ) { + var mh$ = rlComputeShaderDispatch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadDrawCube"); + traceDowncall("rlComputeShaderDispatch", groupX, groupY, groupZ); } - mh$.invokeExact(); + mh$.invokeExact(groupX, groupY, groupZ); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rlLoadDrawQuad { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class rlLoadShaderBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadDrawQuad"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadShaderBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24780,67 +8640,56 @@ private static class rlLoadDrawQuad { /** * Function descriptor for: * {@snippet lang=c : - * void rlLoadDrawQuad() + * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) * } */ - public static FunctionDescriptor rlLoadDrawQuad$descriptor() { - return rlLoadDrawQuad.DESC; + public static FunctionDescriptor rlLoadShaderBuffer$descriptor() { + return rlLoadShaderBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void rlLoadDrawQuad() + * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) * } */ - public static MethodHandle rlLoadDrawQuad$handle() { - return rlLoadDrawQuad.HANDLE; + public static MethodHandle rlLoadShaderBuffer$handle() { + return rlLoadShaderBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * void rlLoadDrawQuad() + * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) * } */ - public static MemorySegment rlLoadDrawQuad$address() { - return rlLoadDrawQuad.ADDR; + public static MemorySegment rlLoadShaderBuffer$address() { + return rlLoadShaderBuffer.ADDR; } /** * {@snippet lang=c : - * void rlLoadDrawQuad() + * unsigned int rlLoadShaderBuffer(unsigned int size, const void *data, int usageHint) * } */ - public static void rlLoadDrawQuad() { - var mh$ = rlLoadDrawQuad.HANDLE; + public static int rlLoadShaderBuffer(int size, MemorySegment data, int usageHint) { + var mh$ = rlLoadShaderBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rlLoadDrawQuad"); + traceDowncall("rlLoadShaderBuffer", size, data, usageHint); } - mh$.invokeExact(); + return (int)mh$.invokeExact(size, data, usageHint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - /** - * {@snippet lang=c : - * typedef float float_t - * } - */ - public static final OfFloat float_t = raylib.C_FLOAT; - /** - * {@snippet lang=c : - * typedef double double_t - * } - */ - public static final OfDouble double_t = raylib.C_DOUBLE; - private static class __math_errhandling { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class rlUnloadShaderBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("__math_errhandling"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUnloadShaderBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24848,57 +8697,59 @@ private static class __math_errhandling { /** * Function descriptor for: * {@snippet lang=c : - * extern int __math_errhandling() + * void rlUnloadShaderBuffer(unsigned int ssboId) * } */ - public static FunctionDescriptor __math_errhandling$descriptor() { - return __math_errhandling.DESC; + public static FunctionDescriptor rlUnloadShaderBuffer$descriptor() { + return rlUnloadShaderBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern int __math_errhandling() + * void rlUnloadShaderBuffer(unsigned int ssboId) * } */ - public static MethodHandle __math_errhandling$handle() { - return __math_errhandling.HANDLE; + public static MethodHandle rlUnloadShaderBuffer$handle() { + return rlUnloadShaderBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern int __math_errhandling() + * void rlUnloadShaderBuffer(unsigned int ssboId) * } */ - public static MemorySegment __math_errhandling$address() { - return __math_errhandling.ADDR; + public static MemorySegment rlUnloadShaderBuffer$address() { + return rlUnloadShaderBuffer.ADDR; } /** * {@snippet lang=c : - * extern int __math_errhandling() + * void rlUnloadShaderBuffer(unsigned int ssboId) * } */ - public static int __math_errhandling() { - var mh$ = __math_errhandling.HANDLE; + public static void rlUnloadShaderBuffer(int ssboId) { + var mh$ = rlUnloadShaderBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__math_errhandling"); + traceDowncall("rlUnloadShaderBuffer", ssboId); } - return (int)mh$.invokeExact(); + mh$.invokeExact(ssboId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __fpclassifyf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class rlUpdateShaderBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, - raylib.C_FLOAT + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("__fpclassifyf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlUpdateShaderBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24906,57 +8757,57 @@ private static class __fpclassifyf { /** * Function descriptor for: * {@snippet lang=c : - * extern int __fpclassifyf(float) + * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) * } */ - public static FunctionDescriptor __fpclassifyf$descriptor() { - return __fpclassifyf.DESC; + public static FunctionDescriptor rlUpdateShaderBuffer$descriptor() { + return rlUpdateShaderBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern int __fpclassifyf(float) + * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) * } */ - public static MethodHandle __fpclassifyf$handle() { - return __fpclassifyf.HANDLE; + public static MethodHandle rlUpdateShaderBuffer$handle() { + return rlUpdateShaderBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern int __fpclassifyf(float) + * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) * } */ - public static MemorySegment __fpclassifyf$address() { - return __fpclassifyf.ADDR; + public static MemorySegment rlUpdateShaderBuffer$address() { + return rlUpdateShaderBuffer.ADDR; } /** * {@snippet lang=c : - * extern int __fpclassifyf(float) + * void rlUpdateShaderBuffer(unsigned int id, const void *data, unsigned int dataSize, unsigned int offset) * } */ - public static int __fpclassifyf(float x0) { - var mh$ = __fpclassifyf.HANDLE; + public static void rlUpdateShaderBuffer(int id, MemorySegment data, int dataSize, int offset) { + var mh$ = rlUpdateShaderBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__fpclassifyf", x0); + traceDowncall("rlUpdateShaderBuffer", id, data, dataSize, offset); } - return (int)mh$.invokeExact(x0); + mh$.invokeExact(id, data, dataSize, offset); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __fpclassifyd { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class rlBindShaderBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_INT, - raylib.C_DOUBLE + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("__fpclassifyd"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlBindShaderBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24964,57 +8815,59 @@ private static class __fpclassifyd { /** * Function descriptor for: * {@snippet lang=c : - * extern int __fpclassifyd(double) + * void rlBindShaderBuffer(unsigned int id, unsigned int index) * } */ - public static FunctionDescriptor __fpclassifyd$descriptor() { - return __fpclassifyd.DESC; + public static FunctionDescriptor rlBindShaderBuffer$descriptor() { + return rlBindShaderBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern int __fpclassifyd(double) + * void rlBindShaderBuffer(unsigned int id, unsigned int index) * } */ - public static MethodHandle __fpclassifyd$handle() { - return __fpclassifyd.HANDLE; + public static MethodHandle rlBindShaderBuffer$handle() { + return rlBindShaderBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern int __fpclassifyd(double) + * void rlBindShaderBuffer(unsigned int id, unsigned int index) * } */ - public static MemorySegment __fpclassifyd$address() { - return __fpclassifyd.ADDR; + public static MemorySegment rlBindShaderBuffer$address() { + return rlBindShaderBuffer.ADDR; } /** * {@snippet lang=c : - * extern int __fpclassifyd(double) + * void rlBindShaderBuffer(unsigned int id, unsigned int index) * } */ - public static int __fpclassifyd(double x0) { - var mh$ = __fpclassifyd.HANDLE; + public static void rlBindShaderBuffer(int id, int index) { + var mh$ = rlBindShaderBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__fpclassifyd", x0); + traceDowncall("rlBindShaderBuffer", id, index); } - return (int)mh$.invokeExact(x0); + mh$.invokeExact(id, index); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class acosf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + private static class rlReadShaderBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("acosf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlReadShaderBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25022,57 +8875,60 @@ private static class acosf { /** * Function descriptor for: * {@snippet lang=c : - * extern float acosf(float) + * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) * } */ - public static FunctionDescriptor acosf$descriptor() { - return acosf.DESC; + public static FunctionDescriptor rlReadShaderBuffer$descriptor() { + return rlReadShaderBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float acosf(float) + * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) * } */ - public static MethodHandle acosf$handle() { - return acosf.HANDLE; + public static MethodHandle rlReadShaderBuffer$handle() { + return rlReadShaderBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float acosf(float) + * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) * } */ - public static MemorySegment acosf$address() { - return acosf.ADDR; + public static MemorySegment rlReadShaderBuffer$address() { + return rlReadShaderBuffer.ADDR; } /** * {@snippet lang=c : - * extern float acosf(float) + * void rlReadShaderBuffer(unsigned int id, void *dest, unsigned int count, unsigned int offset) * } */ - public static float acosf(float x0) { - var mh$ = acosf.HANDLE; + public static void rlReadShaderBuffer(int id, MemorySegment dest, int count, int offset) { + var mh$ = rlReadShaderBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("acosf", x0); + traceDowncall("rlReadShaderBuffer", id, dest, count, offset); } - return (float)mh$.invokeExact(x0); + mh$.invokeExact(id, dest, count, offset); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class acos { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + private static class rlCopyShaderBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("acos"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlCopyShaderBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25080,57 +8936,57 @@ private static class acos { /** * Function descriptor for: * {@snippet lang=c : - * extern double acos(double) + * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) * } */ - public static FunctionDescriptor acos$descriptor() { - return acos.DESC; + public static FunctionDescriptor rlCopyShaderBuffer$descriptor() { + return rlCopyShaderBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double acos(double) + * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) * } */ - public static MethodHandle acos$handle() { - return acos.HANDLE; + public static MethodHandle rlCopyShaderBuffer$handle() { + return rlCopyShaderBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double acos(double) + * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) * } */ - public static MemorySegment acos$address() { - return acos.ADDR; + public static MemorySegment rlCopyShaderBuffer$address() { + return rlCopyShaderBuffer.ADDR; } /** * {@snippet lang=c : - * extern double acos(double) + * void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count) * } */ - public static double acos(double x0) { - var mh$ = acos.HANDLE; + public static void rlCopyShaderBuffer(int destId, int srcId, int destOffset, int srcOffset, int count) { + var mh$ = rlCopyShaderBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("acos", x0); + traceDowncall("rlCopyShaderBuffer", destId, srcId, destOffset, srcOffset, count); } - return (double)mh$.invokeExact(x0); + mh$.invokeExact(destId, srcId, destOffset, srcOffset, count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class asinf { + private static class rlGetShaderBufferSize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("asinf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetShaderBufferSize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25138,57 +8994,59 @@ private static class asinf { /** * Function descriptor for: * {@snippet lang=c : - * extern float asinf(float) + * unsigned int rlGetShaderBufferSize(unsigned int id) * } */ - public static FunctionDescriptor asinf$descriptor() { - return asinf.DESC; + public static FunctionDescriptor rlGetShaderBufferSize$descriptor() { + return rlGetShaderBufferSize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float asinf(float) + * unsigned int rlGetShaderBufferSize(unsigned int id) * } */ - public static MethodHandle asinf$handle() { - return asinf.HANDLE; + public static MethodHandle rlGetShaderBufferSize$handle() { + return rlGetShaderBufferSize.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float asinf(float) + * unsigned int rlGetShaderBufferSize(unsigned int id) * } */ - public static MemorySegment asinf$address() { - return asinf.ADDR; + public static MemorySegment rlGetShaderBufferSize$address() { + return rlGetShaderBufferSize.ADDR; } /** * {@snippet lang=c : - * extern float asinf(float) + * unsigned int rlGetShaderBufferSize(unsigned int id) * } */ - public static float asinf(float x0) { - var mh$ = asinf.HANDLE; + public static int rlGetShaderBufferSize(int id) { + var mh$ = rlGetShaderBufferSize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("asinf", x0); + traceDowncall("rlGetShaderBufferSize", id); } - return (float)mh$.invokeExact(x0); + return (int)mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class asin { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + private static class rlBindImageTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("asin"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlBindImageTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25196,57 +9054,55 @@ private static class asin { /** * Function descriptor for: * {@snippet lang=c : - * extern double asin(double) + * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) * } */ - public static FunctionDescriptor asin$descriptor() { - return asin.DESC; + public static FunctionDescriptor rlBindImageTexture$descriptor() { + return rlBindImageTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double asin(double) + * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) * } */ - public static MethodHandle asin$handle() { - return asin.HANDLE; + public static MethodHandle rlBindImageTexture$handle() { + return rlBindImageTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double asin(double) + * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) * } */ - public static MemorySegment asin$address() { - return asin.ADDR; + public static MemorySegment rlBindImageTexture$address() { + return rlBindImageTexture.ADDR; } /** * {@snippet lang=c : - * extern double asin(double) + * void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly) * } */ - public static double asin(double x0) { - var mh$ = asin.HANDLE; + public static void rlBindImageTexture(int id, int index, int format, boolean readonly) { + var mh$ = rlBindImageTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("asin", x0); + traceDowncall("rlBindImageTexture", id, index, format, readonly); } - return (double)mh$.invokeExact(x0); + mh$.invokeExact(id, index, format, readonly); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class atanf { + private static class rlGetMatrixModelview { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT - ); + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("atanf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixModelview"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25254,57 +9110,55 @@ private static class atanf { /** * Function descriptor for: * {@snippet lang=c : - * extern float atanf(float) + * Matrix rlGetMatrixModelview() * } */ - public static FunctionDescriptor atanf$descriptor() { - return atanf.DESC; + public static FunctionDescriptor rlGetMatrixModelview$descriptor() { + return rlGetMatrixModelview.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float atanf(float) + * Matrix rlGetMatrixModelview() * } */ - public static MethodHandle atanf$handle() { - return atanf.HANDLE; + public static MethodHandle rlGetMatrixModelview$handle() { + return rlGetMatrixModelview.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float atanf(float) + * Matrix rlGetMatrixModelview() * } */ - public static MemorySegment atanf$address() { - return atanf.ADDR; + public static MemorySegment rlGetMatrixModelview$address() { + return rlGetMatrixModelview.ADDR; } /** * {@snippet lang=c : - * extern float atanf(float) + * Matrix rlGetMatrixModelview() * } */ - public static float atanf(float x0) { - var mh$ = atanf.HANDLE; + public static MemorySegment rlGetMatrixModelview(SegmentAllocator allocator) { + var mh$ = rlGetMatrixModelview.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("atanf", x0); + traceDowncall("rlGetMatrixModelview", allocator); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class atan { + private static class rlGetMatrixProjection { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("atan"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixProjection"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25312,58 +9166,55 @@ private static class atan { /** * Function descriptor for: * {@snippet lang=c : - * extern double atan(double) + * Matrix rlGetMatrixProjection() * } */ - public static FunctionDescriptor atan$descriptor() { - return atan.DESC; + public static FunctionDescriptor rlGetMatrixProjection$descriptor() { + return rlGetMatrixProjection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double atan(double) + * Matrix rlGetMatrixProjection() * } */ - public static MethodHandle atan$handle() { - return atan.HANDLE; + public static MethodHandle rlGetMatrixProjection$handle() { + return rlGetMatrixProjection.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double atan(double) + * Matrix rlGetMatrixProjection() * } */ - public static MemorySegment atan$address() { - return atan.ADDR; + public static MemorySegment rlGetMatrixProjection$address() { + return rlGetMatrixProjection.ADDR; } /** * {@snippet lang=c : - * extern double atan(double) + * Matrix rlGetMatrixProjection() * } */ - public static double atan(double x0) { - var mh$ = atan.HANDLE; + public static MemorySegment rlGetMatrixProjection(SegmentAllocator allocator) { + var mh$ = rlGetMatrixProjection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("atan", x0); + traceDowncall("rlGetMatrixProjection", allocator); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class atan2f { + private static class rlGetMatrixTransform { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("atan2f"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixTransform"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25371,58 +9222,57 @@ private static class atan2f { /** * Function descriptor for: * {@snippet lang=c : - * extern float atan2f(float, float) + * Matrix rlGetMatrixTransform() * } */ - public static FunctionDescriptor atan2f$descriptor() { - return atan2f.DESC; + public static FunctionDescriptor rlGetMatrixTransform$descriptor() { + return rlGetMatrixTransform.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float atan2f(float, float) + * Matrix rlGetMatrixTransform() * } */ - public static MethodHandle atan2f$handle() { - return atan2f.HANDLE; + public static MethodHandle rlGetMatrixTransform$handle() { + return rlGetMatrixTransform.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float atan2f(float, float) + * Matrix rlGetMatrixTransform() * } */ - public static MemorySegment atan2f$address() { - return atan2f.ADDR; + public static MemorySegment rlGetMatrixTransform$address() { + return rlGetMatrixTransform.ADDR; } /** * {@snippet lang=c : - * extern float atan2f(float, float) + * Matrix rlGetMatrixTransform() * } */ - public static float atan2f(float x0, float x1) { - var mh$ = atan2f.HANDLE; + public static MemorySegment rlGetMatrixTransform(SegmentAllocator allocator) { + var mh$ = rlGetMatrixTransform.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("atan2f", x0, x1); + traceDowncall("rlGetMatrixTransform", allocator); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class atan2 { + private static class rlGetMatrixProjectionStereo { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("atan2"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixProjectionStereo"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25430,57 +9280,57 @@ private static class atan2 { /** * Function descriptor for: * {@snippet lang=c : - * extern double atan2(double, double) + * Matrix rlGetMatrixProjectionStereo(int eye) * } */ - public static FunctionDescriptor atan2$descriptor() { - return atan2.DESC; + public static FunctionDescriptor rlGetMatrixProjectionStereo$descriptor() { + return rlGetMatrixProjectionStereo.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double atan2(double, double) + * Matrix rlGetMatrixProjectionStereo(int eye) * } */ - public static MethodHandle atan2$handle() { - return atan2.HANDLE; + public static MethodHandle rlGetMatrixProjectionStereo$handle() { + return rlGetMatrixProjectionStereo.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double atan2(double, double) + * Matrix rlGetMatrixProjectionStereo(int eye) * } */ - public static MemorySegment atan2$address() { - return atan2.ADDR; + public static MemorySegment rlGetMatrixProjectionStereo$address() { + return rlGetMatrixProjectionStereo.ADDR; } /** * {@snippet lang=c : - * extern double atan2(double, double) + * Matrix rlGetMatrixProjectionStereo(int eye) * } */ - public static double atan2(double x0, double x1) { - var mh$ = atan2.HANDLE; + public static MemorySegment rlGetMatrixProjectionStereo(SegmentAllocator allocator, int eye) { + var mh$ = rlGetMatrixProjectionStereo.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("atan2", x0, x1); + traceDowncall("rlGetMatrixProjectionStereo", allocator, eye); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, eye); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class cosf { + private static class rlGetMatrixViewOffsetStereo { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("cosf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlGetMatrixViewOffsetStereo"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25488,57 +9338,56 @@ private static class cosf { /** * Function descriptor for: * {@snippet lang=c : - * extern float cosf(float) + * Matrix rlGetMatrixViewOffsetStereo(int eye) * } */ - public static FunctionDescriptor cosf$descriptor() { - return cosf.DESC; + public static FunctionDescriptor rlGetMatrixViewOffsetStereo$descriptor() { + return rlGetMatrixViewOffsetStereo.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float cosf(float) + * Matrix rlGetMatrixViewOffsetStereo(int eye) * } */ - public static MethodHandle cosf$handle() { - return cosf.HANDLE; + public static MethodHandle rlGetMatrixViewOffsetStereo$handle() { + return rlGetMatrixViewOffsetStereo.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float cosf(float) + * Matrix rlGetMatrixViewOffsetStereo(int eye) * } */ - public static MemorySegment cosf$address() { - return cosf.ADDR; + public static MemorySegment rlGetMatrixViewOffsetStereo$address() { + return rlGetMatrixViewOffsetStereo.ADDR; } /** * {@snippet lang=c : - * extern float cosf(float) + * Matrix rlGetMatrixViewOffsetStereo(int eye) * } */ - public static float cosf(float x0) { - var mh$ = cosf.HANDLE; + public static MemorySegment rlGetMatrixViewOffsetStereo(SegmentAllocator allocator, int eye) { + var mh$ = rlGetMatrixViewOffsetStereo.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("cosf", x0); + traceDowncall("rlGetMatrixViewOffsetStereo", allocator, eye); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, eye); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class cos { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + private static class rlSetMatrixProjection { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("cos"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixProjection"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25546,57 +9395,56 @@ private static class cos { /** * Function descriptor for: * {@snippet lang=c : - * extern double cos(double) + * void rlSetMatrixProjection(Matrix proj) * } */ - public static FunctionDescriptor cos$descriptor() { - return cos.DESC; + public static FunctionDescriptor rlSetMatrixProjection$descriptor() { + return rlSetMatrixProjection.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double cos(double) + * void rlSetMatrixProjection(Matrix proj) * } */ - public static MethodHandle cos$handle() { - return cos.HANDLE; + public static MethodHandle rlSetMatrixProjection$handle() { + return rlSetMatrixProjection.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double cos(double) + * void rlSetMatrixProjection(Matrix proj) * } */ - public static MemorySegment cos$address() { - return cos.ADDR; + public static MemorySegment rlSetMatrixProjection$address() { + return rlSetMatrixProjection.ADDR; } /** * {@snippet lang=c : - * extern double cos(double) + * void rlSetMatrixProjection(Matrix proj) * } */ - public static double cos(double x0) { - var mh$ = cos.HANDLE; + public static void rlSetMatrixProjection(MemorySegment proj) { + var mh$ = rlSetMatrixProjection.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("cos", x0); + traceDowncall("rlSetMatrixProjection", proj); } - return (double)mh$.invokeExact(x0); + mh$.invokeExact(proj); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class sinf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + private static class rlSetMatrixModelview { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("sinf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixModelview"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25604,57 +9452,57 @@ private static class sinf { /** * Function descriptor for: * {@snippet lang=c : - * extern float sinf(float) + * void rlSetMatrixModelview(Matrix view) * } */ - public static FunctionDescriptor sinf$descriptor() { - return sinf.DESC; + public static FunctionDescriptor rlSetMatrixModelview$descriptor() { + return rlSetMatrixModelview.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float sinf(float) + * void rlSetMatrixModelview(Matrix view) * } */ - public static MethodHandle sinf$handle() { - return sinf.HANDLE; + public static MethodHandle rlSetMatrixModelview$handle() { + return rlSetMatrixModelview.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float sinf(float) + * void rlSetMatrixModelview(Matrix view) * } */ - public static MemorySegment sinf$address() { - return sinf.ADDR; + public static MemorySegment rlSetMatrixModelview$address() { + return rlSetMatrixModelview.ADDR; } /** * {@snippet lang=c : - * extern float sinf(float) + * void rlSetMatrixModelview(Matrix view) * } */ - public static float sinf(float x0) { - var mh$ = sinf.HANDLE; + public static void rlSetMatrixModelview(MemorySegment view) { + var mh$ = rlSetMatrixModelview.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("sinf", x0); + traceDowncall("rlSetMatrixModelview", view); } - return (float)mh$.invokeExact(x0); + mh$.invokeExact(view); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class sin { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + private static class rlSetMatrixProjectionStereo { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("sin"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixProjectionStereo"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25662,57 +9510,57 @@ private static class sin { /** * Function descriptor for: * {@snippet lang=c : - * extern double sin(double) + * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) * } */ - public static FunctionDescriptor sin$descriptor() { - return sin.DESC; + public static FunctionDescriptor rlSetMatrixProjectionStereo$descriptor() { + return rlSetMatrixProjectionStereo.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double sin(double) + * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) * } */ - public static MethodHandle sin$handle() { - return sin.HANDLE; + public static MethodHandle rlSetMatrixProjectionStereo$handle() { + return rlSetMatrixProjectionStereo.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double sin(double) + * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) * } */ - public static MemorySegment sin$address() { - return sin.ADDR; + public static MemorySegment rlSetMatrixProjectionStereo$address() { + return rlSetMatrixProjectionStereo.ADDR; } /** * {@snippet lang=c : - * extern double sin(double) + * void rlSetMatrixProjectionStereo(Matrix right, Matrix left) * } */ - public static double sin(double x0) { - var mh$ = sin.HANDLE; + public static void rlSetMatrixProjectionStereo(MemorySegment right, MemorySegment left) { + var mh$ = rlSetMatrixProjectionStereo.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("sin", x0); + traceDowncall("rlSetMatrixProjectionStereo", right, left); } - return (double)mh$.invokeExact(x0); + mh$.invokeExact(right, left); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class tanf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + private static class rlSetMatrixViewOffsetStereo { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("tanf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlSetMatrixViewOffsetStereo"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25720,57 +9568,54 @@ private static class tanf { /** * Function descriptor for: * {@snippet lang=c : - * extern float tanf(float) + * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) * } */ - public static FunctionDescriptor tanf$descriptor() { - return tanf.DESC; + public static FunctionDescriptor rlSetMatrixViewOffsetStereo$descriptor() { + return rlSetMatrixViewOffsetStereo.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float tanf(float) + * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) * } */ - public static MethodHandle tanf$handle() { - return tanf.HANDLE; + public static MethodHandle rlSetMatrixViewOffsetStereo$handle() { + return rlSetMatrixViewOffsetStereo.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float tanf(float) + * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) * } */ - public static MemorySegment tanf$address() { - return tanf.ADDR; + public static MemorySegment rlSetMatrixViewOffsetStereo$address() { + return rlSetMatrixViewOffsetStereo.ADDR; } /** * {@snippet lang=c : - * extern float tanf(float) + * void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left) * } */ - public static float tanf(float x0) { - var mh$ = tanf.HANDLE; + public static void rlSetMatrixViewOffsetStereo(MemorySegment right, MemorySegment left) { + var mh$ = rlSetMatrixViewOffsetStereo.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("tanf", x0); + traceDowncall("rlSetMatrixViewOffsetStereo", right, left); } - return (float)mh$.invokeExact(x0); + mh$.invokeExact(right, left); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class tan { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); + private static class rlLoadDrawCube { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("tan"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadDrawCube"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25778,57 +9623,54 @@ private static class tan { /** * Function descriptor for: * {@snippet lang=c : - * extern double tan(double) + * void rlLoadDrawCube() * } */ - public static FunctionDescriptor tan$descriptor() { - return tan.DESC; + public static FunctionDescriptor rlLoadDrawCube$descriptor() { + return rlLoadDrawCube.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double tan(double) + * void rlLoadDrawCube() * } */ - public static MethodHandle tan$handle() { - return tan.HANDLE; + public static MethodHandle rlLoadDrawCube$handle() { + return rlLoadDrawCube.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double tan(double) + * void rlLoadDrawCube() * } */ - public static MemorySegment tan$address() { - return tan.ADDR; + public static MemorySegment rlLoadDrawCube$address() { + return rlLoadDrawCube.ADDR; } /** * {@snippet lang=c : - * extern double tan(double) + * void rlLoadDrawCube() * } */ - public static double tan(double x0) { - var mh$ = tan.HANDLE; + public static void rlLoadDrawCube() { + var mh$ = rlLoadDrawCube.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("tan", x0); + traceDowncall("rlLoadDrawCube"); } - return (double)mh$.invokeExact(x0); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class acoshf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT - ); + private static class rlLoadDrawQuad { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("acoshf"); + public static final MemorySegment ADDR = raylib.findOrThrow("rlLoadDrawQuad"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25836,57 +9678,59 @@ private static class acoshf { /** * Function descriptor for: * {@snippet lang=c : - * extern float acoshf(float) + * void rlLoadDrawQuad() * } */ - public static FunctionDescriptor acoshf$descriptor() { - return acoshf.DESC; + public static FunctionDescriptor rlLoadDrawQuad$descriptor() { + return rlLoadDrawQuad.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float acoshf(float) + * void rlLoadDrawQuad() * } */ - public static MethodHandle acoshf$handle() { - return acoshf.HANDLE; + public static MethodHandle rlLoadDrawQuad$handle() { + return rlLoadDrawQuad.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float acoshf(float) + * void rlLoadDrawQuad() * } */ - public static MemorySegment acoshf$address() { - return acoshf.ADDR; + public static MemorySegment rlLoadDrawQuad$address() { + return rlLoadDrawQuad.ADDR; } /** * {@snippet lang=c : - * extern float acoshf(float) + * void rlLoadDrawQuad() * } */ - public static float acoshf(float x0) { - var mh$ = acoshf.HANDLE; + public static void rlLoadDrawQuad() { + var mh$ = rlLoadDrawQuad.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("acoshf", x0); + traceDowncall("rlLoadDrawQuad"); } - return (float)mh$.invokeExact(x0); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class acosh { + private static class Clamp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("acosh"); + public static final MemorySegment ADDR = raylib.findOrThrow("Clamp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25894,57 +9738,59 @@ private static class acosh { /** * Function descriptor for: * {@snippet lang=c : - * extern double acosh(double) + * float Clamp(float value, float min, float max) * } */ - public static FunctionDescriptor acosh$descriptor() { - return acosh.DESC; + public static FunctionDescriptor Clamp$descriptor() { + return Clamp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double acosh(double) + * float Clamp(float value, float min, float max) * } */ - public static MethodHandle acosh$handle() { - return acosh.HANDLE; + public static MethodHandle Clamp$handle() { + return Clamp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double acosh(double) + * float Clamp(float value, float min, float max) * } */ - public static MemorySegment acosh$address() { - return acosh.ADDR; + public static MemorySegment Clamp$address() { + return Clamp.ADDR; } /** * {@snippet lang=c : - * extern double acosh(double) + * float Clamp(float value, float min, float max) * } */ - public static double acosh(double x0) { - var mh$ = acosh.HANDLE; + public static float Clamp(float value, float min, float max) { + var mh$ = Clamp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("acosh", x0); + traceDowncall("Clamp", value, min, max); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(value, min, max); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class asinhf { + private static class Lerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT, + raylib.C_FLOAT, raylib.C_FLOAT, raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("asinhf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Lerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -25952,57 +9798,59 @@ private static class asinhf { /** * Function descriptor for: * {@snippet lang=c : - * extern float asinhf(float) + * float Lerp(float start, float end, float amount) * } */ - public static FunctionDescriptor asinhf$descriptor() { - return asinhf.DESC; + public static FunctionDescriptor Lerp$descriptor() { + return Lerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float asinhf(float) + * float Lerp(float start, float end, float amount) * } */ - public static MethodHandle asinhf$handle() { - return asinhf.HANDLE; + public static MethodHandle Lerp$handle() { + return Lerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float asinhf(float) + * float Lerp(float start, float end, float amount) * } */ - public static MemorySegment asinhf$address() { - return asinhf.ADDR; + public static MemorySegment Lerp$address() { + return Lerp.ADDR; } /** * {@snippet lang=c : - * extern float asinhf(float) + * float Lerp(float start, float end, float amount) * } */ - public static float asinhf(float x0) { - var mh$ = asinhf.HANDLE; + public static float Lerp(float start, float end, float amount) { + var mh$ = Lerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("asinhf", x0); + traceDowncall("Lerp", start, end, amount); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(start, end, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class asinh { + private static class Normalize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("asinh"); + public static final MemorySegment ADDR = raylib.findOrThrow("Normalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26010,57 +9858,61 @@ private static class asinh { /** * Function descriptor for: * {@snippet lang=c : - * extern double asinh(double) + * float Normalize(float value, float start, float end) * } */ - public static FunctionDescriptor asinh$descriptor() { - return asinh.DESC; + public static FunctionDescriptor Normalize$descriptor() { + return Normalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double asinh(double) + * float Normalize(float value, float start, float end) * } */ - public static MethodHandle asinh$handle() { - return asinh.HANDLE; + public static MethodHandle Normalize$handle() { + return Normalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double asinh(double) + * float Normalize(float value, float start, float end) * } */ - public static MemorySegment asinh$address() { - return asinh.ADDR; + public static MemorySegment Normalize$address() { + return Normalize.ADDR; } /** * {@snippet lang=c : - * extern double asinh(double) + * float Normalize(float value, float start, float end) * } */ - public static double asinh(double x0) { - var mh$ = asinh.HANDLE; + public static float Normalize(float value, float start, float end) { + var mh$ = Normalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("asinh", x0); + traceDowncall("Normalize", value, start, end); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(value, start, end); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class atanhf { + private static class Remap { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, raylib.C_FLOAT, raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("atanhf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Remap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26068,57 +9920,59 @@ private static class atanhf { /** * Function descriptor for: * {@snippet lang=c : - * extern float atanhf(float) + * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) * } */ - public static FunctionDescriptor atanhf$descriptor() { - return atanhf.DESC; + public static FunctionDescriptor Remap$descriptor() { + return Remap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float atanhf(float) + * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) * } */ - public static MethodHandle atanhf$handle() { - return atanhf.HANDLE; + public static MethodHandle Remap$handle() { + return Remap.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float atanhf(float) + * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) * } */ - public static MemorySegment atanhf$address() { - return atanhf.ADDR; + public static MemorySegment Remap$address() { + return Remap.ADDR; } /** * {@snippet lang=c : - * extern float atanhf(float) + * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) * } */ - public static float atanhf(float x0) { - var mh$ = atanhf.HANDLE; + public static float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) { + var mh$ = Remap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("atanhf", x0); + traceDowncall("Remap", value, inputStart, inputEnd, outputStart, outputEnd); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(value, inputStart, inputEnd, outputStart, outputEnd); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class atanh { + private static class Wrap { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("atanh"); + public static final MemorySegment ADDR = raylib.findOrThrow("Wrap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26126,57 +9980,58 @@ private static class atanh { /** * Function descriptor for: * {@snippet lang=c : - * extern double atanh(double) + * float Wrap(float value, float min, float max) * } */ - public static FunctionDescriptor atanh$descriptor() { - return atanh.DESC; + public static FunctionDescriptor Wrap$descriptor() { + return Wrap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double atanh(double) + * float Wrap(float value, float min, float max) * } */ - public static MethodHandle atanh$handle() { - return atanh.HANDLE; + public static MethodHandle Wrap$handle() { + return Wrap.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double atanh(double) + * float Wrap(float value, float min, float max) * } */ - public static MemorySegment atanh$address() { - return atanh.ADDR; + public static MemorySegment Wrap$address() { + return Wrap.ADDR; } /** * {@snippet lang=c : - * extern double atanh(double) + * float Wrap(float value, float min, float max) * } */ - public static double atanh(double x0) { - var mh$ = atanh.HANDLE; + public static float Wrap(float value, float min, float max) { + var mh$ = Wrap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("atanh", x0); + traceDowncall("Wrap", value, min, max); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(value, min, max); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class coshf { + private static class FloatEquals { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, raylib.C_FLOAT, raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("coshf"); + public static final MemorySegment ADDR = raylib.findOrThrow("FloatEquals"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26184,57 +10039,55 @@ private static class coshf { /** * Function descriptor for: * {@snippet lang=c : - * extern float coshf(float) + * int FloatEquals(float x, float y) * } */ - public static FunctionDescriptor coshf$descriptor() { - return coshf.DESC; + public static FunctionDescriptor FloatEquals$descriptor() { + return FloatEquals.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float coshf(float) + * int FloatEquals(float x, float y) * } */ - public static MethodHandle coshf$handle() { - return coshf.HANDLE; + public static MethodHandle FloatEquals$handle() { + return FloatEquals.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float coshf(float) + * int FloatEquals(float x, float y) * } */ - public static MemorySegment coshf$address() { - return coshf.ADDR; + public static MemorySegment FloatEquals$address() { + return FloatEquals.ADDR; } /** * {@snippet lang=c : - * extern float coshf(float) + * int FloatEquals(float x, float y) * } */ - public static float coshf(float x0) { - var mh$ = coshf.HANDLE; + public static int FloatEquals(float x, float y) { + var mh$ = FloatEquals.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("coshf", x0); + traceDowncall("FloatEquals", x, y); } - return (float)mh$.invokeExact(x0); + return (int)mh$.invokeExact(x, y); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class cosh { + private static class Vector2Zero { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("cosh"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Zero"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26242,57 +10095,55 @@ private static class cosh { /** * Function descriptor for: * {@snippet lang=c : - * extern double cosh(double) + * Vector2 Vector2Zero() * } */ - public static FunctionDescriptor cosh$descriptor() { - return cosh.DESC; + public static FunctionDescriptor Vector2Zero$descriptor() { + return Vector2Zero.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double cosh(double) + * Vector2 Vector2Zero() * } */ - public static MethodHandle cosh$handle() { - return cosh.HANDLE; + public static MethodHandle Vector2Zero$handle() { + return Vector2Zero.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double cosh(double) + * Vector2 Vector2Zero() * } */ - public static MemorySegment cosh$address() { - return cosh.ADDR; + public static MemorySegment Vector2Zero$address() { + return Vector2Zero.ADDR; } /** * {@snippet lang=c : - * extern double cosh(double) + * Vector2 Vector2Zero() * } */ - public static double cosh(double x0) { - var mh$ = cosh.HANDLE; + public static MemorySegment Vector2Zero(SegmentAllocator allocator) { + var mh$ = Vector2Zero.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("cosh", x0); + traceDowncall("Vector2Zero", allocator); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class sinhf { + private static class Vector2One { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT - ); + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("sinhf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2One"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26300,57 +10151,58 @@ private static class sinhf { /** * Function descriptor for: * {@snippet lang=c : - * extern float sinhf(float) + * Vector2 Vector2One() * } */ - public static FunctionDescriptor sinhf$descriptor() { - return sinhf.DESC; + public static FunctionDescriptor Vector2One$descriptor() { + return Vector2One.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float sinhf(float) + * Vector2 Vector2One() * } */ - public static MethodHandle sinhf$handle() { - return sinhf.HANDLE; + public static MethodHandle Vector2One$handle() { + return Vector2One.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float sinhf(float) + * Vector2 Vector2One() * } */ - public static MemorySegment sinhf$address() { - return sinhf.ADDR; + public static MemorySegment Vector2One$address() { + return Vector2One.ADDR; } /** * {@snippet lang=c : - * extern float sinhf(float) + * Vector2 Vector2One() * } */ - public static float sinhf(float x0) { - var mh$ = sinhf.HANDLE; + public static MemorySegment Vector2One(SegmentAllocator allocator) { + var mh$ = Vector2One.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("sinhf", x0); + traceDowncall("Vector2One", allocator); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class sinh { + private static class Vector2Add { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("sinh"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Add"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26358,57 +10210,58 @@ private static class sinh { /** * Function descriptor for: * {@snippet lang=c : - * extern double sinh(double) + * Vector2 Vector2Add(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor sinh$descriptor() { - return sinh.DESC; + public static FunctionDescriptor Vector2Add$descriptor() { + return Vector2Add.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double sinh(double) + * Vector2 Vector2Add(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle sinh$handle() { - return sinh.HANDLE; + public static MethodHandle Vector2Add$handle() { + return Vector2Add.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double sinh(double) + * Vector2 Vector2Add(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment sinh$address() { - return sinh.ADDR; + public static MemorySegment Vector2Add$address() { + return Vector2Add.ADDR; } /** * {@snippet lang=c : - * extern double sinh(double) + * Vector2 Vector2Add(Vector2 v1, Vector2 v2) * } */ - public static double sinh(double x0) { - var mh$ = sinh.HANDLE; + public static MemorySegment Vector2Add(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Add.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("sinh", x0); + traceDowncall("Vector2Add", allocator, v1, v2); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class tanhf { + private static class Vector2AddValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("tanhf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2AddValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26416,57 +10269,58 @@ private static class tanhf { /** * Function descriptor for: * {@snippet lang=c : - * extern float tanhf(float) + * Vector2 Vector2AddValue(Vector2 v, float add) * } */ - public static FunctionDescriptor tanhf$descriptor() { - return tanhf.DESC; + public static FunctionDescriptor Vector2AddValue$descriptor() { + return Vector2AddValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float tanhf(float) + * Vector2 Vector2AddValue(Vector2 v, float add) * } */ - public static MethodHandle tanhf$handle() { - return tanhf.HANDLE; + public static MethodHandle Vector2AddValue$handle() { + return Vector2AddValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float tanhf(float) + * Vector2 Vector2AddValue(Vector2 v, float add) * } */ - public static MemorySegment tanhf$address() { - return tanhf.ADDR; + public static MemorySegment Vector2AddValue$address() { + return Vector2AddValue.ADDR; } /** * {@snippet lang=c : - * extern float tanhf(float) + * Vector2 Vector2AddValue(Vector2 v, float add) * } */ - public static float tanhf(float x0) { - var mh$ = tanhf.HANDLE; + public static MemorySegment Vector2AddValue(SegmentAllocator allocator, MemorySegment v, float add) { + var mh$ = Vector2AddValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("tanhf", x0); + traceDowncall("Vector2AddValue", allocator, v, add); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, add); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class tanh { + private static class Vector2Subtract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("tanh"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Subtract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26474,57 +10328,58 @@ private static class tanh { /** * Function descriptor for: * {@snippet lang=c : - * extern double tanh(double) + * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor tanh$descriptor() { - return tanh.DESC; + public static FunctionDescriptor Vector2Subtract$descriptor() { + return Vector2Subtract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double tanh(double) + * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle tanh$handle() { - return tanh.HANDLE; + public static MethodHandle Vector2Subtract$handle() { + return Vector2Subtract.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double tanh(double) + * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment tanh$address() { - return tanh.ADDR; + public static MemorySegment Vector2Subtract$address() { + return Vector2Subtract.ADDR; } /** * {@snippet lang=c : - * extern double tanh(double) + * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) * } */ - public static double tanh(double x0) { - var mh$ = tanh.HANDLE; + public static MemorySegment Vector2Subtract(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Subtract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("tanh", x0); + traceDowncall("Vector2Subtract", allocator, v1, v2); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class expf { + private static class Vector2SubtractValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("expf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2SubtractValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26532,57 +10387,57 @@ private static class expf { /** * Function descriptor for: * {@snippet lang=c : - * extern float expf(float) + * Vector2 Vector2SubtractValue(Vector2 v, float sub) * } */ - public static FunctionDescriptor expf$descriptor() { - return expf.DESC; + public static FunctionDescriptor Vector2SubtractValue$descriptor() { + return Vector2SubtractValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float expf(float) + * Vector2 Vector2SubtractValue(Vector2 v, float sub) * } */ - public static MethodHandle expf$handle() { - return expf.HANDLE; + public static MethodHandle Vector2SubtractValue$handle() { + return Vector2SubtractValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float expf(float) + * Vector2 Vector2SubtractValue(Vector2 v, float sub) * } */ - public static MemorySegment expf$address() { - return expf.ADDR; + public static MemorySegment Vector2SubtractValue$address() { + return Vector2SubtractValue.ADDR; } /** * {@snippet lang=c : - * extern float expf(float) + * Vector2 Vector2SubtractValue(Vector2 v, float sub) * } */ - public static float expf(float x0) { - var mh$ = expf.HANDLE; + public static MemorySegment Vector2SubtractValue(SegmentAllocator allocator, MemorySegment v, float sub) { + var mh$ = Vector2SubtractValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("expf", x0); + traceDowncall("Vector2SubtractValue", allocator, v, sub); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, sub); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class exp { + private static class Vector2Length { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("exp"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Length"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26590,57 +10445,57 @@ private static class exp { /** * Function descriptor for: * {@snippet lang=c : - * extern double exp(double) + * float Vector2Length(Vector2 v) * } */ - public static FunctionDescriptor exp$descriptor() { - return exp.DESC; + public static FunctionDescriptor Vector2Length$descriptor() { + return Vector2Length.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double exp(double) + * float Vector2Length(Vector2 v) * } */ - public static MethodHandle exp$handle() { - return exp.HANDLE; + public static MethodHandle Vector2Length$handle() { + return Vector2Length.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double exp(double) + * float Vector2Length(Vector2 v) * } */ - public static MemorySegment exp$address() { - return exp.ADDR; + public static MemorySegment Vector2Length$address() { + return Vector2Length.ADDR; } /** * {@snippet lang=c : - * extern double exp(double) + * float Vector2Length(Vector2 v) * } */ - public static double exp(double x0) { - var mh$ = exp.HANDLE; + public static float Vector2Length(MemorySegment v) { + var mh$ = Vector2Length.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("exp", x0); + traceDowncall("Vector2Length", v); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class exp2f { + private static class Vector2LengthSqr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("exp2f"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2LengthSqr"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26648,57 +10503,58 @@ private static class exp2f { /** * Function descriptor for: * {@snippet lang=c : - * extern float exp2f(float) + * float Vector2LengthSqr(Vector2 v) * } */ - public static FunctionDescriptor exp2f$descriptor() { - return exp2f.DESC; + public static FunctionDescriptor Vector2LengthSqr$descriptor() { + return Vector2LengthSqr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float exp2f(float) + * float Vector2LengthSqr(Vector2 v) * } */ - public static MethodHandle exp2f$handle() { - return exp2f.HANDLE; + public static MethodHandle Vector2LengthSqr$handle() { + return Vector2LengthSqr.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float exp2f(float) + * float Vector2LengthSqr(Vector2 v) * } */ - public static MemorySegment exp2f$address() { - return exp2f.ADDR; + public static MemorySegment Vector2LengthSqr$address() { + return Vector2LengthSqr.ADDR; } /** * {@snippet lang=c : - * extern float exp2f(float) + * float Vector2LengthSqr(Vector2 v) * } */ - public static float exp2f(float x0) { - var mh$ = exp2f.HANDLE; + public static float Vector2LengthSqr(MemorySegment v) { + var mh$ = Vector2LengthSqr.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("exp2f", x0); + traceDowncall("Vector2LengthSqr", v); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class exp2 { + private static class Vector2DotProduct { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("exp2"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2DotProduct"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26706,57 +10562,58 @@ private static class exp2 { /** * Function descriptor for: * {@snippet lang=c : - * extern double exp2(double) + * float Vector2DotProduct(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor exp2$descriptor() { - return exp2.DESC; + public static FunctionDescriptor Vector2DotProduct$descriptor() { + return Vector2DotProduct.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double exp2(double) + * float Vector2DotProduct(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle exp2$handle() { - return exp2.HANDLE; + public static MethodHandle Vector2DotProduct$handle() { + return Vector2DotProduct.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double exp2(double) + * float Vector2DotProduct(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment exp2$address() { - return exp2.ADDR; + public static MemorySegment Vector2DotProduct$address() { + return Vector2DotProduct.ADDR; } /** * {@snippet lang=c : - * extern double exp2(double) + * float Vector2DotProduct(Vector2 v1, Vector2 v2) * } */ - public static double exp2(double x0) { - var mh$ = exp2.HANDLE; + public static float Vector2DotProduct(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2DotProduct.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("exp2", x0); + traceDowncall("Vector2DotProduct", v1, v2); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class expm1f { + private static class Vector2Distance { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("expm1f"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Distance"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26764,57 +10621,58 @@ private static class expm1f { /** * Function descriptor for: * {@snippet lang=c : - * extern float expm1f(float) + * float Vector2Distance(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor expm1f$descriptor() { - return expm1f.DESC; + public static FunctionDescriptor Vector2Distance$descriptor() { + return Vector2Distance.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float expm1f(float) + * float Vector2Distance(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle expm1f$handle() { - return expm1f.HANDLE; + public static MethodHandle Vector2Distance$handle() { + return Vector2Distance.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float expm1f(float) + * float Vector2Distance(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment expm1f$address() { - return expm1f.ADDR; + public static MemorySegment Vector2Distance$address() { + return Vector2Distance.ADDR; } /** * {@snippet lang=c : - * extern float expm1f(float) + * float Vector2Distance(Vector2 v1, Vector2 v2) * } */ - public static float expm1f(float x0) { - var mh$ = expm1f.HANDLE; + public static float Vector2Distance(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Distance.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("expm1f", x0); + traceDowncall("Vector2Distance", v1, v2); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class expm1 { + private static class Vector2DistanceSqr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("expm1"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2DistanceSqr"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26822,57 +10680,58 @@ private static class expm1 { /** * Function descriptor for: * {@snippet lang=c : - * extern double expm1(double) + * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor expm1$descriptor() { - return expm1.DESC; + public static FunctionDescriptor Vector2DistanceSqr$descriptor() { + return Vector2DistanceSqr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double expm1(double) + * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle expm1$handle() { - return expm1.HANDLE; + public static MethodHandle Vector2DistanceSqr$handle() { + return Vector2DistanceSqr.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double expm1(double) + * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment expm1$address() { - return expm1.ADDR; + public static MemorySegment Vector2DistanceSqr$address() { + return Vector2DistanceSqr.ADDR; } /** * {@snippet lang=c : - * extern double expm1(double) + * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) * } */ - public static double expm1(double x0) { - var mh$ = expm1.HANDLE; + public static float Vector2DistanceSqr(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2DistanceSqr.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("expm1", x0); + traceDowncall("Vector2DistanceSqr", v1, v2); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class logf { + private static class Vector2Angle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("logf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Angle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26880,57 +10739,58 @@ private static class logf { /** * Function descriptor for: * {@snippet lang=c : - * extern float logf(float) + * float Vector2Angle(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor logf$descriptor() { - return logf.DESC; + public static FunctionDescriptor Vector2Angle$descriptor() { + return Vector2Angle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float logf(float) + * float Vector2Angle(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle logf$handle() { - return logf.HANDLE; + public static MethodHandle Vector2Angle$handle() { + return Vector2Angle.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float logf(float) + * float Vector2Angle(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment logf$address() { - return logf.ADDR; + public static MemorySegment Vector2Angle$address() { + return Vector2Angle.ADDR; } /** * {@snippet lang=c : - * extern float logf(float) + * float Vector2Angle(Vector2 v1, Vector2 v2) * } */ - public static float logf(float x0) { - var mh$ = logf.HANDLE; + public static float Vector2Angle(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Angle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("logf", x0); + traceDowncall("Vector2Angle", v1, v2); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log { + private static class Vector2LineAngle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("log"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2LineAngle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26938,57 +10798,58 @@ private static class log { /** * Function descriptor for: * {@snippet lang=c : - * extern double log(double) + * float Vector2LineAngle(Vector2 start, Vector2 end) * } */ - public static FunctionDescriptor log$descriptor() { - return log.DESC; + public static FunctionDescriptor Vector2LineAngle$descriptor() { + return Vector2LineAngle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double log(double) + * float Vector2LineAngle(Vector2 start, Vector2 end) * } */ - public static MethodHandle log$handle() { - return log.HANDLE; + public static MethodHandle Vector2LineAngle$handle() { + return Vector2LineAngle.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double log(double) + * float Vector2LineAngle(Vector2 start, Vector2 end) * } */ - public static MemorySegment log$address() { - return log.ADDR; + public static MemorySegment Vector2LineAngle$address() { + return Vector2LineAngle.ADDR; } /** * {@snippet lang=c : - * extern double log(double) + * float Vector2LineAngle(Vector2 start, Vector2 end) * } */ - public static double log(double x0) { - var mh$ = log.HANDLE; + public static float Vector2LineAngle(MemorySegment start, MemorySegment end) { + var mh$ = Vector2LineAngle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log", x0); + traceDowncall("Vector2LineAngle", start, end); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(start, end); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log10f { + private static class Vector2Scale { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("log10f"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Scale"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -26996,57 +10857,58 @@ private static class log10f { /** * Function descriptor for: * {@snippet lang=c : - * extern float log10f(float) + * Vector2 Vector2Scale(Vector2 v, float scale) * } */ - public static FunctionDescriptor log10f$descriptor() { - return log10f.DESC; + public static FunctionDescriptor Vector2Scale$descriptor() { + return Vector2Scale.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float log10f(float) + * Vector2 Vector2Scale(Vector2 v, float scale) * } */ - public static MethodHandle log10f$handle() { - return log10f.HANDLE; + public static MethodHandle Vector2Scale$handle() { + return Vector2Scale.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float log10f(float) + * Vector2 Vector2Scale(Vector2 v, float scale) * } */ - public static MemorySegment log10f$address() { - return log10f.ADDR; + public static MemorySegment Vector2Scale$address() { + return Vector2Scale.ADDR; } /** * {@snippet lang=c : - * extern float log10f(float) + * Vector2 Vector2Scale(Vector2 v, float scale) * } */ - public static float log10f(float x0) { - var mh$ = log10f.HANDLE; + public static MemorySegment Vector2Scale(SegmentAllocator allocator, MemorySegment v, float scale) { + var mh$ = Vector2Scale.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log10f", x0); + traceDowncall("Vector2Scale", allocator, v, scale); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, scale); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log10 { + private static class Vector2Multiply { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("log10"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Multiply"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27054,57 +10916,57 @@ private static class log10 { /** * Function descriptor for: * {@snippet lang=c : - * extern double log10(double) + * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor log10$descriptor() { - return log10.DESC; + public static FunctionDescriptor Vector2Multiply$descriptor() { + return Vector2Multiply.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double log10(double) + * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle log10$handle() { - return log10.HANDLE; + public static MethodHandle Vector2Multiply$handle() { + return Vector2Multiply.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double log10(double) + * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment log10$address() { - return log10.ADDR; + public static MemorySegment Vector2Multiply$address() { + return Vector2Multiply.ADDR; } /** * {@snippet lang=c : - * extern double log10(double) + * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) * } */ - public static double log10(double x0) { - var mh$ = log10.HANDLE; + public static MemorySegment Vector2Multiply(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Multiply.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log10", x0); + traceDowncall("Vector2Multiply", allocator, v1, v2); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log2f { + private static class Vector2Negate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("log2f"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Negate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27112,57 +10974,58 @@ private static class log2f { /** * Function descriptor for: * {@snippet lang=c : - * extern float log2f(float) + * Vector2 Vector2Negate(Vector2 v) * } */ - public static FunctionDescriptor log2f$descriptor() { - return log2f.DESC; + public static FunctionDescriptor Vector2Negate$descriptor() { + return Vector2Negate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float log2f(float) + * Vector2 Vector2Negate(Vector2 v) * } */ - public static MethodHandle log2f$handle() { - return log2f.HANDLE; + public static MethodHandle Vector2Negate$handle() { + return Vector2Negate.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float log2f(float) + * Vector2 Vector2Negate(Vector2 v) * } */ - public static MemorySegment log2f$address() { - return log2f.ADDR; + public static MemorySegment Vector2Negate$address() { + return Vector2Negate.ADDR; } /** * {@snippet lang=c : - * extern float log2f(float) + * Vector2 Vector2Negate(Vector2 v) * } */ - public static float log2f(float x0) { - var mh$ = log2f.HANDLE; + public static MemorySegment Vector2Negate(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector2Negate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log2f", x0); + traceDowncall("Vector2Negate", allocator, v); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log2 { + private static class Vector2Divide { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("log2"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Divide"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27170,57 +11033,57 @@ private static class log2 { /** * Function descriptor for: * {@snippet lang=c : - * extern double log2(double) + * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor log2$descriptor() { - return log2.DESC; + public static FunctionDescriptor Vector2Divide$descriptor() { + return Vector2Divide.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double log2(double) + * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle log2$handle() { - return log2.HANDLE; + public static MethodHandle Vector2Divide$handle() { + return Vector2Divide.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double log2(double) + * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment log2$address() { - return log2.ADDR; + public static MemorySegment Vector2Divide$address() { + return Vector2Divide.ADDR; } /** * {@snippet lang=c : - * extern double log2(double) + * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) * } */ - public static double log2(double x0) { - var mh$ = log2.HANDLE; + public static MemorySegment Vector2Divide(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Divide.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log2", x0); + traceDowncall("Vector2Divide", allocator, v1, v2); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log1pf { + private static class Vector2Normalize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("log1pf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Normalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27228,57 +11091,58 @@ private static class log1pf { /** * Function descriptor for: * {@snippet lang=c : - * extern float log1pf(float) + * Vector2 Vector2Normalize(Vector2 v) * } */ - public static FunctionDescriptor log1pf$descriptor() { - return log1pf.DESC; + public static FunctionDescriptor Vector2Normalize$descriptor() { + return Vector2Normalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float log1pf(float) + * Vector2 Vector2Normalize(Vector2 v) * } */ - public static MethodHandle log1pf$handle() { - return log1pf.HANDLE; + public static MethodHandle Vector2Normalize$handle() { + return Vector2Normalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float log1pf(float) + * Vector2 Vector2Normalize(Vector2 v) * } */ - public static MemorySegment log1pf$address() { - return log1pf.ADDR; + public static MemorySegment Vector2Normalize$address() { + return Vector2Normalize.ADDR; } /** * {@snippet lang=c : - * extern float log1pf(float) + * Vector2 Vector2Normalize(Vector2 v) * } */ - public static float log1pf(float x0) { - var mh$ = log1pf.HANDLE; + public static MemorySegment Vector2Normalize(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector2Normalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log1pf", x0); + traceDowncall("Vector2Normalize", allocator, v); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class log1p { + private static class Vector2Transform { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("log1p"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Transform"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27286,57 +11150,59 @@ private static class log1p { /** * Function descriptor for: * {@snippet lang=c : - * extern double log1p(double) + * Vector2 Vector2Transform(Vector2 v, Matrix mat) * } */ - public static FunctionDescriptor log1p$descriptor() { - return log1p.DESC; + public static FunctionDescriptor Vector2Transform$descriptor() { + return Vector2Transform.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double log1p(double) + * Vector2 Vector2Transform(Vector2 v, Matrix mat) * } */ - public static MethodHandle log1p$handle() { - return log1p.HANDLE; + public static MethodHandle Vector2Transform$handle() { + return Vector2Transform.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double log1p(double) + * Vector2 Vector2Transform(Vector2 v, Matrix mat) * } */ - public static MemorySegment log1p$address() { - return log1p.ADDR; + public static MemorySegment Vector2Transform$address() { + return Vector2Transform.ADDR; } /** * {@snippet lang=c : - * extern double log1p(double) + * Vector2 Vector2Transform(Vector2 v, Matrix mat) * } */ - public static double log1p(double x0) { - var mh$ = log1p.HANDLE; + public static MemorySegment Vector2Transform(SegmentAllocator allocator, MemorySegment v, MemorySegment mat) { + var mh$ = Vector2Transform.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("log1p", x0); + traceDowncall("Vector2Transform", allocator, v, mat); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class logbf { + private static class Vector2Lerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("logbf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Lerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27344,57 +11210,58 @@ private static class logbf { /** * Function descriptor for: * {@snippet lang=c : - * extern float logbf(float) + * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) * } */ - public static FunctionDescriptor logbf$descriptor() { - return logbf.DESC; + public static FunctionDescriptor Vector2Lerp$descriptor() { + return Vector2Lerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float logbf(float) + * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) * } */ - public static MethodHandle logbf$handle() { - return logbf.HANDLE; + public static MethodHandle Vector2Lerp$handle() { + return Vector2Lerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float logbf(float) + * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) * } */ - public static MemorySegment logbf$address() { - return logbf.ADDR; + public static MemorySegment Vector2Lerp$address() { + return Vector2Lerp.ADDR; } /** * {@snippet lang=c : - * extern float logbf(float) + * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) * } */ - public static float logbf(float x0) { - var mh$ = logbf.HANDLE; + public static MemorySegment Vector2Lerp(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2, float amount) { + var mh$ = Vector2Lerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("logbf", x0); + traceDowncall("Vector2Lerp", allocator, v1, v2, amount); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class logb { + private static class Vector2Reflect { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("logb"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Reflect"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27402,58 +11269,58 @@ private static class logb { /** * Function descriptor for: * {@snippet lang=c : - * extern double logb(double) + * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) * } */ - public static FunctionDescriptor logb$descriptor() { - return logb.DESC; + public static FunctionDescriptor Vector2Reflect$descriptor() { + return Vector2Reflect.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double logb(double) + * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) * } */ - public static MethodHandle logb$handle() { - return logb.HANDLE; + public static MethodHandle Vector2Reflect$handle() { + return Vector2Reflect.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double logb(double) + * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) * } */ - public static MemorySegment logb$address() { - return logb.ADDR; + public static MemorySegment Vector2Reflect$address() { + return Vector2Reflect.ADDR; } /** * {@snippet lang=c : - * extern double logb(double) + * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) * } */ - public static double logb(double x0) { - var mh$ = logb.HANDLE; + public static MemorySegment Vector2Reflect(SegmentAllocator allocator, MemorySegment v, MemorySegment normal) { + var mh$ = Vector2Reflect.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("logb", x0); + traceDowncall("Vector2Reflect", allocator, v, normal); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, normal); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class modff { + private static class Vector2Min { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_POINTER + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("modff"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Min"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27461,58 +11328,58 @@ private static class modff { /** * Function descriptor for: * {@snippet lang=c : - * extern float modff(float, float *) + * Vector2 Vector2Min(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor modff$descriptor() { - return modff.DESC; + public static FunctionDescriptor Vector2Min$descriptor() { + return Vector2Min.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float modff(float, float *) + * Vector2 Vector2Min(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle modff$handle() { - return modff.HANDLE; + public static MethodHandle Vector2Min$handle() { + return Vector2Min.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float modff(float, float *) + * Vector2 Vector2Min(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment modff$address() { - return modff.ADDR; + public static MemorySegment Vector2Min$address() { + return Vector2Min.ADDR; } /** * {@snippet lang=c : - * extern float modff(float, float *) + * Vector2 Vector2Min(Vector2 v1, Vector2 v2) * } */ - public static float modff(float x0, MemorySegment x1) { - var mh$ = modff.HANDLE; + public static MemorySegment Vector2Min(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Min.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("modff", x0, x1); + traceDowncall("Vector2Min", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class modf { + private static class Vector2Max { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_POINTER + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("modf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Max"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27520,58 +11387,58 @@ private static class modf { /** * Function descriptor for: * {@snippet lang=c : - * extern double modf(double, double *) + * Vector2 Vector2Max(Vector2 v1, Vector2 v2) * } */ - public static FunctionDescriptor modf$descriptor() { - return modf.DESC; + public static FunctionDescriptor Vector2Max$descriptor() { + return Vector2Max.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double modf(double, double *) + * Vector2 Vector2Max(Vector2 v1, Vector2 v2) * } */ - public static MethodHandle modf$handle() { - return modf.HANDLE; + public static MethodHandle Vector2Max$handle() { + return Vector2Max.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double modf(double, double *) + * Vector2 Vector2Max(Vector2 v1, Vector2 v2) * } */ - public static MemorySegment modf$address() { - return modf.ADDR; + public static MemorySegment Vector2Max$address() { + return Vector2Max.ADDR; } /** * {@snippet lang=c : - * extern double modf(double, double *) + * Vector2 Vector2Max(Vector2 v1, Vector2 v2) * } */ - public static double modf(double x0, MemorySegment x1) { - var mh$ = modf.HANDLE; + public static MemorySegment Vector2Max(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector2Max.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("modf", x0, x1); + traceDowncall("Vector2Max", allocator, v1, v2); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ldexpf { + private static class Vector2Rotate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ldexpf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Rotate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27579,58 +11446,59 @@ private static class ldexpf { /** * Function descriptor for: * {@snippet lang=c : - * extern float ldexpf(float, int) + * Vector2 Vector2Rotate(Vector2 v, float angle) * } */ - public static FunctionDescriptor ldexpf$descriptor() { - return ldexpf.DESC; + public static FunctionDescriptor Vector2Rotate$descriptor() { + return Vector2Rotate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float ldexpf(float, int) + * Vector2 Vector2Rotate(Vector2 v, float angle) * } */ - public static MethodHandle ldexpf$handle() { - return ldexpf.HANDLE; + public static MethodHandle Vector2Rotate$handle() { + return Vector2Rotate.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float ldexpf(float, int) + * Vector2 Vector2Rotate(Vector2 v, float angle) * } */ - public static MemorySegment ldexpf$address() { - return ldexpf.ADDR; + public static MemorySegment Vector2Rotate$address() { + return Vector2Rotate.ADDR; } /** * {@snippet lang=c : - * extern float ldexpf(float, int) + * Vector2 Vector2Rotate(Vector2 v, float angle) * } */ - public static float ldexpf(float x0, int x1) { - var mh$ = ldexpf.HANDLE; + public static MemorySegment Vector2Rotate(SegmentAllocator allocator, MemorySegment v, float angle) { + var mh$ = Vector2Rotate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ldexpf", x0, x1); + traceDowncall("Vector2Rotate", allocator, v, angle); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ldexp { + private static class Vector2MoveTowards { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_INT + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ldexp"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2MoveTowards"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27638,58 +11506,57 @@ private static class ldexp { /** * Function descriptor for: * {@snippet lang=c : - * extern double ldexp(double, int) + * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) * } */ - public static FunctionDescriptor ldexp$descriptor() { - return ldexp.DESC; + public static FunctionDescriptor Vector2MoveTowards$descriptor() { + return Vector2MoveTowards.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double ldexp(double, int) + * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) * } */ - public static MethodHandle ldexp$handle() { - return ldexp.HANDLE; + public static MethodHandle Vector2MoveTowards$handle() { + return Vector2MoveTowards.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double ldexp(double, int) + * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) * } */ - public static MemorySegment ldexp$address() { - return ldexp.ADDR; + public static MemorySegment Vector2MoveTowards$address() { + return Vector2MoveTowards.ADDR; } /** * {@snippet lang=c : - * extern double ldexp(double, int) + * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) * } */ - public static double ldexp(double x0, int x1) { - var mh$ = ldexp.HANDLE; + public static MemorySegment Vector2MoveTowards(SegmentAllocator allocator, MemorySegment v, MemorySegment target, float maxDistance) { + var mh$ = Vector2MoveTowards.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ldexp", x0, x1); + traceDowncall("Vector2MoveTowards", allocator, v, target, maxDistance); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, target, maxDistance); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class frexpf { + private static class Vector2Invert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_POINTER + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("frexpf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Invert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27697,58 +11564,59 @@ private static class frexpf { /** * Function descriptor for: * {@snippet lang=c : - * extern float frexpf(float, int *) + * Vector2 Vector2Invert(Vector2 v) * } */ - public static FunctionDescriptor frexpf$descriptor() { - return frexpf.DESC; + public static FunctionDescriptor Vector2Invert$descriptor() { + return Vector2Invert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float frexpf(float, int *) + * Vector2 Vector2Invert(Vector2 v) * } */ - public static MethodHandle frexpf$handle() { - return frexpf.HANDLE; + public static MethodHandle Vector2Invert$handle() { + return Vector2Invert.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float frexpf(float, int *) + * Vector2 Vector2Invert(Vector2 v) * } */ - public static MemorySegment frexpf$address() { - return frexpf.ADDR; + public static MemorySegment Vector2Invert$address() { + return Vector2Invert.ADDR; } /** * {@snippet lang=c : - * extern float frexpf(float, int *) + * Vector2 Vector2Invert(Vector2 v) * } */ - public static float frexpf(float x0, MemorySegment x1) { - var mh$ = frexpf.HANDLE; + public static MemorySegment Vector2Invert(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector2Invert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("frexpf", x0, x1); + traceDowncall("Vector2Invert", allocator, v); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class frexp { + private static class Vector2Clamp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_POINTER + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("frexp"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Clamp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27756,57 +11624,59 @@ private static class frexp { /** * Function descriptor for: * {@snippet lang=c : - * extern double frexp(double, int *) + * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) * } */ - public static FunctionDescriptor frexp$descriptor() { - return frexp.DESC; + public static FunctionDescriptor Vector2Clamp$descriptor() { + return Vector2Clamp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double frexp(double, int *) + * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) * } */ - public static MethodHandle frexp$handle() { - return frexp.HANDLE; + public static MethodHandle Vector2Clamp$handle() { + return Vector2Clamp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double frexp(double, int *) + * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) * } */ - public static MemorySegment frexp$address() { - return frexp.ADDR; + public static MemorySegment Vector2Clamp$address() { + return Vector2Clamp.ADDR; } /** * {@snippet lang=c : - * extern double frexp(double, int *) + * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) * } */ - public static double frexp(double x0, MemorySegment x1) { - var mh$ = frexp.HANDLE; + public static MemorySegment Vector2Clamp(SegmentAllocator allocator, MemorySegment v, MemorySegment min, MemorySegment max) { + var mh$ = Vector2Clamp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("frexp", x0, x1); + traceDowncall("Vector2Clamp", allocator, v, min, max); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, min, max); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ilogbf { + private static class Vector2ClampValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ilogbf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2ClampValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27814,57 +11684,58 @@ private static class ilogbf { /** * Function descriptor for: * {@snippet lang=c : - * extern int ilogbf(float) + * Vector2 Vector2ClampValue(Vector2 v, float min, float max) * } */ - public static FunctionDescriptor ilogbf$descriptor() { - return ilogbf.DESC; + public static FunctionDescriptor Vector2ClampValue$descriptor() { + return Vector2ClampValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern int ilogbf(float) + * Vector2 Vector2ClampValue(Vector2 v, float min, float max) * } */ - public static MethodHandle ilogbf$handle() { - return ilogbf.HANDLE; + public static MethodHandle Vector2ClampValue$handle() { + return Vector2ClampValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern int ilogbf(float) + * Vector2 Vector2ClampValue(Vector2 v, float min, float max) * } */ - public static MemorySegment ilogbf$address() { - return ilogbf.ADDR; + public static MemorySegment Vector2ClampValue$address() { + return Vector2ClampValue.ADDR; } /** * {@snippet lang=c : - * extern int ilogbf(float) + * Vector2 Vector2ClampValue(Vector2 v, float min, float max) * } */ - public static int ilogbf(float x0) { - var mh$ = ilogbf.HANDLE; + public static MemorySegment Vector2ClampValue(SegmentAllocator allocator, MemorySegment v, float min, float max) { + var mh$ = Vector2ClampValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ilogbf", x0); + traceDowncall("Vector2ClampValue", allocator, v, min, max); } - return (int)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, min, max); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ilogb { + private static class Vector2Equals { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, - raylib.C_DOUBLE + Vector2.layout(), + Vector2.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ilogb"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Equals"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27872,58 +11743,59 @@ private static class ilogb { /** * Function descriptor for: * {@snippet lang=c : - * extern int ilogb(double) + * int Vector2Equals(Vector2 p, Vector2 q) * } */ - public static FunctionDescriptor ilogb$descriptor() { - return ilogb.DESC; + public static FunctionDescriptor Vector2Equals$descriptor() { + return Vector2Equals.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern int ilogb(double) + * int Vector2Equals(Vector2 p, Vector2 q) * } */ - public static MethodHandle ilogb$handle() { - return ilogb.HANDLE; + public static MethodHandle Vector2Equals$handle() { + return Vector2Equals.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern int ilogb(double) + * int Vector2Equals(Vector2 p, Vector2 q) * } */ - public static MemorySegment ilogb$address() { - return ilogb.ADDR; + public static MemorySegment Vector2Equals$address() { + return Vector2Equals.ADDR; } /** * {@snippet lang=c : - * extern int ilogb(double) + * int Vector2Equals(Vector2 p, Vector2 q) * } */ - public static int ilogb(double x0) { - var mh$ = ilogb.HANDLE; + public static int Vector2Equals(MemorySegment p, MemorySegment q) { + var mh$ = Vector2Equals.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ilogb", x0); + traceDowncall("Vector2Equals", p, q); } - return (int)mh$.invokeExact(x0); + return (int)mh$.invokeExact(p, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class scalbnf { + private static class Vector2Refract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("scalbnf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Refract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27931,58 +11803,55 @@ private static class scalbnf { /** * Function descriptor for: * {@snippet lang=c : - * extern float scalbnf(float, int) + * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) * } */ - public static FunctionDescriptor scalbnf$descriptor() { - return scalbnf.DESC; + public static FunctionDescriptor Vector2Refract$descriptor() { + return Vector2Refract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float scalbnf(float, int) + * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) * } */ - public static MethodHandle scalbnf$handle() { - return scalbnf.HANDLE; + public static MethodHandle Vector2Refract$handle() { + return Vector2Refract.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float scalbnf(float, int) + * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) * } */ - public static MemorySegment scalbnf$address() { - return scalbnf.ADDR; + public static MemorySegment Vector2Refract$address() { + return Vector2Refract.ADDR; } /** * {@snippet lang=c : - * extern float scalbnf(float, int) + * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) * } */ - public static float scalbnf(float x0, int x1) { - var mh$ = scalbnf.HANDLE; + public static MemorySegment Vector2Refract(SegmentAllocator allocator, MemorySegment v, MemorySegment n, float r) { + var mh$ = Vector2Refract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("scalbnf", x0, x1); + traceDowncall("Vector2Refract", allocator, v, n, r); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, n, r); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class scalbn { + private static class Vector3Zero { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_INT - ); + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("scalbn"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Zero"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -27990,58 +11859,55 @@ private static class scalbn { /** * Function descriptor for: * {@snippet lang=c : - * extern double scalbn(double, int) + * Vector3 Vector3Zero() * } */ - public static FunctionDescriptor scalbn$descriptor() { - return scalbn.DESC; + public static FunctionDescriptor Vector3Zero$descriptor() { + return Vector3Zero.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double scalbn(double, int) + * Vector3 Vector3Zero() * } */ - public static MethodHandle scalbn$handle() { - return scalbn.HANDLE; + public static MethodHandle Vector3Zero$handle() { + return Vector3Zero.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double scalbn(double, int) + * Vector3 Vector3Zero() * } */ - public static MemorySegment scalbn$address() { - return scalbn.ADDR; + public static MemorySegment Vector3Zero$address() { + return Vector3Zero.ADDR; } /** * {@snippet lang=c : - * extern double scalbn(double, int) + * Vector3 Vector3Zero() * } */ - public static double scalbn(double x0, int x1) { - var mh$ = scalbn.HANDLE; + public static MemorySegment Vector3Zero(SegmentAllocator allocator) { + var mh$ = Vector3Zero.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("scalbn", x0, x1); + traceDowncall("Vector3Zero", allocator); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class scalblnf { + private static class Vector3One { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_LONG - ); + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("scalblnf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3One"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28049,58 +11915,58 @@ private static class scalblnf { /** * Function descriptor for: * {@snippet lang=c : - * extern float scalblnf(float, long) + * Vector3 Vector3One() * } */ - public static FunctionDescriptor scalblnf$descriptor() { - return scalblnf.DESC; + public static FunctionDescriptor Vector3One$descriptor() { + return Vector3One.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float scalblnf(float, long) + * Vector3 Vector3One() * } */ - public static MethodHandle scalblnf$handle() { - return scalblnf.HANDLE; + public static MethodHandle Vector3One$handle() { + return Vector3One.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float scalblnf(float, long) + * Vector3 Vector3One() * } */ - public static MemorySegment scalblnf$address() { - return scalblnf.ADDR; + public static MemorySegment Vector3One$address() { + return Vector3One.ADDR; } /** * {@snippet lang=c : - * extern float scalblnf(float, long) + * Vector3 Vector3One() * } */ - public static float scalblnf(float x0, long x1) { - var mh$ = scalblnf.HANDLE; + public static MemorySegment Vector3One(SegmentAllocator allocator) { + var mh$ = Vector3One.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("scalblnf", x0, x1); + traceDowncall("Vector3One", allocator); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class scalbln { + private static class Vector3Add { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_LONG + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("scalbln"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Add"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28108,57 +11974,58 @@ private static class scalbln { /** * Function descriptor for: * {@snippet lang=c : - * extern double scalbln(double, long) + * Vector3 Vector3Add(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor scalbln$descriptor() { - return scalbln.DESC; + public static FunctionDescriptor Vector3Add$descriptor() { + return Vector3Add.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double scalbln(double, long) + * Vector3 Vector3Add(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle scalbln$handle() { - return scalbln.HANDLE; + public static MethodHandle Vector3Add$handle() { + return Vector3Add.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double scalbln(double, long) + * Vector3 Vector3Add(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment scalbln$address() { - return scalbln.ADDR; + public static MemorySegment Vector3Add$address() { + return Vector3Add.ADDR; } /** * {@snippet lang=c : - * extern double scalbln(double, long) + * Vector3 Vector3Add(Vector3 v1, Vector3 v2) * } */ - public static double scalbln(double x0, long x1) { - var mh$ = scalbln.HANDLE; + public static MemorySegment Vector3Add(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Add.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("scalbln", x0, x1); + traceDowncall("Vector3Add", allocator, v1, v2); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fabsf { + private static class Vector3AddValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector3.layout(), + Vector3.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("fabsf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3AddValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28166,57 +12033,58 @@ private static class fabsf { /** * Function descriptor for: * {@snippet lang=c : - * extern float fabsf(float) + * Vector3 Vector3AddValue(Vector3 v, float add) * } */ - public static FunctionDescriptor fabsf$descriptor() { - return fabsf.DESC; + public static FunctionDescriptor Vector3AddValue$descriptor() { + return Vector3AddValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float fabsf(float) + * Vector3 Vector3AddValue(Vector3 v, float add) * } */ - public static MethodHandle fabsf$handle() { - return fabsf.HANDLE; + public static MethodHandle Vector3AddValue$handle() { + return Vector3AddValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float fabsf(float) + * Vector3 Vector3AddValue(Vector3 v, float add) * } */ - public static MemorySegment fabsf$address() { - return fabsf.ADDR; + public static MemorySegment Vector3AddValue$address() { + return Vector3AddValue.ADDR; } /** * {@snippet lang=c : - * extern float fabsf(float) + * Vector3 Vector3AddValue(Vector3 v, float add) * } */ - public static float fabsf(float x0) { - var mh$ = fabsf.HANDLE; + public static MemorySegment Vector3AddValue(SegmentAllocator allocator, MemorySegment v, float add) { + var mh$ = Vector3AddValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fabsf", x0); + traceDowncall("Vector3AddValue", allocator, v, add); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, add); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fabs { + private static class Vector3Subtract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fabs"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Subtract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28224,57 +12092,58 @@ private static class fabs { /** * Function descriptor for: * {@snippet lang=c : - * extern double fabs(double) + * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor fabs$descriptor() { - return fabs.DESC; + public static FunctionDescriptor Vector3Subtract$descriptor() { + return Vector3Subtract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double fabs(double) + * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle fabs$handle() { - return fabs.HANDLE; + public static MethodHandle Vector3Subtract$handle() { + return Vector3Subtract.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double fabs(double) + * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment fabs$address() { - return fabs.ADDR; + public static MemorySegment Vector3Subtract$address() { + return Vector3Subtract.ADDR; } /** * {@snippet lang=c : - * extern double fabs(double) + * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) * } */ - public static double fabs(double x0) { - var mh$ = fabs.HANDLE; + public static MemorySegment Vector3Subtract(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Subtract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fabs", x0); + traceDowncall("Vector3Subtract", allocator, v1, v2); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class cbrtf { + private static class Vector3SubtractValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector3.layout(), + Vector3.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("cbrtf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3SubtractValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28282,57 +12151,58 @@ private static class cbrtf { /** * Function descriptor for: * {@snippet lang=c : - * extern float cbrtf(float) + * Vector3 Vector3SubtractValue(Vector3 v, float sub) * } */ - public static FunctionDescriptor cbrtf$descriptor() { - return cbrtf.DESC; + public static FunctionDescriptor Vector3SubtractValue$descriptor() { + return Vector3SubtractValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float cbrtf(float) + * Vector3 Vector3SubtractValue(Vector3 v, float sub) * } */ - public static MethodHandle cbrtf$handle() { - return cbrtf.HANDLE; + public static MethodHandle Vector3SubtractValue$handle() { + return Vector3SubtractValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float cbrtf(float) + * Vector3 Vector3SubtractValue(Vector3 v, float sub) * } */ - public static MemorySegment cbrtf$address() { - return cbrtf.ADDR; + public static MemorySegment Vector3SubtractValue$address() { + return Vector3SubtractValue.ADDR; } /** * {@snippet lang=c : - * extern float cbrtf(float) + * Vector3 Vector3SubtractValue(Vector3 v, float sub) * } */ - public static float cbrtf(float x0) { - var mh$ = cbrtf.HANDLE; + public static MemorySegment Vector3SubtractValue(SegmentAllocator allocator, MemorySegment v, float sub) { + var mh$ = Vector3SubtractValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("cbrtf", x0); + traceDowncall("Vector3SubtractValue", allocator, v, sub); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, sub); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class cbrt { + private static class Vector3Scale { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("cbrt"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Scale"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28340,58 +12210,58 @@ private static class cbrt { /** * Function descriptor for: * {@snippet lang=c : - * extern double cbrt(double) + * Vector3 Vector3Scale(Vector3 v, float scalar) * } */ - public static FunctionDescriptor cbrt$descriptor() { - return cbrt.DESC; + public static FunctionDescriptor Vector3Scale$descriptor() { + return Vector3Scale.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double cbrt(double) + * Vector3 Vector3Scale(Vector3 v, float scalar) * } */ - public static MethodHandle cbrt$handle() { - return cbrt.HANDLE; + public static MethodHandle Vector3Scale$handle() { + return Vector3Scale.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double cbrt(double) + * Vector3 Vector3Scale(Vector3 v, float scalar) * } */ - public static MemorySegment cbrt$address() { - return cbrt.ADDR; + public static MemorySegment Vector3Scale$address() { + return Vector3Scale.ADDR; } /** * {@snippet lang=c : - * extern double cbrt(double) + * Vector3 Vector3Scale(Vector3 v, float scalar) * } */ - public static double cbrt(double x0) { - var mh$ = cbrt.HANDLE; + public static MemorySegment Vector3Scale(SegmentAllocator allocator, MemorySegment v, float scalar) { + var mh$ = Vector3Scale.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("cbrt", x0); + traceDowncall("Vector3Scale", allocator, v, scalar); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, scalar); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class hypotf { + private static class Vector3Multiply { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("hypotf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Multiply"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28399,58 +12269,58 @@ private static class hypotf { /** * Function descriptor for: * {@snippet lang=c : - * extern float hypotf(float, float) + * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor hypotf$descriptor() { - return hypotf.DESC; + public static FunctionDescriptor Vector3Multiply$descriptor() { + return Vector3Multiply.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float hypotf(float, float) + * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle hypotf$handle() { - return hypotf.HANDLE; + public static MethodHandle Vector3Multiply$handle() { + return Vector3Multiply.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float hypotf(float, float) + * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment hypotf$address() { - return hypotf.ADDR; + public static MemorySegment Vector3Multiply$address() { + return Vector3Multiply.ADDR; } /** * {@snippet lang=c : - * extern float hypotf(float, float) + * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) * } */ - public static float hypotf(float x0, float x1) { - var mh$ = hypotf.HANDLE; + public static MemorySegment Vector3Multiply(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Multiply.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("hypotf", x0, x1); + traceDowncall("Vector3Multiply", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class hypot { + private static class Vector3CrossProduct { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("hypot"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3CrossProduct"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28458,58 +12328,57 @@ private static class hypot { /** * Function descriptor for: * {@snippet lang=c : - * extern double hypot(double, double) + * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor hypot$descriptor() { - return hypot.DESC; + public static FunctionDescriptor Vector3CrossProduct$descriptor() { + return Vector3CrossProduct.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double hypot(double, double) + * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle hypot$handle() { - return hypot.HANDLE; + public static MethodHandle Vector3CrossProduct$handle() { + return Vector3CrossProduct.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double hypot(double, double) + * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment hypot$address() { - return hypot.ADDR; + public static MemorySegment Vector3CrossProduct$address() { + return Vector3CrossProduct.ADDR; } /** * {@snippet lang=c : - * extern double hypot(double, double) + * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) * } */ - public static double hypot(double x0, double x1) { - var mh$ = hypot.HANDLE; + public static MemorySegment Vector3CrossProduct(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3CrossProduct.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("hypot", x0, x1); + traceDowncall("Vector3CrossProduct", allocator, v1, v2); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class powf { + private static class Vector3Perpendicular { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("powf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Perpendicular"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28517,58 +12386,57 @@ private static class powf { /** * Function descriptor for: * {@snippet lang=c : - * extern float powf(float, float) + * Vector3 Vector3Perpendicular(Vector3 v) * } */ - public static FunctionDescriptor powf$descriptor() { - return powf.DESC; + public static FunctionDescriptor Vector3Perpendicular$descriptor() { + return Vector3Perpendicular.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float powf(float, float) + * Vector3 Vector3Perpendicular(Vector3 v) * } */ - public static MethodHandle powf$handle() { - return powf.HANDLE; + public static MethodHandle Vector3Perpendicular$handle() { + return Vector3Perpendicular.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float powf(float, float) + * Vector3 Vector3Perpendicular(Vector3 v) * } */ - public static MemorySegment powf$address() { - return powf.ADDR; + public static MemorySegment Vector3Perpendicular$address() { + return Vector3Perpendicular.ADDR; } /** * {@snippet lang=c : - * extern float powf(float, float) + * Vector3 Vector3Perpendicular(Vector3 v) * } */ - public static float powf(float x0, float x1) { - var mh$ = powf.HANDLE; + public static MemorySegment Vector3Perpendicular(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector3Perpendicular.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("powf", x0, x1); + traceDowncall("Vector3Perpendicular", allocator, v); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class pow { + private static class Vector3Length { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("pow"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Length"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28576,57 +12444,57 @@ private static class pow { /** * Function descriptor for: * {@snippet lang=c : - * extern double pow(double, double) + * float Vector3Length(const Vector3 v) * } */ - public static FunctionDescriptor pow$descriptor() { - return pow.DESC; + public static FunctionDescriptor Vector3Length$descriptor() { + return Vector3Length.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double pow(double, double) + * float Vector3Length(const Vector3 v) * } */ - public static MethodHandle pow$handle() { - return pow.HANDLE; + public static MethodHandle Vector3Length$handle() { + return Vector3Length.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double pow(double, double) + * float Vector3Length(const Vector3 v) * } */ - public static MemorySegment pow$address() { - return pow.ADDR; + public static MemorySegment Vector3Length$address() { + return Vector3Length.ADDR; } /** * {@snippet lang=c : - * extern double pow(double, double) + * float Vector3Length(const Vector3 v) * } */ - public static double pow(double x0, double x1) { - var mh$ = pow.HANDLE; + public static float Vector3Length(MemorySegment v) { + var mh$ = Vector3Length.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("pow", x0, x1); + traceDowncall("Vector3Length", v); } - return (double)mh$.invokeExact(x0, x1); + return (float)mh$.invokeExact(v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class sqrtf { + private static class Vector3LengthSqr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("sqrtf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3LengthSqr"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28634,57 +12502,58 @@ private static class sqrtf { /** * Function descriptor for: * {@snippet lang=c : - * extern float sqrtf(float) + * float Vector3LengthSqr(const Vector3 v) * } */ - public static FunctionDescriptor sqrtf$descriptor() { - return sqrtf.DESC; + public static FunctionDescriptor Vector3LengthSqr$descriptor() { + return Vector3LengthSqr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float sqrtf(float) + * float Vector3LengthSqr(const Vector3 v) * } */ - public static MethodHandle sqrtf$handle() { - return sqrtf.HANDLE; + public static MethodHandle Vector3LengthSqr$handle() { + return Vector3LengthSqr.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float sqrtf(float) + * float Vector3LengthSqr(const Vector3 v) * } */ - public static MemorySegment sqrtf$address() { - return sqrtf.ADDR; + public static MemorySegment Vector3LengthSqr$address() { + return Vector3LengthSqr.ADDR; } /** * {@snippet lang=c : - * extern float sqrtf(float) + * float Vector3LengthSqr(const Vector3 v) * } */ - public static float sqrtf(float x0) { - var mh$ = sqrtf.HANDLE; + public static float Vector3LengthSqr(MemorySegment v) { + var mh$ = Vector3LengthSqr.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("sqrtf", x0); + traceDowncall("Vector3LengthSqr", v); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class sqrt { + private static class Vector3DotProduct { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("sqrt"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3DotProduct"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28692,57 +12561,58 @@ private static class sqrt { /** * Function descriptor for: * {@snippet lang=c : - * extern double sqrt(double) + * float Vector3DotProduct(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor sqrt$descriptor() { - return sqrt.DESC; + public static FunctionDescriptor Vector3DotProduct$descriptor() { + return Vector3DotProduct.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double sqrt(double) + * float Vector3DotProduct(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle sqrt$handle() { - return sqrt.HANDLE; + public static MethodHandle Vector3DotProduct$handle() { + return Vector3DotProduct.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double sqrt(double) + * float Vector3DotProduct(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment sqrt$address() { - return sqrt.ADDR; + public static MemorySegment Vector3DotProduct$address() { + return Vector3DotProduct.ADDR; } /** * {@snippet lang=c : - * extern double sqrt(double) + * float Vector3DotProduct(Vector3 v1, Vector3 v2) * } */ - public static double sqrt(double x0) { - var mh$ = sqrt.HANDLE; + public static float Vector3DotProduct(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3DotProduct.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("sqrt", x0); + traceDowncall("Vector3DotProduct", v1, v2); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class erff { + private static class Vector3Distance { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("erff"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Distance"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28750,57 +12620,58 @@ private static class erff { /** * Function descriptor for: * {@snippet lang=c : - * extern float erff(float) + * float Vector3Distance(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor erff$descriptor() { - return erff.DESC; + public static FunctionDescriptor Vector3Distance$descriptor() { + return Vector3Distance.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float erff(float) + * float Vector3Distance(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle erff$handle() { - return erff.HANDLE; + public static MethodHandle Vector3Distance$handle() { + return Vector3Distance.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float erff(float) + * float Vector3Distance(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment erff$address() { - return erff.ADDR; + public static MemorySegment Vector3Distance$address() { + return Vector3Distance.ADDR; } /** * {@snippet lang=c : - * extern float erff(float) + * float Vector3Distance(Vector3 v1, Vector3 v2) * } */ - public static float erff(float x0) { - var mh$ = erff.HANDLE; + public static float Vector3Distance(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Distance.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("erff", x0); + traceDowncall("Vector3Distance", v1, v2); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class erf { + private static class Vector3DistanceSqr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("erf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3DistanceSqr"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28808,57 +12679,58 @@ private static class erf { /** * Function descriptor for: * {@snippet lang=c : - * extern double erf(double) + * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor erf$descriptor() { - return erf.DESC; + public static FunctionDescriptor Vector3DistanceSqr$descriptor() { + return Vector3DistanceSqr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double erf(double) + * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle erf$handle() { - return erf.HANDLE; + public static MethodHandle Vector3DistanceSqr$handle() { + return Vector3DistanceSqr.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double erf(double) + * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment erf$address() { - return erf.ADDR; + public static MemorySegment Vector3DistanceSqr$address() { + return Vector3DistanceSqr.ADDR; } /** * {@snippet lang=c : - * extern double erf(double) + * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) * } */ - public static double erf(double x0) { - var mh$ = erf.HANDLE; + public static float Vector3DistanceSqr(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3DistanceSqr.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("erf", x0); + traceDowncall("Vector3DistanceSqr", v1, v2); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class erfcf { + private static class Vector3Angle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("erfcf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Angle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28866,57 +12738,57 @@ private static class erfcf { /** * Function descriptor for: * {@snippet lang=c : - * extern float erfcf(float) + * float Vector3Angle(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor erfcf$descriptor() { - return erfcf.DESC; + public static FunctionDescriptor Vector3Angle$descriptor() { + return Vector3Angle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float erfcf(float) + * float Vector3Angle(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle erfcf$handle() { - return erfcf.HANDLE; + public static MethodHandle Vector3Angle$handle() { + return Vector3Angle.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float erfcf(float) + * float Vector3Angle(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment erfcf$address() { - return erfcf.ADDR; + public static MemorySegment Vector3Angle$address() { + return Vector3Angle.ADDR; } /** * {@snippet lang=c : - * extern float erfcf(float) + * float Vector3Angle(Vector3 v1, Vector3 v2) * } */ - public static float erfcf(float x0) { - var mh$ = erfcf.HANDLE; + public static float Vector3Angle(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Angle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("erfcf", x0); + traceDowncall("Vector3Angle", v1, v2); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class erfc { + private static class Vector3Negate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("erfc"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Negate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28924,57 +12796,58 @@ private static class erfc { /** * Function descriptor for: * {@snippet lang=c : - * extern double erfc(double) + * Vector3 Vector3Negate(Vector3 v) * } */ - public static FunctionDescriptor erfc$descriptor() { - return erfc.DESC; + public static FunctionDescriptor Vector3Negate$descriptor() { + return Vector3Negate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double erfc(double) + * Vector3 Vector3Negate(Vector3 v) * } */ - public static MethodHandle erfc$handle() { - return erfc.HANDLE; + public static MethodHandle Vector3Negate$handle() { + return Vector3Negate.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double erfc(double) + * Vector3 Vector3Negate(Vector3 v) * } */ - public static MemorySegment erfc$address() { - return erfc.ADDR; + public static MemorySegment Vector3Negate$address() { + return Vector3Negate.ADDR; } /** * {@snippet lang=c : - * extern double erfc(double) + * Vector3 Vector3Negate(Vector3 v) * } */ - public static double erfc(double x0) { - var mh$ = erfc.HANDLE; + public static MemorySegment Vector3Negate(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector3Negate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("erfc", x0); + traceDowncall("Vector3Negate", allocator, v); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class lgammaf { + private static class Vector3Divide { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("lgammaf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Divide"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -28982,57 +12855,57 @@ private static class lgammaf { /** * Function descriptor for: * {@snippet lang=c : - * extern float lgammaf(float) + * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor lgammaf$descriptor() { - return lgammaf.DESC; + public static FunctionDescriptor Vector3Divide$descriptor() { + return Vector3Divide.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float lgammaf(float) + * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle lgammaf$handle() { - return lgammaf.HANDLE; + public static MethodHandle Vector3Divide$handle() { + return Vector3Divide.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float lgammaf(float) + * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment lgammaf$address() { - return lgammaf.ADDR; + public static MemorySegment Vector3Divide$address() { + return Vector3Divide.ADDR; } /** * {@snippet lang=c : - * extern float lgammaf(float) + * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) * } */ - public static float lgammaf(float x0) { - var mh$ = lgammaf.HANDLE; + public static MemorySegment Vector3Divide(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Divide.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("lgammaf", x0); + traceDowncall("Vector3Divide", allocator, v1, v2); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class lgamma { + private static class Vector3Normalize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("lgamma"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Normalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29040,57 +12913,58 @@ private static class lgamma { /** * Function descriptor for: * {@snippet lang=c : - * extern double lgamma(double) + * Vector3 Vector3Normalize(Vector3 v) * } */ - public static FunctionDescriptor lgamma$descriptor() { - return lgamma.DESC; + public static FunctionDescriptor Vector3Normalize$descriptor() { + return Vector3Normalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double lgamma(double) + * Vector3 Vector3Normalize(Vector3 v) * } */ - public static MethodHandle lgamma$handle() { - return lgamma.HANDLE; + public static MethodHandle Vector3Normalize$handle() { + return Vector3Normalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double lgamma(double) + * Vector3 Vector3Normalize(Vector3 v) * } */ - public static MemorySegment lgamma$address() { - return lgamma.ADDR; + public static MemorySegment Vector3Normalize$address() { + return Vector3Normalize.ADDR; } /** * {@snippet lang=c : - * extern double lgamma(double) + * Vector3 Vector3Normalize(Vector3 v) * } */ - public static double lgamma(double x0) { - var mh$ = lgamma.HANDLE; + public static MemorySegment Vector3Normalize(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector3Normalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("lgamma", x0); + traceDowncall("Vector3Normalize", allocator, v); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class tgammaf { + private static class Vector3Project { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("tgammaf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Project"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29098,57 +12972,58 @@ private static class tgammaf { /** * Function descriptor for: * {@snippet lang=c : - * extern float tgammaf(float) + * Vector3 Vector3Project(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor tgammaf$descriptor() { - return tgammaf.DESC; + public static FunctionDescriptor Vector3Project$descriptor() { + return Vector3Project.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float tgammaf(float) + * Vector3 Vector3Project(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle tgammaf$handle() { - return tgammaf.HANDLE; + public static MethodHandle Vector3Project$handle() { + return Vector3Project.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float tgammaf(float) + * Vector3 Vector3Project(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment tgammaf$address() { - return tgammaf.ADDR; + public static MemorySegment Vector3Project$address() { + return Vector3Project.ADDR; } /** * {@snippet lang=c : - * extern float tgammaf(float) + * Vector3 Vector3Project(Vector3 v1, Vector3 v2) * } */ - public static float tgammaf(float x0) { - var mh$ = tgammaf.HANDLE; + public static MemorySegment Vector3Project(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Project.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("tgammaf", x0); + traceDowncall("Vector3Project", allocator, v1, v2); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class tgamma { + private static class Vector3Reject { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("tgamma"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Reject"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29156,57 +13031,57 @@ private static class tgamma { /** * Function descriptor for: * {@snippet lang=c : - * extern double tgamma(double) + * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor tgamma$descriptor() { - return tgamma.DESC; + public static FunctionDescriptor Vector3Reject$descriptor() { + return Vector3Reject.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double tgamma(double) + * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle tgamma$handle() { - return tgamma.HANDLE; + public static MethodHandle Vector3Reject$handle() { + return Vector3Reject.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double tgamma(double) + * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment tgamma$address() { - return tgamma.ADDR; + public static MemorySegment Vector3Reject$address() { + return Vector3Reject.ADDR; } /** * {@snippet lang=c : - * extern double tgamma(double) + * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) * } */ - public static double tgamma(double x0) { - var mh$ = tgamma.HANDLE; + public static MemorySegment Vector3Reject(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Reject.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("tgamma", x0); + traceDowncall("Vector3Reject", allocator, v1, v2); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ceilf { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + private static class Vector3OrthoNormalize { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ceilf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3OrthoNormalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29214,57 +13089,58 @@ private static class ceilf { /** * Function descriptor for: * {@snippet lang=c : - * extern float ceilf(float) + * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) * } */ - public static FunctionDescriptor ceilf$descriptor() { - return ceilf.DESC; + public static FunctionDescriptor Vector3OrthoNormalize$descriptor() { + return Vector3OrthoNormalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float ceilf(float) + * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) * } */ - public static MethodHandle ceilf$handle() { - return ceilf.HANDLE; + public static MethodHandle Vector3OrthoNormalize$handle() { + return Vector3OrthoNormalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float ceilf(float) + * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) * } */ - public static MemorySegment ceilf$address() { - return ceilf.ADDR; + public static MemorySegment Vector3OrthoNormalize$address() { + return Vector3OrthoNormalize.ADDR; } /** * {@snippet lang=c : - * extern float ceilf(float) + * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) * } */ - public static float ceilf(float x0) { - var mh$ = ceilf.HANDLE; + public static void Vector3OrthoNormalize(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3OrthoNormalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ceilf", x0); + traceDowncall("Vector3OrthoNormalize", v1, v2); } - return (float)mh$.invokeExact(x0); + mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ceil { + private static class Vector3Transform { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ceil"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Transform"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29272,57 +13148,58 @@ private static class ceil { /** * Function descriptor for: * {@snippet lang=c : - * extern double ceil(double) + * Vector3 Vector3Transform(Vector3 v, Matrix mat) * } */ - public static FunctionDescriptor ceil$descriptor() { - return ceil.DESC; + public static FunctionDescriptor Vector3Transform$descriptor() { + return Vector3Transform.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double ceil(double) + * Vector3 Vector3Transform(Vector3 v, Matrix mat) * } */ - public static MethodHandle ceil$handle() { - return ceil.HANDLE; + public static MethodHandle Vector3Transform$handle() { + return Vector3Transform.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double ceil(double) + * Vector3 Vector3Transform(Vector3 v, Matrix mat) * } */ - public static MemorySegment ceil$address() { - return ceil.ADDR; + public static MemorySegment Vector3Transform$address() { + return Vector3Transform.ADDR; } /** * {@snippet lang=c : - * extern double ceil(double) + * Vector3 Vector3Transform(Vector3 v, Matrix mat) * } */ - public static double ceil(double x0) { - var mh$ = ceil.HANDLE; + public static MemorySegment Vector3Transform(SegmentAllocator allocator, MemorySegment v, MemorySegment mat) { + var mh$ = Vector3Transform.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ceil", x0); + traceDowncall("Vector3Transform", allocator, v, mat); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class floorf { + private static class Vector3RotateByQuaternion { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("floorf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3RotateByQuaternion"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29330,57 +13207,59 @@ private static class floorf { /** * Function descriptor for: * {@snippet lang=c : - * extern float floorf(float) + * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) * } */ - public static FunctionDescriptor floorf$descriptor() { - return floorf.DESC; + public static FunctionDescriptor Vector3RotateByQuaternion$descriptor() { + return Vector3RotateByQuaternion.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float floorf(float) + * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) * } */ - public static MethodHandle floorf$handle() { - return floorf.HANDLE; + public static MethodHandle Vector3RotateByQuaternion$handle() { + return Vector3RotateByQuaternion.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float floorf(float) + * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) * } */ - public static MemorySegment floorf$address() { - return floorf.ADDR; + public static MemorySegment Vector3RotateByQuaternion$address() { + return Vector3RotateByQuaternion.ADDR; } /** * {@snippet lang=c : - * extern float floorf(float) + * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) * } */ - public static float floorf(float x0) { - var mh$ = floorf.HANDLE; + public static MemorySegment Vector3RotateByQuaternion(SegmentAllocator allocator, MemorySegment v, MemorySegment q) { + var mh$ = Vector3RotateByQuaternion.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("floorf", x0); + traceDowncall("Vector3RotateByQuaternion", allocator, v, q); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class floor { + private static class Vector3RotateByAxisAngle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("floor"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3RotateByAxisAngle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29388,57 +13267,59 @@ private static class floor { /** * Function descriptor for: * {@snippet lang=c : - * extern double floor(double) + * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) * } */ - public static FunctionDescriptor floor$descriptor() { - return floor.DESC; + public static FunctionDescriptor Vector3RotateByAxisAngle$descriptor() { + return Vector3RotateByAxisAngle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double floor(double) + * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) * } */ - public static MethodHandle floor$handle() { - return floor.HANDLE; + public static MethodHandle Vector3RotateByAxisAngle$handle() { + return Vector3RotateByAxisAngle.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double floor(double) + * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) * } */ - public static MemorySegment floor$address() { - return floor.ADDR; + public static MemorySegment Vector3RotateByAxisAngle$address() { + return Vector3RotateByAxisAngle.ADDR; } /** * {@snippet lang=c : - * extern double floor(double) + * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) * } */ - public static double floor(double x0) { - var mh$ = floor.HANDLE; + public static MemorySegment Vector3RotateByAxisAngle(SegmentAllocator allocator, MemorySegment v, MemorySegment axis, float angle) { + var mh$ = Vector3RotateByAxisAngle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("floor", x0); + traceDowncall("Vector3RotateByAxisAngle", allocator, v, axis, angle); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, axis, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class nearbyintf { + private static class Vector3MoveTowards { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("nearbyintf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3MoveTowards"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29446,57 +13327,59 @@ private static class nearbyintf { /** * Function descriptor for: * {@snippet lang=c : - * extern float nearbyintf(float) + * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) * } */ - public static FunctionDescriptor nearbyintf$descriptor() { - return nearbyintf.DESC; + public static FunctionDescriptor Vector3MoveTowards$descriptor() { + return Vector3MoveTowards.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float nearbyintf(float) + * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) * } */ - public static MethodHandle nearbyintf$handle() { - return nearbyintf.HANDLE; + public static MethodHandle Vector3MoveTowards$handle() { + return Vector3MoveTowards.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float nearbyintf(float) + * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) * } */ - public static MemorySegment nearbyintf$address() { - return nearbyintf.ADDR; + public static MemorySegment Vector3MoveTowards$address() { + return Vector3MoveTowards.ADDR; } /** * {@snippet lang=c : - * extern float nearbyintf(float) + * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) * } */ - public static float nearbyintf(float x0) { - var mh$ = nearbyintf.HANDLE; + public static MemorySegment Vector3MoveTowards(SegmentAllocator allocator, MemorySegment v, MemorySegment target, float maxDistance) { + var mh$ = Vector3MoveTowards.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("nearbyintf", x0); + traceDowncall("Vector3MoveTowards", allocator, v, target, maxDistance); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, target, maxDistance); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class nearbyint { + private static class Vector3Lerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("nearbyint"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Lerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29504,57 +13387,61 @@ private static class nearbyint { /** * Function descriptor for: * {@snippet lang=c : - * extern double nearbyint(double) + * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) * } */ - public static FunctionDescriptor nearbyint$descriptor() { - return nearbyint.DESC; + public static FunctionDescriptor Vector3Lerp$descriptor() { + return Vector3Lerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double nearbyint(double) + * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) * } */ - public static MethodHandle nearbyint$handle() { - return nearbyint.HANDLE; + public static MethodHandle Vector3Lerp$handle() { + return Vector3Lerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double nearbyint(double) + * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) * } */ - public static MemorySegment nearbyint$address() { - return nearbyint.ADDR; + public static MemorySegment Vector3Lerp$address() { + return Vector3Lerp.ADDR; } /** * {@snippet lang=c : - * extern double nearbyint(double) + * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) * } */ - public static double nearbyint(double x0) { - var mh$ = nearbyint.HANDLE; + public static MemorySegment Vector3Lerp(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2, float amount) { + var mh$ = Vector3Lerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("nearbyint", x0); + traceDowncall("Vector3Lerp", allocator, v1, v2, amount); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rintf { + private static class Vector3CubicHermite { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("rintf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3CubicHermite"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29562,57 +13449,58 @@ private static class rintf { /** * Function descriptor for: * {@snippet lang=c : - * extern float rintf(float) + * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) * } */ - public static FunctionDescriptor rintf$descriptor() { - return rintf.DESC; + public static FunctionDescriptor Vector3CubicHermite$descriptor() { + return Vector3CubicHermite.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float rintf(float) + * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) * } */ - public static MethodHandle rintf$handle() { - return rintf.HANDLE; + public static MethodHandle Vector3CubicHermite$handle() { + return Vector3CubicHermite.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float rintf(float) + * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) * } */ - public static MemorySegment rintf$address() { - return rintf.ADDR; + public static MemorySegment Vector3CubicHermite$address() { + return Vector3CubicHermite.ADDR; } /** * {@snippet lang=c : - * extern float rintf(float) + * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) * } */ - public static float rintf(float x0) { - var mh$ = rintf.HANDLE; + public static MemorySegment Vector3CubicHermite(SegmentAllocator allocator, MemorySegment v1, MemorySegment tangent1, MemorySegment v2, MemorySegment tangent2, float amount) { + var mh$ = Vector3CubicHermite.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rintf", x0); + traceDowncall("Vector3CubicHermite", allocator, v1, tangent1, v2, tangent2, amount); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, tangent1, v2, tangent2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class rint { + private static class Vector3Reflect { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("rint"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Reflect"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29620,57 +13508,58 @@ private static class rint { /** * Function descriptor for: * {@snippet lang=c : - * extern double rint(double) + * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) * } */ - public static FunctionDescriptor rint$descriptor() { - return rint.DESC; + public static FunctionDescriptor Vector3Reflect$descriptor() { + return Vector3Reflect.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double rint(double) + * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) * } */ - public static MethodHandle rint$handle() { - return rint.HANDLE; + public static MethodHandle Vector3Reflect$handle() { + return Vector3Reflect.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double rint(double) + * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) * } */ - public static MemorySegment rint$address() { - return rint.ADDR; + public static MemorySegment Vector3Reflect$address() { + return Vector3Reflect.ADDR; } /** * {@snippet lang=c : - * extern double rint(double) + * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) * } */ - public static double rint(double x0) { - var mh$ = rint.HANDLE; + public static MemorySegment Vector3Reflect(SegmentAllocator allocator, MemorySegment v, MemorySegment normal) { + var mh$ = Vector3Reflect.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("rint", x0); + traceDowncall("Vector3Reflect", allocator, v, normal); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, normal); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class lrintf { + private static class Vector3Min { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("lrintf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Min"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29678,57 +13567,58 @@ private static class lrintf { /** * Function descriptor for: * {@snippet lang=c : - * extern long lrintf(float) + * Vector3 Vector3Min(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor lrintf$descriptor() { - return lrintf.DESC; + public static FunctionDescriptor Vector3Min$descriptor() { + return Vector3Min.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long lrintf(float) + * Vector3 Vector3Min(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle lrintf$handle() { - return lrintf.HANDLE; + public static MethodHandle Vector3Min$handle() { + return Vector3Min.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long lrintf(float) + * Vector3 Vector3Min(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment lrintf$address() { - return lrintf.ADDR; + public static MemorySegment Vector3Min$address() { + return Vector3Min.ADDR; } /** * {@snippet lang=c : - * extern long lrintf(float) + * Vector3 Vector3Min(Vector3 v1, Vector3 v2) * } */ - public static long lrintf(float x0) { - var mh$ = lrintf.HANDLE; + public static MemorySegment Vector3Min(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Min.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("lrintf", x0); + traceDowncall("Vector3Min", allocator, v1, v2); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class lrint { + private static class Vector3Max { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("lrint"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Max"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29736,57 +13626,60 @@ private static class lrint { /** * Function descriptor for: * {@snippet lang=c : - * extern long lrint(double) + * Vector3 Vector3Max(Vector3 v1, Vector3 v2) * } */ - public static FunctionDescriptor lrint$descriptor() { - return lrint.DESC; + public static FunctionDescriptor Vector3Max$descriptor() { + return Vector3Max.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long lrint(double) + * Vector3 Vector3Max(Vector3 v1, Vector3 v2) * } */ - public static MethodHandle lrint$handle() { - return lrint.HANDLE; + public static MethodHandle Vector3Max$handle() { + return Vector3Max.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long lrint(double) + * Vector3 Vector3Max(Vector3 v1, Vector3 v2) * } */ - public static MemorySegment lrint$address() { - return lrint.ADDR; + public static MemorySegment Vector3Max$address() { + return Vector3Max.ADDR; } /** * {@snippet lang=c : - * extern long lrint(double) + * Vector3 Vector3Max(Vector3 v1, Vector3 v2) * } */ - public static long lrint(double x0) { - var mh$ = lrint.HANDLE; + public static MemorySegment Vector3Max(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector3Max.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("lrint", x0); + traceDowncall("Vector3Max", allocator, v1, v2); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class roundf { + private static class Vector3Barycenter { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("roundf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Barycenter"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29794,57 +13687,59 @@ private static class roundf { /** * Function descriptor for: * {@snippet lang=c : - * extern float roundf(float) + * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) * } */ - public static FunctionDescriptor roundf$descriptor() { - return roundf.DESC; + public static FunctionDescriptor Vector3Barycenter$descriptor() { + return Vector3Barycenter.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float roundf(float) + * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) * } */ - public static MethodHandle roundf$handle() { - return roundf.HANDLE; + public static MethodHandle Vector3Barycenter$handle() { + return Vector3Barycenter.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float roundf(float) + * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) * } */ - public static MemorySegment roundf$address() { - return roundf.ADDR; + public static MemorySegment Vector3Barycenter$address() { + return Vector3Barycenter.ADDR; } /** * {@snippet lang=c : - * extern float roundf(float) + * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) * } */ - public static float roundf(float x0) { - var mh$ = roundf.HANDLE; + public static MemorySegment Vector3Barycenter(SegmentAllocator allocator, MemorySegment p, MemorySegment a, MemorySegment b, MemorySegment c) { + var mh$ = Vector3Barycenter.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("roundf", x0); + traceDowncall("Vector3Barycenter", allocator, p, a, b, c); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, p, a, b, c); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class round { + private static class Vector3Unproject { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("round"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Unproject"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29852,57 +13747,57 @@ private static class round { /** * Function descriptor for: * {@snippet lang=c : - * extern double round(double) + * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) * } */ - public static FunctionDescriptor round$descriptor() { - return round.DESC; + public static FunctionDescriptor Vector3Unproject$descriptor() { + return Vector3Unproject.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double round(double) + * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) * } */ - public static MethodHandle round$handle() { - return round.HANDLE; + public static MethodHandle Vector3Unproject$handle() { + return Vector3Unproject.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double round(double) + * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) * } */ - public static MemorySegment round$address() { - return round.ADDR; + public static MemorySegment Vector3Unproject$address() { + return Vector3Unproject.ADDR; } /** * {@snippet lang=c : - * extern double round(double) + * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) * } */ - public static double round(double x0) { - var mh$ = round.HANDLE; + public static MemorySegment Vector3Unproject(SegmentAllocator allocator, MemorySegment source, MemorySegment projection, MemorySegment view) { + var mh$ = Vector3Unproject.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("round", x0); + traceDowncall("Vector3Unproject", allocator, source, projection, view); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, source, projection, view); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class lroundf { + private static class Vector3ToFloatV { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG, - raylib.C_FLOAT + float3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("lroundf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3ToFloatV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29910,57 +13805,57 @@ private static class lroundf { /** * Function descriptor for: * {@snippet lang=c : - * extern long lroundf(float) + * float3 Vector3ToFloatV(Vector3 v) * } */ - public static FunctionDescriptor lroundf$descriptor() { - return lroundf.DESC; + public static FunctionDescriptor Vector3ToFloatV$descriptor() { + return Vector3ToFloatV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long lroundf(float) + * float3 Vector3ToFloatV(Vector3 v) * } */ - public static MethodHandle lroundf$handle() { - return lroundf.HANDLE; + public static MethodHandle Vector3ToFloatV$handle() { + return Vector3ToFloatV.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long lroundf(float) + * float3 Vector3ToFloatV(Vector3 v) * } */ - public static MemorySegment lroundf$address() { - return lroundf.ADDR; + public static MemorySegment Vector3ToFloatV$address() { + return Vector3ToFloatV.ADDR; } /** * {@snippet lang=c : - * extern long lroundf(float) + * float3 Vector3ToFloatV(Vector3 v) * } */ - public static long lroundf(float x0) { - var mh$ = lroundf.HANDLE; + public static MemorySegment Vector3ToFloatV(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector3ToFloatV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("lroundf", x0); + traceDowncall("Vector3ToFloatV", allocator, v); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class lround { + private static class Vector3Invert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("lround"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Invert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -29968,57 +13863,59 @@ private static class lround { /** * Function descriptor for: * {@snippet lang=c : - * extern long lround(double) + * Vector3 Vector3Invert(Vector3 v) * } */ - public static FunctionDescriptor lround$descriptor() { - return lround.DESC; + public static FunctionDescriptor Vector3Invert$descriptor() { + return Vector3Invert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long lround(double) + * Vector3 Vector3Invert(Vector3 v) * } */ - public static MethodHandle lround$handle() { - return lround.HANDLE; + public static MethodHandle Vector3Invert$handle() { + return Vector3Invert.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long lround(double) + * Vector3 Vector3Invert(Vector3 v) * } */ - public static MemorySegment lround$address() { - return lround.ADDR; + public static MemorySegment Vector3Invert$address() { + return Vector3Invert.ADDR; } /** * {@snippet lang=c : - * extern long lround(double) + * Vector3 Vector3Invert(Vector3 v) * } */ - public static long lround(double x0) { - var mh$ = lround.HANDLE; + public static MemorySegment Vector3Invert(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector3Invert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("lround", x0); + traceDowncall("Vector3Invert", allocator, v); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class llrintf { + private static class Vector3Clamp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG_LONG, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("llrintf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Clamp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30026,57 +13923,59 @@ private static class llrintf { /** * Function descriptor for: * {@snippet lang=c : - * extern long long llrintf(float) + * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) * } */ - public static FunctionDescriptor llrintf$descriptor() { - return llrintf.DESC; + public static FunctionDescriptor Vector3Clamp$descriptor() { + return Vector3Clamp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long long llrintf(float) + * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) * } */ - public static MethodHandle llrintf$handle() { - return llrintf.HANDLE; + public static MethodHandle Vector3Clamp$handle() { + return Vector3Clamp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long long llrintf(float) + * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) * } */ - public static MemorySegment llrintf$address() { - return llrintf.ADDR; + public static MemorySegment Vector3Clamp$address() { + return Vector3Clamp.ADDR; } /** * {@snippet lang=c : - * extern long long llrintf(float) + * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) * } */ - public static long llrintf(float x0) { - var mh$ = llrintf.HANDLE; + public static MemorySegment Vector3Clamp(SegmentAllocator allocator, MemorySegment v, MemorySegment min, MemorySegment max) { + var mh$ = Vector3Clamp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("llrintf", x0); + traceDowncall("Vector3Clamp", allocator, v, min, max); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, min, max); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class llrint { + private static class Vector3ClampValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG_LONG, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("llrint"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3ClampValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30084,57 +13983,58 @@ private static class llrint { /** * Function descriptor for: * {@snippet lang=c : - * extern long long llrint(double) + * Vector3 Vector3ClampValue(Vector3 v, float min, float max) * } */ - public static FunctionDescriptor llrint$descriptor() { - return llrint.DESC; + public static FunctionDescriptor Vector3ClampValue$descriptor() { + return Vector3ClampValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long long llrint(double) + * Vector3 Vector3ClampValue(Vector3 v, float min, float max) * } */ - public static MethodHandle llrint$handle() { - return llrint.HANDLE; + public static MethodHandle Vector3ClampValue$handle() { + return Vector3ClampValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long long llrint(double) + * Vector3 Vector3ClampValue(Vector3 v, float min, float max) * } */ - public static MemorySegment llrint$address() { - return llrint.ADDR; + public static MemorySegment Vector3ClampValue$address() { + return Vector3ClampValue.ADDR; } /** * {@snippet lang=c : - * extern long long llrint(double) + * Vector3 Vector3ClampValue(Vector3 v, float min, float max) * } */ - public static long llrint(double x0) { - var mh$ = llrint.HANDLE; + public static MemorySegment Vector3ClampValue(SegmentAllocator allocator, MemorySegment v, float min, float max) { + var mh$ = Vector3ClampValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("llrint", x0); + traceDowncall("Vector3ClampValue", allocator, v, min, max); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, min, max); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class llroundf { + private static class Vector3Equals { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG_LONG, - raylib.C_FLOAT + raylib.C_INT, + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("llroundf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Equals"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30142,57 +14042,59 @@ private static class llroundf { /** * Function descriptor for: * {@snippet lang=c : - * extern long long llroundf(float) + * int Vector3Equals(Vector3 p, Vector3 q) * } */ - public static FunctionDescriptor llroundf$descriptor() { - return llroundf.DESC; + public static FunctionDescriptor Vector3Equals$descriptor() { + return Vector3Equals.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long long llroundf(float) + * int Vector3Equals(Vector3 p, Vector3 q) * } */ - public static MethodHandle llroundf$handle() { - return llroundf.HANDLE; + public static MethodHandle Vector3Equals$handle() { + return Vector3Equals.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long long llroundf(float) + * int Vector3Equals(Vector3 p, Vector3 q) * } */ - public static MemorySegment llroundf$address() { - return llroundf.ADDR; + public static MemorySegment Vector3Equals$address() { + return Vector3Equals.ADDR; } /** * {@snippet lang=c : - * extern long long llroundf(float) + * int Vector3Equals(Vector3 p, Vector3 q) * } */ - public static long llroundf(float x0) { - var mh$ = llroundf.HANDLE; + public static int Vector3Equals(MemorySegment p, MemorySegment q) { + var mh$ = Vector3Equals.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("llroundf", x0); + traceDowncall("Vector3Equals", p, q); } - return (long)mh$.invokeExact(x0); + return (int)mh$.invokeExact(p, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class llround { + private static class Vector3Refract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG_LONG, - raylib.C_DOUBLE + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("llround"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Refract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30200,57 +14102,55 @@ private static class llround { /** * Function descriptor for: * {@snippet lang=c : - * extern long long llround(double) + * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) * } */ - public static FunctionDescriptor llround$descriptor() { - return llround.DESC; + public static FunctionDescriptor Vector3Refract$descriptor() { + return Vector3Refract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern long long llround(double) + * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) * } */ - public static MethodHandle llround$handle() { - return llround.HANDLE; + public static MethodHandle Vector3Refract$handle() { + return Vector3Refract.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern long long llround(double) + * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) * } */ - public static MemorySegment llround$address() { - return llround.ADDR; + public static MemorySegment Vector3Refract$address() { + return Vector3Refract.ADDR; } /** * {@snippet lang=c : - * extern long long llround(double) + * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) * } */ - public static long llround(double x0) { - var mh$ = llround.HANDLE; + public static MemorySegment Vector3Refract(SegmentAllocator allocator, MemorySegment v, MemorySegment n, float r) { + var mh$ = Vector3Refract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("llround", x0); + traceDowncall("Vector3Refract", allocator, v, n, r); } - return (long)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, n, r); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class truncf { + private static class Vector4Zero { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT - ); + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("truncf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Zero"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30258,57 +14158,55 @@ private static class truncf { /** * Function descriptor for: * {@snippet lang=c : - * extern float truncf(float) + * Vector4 Vector4Zero() * } */ - public static FunctionDescriptor truncf$descriptor() { - return truncf.DESC; + public static FunctionDescriptor Vector4Zero$descriptor() { + return Vector4Zero.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float truncf(float) + * Vector4 Vector4Zero() * } */ - public static MethodHandle truncf$handle() { - return truncf.HANDLE; + public static MethodHandle Vector4Zero$handle() { + return Vector4Zero.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float truncf(float) + * Vector4 Vector4Zero() * } */ - public static MemorySegment truncf$address() { - return truncf.ADDR; + public static MemorySegment Vector4Zero$address() { + return Vector4Zero.ADDR; } /** * {@snippet lang=c : - * extern float truncf(float) + * Vector4 Vector4Zero() * } */ - public static float truncf(float x0) { - var mh$ = truncf.HANDLE; + public static MemorySegment Vector4Zero(SegmentAllocator allocator) { + var mh$ = Vector4Zero.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("truncf", x0); + traceDowncall("Vector4Zero", allocator); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class trunc { + private static class Vector4One { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("trunc"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4One"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30316,58 +14214,58 @@ private static class trunc { /** * Function descriptor for: * {@snippet lang=c : - * extern double trunc(double) + * Vector4 Vector4One() * } */ - public static FunctionDescriptor trunc$descriptor() { - return trunc.DESC; + public static FunctionDescriptor Vector4One$descriptor() { + return Vector4One.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double trunc(double) + * Vector4 Vector4One() * } */ - public static MethodHandle trunc$handle() { - return trunc.HANDLE; + public static MethodHandle Vector4One$handle() { + return Vector4One.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double trunc(double) + * Vector4 Vector4One() * } */ - public static MemorySegment trunc$address() { - return trunc.ADDR; + public static MemorySegment Vector4One$address() { + return Vector4One.ADDR; } /** * {@snippet lang=c : - * extern double trunc(double) + * Vector4 Vector4One() * } */ - public static double trunc(double x0) { - var mh$ = trunc.HANDLE; + public static MemorySegment Vector4One(SegmentAllocator allocator) { + var mh$ = Vector4One.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("trunc", x0); + traceDowncall("Vector4One", allocator); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fmodf { + private static class Vector4Add { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fmodf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Add"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30375,58 +14273,58 @@ private static class fmodf { /** * Function descriptor for: * {@snippet lang=c : - * extern float fmodf(float, float) + * Vector4 Vector4Add(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor fmodf$descriptor() { - return fmodf.DESC; + public static FunctionDescriptor Vector4Add$descriptor() { + return Vector4Add.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float fmodf(float, float) + * Vector4 Vector4Add(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle fmodf$handle() { - return fmodf.HANDLE; + public static MethodHandle Vector4Add$handle() { + return Vector4Add.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float fmodf(float, float) + * Vector4 Vector4Add(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment fmodf$address() { - return fmodf.ADDR; + public static MemorySegment Vector4Add$address() { + return Vector4Add.ADDR; } /** * {@snippet lang=c : - * extern float fmodf(float, float) + * Vector4 Vector4Add(Vector4 v1, Vector4 v2) * } */ - public static float fmodf(float x0, float x1) { - var mh$ = fmodf.HANDLE; + public static MemorySegment Vector4Add(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Add.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fmodf", x0, x1); + traceDowncall("Vector4Add", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fmod { + private static class Vector4AddValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("fmod"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4AddValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30434,58 +14332,58 @@ private static class fmod { /** * Function descriptor for: * {@snippet lang=c : - * extern double fmod(double, double) + * Vector4 Vector4AddValue(Vector4 v, float add) * } */ - public static FunctionDescriptor fmod$descriptor() { - return fmod.DESC; + public static FunctionDescriptor Vector4AddValue$descriptor() { + return Vector4AddValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double fmod(double, double) + * Vector4 Vector4AddValue(Vector4 v, float add) * } */ - public static MethodHandle fmod$handle() { - return fmod.HANDLE; + public static MethodHandle Vector4AddValue$handle() { + return Vector4AddValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double fmod(double, double) + * Vector4 Vector4AddValue(Vector4 v, float add) * } */ - public static MemorySegment fmod$address() { - return fmod.ADDR; + public static MemorySegment Vector4AddValue$address() { + return Vector4AddValue.ADDR; } /** * {@snippet lang=c : - * extern double fmod(double, double) + * Vector4 Vector4AddValue(Vector4 v, float add) * } */ - public static double fmod(double x0, double x1) { - var mh$ = fmod.HANDLE; + public static MemorySegment Vector4AddValue(SegmentAllocator allocator, MemorySegment v, float add) { + var mh$ = Vector4AddValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fmod", x0, x1); + traceDowncall("Vector4AddValue", allocator, v, add); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, add); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class remainderf { + private static class Vector4Subtract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("remainderf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Subtract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30493,58 +14391,58 @@ private static class remainderf { /** * Function descriptor for: * {@snippet lang=c : - * extern float remainderf(float, float) + * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor remainderf$descriptor() { - return remainderf.DESC; + public static FunctionDescriptor Vector4Subtract$descriptor() { + return Vector4Subtract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float remainderf(float, float) + * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle remainderf$handle() { - return remainderf.HANDLE; + public static MethodHandle Vector4Subtract$handle() { + return Vector4Subtract.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float remainderf(float, float) + * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment remainderf$address() { - return remainderf.ADDR; + public static MemorySegment Vector4Subtract$address() { + return Vector4Subtract.ADDR; } /** * {@snippet lang=c : - * extern float remainderf(float, float) + * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) * } */ - public static float remainderf(float x0, float x1) { - var mh$ = remainderf.HANDLE; + public static MemorySegment Vector4Subtract(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Subtract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("remainderf", x0, x1); + traceDowncall("Vector4Subtract", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class remainder { + private static class Vector4SubtractValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("remainder"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4SubtractValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30552,59 +14450,57 @@ private static class remainder { /** * Function descriptor for: * {@snippet lang=c : - * extern double remainder(double, double) + * Vector4 Vector4SubtractValue(Vector4 v, float add) * } */ - public static FunctionDescriptor remainder$descriptor() { - return remainder.DESC; + public static FunctionDescriptor Vector4SubtractValue$descriptor() { + return Vector4SubtractValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double remainder(double, double) + * Vector4 Vector4SubtractValue(Vector4 v, float add) * } */ - public static MethodHandle remainder$handle() { - return remainder.HANDLE; + public static MethodHandle Vector4SubtractValue$handle() { + return Vector4SubtractValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double remainder(double, double) + * Vector4 Vector4SubtractValue(Vector4 v, float add) * } */ - public static MemorySegment remainder$address() { - return remainder.ADDR; + public static MemorySegment Vector4SubtractValue$address() { + return Vector4SubtractValue.ADDR; } /** * {@snippet lang=c : - * extern double remainder(double, double) + * Vector4 Vector4SubtractValue(Vector4 v, float add) * } */ - public static double remainder(double x0, double x1) { - var mh$ = remainder.HANDLE; + public static MemorySegment Vector4SubtractValue(SegmentAllocator allocator, MemorySegment v, float add) { + var mh$ = Vector4SubtractValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("remainder", x0, x1); + traceDowncall("Vector4SubtractValue", allocator, v, add); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, add); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class remquof { + private static class Vector4Length { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_POINTER + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("remquof"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Length"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30612,59 +14508,57 @@ private static class remquof { /** * Function descriptor for: * {@snippet lang=c : - * extern float remquof(float, float, int *) + * float Vector4Length(Vector4 v) * } */ - public static FunctionDescriptor remquof$descriptor() { - return remquof.DESC; + public static FunctionDescriptor Vector4Length$descriptor() { + return Vector4Length.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float remquof(float, float, int *) + * float Vector4Length(Vector4 v) * } */ - public static MethodHandle remquof$handle() { - return remquof.HANDLE; + public static MethodHandle Vector4Length$handle() { + return Vector4Length.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float remquof(float, float, int *) + * float Vector4Length(Vector4 v) * } */ - public static MemorySegment remquof$address() { - return remquof.ADDR; + public static MemorySegment Vector4Length$address() { + return Vector4Length.ADDR; } /** * {@snippet lang=c : - * extern float remquof(float, float, int *) + * float Vector4Length(Vector4 v) * } */ - public static float remquof(float x0, float x1, MemorySegment x2) { - var mh$ = remquof.HANDLE; + public static float Vector4Length(MemorySegment v) { + var mh$ = Vector4Length.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("remquof", x0, x1, x2); + traceDowncall("Vector4Length", v); } - return (float)mh$.invokeExact(x0, x1, x2); + return (float)mh$.invokeExact(v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class remquo { + private static class Vector4LengthSqr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_POINTER + raylib.C_FLOAT, + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("remquo"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4LengthSqr"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30672,58 +14566,58 @@ private static class remquo { /** * Function descriptor for: * {@snippet lang=c : - * extern double remquo(double, double, int *) + * float Vector4LengthSqr(Vector4 v) * } */ - public static FunctionDescriptor remquo$descriptor() { - return remquo.DESC; + public static FunctionDescriptor Vector4LengthSqr$descriptor() { + return Vector4LengthSqr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double remquo(double, double, int *) + * float Vector4LengthSqr(Vector4 v) * } */ - public static MethodHandle remquo$handle() { - return remquo.HANDLE; + public static MethodHandle Vector4LengthSqr$handle() { + return Vector4LengthSqr.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double remquo(double, double, int *) + * float Vector4LengthSqr(Vector4 v) * } */ - public static MemorySegment remquo$address() { - return remquo.ADDR; + public static MemorySegment Vector4LengthSqr$address() { + return Vector4LengthSqr.ADDR; } /** * {@snippet lang=c : - * extern double remquo(double, double, int *) + * float Vector4LengthSqr(Vector4 v) * } */ - public static double remquo(double x0, double x1, MemorySegment x2) { - var mh$ = remquo.HANDLE; + public static float Vector4LengthSqr(MemorySegment v) { + var mh$ = Vector4LengthSqr.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("remquo", x0, x1, x2); + traceDowncall("Vector4LengthSqr", v); } - return (double)mh$.invokeExact(x0, x1, x2); + return (float)mh$.invokeExact(v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class copysignf { + private static class Vector4DotProduct { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("copysignf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4DotProduct"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30731,58 +14625,58 @@ private static class copysignf { /** * Function descriptor for: * {@snippet lang=c : - * extern float copysignf(float, float) + * float Vector4DotProduct(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor copysignf$descriptor() { - return copysignf.DESC; + public static FunctionDescriptor Vector4DotProduct$descriptor() { + return Vector4DotProduct.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float copysignf(float, float) + * float Vector4DotProduct(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle copysignf$handle() { - return copysignf.HANDLE; + public static MethodHandle Vector4DotProduct$handle() { + return Vector4DotProduct.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float copysignf(float, float) + * float Vector4DotProduct(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment copysignf$address() { - return copysignf.ADDR; + public static MemorySegment Vector4DotProduct$address() { + return Vector4DotProduct.ADDR; } /** * {@snippet lang=c : - * extern float copysignf(float, float) + * float Vector4DotProduct(Vector4 v1, Vector4 v2) * } */ - public static float copysignf(float x0, float x1) { - var mh$ = copysignf.HANDLE; + public static float Vector4DotProduct(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4DotProduct.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("copysignf", x0, x1); + traceDowncall("Vector4DotProduct", v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class copysign { + private static class Vector4Distance { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("copysign"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Distance"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30790,57 +14684,58 @@ private static class copysign { /** * Function descriptor for: * {@snippet lang=c : - * extern double copysign(double, double) + * float Vector4Distance(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor copysign$descriptor() { - return copysign.DESC; + public static FunctionDescriptor Vector4Distance$descriptor() { + return Vector4Distance.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double copysign(double, double) + * float Vector4Distance(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle copysign$handle() { - return copysign.HANDLE; + public static MethodHandle Vector4Distance$handle() { + return Vector4Distance.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double copysign(double, double) + * float Vector4Distance(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment copysign$address() { - return copysign.ADDR; + public static MemorySegment Vector4Distance$address() { + return Vector4Distance.ADDR; } /** * {@snippet lang=c : - * extern double copysign(double, double) + * float Vector4Distance(Vector4 v1, Vector4 v2) * } */ - public static double copysign(double x0, double x1) { - var mh$ = copysign.HANDLE; + public static float Vector4Distance(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Distance.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("copysign", x0, x1); + traceDowncall("Vector4Distance", v1, v2); } - return (double)mh$.invokeExact(x0, x1); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class nanf { + private static class Vector4DistanceSqr { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_POINTER + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("nanf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4DistanceSqr"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30848,57 +14743,58 @@ private static class nanf { /** * Function descriptor for: * {@snippet lang=c : - * extern float nanf(const char *) + * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor nanf$descriptor() { - return nanf.DESC; + public static FunctionDescriptor Vector4DistanceSqr$descriptor() { + return Vector4DistanceSqr.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float nanf(const char *) + * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle nanf$handle() { - return nanf.HANDLE; + public static MethodHandle Vector4DistanceSqr$handle() { + return Vector4DistanceSqr.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float nanf(const char *) + * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment nanf$address() { - return nanf.ADDR; + public static MemorySegment Vector4DistanceSqr$address() { + return Vector4DistanceSqr.ADDR; } /** * {@snippet lang=c : - * extern float nanf(const char *) + * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) * } */ - public static float nanf(MemorySegment x0) { - var mh$ = nanf.HANDLE; + public static float Vector4DistanceSqr(MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4DistanceSqr.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("nanf", x0); + traceDowncall("Vector4DistanceSqr", v1, v2); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class nan { + private static class Vector4Scale { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_POINTER + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("nan"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Scale"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30906,58 +14802,58 @@ private static class nan { /** * Function descriptor for: * {@snippet lang=c : - * extern double nan(const char *) + * Vector4 Vector4Scale(Vector4 v, float scale) * } */ - public static FunctionDescriptor nan$descriptor() { - return nan.DESC; + public static FunctionDescriptor Vector4Scale$descriptor() { + return Vector4Scale.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double nan(const char *) + * Vector4 Vector4Scale(Vector4 v, float scale) * } */ - public static MethodHandle nan$handle() { - return nan.HANDLE; + public static MethodHandle Vector4Scale$handle() { + return Vector4Scale.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double nan(const char *) + * Vector4 Vector4Scale(Vector4 v, float scale) * } */ - public static MemorySegment nan$address() { - return nan.ADDR; + public static MemorySegment Vector4Scale$address() { + return Vector4Scale.ADDR; } /** * {@snippet lang=c : - * extern double nan(const char *) + * Vector4 Vector4Scale(Vector4 v, float scale) * } */ - public static double nan(MemorySegment x0) { - var mh$ = nan.HANDLE; + public static MemorySegment Vector4Scale(SegmentAllocator allocator, MemorySegment v, float scale) { + var mh$ = Vector4Scale.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("nan", x0); + traceDowncall("Vector4Scale", allocator, v, scale); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, v, scale); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class nextafterf { + private static class Vector4Multiply { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("nextafterf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Multiply"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -30965,58 +14861,57 @@ private static class nextafterf { /** * Function descriptor for: * {@snippet lang=c : - * extern float nextafterf(float, float) + * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor nextafterf$descriptor() { - return nextafterf.DESC; + public static FunctionDescriptor Vector4Multiply$descriptor() { + return Vector4Multiply.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float nextafterf(float, float) + * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle nextafterf$handle() { - return nextafterf.HANDLE; + public static MethodHandle Vector4Multiply$handle() { + return Vector4Multiply.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float nextafterf(float, float) + * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment nextafterf$address() { - return nextafterf.ADDR; + public static MemorySegment Vector4Multiply$address() { + return Vector4Multiply.ADDR; } /** * {@snippet lang=c : - * extern float nextafterf(float, float) + * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) * } */ - public static float nextafterf(float x0, float x1) { - var mh$ = nextafterf.HANDLE; + public static MemorySegment Vector4Multiply(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Multiply.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("nextafterf", x0, x1); + traceDowncall("Vector4Multiply", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class nextafter { + private static class Vector4Negate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("nextafter"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Negate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31024,58 +14919,58 @@ private static class nextafter { /** * Function descriptor for: * {@snippet lang=c : - * extern double nextafter(double, double) + * Vector4 Vector4Negate(Vector4 v) * } */ - public static FunctionDescriptor nextafter$descriptor() { - return nextafter.DESC; + public static FunctionDescriptor Vector4Negate$descriptor() { + return Vector4Negate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double nextafter(double, double) + * Vector4 Vector4Negate(Vector4 v) * } */ - public static MethodHandle nextafter$handle() { - return nextafter.HANDLE; + public static MethodHandle Vector4Negate$handle() { + return Vector4Negate.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double nextafter(double, double) + * Vector4 Vector4Negate(Vector4 v) * } */ - public static MemorySegment nextafter$address() { - return nextafter.ADDR; + public static MemorySegment Vector4Negate$address() { + return Vector4Negate.ADDR; } /** * {@snippet lang=c : - * extern double nextafter(double, double) + * Vector4 Vector4Negate(Vector4 v) * } */ - public static double nextafter(double x0, double x1) { - var mh$ = nextafter.HANDLE; + public static MemorySegment Vector4Negate(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector4Negate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("nextafter", x0, x1); + traceDowncall("Vector4Negate", allocator, v); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fdimf { + private static class Vector4Divide { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fdimf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Divide"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31083,58 +14978,57 @@ private static class fdimf { /** * Function descriptor for: * {@snippet lang=c : - * extern float fdimf(float, float) + * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor fdimf$descriptor() { - return fdimf.DESC; + public static FunctionDescriptor Vector4Divide$descriptor() { + return Vector4Divide.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float fdimf(float, float) + * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle fdimf$handle() { - return fdimf.HANDLE; + public static MethodHandle Vector4Divide$handle() { + return Vector4Divide.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float fdimf(float, float) + * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment fdimf$address() { - return fdimf.ADDR; + public static MemorySegment Vector4Divide$address() { + return Vector4Divide.ADDR; } /** * {@snippet lang=c : - * extern float fdimf(float, float) + * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) * } */ - public static float fdimf(float x0, float x1) { - var mh$ = fdimf.HANDLE; + public static MemorySegment Vector4Divide(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Divide.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fdimf", x0, x1); + traceDowncall("Vector4Divide", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fdim { + private static class Vector4Normalize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fdim"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Normalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31142,58 +15036,58 @@ private static class fdim { /** * Function descriptor for: * {@snippet lang=c : - * extern double fdim(double, double) + * Vector4 Vector4Normalize(Vector4 v) * } */ - public static FunctionDescriptor fdim$descriptor() { - return fdim.DESC; + public static FunctionDescriptor Vector4Normalize$descriptor() { + return Vector4Normalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double fdim(double, double) + * Vector4 Vector4Normalize(Vector4 v) * } */ - public static MethodHandle fdim$handle() { - return fdim.HANDLE; + public static MethodHandle Vector4Normalize$handle() { + return Vector4Normalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double fdim(double, double) + * Vector4 Vector4Normalize(Vector4 v) * } */ - public static MemorySegment fdim$address() { - return fdim.ADDR; + public static MemorySegment Vector4Normalize$address() { + return Vector4Normalize.ADDR; } /** * {@snippet lang=c : - * extern double fdim(double, double) + * Vector4 Vector4Normalize(Vector4 v) * } */ - public static double fdim(double x0, double x1) { - var mh$ = fdim.HANDLE; + public static MemorySegment Vector4Normalize(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector4Normalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fdim", x0, x1); + traceDowncall("Vector4Normalize", allocator, v); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fmaxf { + private static class Vector4Min { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fmaxf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Min"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31201,58 +15095,58 @@ private static class fmaxf { /** * Function descriptor for: * {@snippet lang=c : - * extern float fmaxf(float, float) + * Vector4 Vector4Min(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor fmaxf$descriptor() { - return fmaxf.DESC; + public static FunctionDescriptor Vector4Min$descriptor() { + return Vector4Min.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float fmaxf(float, float) + * Vector4 Vector4Min(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle fmaxf$handle() { - return fmaxf.HANDLE; + public static MethodHandle Vector4Min$handle() { + return Vector4Min.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float fmaxf(float, float) + * Vector4 Vector4Min(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment fmaxf$address() { - return fmaxf.ADDR; + public static MemorySegment Vector4Min$address() { + return Vector4Min.ADDR; } /** * {@snippet lang=c : - * extern float fmaxf(float, float) + * Vector4 Vector4Min(Vector4 v1, Vector4 v2) * } */ - public static float fmaxf(float x0, float x1) { - var mh$ = fmaxf.HANDLE; + public static MemorySegment Vector4Min(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Min.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fmaxf", x0, x1); + traceDowncall("Vector4Min", allocator, v1, v2); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fmax { + private static class Vector4Max { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fmax"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Max"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31260,58 +15154,59 @@ private static class fmax { /** * Function descriptor for: * {@snippet lang=c : - * extern double fmax(double, double) + * Vector4 Vector4Max(Vector4 v1, Vector4 v2) * } */ - public static FunctionDescriptor fmax$descriptor() { - return fmax.DESC; + public static FunctionDescriptor Vector4Max$descriptor() { + return Vector4Max.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double fmax(double, double) + * Vector4 Vector4Max(Vector4 v1, Vector4 v2) * } */ - public static MethodHandle fmax$handle() { - return fmax.HANDLE; + public static MethodHandle Vector4Max$handle() { + return Vector4Max.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double fmax(double, double) + * Vector4 Vector4Max(Vector4 v1, Vector4 v2) * } */ - public static MemorySegment fmax$address() { - return fmax.ADDR; + public static MemorySegment Vector4Max$address() { + return Vector4Max.ADDR; } /** * {@snippet lang=c : - * extern double fmax(double, double) + * Vector4 Vector4Max(Vector4 v1, Vector4 v2) * } */ - public static double fmax(double x0, double x1) { - var mh$ = fmax.HANDLE; + public static MemorySegment Vector4Max(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { + var mh$ = Vector4Max.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fmax", x0, x1); + traceDowncall("Vector4Max", allocator, v1, v2); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fminf { + private static class Vector4Lerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("fminf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Lerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31319,58 +15214,59 @@ private static class fminf { /** * Function descriptor for: * {@snippet lang=c : - * extern float fminf(float, float) + * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) * } */ - public static FunctionDescriptor fminf$descriptor() { - return fminf.DESC; + public static FunctionDescriptor Vector4Lerp$descriptor() { + return Vector4Lerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float fminf(float, float) + * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) * } */ - public static MethodHandle fminf$handle() { - return fminf.HANDLE; + public static MethodHandle Vector4Lerp$handle() { + return Vector4Lerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float fminf(float, float) + * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) * } */ - public static MemorySegment fminf$address() { - return fminf.ADDR; + public static MemorySegment Vector4Lerp$address() { + return Vector4Lerp.ADDR; } /** * {@snippet lang=c : - * extern float fminf(float, float) + * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) * } */ - public static float fminf(float x0, float x1) { - var mh$ = fminf.HANDLE; + public static MemorySegment Vector4Lerp(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2, float amount) { + var mh$ = Vector4Lerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fminf", x0, x1); + traceDowncall("Vector4Lerp", allocator, v1, v2, amount); } - return (float)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v1, v2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fmin { + private static class Vector4MoveTowards { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("fmin"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4MoveTowards"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31378,59 +15274,57 @@ private static class fmin { /** * Function descriptor for: * {@snippet lang=c : - * extern double fmin(double, double) + * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) * } */ - public static FunctionDescriptor fmin$descriptor() { - return fmin.DESC; + public static FunctionDescriptor Vector4MoveTowards$descriptor() { + return Vector4MoveTowards.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double fmin(double, double) + * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) * } */ - public static MethodHandle fmin$handle() { - return fmin.HANDLE; + public static MethodHandle Vector4MoveTowards$handle() { + return Vector4MoveTowards.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double fmin(double, double) + * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) * } */ - public static MemorySegment fmin$address() { - return fmin.ADDR; + public static MemorySegment Vector4MoveTowards$address() { + return Vector4MoveTowards.ADDR; } /** * {@snippet lang=c : - * extern double fmin(double, double) + * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) * } */ - public static double fmin(double x0, double x1) { - var mh$ = fmin.HANDLE; + public static MemorySegment Vector4MoveTowards(SegmentAllocator allocator, MemorySegment v, MemorySegment target, float maxDistance) { + var mh$ = Vector4MoveTowards.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fmin", x0, x1); + traceDowncall("Vector4MoveTowards", allocator, v, target, maxDistance); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, v, target, maxDistance); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fmaf { + private static class Vector4Invert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fmaf"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Invert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31438,59 +15332,58 @@ private static class fmaf { /** * Function descriptor for: * {@snippet lang=c : - * extern float fmaf(float, float, float) + * Vector4 Vector4Invert(Vector4 v) * } */ - public static FunctionDescriptor fmaf$descriptor() { - return fmaf.DESC; + public static FunctionDescriptor Vector4Invert$descriptor() { + return Vector4Invert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float fmaf(float, float, float) + * Vector4 Vector4Invert(Vector4 v) * } */ - public static MethodHandle fmaf$handle() { - return fmaf.HANDLE; + public static MethodHandle Vector4Invert$handle() { + return Vector4Invert.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float fmaf(float, float, float) + * Vector4 Vector4Invert(Vector4 v) * } */ - public static MemorySegment fmaf$address() { - return fmaf.ADDR; + public static MemorySegment Vector4Invert$address() { + return Vector4Invert.ADDR; } /** * {@snippet lang=c : - * extern float fmaf(float, float, float) + * Vector4 Vector4Invert(Vector4 v) * } */ - public static float fmaf(float x0, float x1, float x2) { - var mh$ = fmaf.HANDLE; + public static MemorySegment Vector4Invert(SegmentAllocator allocator, MemorySegment v) { + var mh$ = Vector4Invert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fmaf", x0, x1, x2); + traceDowncall("Vector4Invert", allocator, v); } - return (float)mh$.invokeExact(x0, x1, x2); + return (MemorySegment)mh$.invokeExact(allocator, v); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class fma { + private static class Vector4Equals { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_INT, + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("fma"); + public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Equals"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31498,57 +15391,57 @@ private static class fma { /** * Function descriptor for: * {@snippet lang=c : - * extern double fma(double, double, double) + * int Vector4Equals(Vector4 p, Vector4 q) * } */ - public static FunctionDescriptor fma$descriptor() { - return fma.DESC; + public static FunctionDescriptor Vector4Equals$descriptor() { + return Vector4Equals.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double fma(double, double, double) + * int Vector4Equals(Vector4 p, Vector4 q) * } */ - public static MethodHandle fma$handle() { - return fma.HANDLE; + public static MethodHandle Vector4Equals$handle() { + return Vector4Equals.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double fma(double, double, double) + * int Vector4Equals(Vector4 p, Vector4 q) * } */ - public static MemorySegment fma$address() { - return fma.ADDR; + public static MemorySegment Vector4Equals$address() { + return Vector4Equals.ADDR; } /** * {@snippet lang=c : - * extern double fma(double, double, double) + * int Vector4Equals(Vector4 p, Vector4 q) * } */ - public static double fma(double x0, double x1, double x2) { - var mh$ = fma.HANDLE; + public static int Vector4Equals(MemorySegment p, MemorySegment q) { + var mh$ = Vector4Equals.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("fma", x0, x1, x2); + traceDowncall("Vector4Equals", p, q); } - return (double)mh$.invokeExact(x0, x1, x2); + return (int)mh$.invokeExact(p, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __exp10f { + private static class MatrixDeterminant { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__exp10f"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixDeterminant"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31556,57 +15449,57 @@ private static class __exp10f { /** * Function descriptor for: * {@snippet lang=c : - * extern float __exp10f(float) + * float MatrixDeterminant(Matrix mat) * } */ - public static FunctionDescriptor __exp10f$descriptor() { - return __exp10f.DESC; + public static FunctionDescriptor MatrixDeterminant$descriptor() { + return MatrixDeterminant.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float __exp10f(float) + * float MatrixDeterminant(Matrix mat) * } */ - public static MethodHandle __exp10f$handle() { - return __exp10f.HANDLE; + public static MethodHandle MatrixDeterminant$handle() { + return MatrixDeterminant.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float __exp10f(float) + * float MatrixDeterminant(Matrix mat) * } */ - public static MemorySegment __exp10f$address() { - return __exp10f.ADDR; + public static MemorySegment MatrixDeterminant$address() { + return MatrixDeterminant.ADDR; } /** * {@snippet lang=c : - * extern float __exp10f(float) + * float MatrixDeterminant(Matrix mat) * } */ - public static float __exp10f(float x0) { - var mh$ = __exp10f.HANDLE; + public static float MatrixDeterminant(MemorySegment mat) { + var mh$ = MatrixDeterminant.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__exp10f", x0); + traceDowncall("MatrixDeterminant", mat); } - return (float)mh$.invokeExact(x0); + return (float)mh$.invokeExact(mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __exp10 { + private static class MatrixTrace { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + raylib.C_FLOAT, + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__exp10"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixTrace"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31614,57 +15507,57 @@ private static class __exp10 { /** * Function descriptor for: * {@snippet lang=c : - * extern double __exp10(double) + * float MatrixTrace(Matrix mat) * } */ - public static FunctionDescriptor __exp10$descriptor() { - return __exp10.DESC; + public static FunctionDescriptor MatrixTrace$descriptor() { + return MatrixTrace.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double __exp10(double) + * float MatrixTrace(Matrix mat) * } */ - public static MethodHandle __exp10$handle() { - return __exp10.HANDLE; + public static MethodHandle MatrixTrace$handle() { + return MatrixTrace.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double __exp10(double) + * float MatrixTrace(Matrix mat) * } */ - public static MemorySegment __exp10$address() { - return __exp10.ADDR; + public static MemorySegment MatrixTrace$address() { + return MatrixTrace.ADDR; } /** * {@snippet lang=c : - * extern double __exp10(double) + * float MatrixTrace(Matrix mat) * } */ - public static double __exp10(double x0) { - var mh$ = __exp10.HANDLE; + public static float MatrixTrace(MemorySegment mat) { + var mh$ = MatrixTrace.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__exp10", x0); + traceDowncall("MatrixTrace", mat); } - return (double)mh$.invokeExact(x0); + return (float)mh$.invokeExact(mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __cospif { + private static class MatrixTranspose { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__cospif"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixTranspose"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31672,57 +15565,57 @@ private static class __cospif { /** * Function descriptor for: * {@snippet lang=c : - * extern float __cospif(float) + * Matrix MatrixTranspose(Matrix mat) * } */ - public static FunctionDescriptor __cospif$descriptor() { - return __cospif.DESC; + public static FunctionDescriptor MatrixTranspose$descriptor() { + return MatrixTranspose.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float __cospif(float) + * Matrix MatrixTranspose(Matrix mat) * } */ - public static MethodHandle __cospif$handle() { - return __cospif.HANDLE; + public static MethodHandle MatrixTranspose$handle() { + return MatrixTranspose.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float __cospif(float) + * Matrix MatrixTranspose(Matrix mat) * } */ - public static MemorySegment __cospif$address() { - return __cospif.ADDR; + public static MemorySegment MatrixTranspose$address() { + return MatrixTranspose.ADDR; } /** * {@snippet lang=c : - * extern float __cospif(float) + * Matrix MatrixTranspose(Matrix mat) * } */ - public static float __cospif(float x0) { - var mh$ = __cospif.HANDLE; + public static MemorySegment MatrixTranspose(SegmentAllocator allocator, MemorySegment mat) { + var mh$ = MatrixTranspose.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__cospif", x0); + traceDowncall("MatrixTranspose", allocator, mat); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __cospi { + private static class MatrixInvert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__cospi"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixInvert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31730,57 +15623,55 @@ private static class __cospi { /** * Function descriptor for: * {@snippet lang=c : - * extern double __cospi(double) + * Matrix MatrixInvert(Matrix mat) * } */ - public static FunctionDescriptor __cospi$descriptor() { - return __cospi.DESC; + public static FunctionDescriptor MatrixInvert$descriptor() { + return MatrixInvert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double __cospi(double) + * Matrix MatrixInvert(Matrix mat) * } */ - public static MethodHandle __cospi$handle() { - return __cospi.HANDLE; + public static MethodHandle MatrixInvert$handle() { + return MatrixInvert.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double __cospi(double) + * Matrix MatrixInvert(Matrix mat) * } */ - public static MemorySegment __cospi$address() { - return __cospi.ADDR; + public static MemorySegment MatrixInvert$address() { + return MatrixInvert.ADDR; } /** * {@snippet lang=c : - * extern double __cospi(double) + * Matrix MatrixInvert(Matrix mat) * } */ - public static double __cospi(double x0) { - var mh$ = __cospi.HANDLE; + public static MemorySegment MatrixInvert(SegmentAllocator allocator, MemorySegment mat) { + var mh$ = MatrixInvert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__cospi", x0); + traceDowncall("MatrixInvert", allocator, mat); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __sinpif { + private static class MatrixIdentity { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT - ); + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__sinpif"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixIdentity"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31788,57 +15679,58 @@ private static class __sinpif { /** * Function descriptor for: * {@snippet lang=c : - * extern float __sinpif(float) + * Matrix MatrixIdentity() * } */ - public static FunctionDescriptor __sinpif$descriptor() { - return __sinpif.DESC; + public static FunctionDescriptor MatrixIdentity$descriptor() { + return MatrixIdentity.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float __sinpif(float) + * Matrix MatrixIdentity() * } */ - public static MethodHandle __sinpif$handle() { - return __sinpif.HANDLE; + public static MethodHandle MatrixIdentity$handle() { + return MatrixIdentity.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float __sinpif(float) + * Matrix MatrixIdentity() * } */ - public static MemorySegment __sinpif$address() { - return __sinpif.ADDR; + public static MemorySegment MatrixIdentity$address() { + return MatrixIdentity.ADDR; } /** * {@snippet lang=c : - * extern float __sinpif(float) + * Matrix MatrixIdentity() * } */ - public static float __sinpif(float x0) { - var mh$ = __sinpif.HANDLE; + public static MemorySegment MatrixIdentity(SegmentAllocator allocator) { + var mh$ = MatrixIdentity.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__sinpif", x0); + traceDowncall("MatrixIdentity", allocator); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __sinpi { + private static class MatrixAdd { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__sinpi"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixAdd"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31846,57 +15738,58 @@ private static class __sinpi { /** * Function descriptor for: * {@snippet lang=c : - * extern double __sinpi(double) + * Matrix MatrixAdd(Matrix left, Matrix right) * } */ - public static FunctionDescriptor __sinpi$descriptor() { - return __sinpi.DESC; + public static FunctionDescriptor MatrixAdd$descriptor() { + return MatrixAdd.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double __sinpi(double) + * Matrix MatrixAdd(Matrix left, Matrix right) * } */ - public static MethodHandle __sinpi$handle() { - return __sinpi.HANDLE; + public static MethodHandle MatrixAdd$handle() { + return MatrixAdd.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double __sinpi(double) + * Matrix MatrixAdd(Matrix left, Matrix right) * } */ - public static MemorySegment __sinpi$address() { - return __sinpi.ADDR; + public static MemorySegment MatrixAdd$address() { + return MatrixAdd.ADDR; } /** * {@snippet lang=c : - * extern double __sinpi(double) + * Matrix MatrixAdd(Matrix left, Matrix right) * } */ - public static double __sinpi(double x0) { - var mh$ = __sinpi.HANDLE; + public static MemorySegment MatrixAdd(SegmentAllocator allocator, MemorySegment left, MemorySegment right) { + var mh$ = MatrixAdd.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__sinpi", x0); + traceDowncall("MatrixAdd", allocator, left, right); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, left, right); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __tanpif { + private static class MatrixSubtract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__tanpif"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixSubtract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31904,57 +15797,58 @@ private static class __tanpif { /** * Function descriptor for: * {@snippet lang=c : - * extern float __tanpif(float) + * Matrix MatrixSubtract(Matrix left, Matrix right) * } */ - public static FunctionDescriptor __tanpif$descriptor() { - return __tanpif.DESC; + public static FunctionDescriptor MatrixSubtract$descriptor() { + return MatrixSubtract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern float __tanpif(float) + * Matrix MatrixSubtract(Matrix left, Matrix right) * } */ - public static MethodHandle __tanpif$handle() { - return __tanpif.HANDLE; + public static MethodHandle MatrixSubtract$handle() { + return MatrixSubtract.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern float __tanpif(float) + * Matrix MatrixSubtract(Matrix left, Matrix right) * } */ - public static MemorySegment __tanpif$address() { - return __tanpif.ADDR; + public static MemorySegment MatrixSubtract$address() { + return MatrixSubtract.ADDR; } /** * {@snippet lang=c : - * extern float __tanpif(float) + * Matrix MatrixSubtract(Matrix left, Matrix right) * } */ - public static float __tanpif(float x0) { - var mh$ = __tanpif.HANDLE; + public static MemorySegment MatrixSubtract(SegmentAllocator allocator, MemorySegment left, MemorySegment right) { + var mh$ = MatrixSubtract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__tanpif", x0); + traceDowncall("MatrixSubtract", allocator, left, right); } - return (float)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, left, right); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class __tanpi { + private static class MatrixMultiply { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + Matrix.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("__tanpi"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixMultiply"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -31962,57 +15856,59 @@ private static class __tanpi { /** * Function descriptor for: * {@snippet lang=c : - * extern double __tanpi(double) + * Matrix MatrixMultiply(Matrix left, Matrix right) * } */ - public static FunctionDescriptor __tanpi$descriptor() { - return __tanpi.DESC; + public static FunctionDescriptor MatrixMultiply$descriptor() { + return MatrixMultiply.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double __tanpi(double) + * Matrix MatrixMultiply(Matrix left, Matrix right) * } */ - public static MethodHandle __tanpi$handle() { - return __tanpi.HANDLE; + public static MethodHandle MatrixMultiply$handle() { + return MatrixMultiply.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double __tanpi(double) + * Matrix MatrixMultiply(Matrix left, Matrix right) * } */ - public static MemorySegment __tanpi$address() { - return __tanpi.ADDR; + public static MemorySegment MatrixMultiply$address() { + return MatrixMultiply.ADDR; } /** * {@snippet lang=c : - * extern double __tanpi(double) + * Matrix MatrixMultiply(Matrix left, Matrix right) * } */ - public static double __tanpi(double x0) { - var mh$ = __tanpi.HANDLE; + public static MemorySegment MatrixMultiply(SegmentAllocator allocator, MemorySegment left, MemorySegment right) { + var mh$ = MatrixMultiply.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("__tanpi", x0); + traceDowncall("MatrixMultiply", allocator, left, right); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, left, right); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class j0 { + private static class MatrixTranslate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("j0"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixTranslate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32020,57 +15916,58 @@ private static class j0 { /** * Function descriptor for: * {@snippet lang=c : - * extern double j0(double) + * Matrix MatrixTranslate(float x, float y, float z) * } */ - public static FunctionDescriptor j0$descriptor() { - return j0.DESC; + public static FunctionDescriptor MatrixTranslate$descriptor() { + return MatrixTranslate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double j0(double) + * Matrix MatrixTranslate(float x, float y, float z) * } */ - public static MethodHandle j0$handle() { - return j0.HANDLE; + public static MethodHandle MatrixTranslate$handle() { + return MatrixTranslate.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double j0(double) + * Matrix MatrixTranslate(float x, float y, float z) * } */ - public static MemorySegment j0$address() { - return j0.ADDR; + public static MemorySegment MatrixTranslate$address() { + return MatrixTranslate.ADDR; } /** * {@snippet lang=c : - * extern double j0(double) + * Matrix MatrixTranslate(float x, float y, float z) * } */ - public static double j0(double x0) { - var mh$ = j0.HANDLE; + public static MemorySegment MatrixTranslate(SegmentAllocator allocator, float x, float y, float z) { + var mh$ = MatrixTranslate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("j0", x0); + traceDowncall("MatrixTranslate", allocator, x, y, z); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, x, y, z); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class j1 { + private static class MatrixRotate { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("j1"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32078,58 +15975,57 @@ private static class j1 { /** * Function descriptor for: * {@snippet lang=c : - * extern double j1(double) + * Matrix MatrixRotate(Vector3 axis, float angle) * } */ - public static FunctionDescriptor j1$descriptor() { - return j1.DESC; + public static FunctionDescriptor MatrixRotate$descriptor() { + return MatrixRotate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double j1(double) + * Matrix MatrixRotate(Vector3 axis, float angle) * } */ - public static MethodHandle j1$handle() { - return j1.HANDLE; + public static MethodHandle MatrixRotate$handle() { + return MatrixRotate.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double j1(double) + * Matrix MatrixRotate(Vector3 axis, float angle) * } */ - public static MemorySegment j1$address() { - return j1.ADDR; + public static MemorySegment MatrixRotate$address() { + return MatrixRotate.ADDR; } /** * {@snippet lang=c : - * extern double j1(double) + * Matrix MatrixRotate(Vector3 axis, float angle) * } */ - public static double j1(double x0) { - var mh$ = j1.HANDLE; + public static MemorySegment MatrixRotate(SegmentAllocator allocator, MemorySegment axis, float angle) { + var mh$ = MatrixRotate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("j1", x0); + traceDowncall("MatrixRotate", allocator, axis, angle); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, axis, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class jn { + private static class MatrixRotateX { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_INT, - raylib.C_DOUBLE + Matrix.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("jn"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateX"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32137,57 +16033,57 @@ private static class jn { /** * Function descriptor for: * {@snippet lang=c : - * extern double jn(int, double) + * Matrix MatrixRotateX(float angle) * } */ - public static FunctionDescriptor jn$descriptor() { - return jn.DESC; + public static FunctionDescriptor MatrixRotateX$descriptor() { + return MatrixRotateX.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double jn(int, double) + * Matrix MatrixRotateX(float angle) * } */ - public static MethodHandle jn$handle() { - return jn.HANDLE; + public static MethodHandle MatrixRotateX$handle() { + return MatrixRotateX.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double jn(int, double) + * Matrix MatrixRotateX(float angle) * } */ - public static MemorySegment jn$address() { - return jn.ADDR; + public static MemorySegment MatrixRotateX$address() { + return MatrixRotateX.ADDR; } /** * {@snippet lang=c : - * extern double jn(int, double) + * Matrix MatrixRotateX(float angle) * } */ - public static double jn(int x0, double x1) { - var mh$ = jn.HANDLE; + public static MemorySegment MatrixRotateX(SegmentAllocator allocator, float angle) { + var mh$ = MatrixRotateX.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("jn", x0, x1); + traceDowncall("MatrixRotateX", allocator, angle); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class y0 { + private static class MatrixRotateY { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("y0"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateY"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32195,57 +16091,57 @@ private static class y0 { /** * Function descriptor for: * {@snippet lang=c : - * extern double y0(double) + * Matrix MatrixRotateY(float angle) * } */ - public static FunctionDescriptor y0$descriptor() { - return y0.DESC; + public static FunctionDescriptor MatrixRotateY$descriptor() { + return MatrixRotateY.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double y0(double) + * Matrix MatrixRotateY(float angle) * } */ - public static MethodHandle y0$handle() { - return y0.HANDLE; + public static MethodHandle MatrixRotateY$handle() { + return MatrixRotateY.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double y0(double) + * Matrix MatrixRotateY(float angle) * } */ - public static MemorySegment y0$address() { - return y0.ADDR; + public static MemorySegment MatrixRotateY$address() { + return MatrixRotateY.ADDR; } /** * {@snippet lang=c : - * extern double y0(double) + * Matrix MatrixRotateY(float angle) * } */ - public static double y0(double x0) { - var mh$ = y0.HANDLE; + public static MemorySegment MatrixRotateY(SegmentAllocator allocator, float angle) { + var mh$ = MatrixRotateY.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("y0", x0); + traceDowncall("MatrixRotateY", allocator, angle); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class y1 { + private static class MatrixRotateZ { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("y1"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateZ"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32253,58 +16149,57 @@ private static class y1 { /** * Function descriptor for: * {@snippet lang=c : - * extern double y1(double) + * Matrix MatrixRotateZ(float angle) * } */ - public static FunctionDescriptor y1$descriptor() { - return y1.DESC; + public static FunctionDescriptor MatrixRotateZ$descriptor() { + return MatrixRotateZ.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double y1(double) + * Matrix MatrixRotateZ(float angle) * } */ - public static MethodHandle y1$handle() { - return y1.HANDLE; + public static MethodHandle MatrixRotateZ$handle() { + return MatrixRotateZ.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double y1(double) + * Matrix MatrixRotateZ(float angle) * } */ - public static MemorySegment y1$address() { - return y1.ADDR; + public static MemorySegment MatrixRotateZ$address() { + return MatrixRotateZ.ADDR; } /** * {@snippet lang=c : - * extern double y1(double) + * Matrix MatrixRotateZ(float angle) * } */ - public static double y1(double x0) { - var mh$ = y1.HANDLE; + public static MemorySegment MatrixRotateZ(SegmentAllocator allocator, float angle) { + var mh$ = MatrixRotateZ.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("y1", x0); + traceDowncall("MatrixRotateZ", allocator, angle); } - return (double)mh$.invokeExact(x0); + return (MemorySegment)mh$.invokeExact(allocator, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class yn { + private static class MatrixRotateXYZ { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_INT, - raylib.C_DOUBLE + Matrix.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("yn"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateXYZ"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32312,58 +16207,57 @@ private static class yn { /** * Function descriptor for: * {@snippet lang=c : - * extern double yn(int, double) + * Matrix MatrixRotateXYZ(Vector3 angle) * } */ - public static FunctionDescriptor yn$descriptor() { - return yn.DESC; + public static FunctionDescriptor MatrixRotateXYZ$descriptor() { + return MatrixRotateXYZ.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double yn(int, double) + * Matrix MatrixRotateXYZ(Vector3 angle) * } */ - public static MethodHandle yn$handle() { - return yn.HANDLE; + public static MethodHandle MatrixRotateXYZ$handle() { + return MatrixRotateXYZ.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double yn(int, double) + * Matrix MatrixRotateXYZ(Vector3 angle) * } */ - public static MemorySegment yn$address() { - return yn.ADDR; + public static MemorySegment MatrixRotateXYZ$address() { + return MatrixRotateXYZ.ADDR; } /** * {@snippet lang=c : - * extern double yn(int, double) + * Matrix MatrixRotateXYZ(Vector3 angle) * } */ - public static double yn(int x0, double x1) { - var mh$ = yn.HANDLE; + public static MemorySegment MatrixRotateXYZ(SegmentAllocator allocator, MemorySegment angle) { + var mh$ = MatrixRotateXYZ.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("yn", x0, x1); + traceDowncall("MatrixRotateXYZ", allocator, angle); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class scalb { + private static class MatrixRotateZYX { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE + Matrix.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("scalb"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateZYX"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32371,104 +16265,122 @@ private static class scalb { /** * Function descriptor for: * {@snippet lang=c : - * extern double scalb(double, double) + * Matrix MatrixRotateZYX(Vector3 angle) * } */ - public static FunctionDescriptor scalb$descriptor() { - return scalb.DESC; + public static FunctionDescriptor MatrixRotateZYX$descriptor() { + return MatrixRotateZYX.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * extern double scalb(double, double) + * Matrix MatrixRotateZYX(Vector3 angle) * } */ - public static MethodHandle scalb$handle() { - return scalb.HANDLE; + public static MethodHandle MatrixRotateZYX$handle() { + return MatrixRotateZYX.HANDLE; } /** * Address for: * {@snippet lang=c : - * extern double scalb(double, double) + * Matrix MatrixRotateZYX(Vector3 angle) * } */ - public static MemorySegment scalb$address() { - return scalb.ADDR; + public static MemorySegment MatrixRotateZYX$address() { + return MatrixRotateZYX.ADDR; } /** * {@snippet lang=c : - * extern double scalb(double, double) + * Matrix MatrixRotateZYX(Vector3 angle) * } */ - public static double scalb(double x0, double x1) { - var mh$ = scalb.HANDLE; + public static MemorySegment MatrixRotateZYX(SegmentAllocator allocator, MemorySegment angle) { + var mh$ = MatrixRotateZYX.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("scalb", x0, x1); + traceDowncall("MatrixRotateZYX", allocator, angle); } - return (double)mh$.invokeExact(x0, x1); + return (MemorySegment)mh$.invokeExact(allocator, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class signgam$constants { - public static final OfInt LAYOUT = raylib.C_INT; - public static final MemorySegment SEGMENT = raylib.findOrThrow("signgam").reinterpret(LAYOUT.byteSize()); + private static class MatrixScale { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Matrix.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixScale"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } /** - * Layout for variable: + * Function descriptor for: * {@snippet lang=c : - * extern int signgam + * Matrix MatrixScale(float x, float y, float z) * } */ - public static OfInt signgam$layout() { - return signgam$constants.LAYOUT; + public static FunctionDescriptor MatrixScale$descriptor() { + return MatrixScale.DESC; } /** - * Segment for variable: + * Downcall method handle for: * {@snippet lang=c : - * extern int signgam + * Matrix MatrixScale(float x, float y, float z) * } */ - public static MemorySegment signgam$segment() { - return signgam$constants.SEGMENT; + public static MethodHandle MatrixScale$handle() { + return MatrixScale.HANDLE; } /** - * Getter for variable: + * Address for: * {@snippet lang=c : - * extern int signgam + * Matrix MatrixScale(float x, float y, float z) * } */ - public static int signgam() { - return signgam$constants.SEGMENT.get(signgam$constants.LAYOUT, 0L); + public static MemorySegment MatrixScale$address() { + return MatrixScale.ADDR; } /** - * Setter for variable: * {@snippet lang=c : - * extern int signgam + * Matrix MatrixScale(float x, float y, float z) * } */ - public static void signgam(int varValue) { - signgam$constants.SEGMENT.set(signgam$constants.LAYOUT, 0L, varValue); + public static MemorySegment MatrixScale(SegmentAllocator allocator, float x, float y, float z) { + var mh$ = MatrixScale.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("MatrixScale", allocator, x, y, z); + } + return (MemorySegment)mh$.invokeExact(allocator, x, y, z); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static class Clamp { + private static class MatrixFrustum { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE ); - public static final MemorySegment ADDR = raylib.findOrThrow("Clamp"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixFrustum"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32476,59 +16388,60 @@ private static class Clamp { /** * Function descriptor for: * {@snippet lang=c : - * float Clamp(float value, float min, float max) + * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) * } */ - public static FunctionDescriptor Clamp$descriptor() { - return Clamp.DESC; + public static FunctionDescriptor MatrixFrustum$descriptor() { + return MatrixFrustum.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Clamp(float value, float min, float max) + * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) * } */ - public static MethodHandle Clamp$handle() { - return Clamp.HANDLE; + public static MethodHandle MatrixFrustum$handle() { + return MatrixFrustum.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Clamp(float value, float min, float max) + * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) * } */ - public static MemorySegment Clamp$address() { - return Clamp.ADDR; + public static MemorySegment MatrixFrustum$address() { + return MatrixFrustum.ADDR; } /** * {@snippet lang=c : - * float Clamp(float value, float min, float max) + * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) * } */ - public static float Clamp(float value, float min, float max) { - var mh$ = Clamp.HANDLE; + public static MemorySegment MatrixFrustum(SegmentAllocator allocator, double left, double right, double bottom, double top, double near, double far) { + var mh$ = MatrixFrustum.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Clamp", value, min, max); + traceDowncall("MatrixFrustum", allocator, left, right, bottom, top, near, far); } - return (float)mh$.invokeExact(value, min, max); + return (MemorySegment)mh$.invokeExact(allocator, left, right, bottom, top, near, far); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Lerp { + private static class MatrixPerspective { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE ); - public static final MemorySegment ADDR = raylib.findOrThrow("Lerp"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixPerspective"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32536,59 +16449,62 @@ private static class Lerp { /** * Function descriptor for: * {@snippet lang=c : - * float Lerp(float start, float end, float amount) + * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) * } */ - public static FunctionDescriptor Lerp$descriptor() { - return Lerp.DESC; + public static FunctionDescriptor MatrixPerspective$descriptor() { + return MatrixPerspective.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Lerp(float start, float end, float amount) + * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) * } */ - public static MethodHandle Lerp$handle() { - return Lerp.HANDLE; + public static MethodHandle MatrixPerspective$handle() { + return MatrixPerspective.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Lerp(float start, float end, float amount) + * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) * } */ - public static MemorySegment Lerp$address() { - return Lerp.ADDR; + public static MemorySegment MatrixPerspective$address() { + return MatrixPerspective.ADDR; } /** * {@snippet lang=c : - * float Lerp(float start, float end, float amount) + * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) * } */ - public static float Lerp(float start, float end, float amount) { - var mh$ = Lerp.HANDLE; + public static MemorySegment MatrixPerspective(SegmentAllocator allocator, double fovY, double aspect, double nearPlane, double farPlane) { + var mh$ = MatrixPerspective.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Lerp", start, end, amount); + traceDowncall("MatrixPerspective", allocator, fovY, aspect, nearPlane, farPlane); } - return (float)mh$.invokeExact(start, end, amount); + return (MemorySegment)mh$.invokeExact(allocator, fovY, aspect, nearPlane, farPlane); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Normalize { + private static class MatrixOrtho { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE, + raylib.C_DOUBLE ); - public static final MemorySegment ADDR = raylib.findOrThrow("Normalize"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixOrtho"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32596,61 +16512,59 @@ private static class Normalize { /** * Function descriptor for: * {@snippet lang=c : - * float Normalize(float value, float start, float end) + * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) * } - */ - public static FunctionDescriptor Normalize$descriptor() { - return Normalize.DESC; + */ + public static FunctionDescriptor MatrixOrtho$descriptor() { + return MatrixOrtho.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Normalize(float value, float start, float end) + * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) * } */ - public static MethodHandle Normalize$handle() { - return Normalize.HANDLE; + public static MethodHandle MatrixOrtho$handle() { + return MatrixOrtho.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Normalize(float value, float start, float end) + * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) * } */ - public static MemorySegment Normalize$address() { - return Normalize.ADDR; + public static MemorySegment MatrixOrtho$address() { + return MatrixOrtho.ADDR; } /** * {@snippet lang=c : - * float Normalize(float value, float start, float end) + * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) * } */ - public static float Normalize(float value, float start, float end) { - var mh$ = Normalize.HANDLE; + public static MemorySegment MatrixOrtho(SegmentAllocator allocator, double left, double right, double bottom, double top, double nearPlane, double farPlane) { + var mh$ = MatrixOrtho.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Normalize", value, start, end); + traceDowncall("MatrixOrtho", allocator, left, right, bottom, top, nearPlane, farPlane); } - return (float)mh$.invokeExact(value, start, end); + return (MemorySegment)mh$.invokeExact(allocator, left, right, bottom, top, nearPlane, farPlane); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Remap { + private static class MatrixLookAt { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + Matrix.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Remap"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixLookAt"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32658,59 +16572,57 @@ private static class Remap { /** * Function descriptor for: * {@snippet lang=c : - * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) + * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) * } */ - public static FunctionDescriptor Remap$descriptor() { - return Remap.DESC; + public static FunctionDescriptor MatrixLookAt$descriptor() { + return MatrixLookAt.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) + * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) * } */ - public static MethodHandle Remap$handle() { - return Remap.HANDLE; + public static MethodHandle MatrixLookAt$handle() { + return MatrixLookAt.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) + * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) * } */ - public static MemorySegment Remap$address() { - return Remap.ADDR; + public static MemorySegment MatrixLookAt$address() { + return MatrixLookAt.ADDR; } /** * {@snippet lang=c : - * float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) + * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) * } */ - public static float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) { - var mh$ = Remap.HANDLE; + public static MemorySegment MatrixLookAt(SegmentAllocator allocator, MemorySegment eye, MemorySegment target, MemorySegment up) { + var mh$ = MatrixLookAt.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Remap", value, inputStart, inputEnd, outputStart, outputEnd); + traceDowncall("MatrixLookAt", allocator, eye, target, up); } - return (float)mh$.invokeExact(value, inputStart, inputEnd, outputStart, outputEnd); + return (MemorySegment)mh$.invokeExact(allocator, eye, target, up); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Wrap { + private static class MatrixToFloatV { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT + float16.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Wrap"); + public static final MemorySegment ADDR = raylib.findOrThrow("MatrixToFloatV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32718,58 +16630,58 @@ private static class Wrap { /** * Function descriptor for: * {@snippet lang=c : - * float Wrap(float value, float min, float max) + * float16 MatrixToFloatV(Matrix mat) * } */ - public static FunctionDescriptor Wrap$descriptor() { - return Wrap.DESC; + public static FunctionDescriptor MatrixToFloatV$descriptor() { + return MatrixToFloatV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Wrap(float value, float min, float max) + * float16 MatrixToFloatV(Matrix mat) * } */ - public static MethodHandle Wrap$handle() { - return Wrap.HANDLE; + public static MethodHandle MatrixToFloatV$handle() { + return MatrixToFloatV.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Wrap(float value, float min, float max) + * float16 MatrixToFloatV(Matrix mat) * } */ - public static MemorySegment Wrap$address() { - return Wrap.ADDR; + public static MemorySegment MatrixToFloatV$address() { + return MatrixToFloatV.ADDR; } /** * {@snippet lang=c : - * float Wrap(float value, float min, float max) + * float16 MatrixToFloatV(Matrix mat) * } */ - public static float Wrap(float value, float min, float max) { - var mh$ = Wrap.HANDLE; + public static MemorySegment MatrixToFloatV(SegmentAllocator allocator, MemorySegment mat) { + var mh$ = MatrixToFloatV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Wrap", value, min, max); + traceDowncall("MatrixToFloatV", allocator, mat); } - return (float)mh$.invokeExact(value, min, max); + return (MemorySegment)mh$.invokeExact(allocator, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class FloatEquals { + private static class QuaternionAdd { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("FloatEquals"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionAdd"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32777,55 +16689,58 @@ private static class FloatEquals { /** * Function descriptor for: * {@snippet lang=c : - * int FloatEquals(float x, float y) + * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) * } */ - public static FunctionDescriptor FloatEquals$descriptor() { - return FloatEquals.DESC; + public static FunctionDescriptor QuaternionAdd$descriptor() { + return QuaternionAdd.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int FloatEquals(float x, float y) + * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) * } */ - public static MethodHandle FloatEquals$handle() { - return FloatEquals.HANDLE; + public static MethodHandle QuaternionAdd$handle() { + return QuaternionAdd.HANDLE; } /** * Address for: * {@snippet lang=c : - * int FloatEquals(float x, float y) + * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) * } */ - public static MemorySegment FloatEquals$address() { - return FloatEquals.ADDR; + public static MemorySegment QuaternionAdd$address() { + return QuaternionAdd.ADDR; } /** * {@snippet lang=c : - * int FloatEquals(float x, float y) + * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) * } */ - public static int FloatEquals(float x, float y) { - var mh$ = FloatEquals.HANDLE; + public static MemorySegment QuaternionAdd(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { + var mh$ = QuaternionAdd.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("FloatEquals", x, y); + traceDowncall("QuaternionAdd", allocator, q1, q2); } - return (int)mh$.invokeExact(x, y); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Zero { + private static class QuaternionAddValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Zero"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionAddValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32833,55 +16748,58 @@ private static class Vector2Zero { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Zero() + * Quaternion QuaternionAddValue(Quaternion q, float add) * } */ - public static FunctionDescriptor Vector2Zero$descriptor() { - return Vector2Zero.DESC; + public static FunctionDescriptor QuaternionAddValue$descriptor() { + return QuaternionAddValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Zero() + * Quaternion QuaternionAddValue(Quaternion q, float add) * } */ - public static MethodHandle Vector2Zero$handle() { - return Vector2Zero.HANDLE; + public static MethodHandle QuaternionAddValue$handle() { + return QuaternionAddValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Zero() + * Quaternion QuaternionAddValue(Quaternion q, float add) * } */ - public static MemorySegment Vector2Zero$address() { - return Vector2Zero.ADDR; + public static MemorySegment QuaternionAddValue$address() { + return QuaternionAddValue.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Zero() + * Quaternion QuaternionAddValue(Quaternion q, float add) * } */ - public static MemorySegment Vector2Zero(SegmentAllocator allocator) { - var mh$ = Vector2Zero.HANDLE; + public static MemorySegment QuaternionAddValue(SegmentAllocator allocator, MemorySegment q, float add) { + var mh$ = QuaternionAddValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Zero", allocator); + traceDowncall("QuaternionAddValue", allocator, q, add); } - return (MemorySegment)mh$.invokeExact(allocator); + return (MemorySegment)mh$.invokeExact(allocator, q, add); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2One { + private static class QuaternionSubtract { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + Vector4.layout(), + Vector4.layout(), + Vector4.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2One"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionSubtract"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32889,58 +16807,58 @@ private static class Vector2One { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2One() + * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) * } */ - public static FunctionDescriptor Vector2One$descriptor() { - return Vector2One.DESC; + public static FunctionDescriptor QuaternionSubtract$descriptor() { + return QuaternionSubtract.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2One() + * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) * } */ - public static MethodHandle Vector2One$handle() { - return Vector2One.HANDLE; + public static MethodHandle QuaternionSubtract$handle() { + return QuaternionSubtract.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2One() + * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) * } */ - public static MemorySegment Vector2One$address() { - return Vector2One.ADDR; + public static MemorySegment QuaternionSubtract$address() { + return QuaternionSubtract.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2One() + * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) * } */ - public static MemorySegment Vector2One(SegmentAllocator allocator) { - var mh$ = Vector2One.HANDLE; + public static MemorySegment QuaternionSubtract(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { + var mh$ = QuaternionSubtract.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2One", allocator); + traceDowncall("QuaternionSubtract", allocator, q1, q2); } - return (MemorySegment)mh$.invokeExact(allocator); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Add { + private static class QuaternionSubtractValue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Add"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionSubtractValue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -32948,58 +16866,55 @@ private static class Vector2Add { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Add(Vector2 v1, Vector2 v2) + * Quaternion QuaternionSubtractValue(Quaternion q, float sub) * } */ - public static FunctionDescriptor Vector2Add$descriptor() { - return Vector2Add.DESC; + public static FunctionDescriptor QuaternionSubtractValue$descriptor() { + return QuaternionSubtractValue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Add(Vector2 v1, Vector2 v2) + * Quaternion QuaternionSubtractValue(Quaternion q, float sub) * } */ - public static MethodHandle Vector2Add$handle() { - return Vector2Add.HANDLE; + public static MethodHandle QuaternionSubtractValue$handle() { + return QuaternionSubtractValue.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Add(Vector2 v1, Vector2 v2) + * Quaternion QuaternionSubtractValue(Quaternion q, float sub) * } */ - public static MemorySegment Vector2Add$address() { - return Vector2Add.ADDR; + public static MemorySegment QuaternionSubtractValue$address() { + return QuaternionSubtractValue.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Add(Vector2 v1, Vector2 v2) + * Quaternion QuaternionSubtractValue(Quaternion q, float sub) * } */ - public static MemorySegment Vector2Add(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Add.HANDLE; + public static MemorySegment QuaternionSubtractValue(SegmentAllocator allocator, MemorySegment q, float sub) { + var mh$ = QuaternionSubtractValue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Add", allocator, v1, v2); + traceDowncall("QuaternionSubtractValue", allocator, q, sub); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q, sub); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2AddValue { + private static class QuaternionIdentity { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT - ); + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2AddValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionIdentity"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33007,58 +16922,57 @@ private static class Vector2AddValue { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2AddValue(Vector2 v, float add) + * Quaternion QuaternionIdentity() * } */ - public static FunctionDescriptor Vector2AddValue$descriptor() { - return Vector2AddValue.DESC; + public static FunctionDescriptor QuaternionIdentity$descriptor() { + return QuaternionIdentity.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2AddValue(Vector2 v, float add) + * Quaternion QuaternionIdentity() * } */ - public static MethodHandle Vector2AddValue$handle() { - return Vector2AddValue.HANDLE; + public static MethodHandle QuaternionIdentity$handle() { + return QuaternionIdentity.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2AddValue(Vector2 v, float add) + * Quaternion QuaternionIdentity() * } */ - public static MemorySegment Vector2AddValue$address() { - return Vector2AddValue.ADDR; + public static MemorySegment QuaternionIdentity$address() { + return QuaternionIdentity.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2AddValue(Vector2 v, float add) + * Quaternion QuaternionIdentity() * } */ - public static MemorySegment Vector2AddValue(SegmentAllocator allocator, MemorySegment v, float add) { - var mh$ = Vector2AddValue.HANDLE; + public static MemorySegment QuaternionIdentity(SegmentAllocator allocator) { + var mh$ = QuaternionIdentity.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2AddValue", allocator, v, add); + traceDowncall("QuaternionIdentity", allocator); } - return (MemorySegment)mh$.invokeExact(allocator, v, add); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Subtract { + private static class QuaternionLength { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + raylib.C_FLOAT, + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Subtract"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionLength"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33066,58 +16980,57 @@ private static class Vector2Subtract { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) + * float QuaternionLength(Quaternion q) * } */ - public static FunctionDescriptor Vector2Subtract$descriptor() { - return Vector2Subtract.DESC; + public static FunctionDescriptor QuaternionLength$descriptor() { + return QuaternionLength.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) + * float QuaternionLength(Quaternion q) * } */ - public static MethodHandle Vector2Subtract$handle() { - return Vector2Subtract.HANDLE; + public static MethodHandle QuaternionLength$handle() { + return QuaternionLength.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) + * float QuaternionLength(Quaternion q) * } */ - public static MemorySegment Vector2Subtract$address() { - return Vector2Subtract.ADDR; + public static MemorySegment QuaternionLength$address() { + return QuaternionLength.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Subtract(Vector2 v1, Vector2 v2) + * float QuaternionLength(Quaternion q) * } */ - public static MemorySegment Vector2Subtract(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Subtract.HANDLE; + public static float QuaternionLength(MemorySegment q) { + var mh$ = QuaternionLength.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Subtract", allocator, v1, v2); + traceDowncall("QuaternionLength", q); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (float)mh$.invokeExact(q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2SubtractValue { + private static class QuaternionNormalize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2SubtractValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionNormalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33125,57 +17038,57 @@ private static class Vector2SubtractValue { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2SubtractValue(Vector2 v, float sub) + * Quaternion QuaternionNormalize(Quaternion q) * } */ - public static FunctionDescriptor Vector2SubtractValue$descriptor() { - return Vector2SubtractValue.DESC; + public static FunctionDescriptor QuaternionNormalize$descriptor() { + return QuaternionNormalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2SubtractValue(Vector2 v, float sub) + * Quaternion QuaternionNormalize(Quaternion q) * } */ - public static MethodHandle Vector2SubtractValue$handle() { - return Vector2SubtractValue.HANDLE; + public static MethodHandle QuaternionNormalize$handle() { + return QuaternionNormalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2SubtractValue(Vector2 v, float sub) + * Quaternion QuaternionNormalize(Quaternion q) * } */ - public static MemorySegment Vector2SubtractValue$address() { - return Vector2SubtractValue.ADDR; + public static MemorySegment QuaternionNormalize$address() { + return QuaternionNormalize.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2SubtractValue(Vector2 v, float sub) + * Quaternion QuaternionNormalize(Quaternion q) * } */ - public static MemorySegment Vector2SubtractValue(SegmentAllocator allocator, MemorySegment v, float sub) { - var mh$ = Vector2SubtractValue.HANDLE; + public static MemorySegment QuaternionNormalize(SegmentAllocator allocator, MemorySegment q) { + var mh$ = QuaternionNormalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2SubtractValue", allocator, v, sub); + traceDowncall("QuaternionNormalize", allocator, q); } - return (MemorySegment)mh$.invokeExact(allocator, v, sub); + return (MemorySegment)mh$.invokeExact(allocator, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Length { + private static class QuaternionInvert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout() + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Length"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionInvert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33183,57 +17096,58 @@ private static class Vector2Length { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2Length(Vector2 v) + * Quaternion QuaternionInvert(Quaternion q) * } */ - public static FunctionDescriptor Vector2Length$descriptor() { - return Vector2Length.DESC; + public static FunctionDescriptor QuaternionInvert$descriptor() { + return QuaternionInvert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2Length(Vector2 v) + * Quaternion QuaternionInvert(Quaternion q) * } */ - public static MethodHandle Vector2Length$handle() { - return Vector2Length.HANDLE; + public static MethodHandle QuaternionInvert$handle() { + return QuaternionInvert.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2Length(Vector2 v) + * Quaternion QuaternionInvert(Quaternion q) * } */ - public static MemorySegment Vector2Length$address() { - return Vector2Length.ADDR; + public static MemorySegment QuaternionInvert$address() { + return QuaternionInvert.ADDR; } /** * {@snippet lang=c : - * float Vector2Length(Vector2 v) + * Quaternion QuaternionInvert(Quaternion q) * } */ - public static float Vector2Length(MemorySegment v) { - var mh$ = Vector2Length.HANDLE; + public static MemorySegment QuaternionInvert(SegmentAllocator allocator, MemorySegment q) { + var mh$ = QuaternionInvert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Length", v); + traceDowncall("QuaternionInvert", allocator, q); } - return (float)mh$.invokeExact(v); + return (MemorySegment)mh$.invokeExact(allocator, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2LengthSqr { + private static class QuaternionMultiply { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2LengthSqr"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionMultiply"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33241,58 +17155,58 @@ private static class Vector2LengthSqr { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2LengthSqr(Vector2 v) + * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) * } */ - public static FunctionDescriptor Vector2LengthSqr$descriptor() { - return Vector2LengthSqr.DESC; + public static FunctionDescriptor QuaternionMultiply$descriptor() { + return QuaternionMultiply.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2LengthSqr(Vector2 v) + * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) * } */ - public static MethodHandle Vector2LengthSqr$handle() { - return Vector2LengthSqr.HANDLE; + public static MethodHandle QuaternionMultiply$handle() { + return QuaternionMultiply.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2LengthSqr(Vector2 v) + * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) * } */ - public static MemorySegment Vector2LengthSqr$address() { - return Vector2LengthSqr.ADDR; + public static MemorySegment QuaternionMultiply$address() { + return QuaternionMultiply.ADDR; } /** * {@snippet lang=c : - * float Vector2LengthSqr(Vector2 v) + * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) * } */ - public static float Vector2LengthSqr(MemorySegment v) { - var mh$ = Vector2LengthSqr.HANDLE; + public static MemorySegment QuaternionMultiply(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { + var mh$ = QuaternionMultiply.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2LengthSqr", v); + traceDowncall("QuaternionMultiply", allocator, q1, q2); } - return (float)mh$.invokeExact(v); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2DotProduct { + private static class QuaternionScale { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2DotProduct"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionScale"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33300,58 +17214,58 @@ private static class Vector2DotProduct { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2DotProduct(Vector2 v1, Vector2 v2) + * Quaternion QuaternionScale(Quaternion q, float mul) * } */ - public static FunctionDescriptor Vector2DotProduct$descriptor() { - return Vector2DotProduct.DESC; + public static FunctionDescriptor QuaternionScale$descriptor() { + return QuaternionScale.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2DotProduct(Vector2 v1, Vector2 v2) + * Quaternion QuaternionScale(Quaternion q, float mul) * } */ - public static MethodHandle Vector2DotProduct$handle() { - return Vector2DotProduct.HANDLE; + public static MethodHandle QuaternionScale$handle() { + return QuaternionScale.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2DotProduct(Vector2 v1, Vector2 v2) + * Quaternion QuaternionScale(Quaternion q, float mul) * } */ - public static MemorySegment Vector2DotProduct$address() { - return Vector2DotProduct.ADDR; + public static MemorySegment QuaternionScale$address() { + return QuaternionScale.ADDR; } /** * {@snippet lang=c : - * float Vector2DotProduct(Vector2 v1, Vector2 v2) + * Quaternion QuaternionScale(Quaternion q, float mul) * } */ - public static float Vector2DotProduct(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2DotProduct.HANDLE; + public static MemorySegment QuaternionScale(SegmentAllocator allocator, MemorySegment q, float mul) { + var mh$ = QuaternionScale.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2DotProduct", v1, v2); + traceDowncall("QuaternionScale", allocator, q, mul); } - return (float)mh$.invokeExact(v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q, mul); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Distance { + private static class QuaternionDivide { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Distance"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionDivide"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33359,58 +17273,59 @@ private static class Vector2Distance { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2Distance(Vector2 v1, Vector2 v2) + * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) * } */ - public static FunctionDescriptor Vector2Distance$descriptor() { - return Vector2Distance.DESC; + public static FunctionDescriptor QuaternionDivide$descriptor() { + return QuaternionDivide.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2Distance(Vector2 v1, Vector2 v2) + * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) * } */ - public static MethodHandle Vector2Distance$handle() { - return Vector2Distance.HANDLE; + public static MethodHandle QuaternionDivide$handle() { + return QuaternionDivide.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2Distance(Vector2 v1, Vector2 v2) + * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) * } */ - public static MemorySegment Vector2Distance$address() { - return Vector2Distance.ADDR; + public static MemorySegment QuaternionDivide$address() { + return QuaternionDivide.ADDR; } /** * {@snippet lang=c : - * float Vector2Distance(Vector2 v1, Vector2 v2) + * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) * } */ - public static float Vector2Distance(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Distance.HANDLE; + public static MemorySegment QuaternionDivide(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { + var mh$ = QuaternionDivide.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Distance", v1, v2); + traceDowncall("QuaternionDivide", allocator, q1, q2); } - return (float)mh$.invokeExact(v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2DistanceSqr { + private static class QuaternionLerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2DistanceSqr"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionLerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33418,58 +17333,59 @@ private static class Vector2DistanceSqr { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) + * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static FunctionDescriptor Vector2DistanceSqr$descriptor() { - return Vector2DistanceSqr.DESC; + public static FunctionDescriptor QuaternionLerp$descriptor() { + return QuaternionLerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) + * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static MethodHandle Vector2DistanceSqr$handle() { - return Vector2DistanceSqr.HANDLE; + public static MethodHandle QuaternionLerp$handle() { + return QuaternionLerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) + * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static MemorySegment Vector2DistanceSqr$address() { - return Vector2DistanceSqr.ADDR; + public static MemorySegment QuaternionLerp$address() { + return QuaternionLerp.ADDR; } /** * {@snippet lang=c : - * float Vector2DistanceSqr(Vector2 v1, Vector2 v2) + * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static float Vector2DistanceSqr(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2DistanceSqr.HANDLE; + public static MemorySegment QuaternionLerp(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2, float amount) { + var mh$ = QuaternionLerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2DistanceSqr", v1, v2); + traceDowncall("QuaternionLerp", allocator, q1, q2, amount); } - return (float)mh$.invokeExact(v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Angle { + private static class QuaternionNlerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Angle"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionNlerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33477,58 +17393,59 @@ private static class Vector2Angle { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2Angle(Vector2 v1, Vector2 v2) + * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static FunctionDescriptor Vector2Angle$descriptor() { - return Vector2Angle.DESC; + public static FunctionDescriptor QuaternionNlerp$descriptor() { + return QuaternionNlerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2Angle(Vector2 v1, Vector2 v2) + * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static MethodHandle Vector2Angle$handle() { - return Vector2Angle.HANDLE; + public static MethodHandle QuaternionNlerp$handle() { + return QuaternionNlerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2Angle(Vector2 v1, Vector2 v2) + * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static MemorySegment Vector2Angle$address() { - return Vector2Angle.ADDR; + public static MemorySegment QuaternionNlerp$address() { + return QuaternionNlerp.ADDR; } /** * {@snippet lang=c : - * float Vector2Angle(Vector2 v1, Vector2 v2) + * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static float Vector2Angle(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Angle.HANDLE; + public static MemorySegment QuaternionNlerp(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2, float amount) { + var mh$ = QuaternionNlerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Angle", v1, v2); + traceDowncall("QuaternionNlerp", allocator, q1, q2, amount); } - return (float)mh$.invokeExact(v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2LineAngle { + private static class QuaternionSlerp { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2LineAngle"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionSlerp"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33536,58 +17453,61 @@ private static class Vector2LineAngle { /** * Function descriptor for: * {@snippet lang=c : - * float Vector2LineAngle(Vector2 start, Vector2 end) + * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static FunctionDescriptor Vector2LineAngle$descriptor() { - return Vector2LineAngle.DESC; + public static FunctionDescriptor QuaternionSlerp$descriptor() { + return QuaternionSlerp.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector2LineAngle(Vector2 start, Vector2 end) + * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static MethodHandle Vector2LineAngle$handle() { - return Vector2LineAngle.HANDLE; + public static MethodHandle QuaternionSlerp$handle() { + return QuaternionSlerp.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector2LineAngle(Vector2 start, Vector2 end) + * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static MemorySegment Vector2LineAngle$address() { - return Vector2LineAngle.ADDR; + public static MemorySegment QuaternionSlerp$address() { + return QuaternionSlerp.ADDR; } /** * {@snippet lang=c : - * float Vector2LineAngle(Vector2 start, Vector2 end) + * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) * } */ - public static float Vector2LineAngle(MemorySegment start, MemorySegment end) { - var mh$ = Vector2LineAngle.HANDLE; + public static MemorySegment QuaternionSlerp(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2, float amount) { + var mh$ = QuaternionSlerp.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2LineAngle", start, end); + traceDowncall("QuaternionSlerp", allocator, q1, q2, amount); } - return (float)mh$.invokeExact(start, end); + return (MemorySegment)mh$.invokeExact(allocator, q1, q2, amount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Scale { + private static class QuaternionCubicHermiteSpline { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), + Vector4.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Scale"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionCubicHermiteSpline"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33595,58 +17515,58 @@ private static class Vector2Scale { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Scale(Vector2 v, float scale) + * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) * } */ - public static FunctionDescriptor Vector2Scale$descriptor() { - return Vector2Scale.DESC; + public static FunctionDescriptor QuaternionCubicHermiteSpline$descriptor() { + return QuaternionCubicHermiteSpline.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Scale(Vector2 v, float scale) + * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) * } */ - public static MethodHandle Vector2Scale$handle() { - return Vector2Scale.HANDLE; + public static MethodHandle QuaternionCubicHermiteSpline$handle() { + return QuaternionCubicHermiteSpline.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Scale(Vector2 v, float scale) + * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) * } */ - public static MemorySegment Vector2Scale$address() { - return Vector2Scale.ADDR; + public static MemorySegment QuaternionCubicHermiteSpline$address() { + return QuaternionCubicHermiteSpline.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Scale(Vector2 v, float scale) + * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) * } */ - public static MemorySegment Vector2Scale(SegmentAllocator allocator, MemorySegment v, float scale) { - var mh$ = Vector2Scale.HANDLE; + public static MemorySegment QuaternionCubicHermiteSpline(SegmentAllocator allocator, MemorySegment q1, MemorySegment outTangent1, MemorySegment q2, MemorySegment inTangent2, float t) { + var mh$ = QuaternionCubicHermiteSpline.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Scale", allocator, v, scale); + traceDowncall("QuaternionCubicHermiteSpline", allocator, q1, outTangent1, q2, inTangent2, t); } - return (MemorySegment)mh$.invokeExact(allocator, v, scale); + return (MemorySegment)mh$.invokeExact(allocator, q1, outTangent1, q2, inTangent2, t); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Multiply { + private static class QuaternionFromVector3ToVector3 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Multiply"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromVector3ToVector3"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33654,57 +17574,57 @@ private static class Vector2Multiply { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) + * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) * } */ - public static FunctionDescriptor Vector2Multiply$descriptor() { - return Vector2Multiply.DESC; + public static FunctionDescriptor QuaternionFromVector3ToVector3$descriptor() { + return QuaternionFromVector3ToVector3.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) + * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) * } */ - public static MethodHandle Vector2Multiply$handle() { - return Vector2Multiply.HANDLE; + public static MethodHandle QuaternionFromVector3ToVector3$handle() { + return QuaternionFromVector3ToVector3.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) + * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) * } */ - public static MemorySegment Vector2Multiply$address() { - return Vector2Multiply.ADDR; + public static MemorySegment QuaternionFromVector3ToVector3$address() { + return QuaternionFromVector3ToVector3.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Multiply(Vector2 v1, Vector2 v2) + * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) * } */ - public static MemorySegment Vector2Multiply(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Multiply.HANDLE; + public static MemorySegment QuaternionFromVector3ToVector3(SegmentAllocator allocator, MemorySegment from, MemorySegment to) { + var mh$ = QuaternionFromVector3ToVector3.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Multiply", allocator, v1, v2); + traceDowncall("QuaternionFromVector3ToVector3", allocator, from, to); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, from, to); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Negate { + private static class QuaternionFromMatrix { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Negate"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromMatrix"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33712,58 +17632,57 @@ private static class Vector2Negate { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Negate(Vector2 v) + * Quaternion QuaternionFromMatrix(Matrix mat) * } */ - public static FunctionDescriptor Vector2Negate$descriptor() { - return Vector2Negate.DESC; + public static FunctionDescriptor QuaternionFromMatrix$descriptor() { + return QuaternionFromMatrix.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Negate(Vector2 v) + * Quaternion QuaternionFromMatrix(Matrix mat) * } */ - public static MethodHandle Vector2Negate$handle() { - return Vector2Negate.HANDLE; + public static MethodHandle QuaternionFromMatrix$handle() { + return QuaternionFromMatrix.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Negate(Vector2 v) + * Quaternion QuaternionFromMatrix(Matrix mat) * } */ - public static MemorySegment Vector2Negate$address() { - return Vector2Negate.ADDR; + public static MemorySegment QuaternionFromMatrix$address() { + return QuaternionFromMatrix.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Negate(Vector2 v) + * Quaternion QuaternionFromMatrix(Matrix mat) * } */ - public static MemorySegment Vector2Negate(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector2Negate.HANDLE; + public static MemorySegment QuaternionFromMatrix(SegmentAllocator allocator, MemorySegment mat) { + var mh$ = QuaternionFromMatrix.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Negate", allocator, v); + traceDowncall("QuaternionFromMatrix", allocator, mat); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (MemorySegment)mh$.invokeExact(allocator, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Divide { + private static class QuaternionToMatrix { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + Matrix.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Divide"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionToMatrix"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33771,57 +17690,58 @@ private static class Vector2Divide { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) + * Matrix QuaternionToMatrix(Quaternion q) * } */ - public static FunctionDescriptor Vector2Divide$descriptor() { - return Vector2Divide.DESC; + public static FunctionDescriptor QuaternionToMatrix$descriptor() { + return QuaternionToMatrix.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) + * Matrix QuaternionToMatrix(Quaternion q) * } */ - public static MethodHandle Vector2Divide$handle() { - return Vector2Divide.HANDLE; + public static MethodHandle QuaternionToMatrix$handle() { + return QuaternionToMatrix.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) + * Matrix QuaternionToMatrix(Quaternion q) * } */ - public static MemorySegment Vector2Divide$address() { - return Vector2Divide.ADDR; + public static MemorySegment QuaternionToMatrix$address() { + return QuaternionToMatrix.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Divide(Vector2 v1, Vector2 v2) + * Matrix QuaternionToMatrix(Quaternion q) * } */ - public static MemorySegment Vector2Divide(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Divide.HANDLE; + public static MemorySegment QuaternionToMatrix(SegmentAllocator allocator, MemorySegment q) { + var mh$ = QuaternionToMatrix.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Divide", allocator, v1, v2); + traceDowncall("QuaternionToMatrix", allocator, q); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Normalize { + private static class QuaternionFromAxisAngle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Normalize"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromAxisAngle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33829,58 +17749,58 @@ private static class Vector2Normalize { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Normalize(Vector2 v) + * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) * } */ - public static FunctionDescriptor Vector2Normalize$descriptor() { - return Vector2Normalize.DESC; + public static FunctionDescriptor QuaternionFromAxisAngle$descriptor() { + return QuaternionFromAxisAngle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Normalize(Vector2 v) + * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) * } */ - public static MethodHandle Vector2Normalize$handle() { - return Vector2Normalize.HANDLE; + public static MethodHandle QuaternionFromAxisAngle$handle() { + return QuaternionFromAxisAngle.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Normalize(Vector2 v) + * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) * } */ - public static MemorySegment Vector2Normalize$address() { - return Vector2Normalize.ADDR; + public static MemorySegment QuaternionFromAxisAngle$address() { + return QuaternionFromAxisAngle.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Normalize(Vector2 v) + * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) * } */ - public static MemorySegment Vector2Normalize(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector2Normalize.HANDLE; + public static MemorySegment QuaternionFromAxisAngle(SegmentAllocator allocator, MemorySegment axis, float angle) { + var mh$ = QuaternionFromAxisAngle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Normalize", allocator, v); + traceDowncall("QuaternionFromAxisAngle", allocator, axis, angle); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (MemorySegment)mh$.invokeExact(allocator, axis, angle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Transform { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Matrix.layout() + private static class QuaternionToAxisAngle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector4.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Transform"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionToAxisAngle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33888,59 +17808,59 @@ private static class Vector2Transform { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Transform(Vector2 v, Matrix mat) + * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) * } */ - public static FunctionDescriptor Vector2Transform$descriptor() { - return Vector2Transform.DESC; + public static FunctionDescriptor QuaternionToAxisAngle$descriptor() { + return QuaternionToAxisAngle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Transform(Vector2 v, Matrix mat) + * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) * } */ - public static MethodHandle Vector2Transform$handle() { - return Vector2Transform.HANDLE; + public static MethodHandle QuaternionToAxisAngle$handle() { + return QuaternionToAxisAngle.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Transform(Vector2 v, Matrix mat) + * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) * } */ - public static MemorySegment Vector2Transform$address() { - return Vector2Transform.ADDR; + public static MemorySegment QuaternionToAxisAngle$address() { + return QuaternionToAxisAngle.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Transform(Vector2 v, Matrix mat) + * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) * } */ - public static MemorySegment Vector2Transform(SegmentAllocator allocator, MemorySegment v, MemorySegment mat) { - var mh$ = Vector2Transform.HANDLE; + public static void QuaternionToAxisAngle(MemorySegment q, MemorySegment outAxis, MemorySegment outAngle) { + var mh$ = QuaternionToAxisAngle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Transform", allocator, v, mat); + traceDowncall("QuaternionToAxisAngle", q, outAxis, outAngle); } - return (MemorySegment)mh$.invokeExact(allocator, v, mat); + mh$.invokeExact(q, outAxis, outAngle); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Lerp { + private static class QuaternionFromEuler { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), + Vector4.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Lerp"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromEuler"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -33948,58 +17868,57 @@ private static class Vector2Lerp { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) + * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) * } */ - public static FunctionDescriptor Vector2Lerp$descriptor() { - return Vector2Lerp.DESC; + public static FunctionDescriptor QuaternionFromEuler$descriptor() { + return QuaternionFromEuler.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) + * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) * } */ - public static MethodHandle Vector2Lerp$handle() { - return Vector2Lerp.HANDLE; + public static MethodHandle QuaternionFromEuler$handle() { + return QuaternionFromEuler.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) + * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) * } */ - public static MemorySegment Vector2Lerp$address() { - return Vector2Lerp.ADDR; + public static MemorySegment QuaternionFromEuler$address() { + return QuaternionFromEuler.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount) + * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) * } */ - public static MemorySegment Vector2Lerp(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2, float amount) { - var mh$ = Vector2Lerp.HANDLE; + public static MemorySegment QuaternionFromEuler(SegmentAllocator allocator, float pitch, float yaw, float roll) { + var mh$ = QuaternionFromEuler.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Lerp", allocator, v1, v2, amount); + traceDowncall("QuaternionFromEuler", allocator, pitch, yaw, roll); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2, amount); + return (MemorySegment)mh$.invokeExact(allocator, pitch, yaw, roll); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Reflect { + private static class QuaternionToEuler { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + Vector3.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Reflect"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionToEuler"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -34007,58 +17926,58 @@ private static class Vector2Reflect { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) + * Vector3 QuaternionToEuler(Quaternion q) * } */ - public static FunctionDescriptor Vector2Reflect$descriptor() { - return Vector2Reflect.DESC; + public static FunctionDescriptor QuaternionToEuler$descriptor() { + return QuaternionToEuler.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) + * Vector3 QuaternionToEuler(Quaternion q) * } */ - public static MethodHandle Vector2Reflect$handle() { - return Vector2Reflect.HANDLE; + public static MethodHandle QuaternionToEuler$handle() { + return QuaternionToEuler.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) + * Vector3 QuaternionToEuler(Quaternion q) * } */ - public static MemorySegment Vector2Reflect$address() { - return Vector2Reflect.ADDR; + public static MemorySegment QuaternionToEuler$address() { + return QuaternionToEuler.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Reflect(Vector2 v, Vector2 normal) + * Vector3 QuaternionToEuler(Quaternion q) * } */ - public static MemorySegment Vector2Reflect(SegmentAllocator allocator, MemorySegment v, MemorySegment normal) { - var mh$ = Vector2Reflect.HANDLE; + public static MemorySegment QuaternionToEuler(SegmentAllocator allocator, MemorySegment q) { + var mh$ = QuaternionToEuler.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Reflect", allocator, v, normal); + traceDowncall("QuaternionToEuler", allocator, q); } - return (MemorySegment)mh$.invokeExact(allocator, v, normal); + return (MemorySegment)mh$.invokeExact(allocator, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Min { + private static class QuaternionTransform { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + Vector4.layout(), + Vector4.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Min"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionTransform"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -34066,58 +17985,58 @@ private static class Vector2Min { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Min(Vector2 v1, Vector2 v2) + * Quaternion QuaternionTransform(Quaternion q, Matrix mat) * } */ - public static FunctionDescriptor Vector2Min$descriptor() { - return Vector2Min.DESC; + public static FunctionDescriptor QuaternionTransform$descriptor() { + return QuaternionTransform.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Min(Vector2 v1, Vector2 v2) + * Quaternion QuaternionTransform(Quaternion q, Matrix mat) * } */ - public static MethodHandle Vector2Min$handle() { - return Vector2Min.HANDLE; + public static MethodHandle QuaternionTransform$handle() { + return QuaternionTransform.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Min(Vector2 v1, Vector2 v2) + * Quaternion QuaternionTransform(Quaternion q, Matrix mat) * } */ - public static MemorySegment Vector2Min$address() { - return Vector2Min.ADDR; + public static MemorySegment QuaternionTransform$address() { + return QuaternionTransform.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Min(Vector2 v1, Vector2 v2) + * Quaternion QuaternionTransform(Quaternion q, Matrix mat) * } */ - public static MemorySegment Vector2Min(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Min.HANDLE; + public static MemorySegment QuaternionTransform(SegmentAllocator allocator, MemorySegment q, MemorySegment mat) { + var mh$ = QuaternionTransform.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Min", allocator, v1, v2); + traceDowncall("QuaternionTransform", allocator, q, mat); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(allocator, q, mat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector2Max { + private static class QuaternionEquals { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + raylib.C_INT, + Vector4.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Max"); + public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionEquals"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -34125,1056 +18044,783 @@ private static class Vector2Max { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Max(Vector2 v1, Vector2 v2) + * int QuaternionEquals(Quaternion p, Quaternion q) * } */ - public static FunctionDescriptor Vector2Max$descriptor() { - return Vector2Max.DESC; + public static FunctionDescriptor QuaternionEquals$descriptor() { + return QuaternionEquals.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Max(Vector2 v1, Vector2 v2) + * int QuaternionEquals(Quaternion p, Quaternion q) * } */ - public static MethodHandle Vector2Max$handle() { - return Vector2Max.HANDLE; + public static MethodHandle QuaternionEquals$handle() { + return QuaternionEquals.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 Vector2Max(Vector2 v1, Vector2 v2) + * int QuaternionEquals(Quaternion p, Quaternion q) * } */ - public static MemorySegment Vector2Max$address() { - return Vector2Max.ADDR; + public static MemorySegment QuaternionEquals$address() { + return QuaternionEquals.ADDR; } /** * {@snippet lang=c : - * Vector2 Vector2Max(Vector2 v1, Vector2 v2) + * int QuaternionEquals(Quaternion p, Quaternion q) * } */ - public static MemorySegment Vector2Max(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector2Max.HANDLE; + public static int QuaternionEquals(MemorySegment p, MemorySegment q) { + var mh$ = QuaternionEquals.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Max", allocator, v1, v2); + traceDowncall("QuaternionEquals", p, q); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class Vector2Rotate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Rotate"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + return (int)mh$.invokeExact(p, q); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - + private static final int STATE_NORMAL = (int)0L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Rotate(Vector2 v, float angle) + * enum .STATE_NORMAL = 0 * } */ - public static FunctionDescriptor Vector2Rotate$descriptor() { - return Vector2Rotate.DESC; + public static int STATE_NORMAL() { + return STATE_NORMAL; } - + private static final int STATE_FOCUSED = (int)1L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Rotate(Vector2 v, float angle) + * enum .STATE_FOCUSED = 1 * } */ - public static MethodHandle Vector2Rotate$handle() { - return Vector2Rotate.HANDLE; + public static int STATE_FOCUSED() { + return STATE_FOCUSED; } - + private static final int STATE_PRESSED = (int)2L; /** - * Address for: * {@snippet lang=c : - * Vector2 Vector2Rotate(Vector2 v, float angle) + * enum .STATE_PRESSED = 2 * } */ - public static MemorySegment Vector2Rotate$address() { - return Vector2Rotate.ADDR; + public static int STATE_PRESSED() { + return STATE_PRESSED; } - + private static final int STATE_DISABLED = (int)3L; /** * {@snippet lang=c : - * Vector2 Vector2Rotate(Vector2 v, float angle) + * enum .STATE_DISABLED = 3 * } */ - public static MemorySegment Vector2Rotate(SegmentAllocator allocator, MemorySegment v, float angle) { - var mh$ = Vector2Rotate.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Rotate", allocator, v, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, v, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int STATE_DISABLED() { + return STATE_DISABLED; } - - private static class Vector2MoveTowards { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2MoveTowards"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int TEXT_ALIGN_LEFT = (int)0L; + /** + * {@snippet lang=c : + * enum .TEXT_ALIGN_LEFT = 0 + * } + */ + public static int TEXT_ALIGN_LEFT() { + return TEXT_ALIGN_LEFT; } - + private static final int TEXT_ALIGN_CENTER = (int)1L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) + * enum .TEXT_ALIGN_CENTER = 1 * } */ - public static FunctionDescriptor Vector2MoveTowards$descriptor() { - return Vector2MoveTowards.DESC; + public static int TEXT_ALIGN_CENTER() { + return TEXT_ALIGN_CENTER; } - + private static final int TEXT_ALIGN_RIGHT = (int)2L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) + * enum .TEXT_ALIGN_RIGHT = 2 * } */ - public static MethodHandle Vector2MoveTowards$handle() { - return Vector2MoveTowards.HANDLE; + public static int TEXT_ALIGN_RIGHT() { + return TEXT_ALIGN_RIGHT; } - + private static final int TEXT_ALIGN_TOP = (int)0L; /** - * Address for: * {@snippet lang=c : - * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) + * enum .TEXT_ALIGN_TOP = 0 * } */ - public static MemorySegment Vector2MoveTowards$address() { - return Vector2MoveTowards.ADDR; + public static int TEXT_ALIGN_TOP() { + return TEXT_ALIGN_TOP; } - + private static final int TEXT_ALIGN_MIDDLE = (int)1L; /** * {@snippet lang=c : - * Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance) + * enum .TEXT_ALIGN_MIDDLE = 1 * } */ - public static MemorySegment Vector2MoveTowards(SegmentAllocator allocator, MemorySegment v, MemorySegment target, float maxDistance) { - var mh$ = Vector2MoveTowards.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2MoveTowards", allocator, v, target, maxDistance); - } - return (MemorySegment)mh$.invokeExact(allocator, v, target, maxDistance); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int TEXT_ALIGN_MIDDLE() { + return TEXT_ALIGN_MIDDLE; } - - private static class Vector2Invert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Invert"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int TEXT_ALIGN_BOTTOM = (int)2L; + /** + * {@snippet lang=c : + * enum .TEXT_ALIGN_BOTTOM = 2 + * } + */ + public static int TEXT_ALIGN_BOTTOM() { + return TEXT_ALIGN_BOTTOM; } - + private static final int TEXT_WRAP_NONE = (int)0L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Invert(Vector2 v) + * enum .TEXT_WRAP_NONE = 0 * } */ - public static FunctionDescriptor Vector2Invert$descriptor() { - return Vector2Invert.DESC; + public static int TEXT_WRAP_NONE() { + return TEXT_WRAP_NONE; } - + private static final int TEXT_WRAP_CHAR = (int)1L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Invert(Vector2 v) + * enum .TEXT_WRAP_CHAR = 1 * } */ - public static MethodHandle Vector2Invert$handle() { - return Vector2Invert.HANDLE; + public static int TEXT_WRAP_CHAR() { + return TEXT_WRAP_CHAR; } - + private static final int TEXT_WRAP_WORD = (int)2L; /** - * Address for: * {@snippet lang=c : - * Vector2 Vector2Invert(Vector2 v) + * enum .TEXT_WRAP_WORD = 2 * } */ - public static MemorySegment Vector2Invert$address() { - return Vector2Invert.ADDR; + public static int TEXT_WRAP_WORD() { + return TEXT_WRAP_WORD; } - + private static final int DEFAULT = (int)0L; /** * {@snippet lang=c : - * Vector2 Vector2Invert(Vector2 v) + * enum .DEFAULT = 0 * } */ - public static MemorySegment Vector2Invert(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector2Invert.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Invert", allocator, v); - } - return (MemorySegment)mh$.invokeExact(allocator, v); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int DEFAULT() { + return DEFAULT; } - - private static class Vector2Clamp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Clamp"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int LABEL = (int)1L; + /** + * {@snippet lang=c : + * enum .LABEL = 1 + * } + */ + public static int LABEL() { + return LABEL; } - + private static final int BUTTON = (int)2L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) + * enum .BUTTON = 2 * } */ - public static FunctionDescriptor Vector2Clamp$descriptor() { - return Vector2Clamp.DESC; + public static int BUTTON() { + return BUTTON; } - + private static final int TOGGLE = (int)3L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) + * enum .TOGGLE = 3 * } */ - public static MethodHandle Vector2Clamp$handle() { - return Vector2Clamp.HANDLE; + public static int TOGGLE() { + return TOGGLE; } - + private static final int SLIDER = (int)4L; /** - * Address for: * {@snippet lang=c : - * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) + * enum .SLIDER = 4 * } */ - public static MemorySegment Vector2Clamp$address() { - return Vector2Clamp.ADDR; + public static int SLIDER() { + return SLIDER; } - + private static final int PROGRESSBAR = (int)5L; /** * {@snippet lang=c : - * Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max) + * enum .PROGRESSBAR = 5 * } */ - public static MemorySegment Vector2Clamp(SegmentAllocator allocator, MemorySegment v, MemorySegment min, MemorySegment max) { - var mh$ = Vector2Clamp.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Clamp", allocator, v, min, max); - } - return (MemorySegment)mh$.invokeExact(allocator, v, min, max); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int PROGRESSBAR() { + return PROGRESSBAR; } - - private static class Vector2ClampValue { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2ClampValue"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int CHECKBOX = (int)6L; + /** + * {@snippet lang=c : + * enum .CHECKBOX = 6 + * } + */ + public static int CHECKBOX() { + return CHECKBOX; } - + private static final int COMBOBOX = (int)7L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2ClampValue(Vector2 v, float min, float max) + * enum .COMBOBOX = 7 * } */ - public static FunctionDescriptor Vector2ClampValue$descriptor() { - return Vector2ClampValue.DESC; + public static int COMBOBOX() { + return COMBOBOX; } - + private static final int DROPDOWNBOX = (int)8L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2ClampValue(Vector2 v, float min, float max) + * enum .DROPDOWNBOX = 8 * } */ - public static MethodHandle Vector2ClampValue$handle() { - return Vector2ClampValue.HANDLE; + public static int DROPDOWNBOX() { + return DROPDOWNBOX; } - + private static final int TEXTBOX = (int)9L; /** - * Address for: * {@snippet lang=c : - * Vector2 Vector2ClampValue(Vector2 v, float min, float max) + * enum .TEXTBOX = 9 * } */ - public static MemorySegment Vector2ClampValue$address() { - return Vector2ClampValue.ADDR; + public static int TEXTBOX() { + return TEXTBOX; } - + private static final int VALUEBOX = (int)10L; /** * {@snippet lang=c : - * Vector2 Vector2ClampValue(Vector2 v, float min, float max) + * enum .VALUEBOX = 10 * } */ - public static MemorySegment Vector2ClampValue(SegmentAllocator allocator, MemorySegment v, float min, float max) { - var mh$ = Vector2ClampValue.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2ClampValue", allocator, v, min, max); - } - return (MemorySegment)mh$.invokeExact(allocator, v, min, max); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int VALUEBOX() { + return VALUEBOX; } - - private static class Vector2Equals { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - Vector2.layout(), - Vector2.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Equals"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int SPINNER = (int)11L; + /** + * {@snippet lang=c : + * enum .SPINNER = 11 + * } + */ + public static int SPINNER() { + return SPINNER; } - + private static final int LISTVIEW = (int)12L; /** - * Function descriptor for: * {@snippet lang=c : - * int Vector2Equals(Vector2 p, Vector2 q) + * enum .LISTVIEW = 12 * } */ - public static FunctionDescriptor Vector2Equals$descriptor() { - return Vector2Equals.DESC; + public static int LISTVIEW() { + return LISTVIEW; } - + private static final int COLORPICKER = (int)13L; /** - * Downcall method handle for: * {@snippet lang=c : - * int Vector2Equals(Vector2 p, Vector2 q) + * enum .COLORPICKER = 13 * } */ - public static MethodHandle Vector2Equals$handle() { - return Vector2Equals.HANDLE; + public static int COLORPICKER() { + return COLORPICKER; } - + private static final int SCROLLBAR = (int)14L; /** - * Address for: * {@snippet lang=c : - * int Vector2Equals(Vector2 p, Vector2 q) + * enum .SCROLLBAR = 14 * } */ - public static MemorySegment Vector2Equals$address() { - return Vector2Equals.ADDR; + public static int SCROLLBAR() { + return SCROLLBAR; } - + private static final int STATUSBAR = (int)15L; /** * {@snippet lang=c : - * int Vector2Equals(Vector2 p, Vector2 q) + * enum .STATUSBAR = 15 * } */ - public static int Vector2Equals(MemorySegment p, MemorySegment q) { - var mh$ = Vector2Equals.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Equals", p, q); - } - return (int)mh$.invokeExact(p, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int STATUSBAR() { + return STATUSBAR; } - - private static class Vector2Refract { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector2Refract"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int BORDER_COLOR_NORMAL = (int)0L; + /** + * {@snippet lang=c : + * enum .BORDER_COLOR_NORMAL = 0 + * } + */ + public static int BORDER_COLOR_NORMAL() { + return BORDER_COLOR_NORMAL; } - + private static final int BASE_COLOR_NORMAL = (int)1L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) + * enum .BASE_COLOR_NORMAL = 1 * } */ - public static FunctionDescriptor Vector2Refract$descriptor() { - return Vector2Refract.DESC; + public static int BASE_COLOR_NORMAL() { + return BASE_COLOR_NORMAL; } - + private static final int TEXT_COLOR_NORMAL = (int)2L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) + * enum .TEXT_COLOR_NORMAL = 2 * } */ - public static MethodHandle Vector2Refract$handle() { - return Vector2Refract.HANDLE; + public static int TEXT_COLOR_NORMAL() { + return TEXT_COLOR_NORMAL; } - + private static final int BORDER_COLOR_FOCUSED = (int)3L; /** - * Address for: * {@snippet lang=c : - * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) + * enum .BORDER_COLOR_FOCUSED = 3 * } */ - public static MemorySegment Vector2Refract$address() { - return Vector2Refract.ADDR; + public static int BORDER_COLOR_FOCUSED() { + return BORDER_COLOR_FOCUSED; } - + private static final int BASE_COLOR_FOCUSED = (int)4L; /** * {@snippet lang=c : - * Vector2 Vector2Refract(Vector2 v, Vector2 n, float r) + * enum .BASE_COLOR_FOCUSED = 4 * } */ - public static MemorySegment Vector2Refract(SegmentAllocator allocator, MemorySegment v, MemorySegment n, float r) { - var mh$ = Vector2Refract.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector2Refract", allocator, v, n, r); - } - return (MemorySegment)mh$.invokeExact(allocator, v, n, r); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int BASE_COLOR_FOCUSED() { + return BASE_COLOR_FOCUSED; } - - private static class Vector3Zero { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout() ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Zero"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int TEXT_COLOR_FOCUSED = (int)5L; + /** + * {@snippet lang=c : + * enum .TEXT_COLOR_FOCUSED = 5 + * } + */ + public static int TEXT_COLOR_FOCUSED() { + return TEXT_COLOR_FOCUSED; } - + private static final int BORDER_COLOR_PRESSED = (int)6L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Zero() + * enum .BORDER_COLOR_PRESSED = 6 * } */ - public static FunctionDescriptor Vector3Zero$descriptor() { - return Vector3Zero.DESC; + public static int BORDER_COLOR_PRESSED() { + return BORDER_COLOR_PRESSED; } - + private static final int BASE_COLOR_PRESSED = (int)7L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Zero() + * enum .BASE_COLOR_PRESSED = 7 * } */ - public static MethodHandle Vector3Zero$handle() { - return Vector3Zero.HANDLE; + public static int BASE_COLOR_PRESSED() { + return BASE_COLOR_PRESSED; } - + private static final int TEXT_COLOR_PRESSED = (int)8L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3Zero() + * enum .TEXT_COLOR_PRESSED = 8 * } */ - public static MemorySegment Vector3Zero$address() { - return Vector3Zero.ADDR; + public static int TEXT_COLOR_PRESSED() { + return TEXT_COLOR_PRESSED; } - + private static final int BORDER_COLOR_DISABLED = (int)9L; /** * {@snippet lang=c : - * Vector3 Vector3Zero() + * enum .BORDER_COLOR_DISABLED = 9 * } */ - public static MemorySegment Vector3Zero(SegmentAllocator allocator) { - var mh$ = Vector3Zero.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Zero", allocator); - } - return (MemorySegment)mh$.invokeExact(allocator); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int BORDER_COLOR_DISABLED() { + return BORDER_COLOR_DISABLED; } - - private static class Vector3One { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout() ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3One"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int BASE_COLOR_DISABLED = (int)10L; + /** + * {@snippet lang=c : + * enum .BASE_COLOR_DISABLED = 10 + * } + */ + public static int BASE_COLOR_DISABLED() { + return BASE_COLOR_DISABLED; } - + private static final int TEXT_COLOR_DISABLED = (int)11L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3One() + * enum .TEXT_COLOR_DISABLED = 11 * } */ - public static FunctionDescriptor Vector3One$descriptor() { - return Vector3One.DESC; + public static int TEXT_COLOR_DISABLED() { + return TEXT_COLOR_DISABLED; } - + private static final int BORDER_WIDTH = (int)12L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3One() + * enum .BORDER_WIDTH = 12 * } */ - public static MethodHandle Vector3One$handle() { - return Vector3One.HANDLE; + public static int BORDER_WIDTH() { + return BORDER_WIDTH; } - + private static final int TEXT_PADDING = (int)13L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3One() + * enum .TEXT_PADDING = 13 * } */ - public static MemorySegment Vector3One$address() { - return Vector3One.ADDR; + public static int TEXT_PADDING() { + return TEXT_PADDING; } - + private static final int TEXT_ALIGNMENT = (int)14L; /** * {@snippet lang=c : - * Vector3 Vector3One() + * enum .TEXT_ALIGNMENT = 14 * } */ - public static MemorySegment Vector3One(SegmentAllocator allocator) { - var mh$ = Vector3One.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3One", allocator); - } - return (MemorySegment)mh$.invokeExact(allocator); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int TEXT_ALIGNMENT() { + return TEXT_ALIGNMENT; } - - private static class Vector3Add { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Add"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int TEXT_SIZE = (int)16L; + /** + * {@snippet lang=c : + * enum .TEXT_SIZE = 16 + * } + */ + public static int TEXT_SIZE() { + return TEXT_SIZE; } - + private static final int TEXT_SPACING = (int)17L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Add(Vector3 v1, Vector3 v2) + * enum .TEXT_SPACING = 17 * } */ - public static FunctionDescriptor Vector3Add$descriptor() { - return Vector3Add.DESC; + public static int TEXT_SPACING() { + return TEXT_SPACING; } - + private static final int LINE_COLOR = (int)18L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Add(Vector3 v1, Vector3 v2) + * enum .LINE_COLOR = 18 * } */ - public static MethodHandle Vector3Add$handle() { - return Vector3Add.HANDLE; + public static int LINE_COLOR() { + return LINE_COLOR; } - + private static final int BACKGROUND_COLOR = (int)19L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3Add(Vector3 v1, Vector3 v2) + * enum .BACKGROUND_COLOR = 19 * } */ - public static MemorySegment Vector3Add$address() { - return Vector3Add.ADDR; + public static int BACKGROUND_COLOR() { + return BACKGROUND_COLOR; } - + private static final int TEXT_LINE_SPACING = (int)20L; /** * {@snippet lang=c : - * Vector3 Vector3Add(Vector3 v1, Vector3 v2) + * enum .TEXT_LINE_SPACING = 20 * } */ - public static MemorySegment Vector3Add(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Add.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Add", allocator, v1, v2); - } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int TEXT_LINE_SPACING() { + return TEXT_LINE_SPACING; } - - private static class Vector3AddValue { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3AddValue"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int TEXT_ALIGNMENT_VERTICAL = (int)21L; + /** + * {@snippet lang=c : + * enum .TEXT_ALIGNMENT_VERTICAL = 21 + * } + */ + public static int TEXT_ALIGNMENT_VERTICAL() { + return TEXT_ALIGNMENT_VERTICAL; } - + private static final int TEXT_WRAP_MODE = (int)22L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3AddValue(Vector3 v, float add) + * enum .TEXT_WRAP_MODE = 22 * } */ - public static FunctionDescriptor Vector3AddValue$descriptor() { - return Vector3AddValue.DESC; + public static int TEXT_WRAP_MODE() { + return TEXT_WRAP_MODE; } - + private static final int GROUP_PADDING = (int)16L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3AddValue(Vector3 v, float add) + * enum .GROUP_PADDING = 16 * } */ - public static MethodHandle Vector3AddValue$handle() { - return Vector3AddValue.HANDLE; + public static int GROUP_PADDING() { + return GROUP_PADDING; } - + private static final int SLIDER_WIDTH = (int)16L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3AddValue(Vector3 v, float add) + * enum .SLIDER_WIDTH = 16 * } */ - public static MemorySegment Vector3AddValue$address() { - return Vector3AddValue.ADDR; + public static int SLIDER_WIDTH() { + return SLIDER_WIDTH; } - + private static final int SLIDER_PADDING = (int)17L; /** * {@snippet lang=c : - * Vector3 Vector3AddValue(Vector3 v, float add) + * enum .SLIDER_PADDING = 17 * } */ - public static MemorySegment Vector3AddValue(SegmentAllocator allocator, MemorySegment v, float add) { - var mh$ = Vector3AddValue.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3AddValue", allocator, v, add); - } - return (MemorySegment)mh$.invokeExact(allocator, v, add); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int SLIDER_PADDING() { + return SLIDER_PADDING; } - - private static class Vector3Subtract { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Subtract"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int PROGRESS_PADDING = (int)16L; + /** + * {@snippet lang=c : + * enum .PROGRESS_PADDING = 16 + * } + */ + public static int PROGRESS_PADDING() { + return PROGRESS_PADDING; } - + private static final int ARROWS_SIZE = (int)16L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) + * enum .ARROWS_SIZE = 16 * } */ - public static FunctionDescriptor Vector3Subtract$descriptor() { - return Vector3Subtract.DESC; + public static int ARROWS_SIZE() { + return ARROWS_SIZE; } - + private static final int ARROWS_VISIBLE = (int)17L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) + * enum .ARROWS_VISIBLE = 17 * } */ - public static MethodHandle Vector3Subtract$handle() { - return Vector3Subtract.HANDLE; + public static int ARROWS_VISIBLE() { + return ARROWS_VISIBLE; } - + private static final int SCROLL_SLIDER_PADDING = (int)18L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) + * enum .SCROLL_SLIDER_PADDING = 18 * } */ - public static MemorySegment Vector3Subtract$address() { - return Vector3Subtract.ADDR; + public static int SCROLL_SLIDER_PADDING() { + return SCROLL_SLIDER_PADDING; } - + private static final int SCROLL_SLIDER_SIZE = (int)19L; /** * {@snippet lang=c : - * Vector3 Vector3Subtract(Vector3 v1, Vector3 v2) + * enum .SCROLL_SLIDER_SIZE = 19 * } */ - public static MemorySegment Vector3Subtract(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Subtract.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Subtract", allocator, v1, v2); - } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int SCROLL_SLIDER_SIZE() { + return SCROLL_SLIDER_SIZE; } - - private static class Vector3SubtractValue { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3SubtractValue"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int SCROLL_PADDING = (int)20L; + /** + * {@snippet lang=c : + * enum .SCROLL_PADDING = 20 + * } + */ + public static int SCROLL_PADDING() { + return SCROLL_PADDING; } - + private static final int SCROLL_SPEED = (int)21L; + /** + * {@snippet lang=c : + * enum .SCROLL_SPEED = 21 + * } + */ + public static int SCROLL_SPEED() { + return SCROLL_SPEED; + } + private static final int CHECK_PADDING = (int)16L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3SubtractValue(Vector3 v, float sub) + * enum .CHECK_PADDING = 16 * } */ - public static FunctionDescriptor Vector3SubtractValue$descriptor() { - return Vector3SubtractValue.DESC; + public static int CHECK_PADDING() { + return CHECK_PADDING; } - + private static final int COMBO_BUTTON_WIDTH = (int)16L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3SubtractValue(Vector3 v, float sub) + * enum .COMBO_BUTTON_WIDTH = 16 * } */ - public static MethodHandle Vector3SubtractValue$handle() { - return Vector3SubtractValue.HANDLE; + public static int COMBO_BUTTON_WIDTH() { + return COMBO_BUTTON_WIDTH; } - + private static final int COMBO_BUTTON_SPACING = (int)17L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3SubtractValue(Vector3 v, float sub) + * enum .COMBO_BUTTON_SPACING = 17 * } */ - public static MemorySegment Vector3SubtractValue$address() { - return Vector3SubtractValue.ADDR; + public static int COMBO_BUTTON_SPACING() { + return COMBO_BUTTON_SPACING; } - + private static final int ARROW_PADDING = (int)16L; /** * {@snippet lang=c : - * Vector3 Vector3SubtractValue(Vector3 v, float sub) + * enum .ARROW_PADDING = 16 * } */ - public static MemorySegment Vector3SubtractValue(SegmentAllocator allocator, MemorySegment v, float sub) { - var mh$ = Vector3SubtractValue.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3SubtractValue", allocator, v, sub); - } - return (MemorySegment)mh$.invokeExact(allocator, v, sub); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class Vector3Scale { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Scale"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ARROW_PADDING() { + return ARROW_PADDING; } - + private static final int DROPDOWN_ITEMS_SPACING = (int)17L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Scale(Vector3 v, float scalar) + * enum .DROPDOWN_ITEMS_SPACING = 17 * } */ - public static FunctionDescriptor Vector3Scale$descriptor() { - return Vector3Scale.DESC; + public static int DROPDOWN_ITEMS_SPACING() { + return DROPDOWN_ITEMS_SPACING; } - + private static final int DROPDOWN_ARROW_HIDDEN = (int)18L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Scale(Vector3 v, float scalar) + * enum .DROPDOWN_ARROW_HIDDEN = 18 * } */ - public static MethodHandle Vector3Scale$handle() { - return Vector3Scale.HANDLE; + public static int DROPDOWN_ARROW_HIDDEN() { + return DROPDOWN_ARROW_HIDDEN; } - + private static final int DROPDOWN_ROLL_UP = (int)19L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3Scale(Vector3 v, float scalar) + * enum .DROPDOWN_ROLL_UP = 19 * } */ - public static MemorySegment Vector3Scale$address() { - return Vector3Scale.ADDR; + public static int DROPDOWN_ROLL_UP() { + return DROPDOWN_ROLL_UP; } - + private static final int TEXT_READONLY = (int)16L; /** * {@snippet lang=c : - * Vector3 Vector3Scale(Vector3 v, float scalar) + * enum .TEXT_READONLY = 16 * } */ - public static MemorySegment Vector3Scale(SegmentAllocator allocator, MemorySegment v, float scalar) { - var mh$ = Vector3Scale.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Scale", allocator, v, scalar); - } - return (MemorySegment)mh$.invokeExact(allocator, v, scalar); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int TEXT_READONLY() { + return TEXT_READONLY; } - - private static class Vector3Multiply { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Multiply"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - + private static final int SPIN_BUTTON_WIDTH = (int)16L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) + * enum .SPIN_BUTTON_WIDTH = 16 * } */ - public static FunctionDescriptor Vector3Multiply$descriptor() { - return Vector3Multiply.DESC; + public static int SPIN_BUTTON_WIDTH() { + return SPIN_BUTTON_WIDTH; } - + private static final int SPIN_BUTTON_SPACING = (int)17L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) + * enum .SPIN_BUTTON_SPACING = 17 * } */ - public static MethodHandle Vector3Multiply$handle() { - return Vector3Multiply.HANDLE; + public static int SPIN_BUTTON_SPACING() { + return SPIN_BUTTON_SPACING; } - + private static final int LIST_ITEMS_HEIGHT = (int)16L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) + * enum .LIST_ITEMS_HEIGHT = 16 * } */ - public static MemorySegment Vector3Multiply$address() { - return Vector3Multiply.ADDR; + public static int LIST_ITEMS_HEIGHT() { + return LIST_ITEMS_HEIGHT; } - + private static final int LIST_ITEMS_SPACING = (int)17L; /** * {@snippet lang=c : - * Vector3 Vector3Multiply(Vector3 v1, Vector3 v2) + * enum .LIST_ITEMS_SPACING = 17 * } */ - public static MemorySegment Vector3Multiply(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Multiply.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Multiply", allocator, v1, v2); - } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class Vector3CrossProduct { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3CrossProduct"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int LIST_ITEMS_SPACING() { + return LIST_ITEMS_SPACING; } - + private static final int SCROLLBAR_WIDTH = (int)18L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) + * enum .SCROLLBAR_WIDTH = 18 * } */ - public static FunctionDescriptor Vector3CrossProduct$descriptor() { - return Vector3CrossProduct.DESC; + public static int SCROLLBAR_WIDTH() { + return SCROLLBAR_WIDTH; } - + private static final int SCROLLBAR_SIDE = (int)19L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) + * enum .SCROLLBAR_SIDE = 19 * } */ - public static MethodHandle Vector3CrossProduct$handle() { - return Vector3CrossProduct.HANDLE; + public static int SCROLLBAR_SIDE() { + return SCROLLBAR_SIDE; } - + private static final int LIST_ITEMS_BORDER_WIDTH = (int)20L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) + * enum .LIST_ITEMS_BORDER_WIDTH = 20 * } */ - public static MemorySegment Vector3CrossProduct$address() { - return Vector3CrossProduct.ADDR; + public static int LIST_ITEMS_BORDER_WIDTH() { + return LIST_ITEMS_BORDER_WIDTH; } - + private static final int COLOR_SELECTOR_SIZE = (int)16L; /** * {@snippet lang=c : - * Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2) + * enum .COLOR_SELECTOR_SIZE = 16 * } */ - public static MemorySegment Vector3CrossProduct(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3CrossProduct.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3CrossProduct", allocator, v1, v2); - } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class Vector3Perpendicular { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Perpendicular"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int COLOR_SELECTOR_SIZE() { + return COLOR_SELECTOR_SIZE; } - + private static final int HUEBAR_WIDTH = (int)17L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Perpendicular(Vector3 v) + * enum .HUEBAR_WIDTH = 17 * } */ - public static FunctionDescriptor Vector3Perpendicular$descriptor() { - return Vector3Perpendicular.DESC; + public static int HUEBAR_WIDTH() { + return HUEBAR_WIDTH; } - + private static final int HUEBAR_PADDING = (int)18L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Perpendicular(Vector3 v) + * enum .HUEBAR_PADDING = 18 * } */ - public static MethodHandle Vector3Perpendicular$handle() { - return Vector3Perpendicular.HANDLE; + public static int HUEBAR_PADDING() { + return HUEBAR_PADDING; } - + private static final int HUEBAR_SELECTOR_HEIGHT = (int)19L; /** - * Address for: * {@snippet lang=c : - * Vector3 Vector3Perpendicular(Vector3 v) + * enum .HUEBAR_SELECTOR_HEIGHT = 19 * } */ - public static MemorySegment Vector3Perpendicular$address() { - return Vector3Perpendicular.ADDR; + public static int HUEBAR_SELECTOR_HEIGHT() { + return HUEBAR_SELECTOR_HEIGHT; } - + private static final int HUEBAR_SELECTOR_OVERFLOW = (int)20L; /** * {@snippet lang=c : - * Vector3 Vector3Perpendicular(Vector3 v) + * enum .HUEBAR_SELECTOR_OVERFLOW = 20 * } */ - public static MemorySegment Vector3Perpendicular(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector3Perpendicular.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Perpendicular", allocator, v); - } - return (MemorySegment)mh$.invokeExact(allocator, v); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int HUEBAR_SELECTOR_OVERFLOW() { + return HUEBAR_SELECTOR_OVERFLOW; } - private static class Vector3Length { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector3.layout() - ); + private static class GuiEnable { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Length"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiEnable"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35182,57 +18828,54 @@ private static class Vector3Length { /** * Function descriptor for: * {@snippet lang=c : - * float Vector3Length(const Vector3 v) + * void GuiEnable() * } */ - public static FunctionDescriptor Vector3Length$descriptor() { - return Vector3Length.DESC; + public static FunctionDescriptor GuiEnable$descriptor() { + return GuiEnable.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector3Length(const Vector3 v) + * void GuiEnable() * } */ - public static MethodHandle Vector3Length$handle() { - return Vector3Length.HANDLE; + public static MethodHandle GuiEnable$handle() { + return GuiEnable.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector3Length(const Vector3 v) + * void GuiEnable() * } */ - public static MemorySegment Vector3Length$address() { - return Vector3Length.ADDR; + public static MemorySegment GuiEnable$address() { + return GuiEnable.ADDR; } /** * {@snippet lang=c : - * float Vector3Length(const Vector3 v) + * void GuiEnable() * } */ - public static float Vector3Length(MemorySegment v) { - var mh$ = Vector3Length.HANDLE; + public static void GuiEnable() { + var mh$ = GuiEnable.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Length", v); + traceDowncall("GuiEnable"); } - return (float)mh$.invokeExact(v); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3LengthSqr { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector3.layout() - ); + private static class GuiDisable { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3LengthSqr"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiDisable"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35240,58 +18883,54 @@ private static class Vector3LengthSqr { /** * Function descriptor for: * {@snippet lang=c : - * float Vector3LengthSqr(const Vector3 v) + * void GuiDisable() * } */ - public static FunctionDescriptor Vector3LengthSqr$descriptor() { - return Vector3LengthSqr.DESC; + public static FunctionDescriptor GuiDisable$descriptor() { + return GuiDisable.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector3LengthSqr(const Vector3 v) + * void GuiDisable() * } */ - public static MethodHandle Vector3LengthSqr$handle() { - return Vector3LengthSqr.HANDLE; + public static MethodHandle GuiDisable$handle() { + return GuiDisable.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector3LengthSqr(const Vector3 v) + * void GuiDisable() * } */ - public static MemorySegment Vector3LengthSqr$address() { - return Vector3LengthSqr.ADDR; + public static MemorySegment GuiDisable$address() { + return GuiDisable.ADDR; } /** * {@snippet lang=c : - * float Vector3LengthSqr(const Vector3 v) + * void GuiDisable() * } */ - public static float Vector3LengthSqr(MemorySegment v) { - var mh$ = Vector3LengthSqr.HANDLE; + public static void GuiDisable() { + var mh$ = GuiDisable.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3LengthSqr", v); + traceDowncall("GuiDisable"); } - return (float)mh$.invokeExact(v); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3DotProduct { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector3.layout(), - Vector3.layout() - ); + private static class GuiLock { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3DotProduct"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLock"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35299,58 +18938,54 @@ private static class Vector3DotProduct { /** * Function descriptor for: * {@snippet lang=c : - * float Vector3DotProduct(Vector3 v1, Vector3 v2) + * void GuiLock() * } */ - public static FunctionDescriptor Vector3DotProduct$descriptor() { - return Vector3DotProduct.DESC; + public static FunctionDescriptor GuiLock$descriptor() { + return GuiLock.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector3DotProduct(Vector3 v1, Vector3 v2) + * void GuiLock() * } */ - public static MethodHandle Vector3DotProduct$handle() { - return Vector3DotProduct.HANDLE; + public static MethodHandle GuiLock$handle() { + return GuiLock.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector3DotProduct(Vector3 v1, Vector3 v2) + * void GuiLock() * } */ - public static MemorySegment Vector3DotProduct$address() { - return Vector3DotProduct.ADDR; + public static MemorySegment GuiLock$address() { + return GuiLock.ADDR; } /** * {@snippet lang=c : - * float Vector3DotProduct(Vector3 v1, Vector3 v2) + * void GuiLock() * } */ - public static float Vector3DotProduct(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3DotProduct.HANDLE; + public static void GuiLock() { + var mh$ = GuiLock.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3DotProduct", v1, v2); + traceDowncall("GuiLock"); } - return (float)mh$.invokeExact(v1, v2); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Distance { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector3.layout(), - Vector3.layout() - ); + private static class GuiUnlock { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Distance"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiUnlock"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35358,58 +18993,55 @@ private static class Vector3Distance { /** * Function descriptor for: * {@snippet lang=c : - * float Vector3Distance(Vector3 v1, Vector3 v2) + * void GuiUnlock() * } */ - public static FunctionDescriptor Vector3Distance$descriptor() { - return Vector3Distance.DESC; + public static FunctionDescriptor GuiUnlock$descriptor() { + return GuiUnlock.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector3Distance(Vector3 v1, Vector3 v2) + * void GuiUnlock() * } */ - public static MethodHandle Vector3Distance$handle() { - return Vector3Distance.HANDLE; + public static MethodHandle GuiUnlock$handle() { + return GuiUnlock.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector3Distance(Vector3 v1, Vector3 v2) + * void GuiUnlock() * } */ - public static MemorySegment Vector3Distance$address() { - return Vector3Distance.ADDR; + public static MemorySegment GuiUnlock$address() { + return GuiUnlock.ADDR; } /** * {@snippet lang=c : - * float Vector3Distance(Vector3 v1, Vector3 v2) + * void GuiUnlock() * } */ - public static float Vector3Distance(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Distance.HANDLE; + public static void GuiUnlock() { + var mh$ = GuiUnlock.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Distance", v1, v2); + traceDowncall("GuiUnlock"); } - return (float)mh$.invokeExact(v1, v2); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3DistanceSqr { + private static class GuiIsLocked { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector3.layout(), - Vector3.layout() - ); + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3DistanceSqr"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiIsLocked"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35417,58 +19049,56 @@ private static class Vector3DistanceSqr { /** * Function descriptor for: * {@snippet lang=c : - * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) + * bool GuiIsLocked() * } */ - public static FunctionDescriptor Vector3DistanceSqr$descriptor() { - return Vector3DistanceSqr.DESC; + public static FunctionDescriptor GuiIsLocked$descriptor() { + return GuiIsLocked.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) + * bool GuiIsLocked() * } */ - public static MethodHandle Vector3DistanceSqr$handle() { - return Vector3DistanceSqr.HANDLE; + public static MethodHandle GuiIsLocked$handle() { + return GuiIsLocked.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) + * bool GuiIsLocked() * } */ - public static MemorySegment Vector3DistanceSqr$address() { - return Vector3DistanceSqr.ADDR; + public static MemorySegment GuiIsLocked$address() { + return GuiIsLocked.ADDR; } /** * {@snippet lang=c : - * float Vector3DistanceSqr(Vector3 v1, Vector3 v2) + * bool GuiIsLocked() * } */ - public static float Vector3DistanceSqr(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3DistanceSqr.HANDLE; + public static boolean GuiIsLocked() { + var mh$ = GuiIsLocked.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3DistanceSqr", v1, v2); + traceDowncall("GuiIsLocked"); } - return (float)mh$.invokeExact(v1, v2); + return (boolean)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Angle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector3.layout(), - Vector3.layout() + private static class GuiSetAlpha { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Angle"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSetAlpha"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35476,57 +19106,56 @@ private static class Vector3Angle { /** * Function descriptor for: * {@snippet lang=c : - * float Vector3Angle(Vector3 v1, Vector3 v2) + * void GuiSetAlpha(float alpha) * } */ - public static FunctionDescriptor Vector3Angle$descriptor() { - return Vector3Angle.DESC; + public static FunctionDescriptor GuiSetAlpha$descriptor() { + return GuiSetAlpha.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector3Angle(Vector3 v1, Vector3 v2) + * void GuiSetAlpha(float alpha) * } */ - public static MethodHandle Vector3Angle$handle() { - return Vector3Angle.HANDLE; + public static MethodHandle GuiSetAlpha$handle() { + return GuiSetAlpha.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector3Angle(Vector3 v1, Vector3 v2) + * void GuiSetAlpha(float alpha) * } */ - public static MemorySegment Vector3Angle$address() { - return Vector3Angle.ADDR; + public static MemorySegment GuiSetAlpha$address() { + return GuiSetAlpha.ADDR; } /** * {@snippet lang=c : - * float Vector3Angle(Vector3 v1, Vector3 v2) + * void GuiSetAlpha(float alpha) * } */ - public static float Vector3Angle(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Angle.HANDLE; + public static void GuiSetAlpha(float alpha) { + var mh$ = GuiSetAlpha.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Angle", v1, v2); + traceDowncall("GuiSetAlpha", alpha); } - return (float)mh$.invokeExact(v1, v2); + mh$.invokeExact(alpha); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Negate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout() + private static class GuiSetState { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Negate"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSetState"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35534,58 +19163,55 @@ private static class Vector3Negate { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Negate(Vector3 v) + * void GuiSetState(int state) * } */ - public static FunctionDescriptor Vector3Negate$descriptor() { - return Vector3Negate.DESC; + public static FunctionDescriptor GuiSetState$descriptor() { + return GuiSetState.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Negate(Vector3 v) + * void GuiSetState(int state) * } */ - public static MethodHandle Vector3Negate$handle() { - return Vector3Negate.HANDLE; + public static MethodHandle GuiSetState$handle() { + return GuiSetState.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Negate(Vector3 v) + * void GuiSetState(int state) * } */ - public static MemorySegment Vector3Negate$address() { - return Vector3Negate.ADDR; + public static MemorySegment GuiSetState$address() { + return GuiSetState.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Negate(Vector3 v) + * void GuiSetState(int state) * } */ - public static MemorySegment Vector3Negate(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector3Negate.HANDLE; + public static void GuiSetState(int state) { + var mh$ = GuiSetState.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Negate", allocator, v); + traceDowncall("GuiSetState", state); } - return (MemorySegment)mh$.invokeExact(allocator, v); + mh$.invokeExact(state); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Divide { + private static class GuiGetState { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Divide"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiGetState"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35593,57 +19219,56 @@ private static class Vector3Divide { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) + * int GuiGetState() * } */ - public static FunctionDescriptor Vector3Divide$descriptor() { - return Vector3Divide.DESC; + public static FunctionDescriptor GuiGetState$descriptor() { + return GuiGetState.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) + * int GuiGetState() * } */ - public static MethodHandle Vector3Divide$handle() { - return Vector3Divide.HANDLE; + public static MethodHandle GuiGetState$handle() { + return GuiGetState.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) + * int GuiGetState() * } */ - public static MemorySegment Vector3Divide$address() { - return Vector3Divide.ADDR; + public static MemorySegment GuiGetState$address() { + return GuiGetState.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Divide(Vector3 v1, Vector3 v2) + * int GuiGetState() * } */ - public static MemorySegment Vector3Divide(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Divide.HANDLE; + public static int GuiGetState() { + var mh$ = GuiGetState.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Divide", allocator, v1, v2); + traceDowncall("GuiGetState"); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Normalize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout() + private static class GuiSetFont { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Font.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Normalize"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSetFont"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35651,58 +19276,55 @@ private static class Vector3Normalize { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Normalize(Vector3 v) + * void GuiSetFont(Font font) * } */ - public static FunctionDescriptor Vector3Normalize$descriptor() { - return Vector3Normalize.DESC; + public static FunctionDescriptor GuiSetFont$descriptor() { + return GuiSetFont.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Normalize(Vector3 v) + * void GuiSetFont(Font font) * } */ - public static MethodHandle Vector3Normalize$handle() { - return Vector3Normalize.HANDLE; + public static MethodHandle GuiSetFont$handle() { + return GuiSetFont.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Normalize(Vector3 v) + * void GuiSetFont(Font font) * } */ - public static MemorySegment Vector3Normalize$address() { - return Vector3Normalize.ADDR; + public static MemorySegment GuiSetFont$address() { + return GuiSetFont.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Normalize(Vector3 v) + * void GuiSetFont(Font font) * } */ - public static MemorySegment Vector3Normalize(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector3Normalize.HANDLE; + public static void GuiSetFont(MemorySegment font) { + var mh$ = GuiSetFont.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Normalize", allocator, v); + traceDowncall("GuiSetFont", font); } - return (MemorySegment)mh$.invokeExact(allocator, v); + mh$.invokeExact(font); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Project { + private static class GuiGetFont { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); + Font.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Project"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiGetFont"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35710,58 +19332,58 @@ private static class Vector3Project { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Project(Vector3 v1, Vector3 v2) + * Font GuiGetFont() * } */ - public static FunctionDescriptor Vector3Project$descriptor() { - return Vector3Project.DESC; + public static FunctionDescriptor GuiGetFont$descriptor() { + return GuiGetFont.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Project(Vector3 v1, Vector3 v2) + * Font GuiGetFont() * } */ - public static MethodHandle Vector3Project$handle() { - return Vector3Project.HANDLE; + public static MethodHandle GuiGetFont$handle() { + return GuiGetFont.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Project(Vector3 v1, Vector3 v2) + * Font GuiGetFont() * } */ - public static MemorySegment Vector3Project$address() { - return Vector3Project.ADDR; + public static MemorySegment GuiGetFont$address() { + return GuiGetFont.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Project(Vector3 v1, Vector3 v2) + * Font GuiGetFont() * } */ - public static MemorySegment Vector3Project(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Project.HANDLE; + public static MemorySegment GuiGetFont(SegmentAllocator allocator) { + var mh$ = GuiGetFont.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Project", allocator, v1, v2); + traceDowncall("GuiGetFont", allocator); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Reject { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() + private static class GuiSetStyle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Reject"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSetStyle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35769,57 +19391,58 @@ private static class Vector3Reject { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) + * void GuiSetStyle(int control, int property, int value) * } */ - public static FunctionDescriptor Vector3Reject$descriptor() { - return Vector3Reject.DESC; + public static FunctionDescriptor GuiSetStyle$descriptor() { + return GuiSetStyle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) + * void GuiSetStyle(int control, int property, int value) * } */ - public static MethodHandle Vector3Reject$handle() { - return Vector3Reject.HANDLE; + public static MethodHandle GuiSetStyle$handle() { + return GuiSetStyle.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) + * void GuiSetStyle(int control, int property, int value) * } */ - public static MemorySegment Vector3Reject$address() { - return Vector3Reject.ADDR; + public static MemorySegment GuiSetStyle$address() { + return GuiSetStyle.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Reject(Vector3 v1, Vector3 v2) + * void GuiSetStyle(int control, int property, int value) * } */ - public static MemorySegment Vector3Reject(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Reject.HANDLE; + public static void GuiSetStyle(int control, int property, int value) { + var mh$ = GuiSetStyle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Reject", allocator, v1, v2); + traceDowncall("GuiSetStyle", control, property, value); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + mh$.invokeExact(control, property, value); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3OrthoNormalize { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_POINTER + private static class GuiGetStyle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3OrthoNormalize"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiGetStyle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35827,58 +19450,56 @@ private static class Vector3OrthoNormalize { /** * Function descriptor for: * {@snippet lang=c : - * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) + * int GuiGetStyle(int control, int property) * } */ - public static FunctionDescriptor Vector3OrthoNormalize$descriptor() { - return Vector3OrthoNormalize.DESC; + public static FunctionDescriptor GuiGetStyle$descriptor() { + return GuiGetStyle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) + * int GuiGetStyle(int control, int property) * } */ - public static MethodHandle Vector3OrthoNormalize$handle() { - return Vector3OrthoNormalize.HANDLE; + public static MethodHandle GuiGetStyle$handle() { + return GuiGetStyle.HANDLE; } /** * Address for: * {@snippet lang=c : - * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) + * int GuiGetStyle(int control, int property) * } */ - public static MemorySegment Vector3OrthoNormalize$address() { - return Vector3OrthoNormalize.ADDR; + public static MemorySegment GuiGetStyle$address() { + return GuiGetStyle.ADDR; } /** * {@snippet lang=c : - * void Vector3OrthoNormalize(Vector3 *v1, Vector3 *v2) + * int GuiGetStyle(int control, int property) * } */ - public static void Vector3OrthoNormalize(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3OrthoNormalize.HANDLE; + public static int GuiGetStyle(int control, int property) { + var mh$ = GuiGetStyle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3OrthoNormalize", v1, v2); + traceDowncall("GuiGetStyle", control, property); } - mh$.invokeExact(v1, v2); + return (int)mh$.invokeExact(control, property); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Transform { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Matrix.layout() + private static class GuiLoadStyle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Transform"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLoadStyle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35886,58 +19507,54 @@ private static class Vector3Transform { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Transform(Vector3 v, Matrix mat) + * void GuiLoadStyle(const char *fileName) * } */ - public static FunctionDescriptor Vector3Transform$descriptor() { - return Vector3Transform.DESC; + public static FunctionDescriptor GuiLoadStyle$descriptor() { + return GuiLoadStyle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Transform(Vector3 v, Matrix mat) + * void GuiLoadStyle(const char *fileName) * } */ - public static MethodHandle Vector3Transform$handle() { - return Vector3Transform.HANDLE; + public static MethodHandle GuiLoadStyle$handle() { + return GuiLoadStyle.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Transform(Vector3 v, Matrix mat) + * void GuiLoadStyle(const char *fileName) * } */ - public static MemorySegment Vector3Transform$address() { - return Vector3Transform.ADDR; + public static MemorySegment GuiLoadStyle$address() { + return GuiLoadStyle.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Transform(Vector3 v, Matrix mat) + * void GuiLoadStyle(const char *fileName) * } */ - public static MemorySegment Vector3Transform(SegmentAllocator allocator, MemorySegment v, MemorySegment mat) { - var mh$ = Vector3Transform.HANDLE; + public static void GuiLoadStyle(MemorySegment fileName) { + var mh$ = GuiLoadStyle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Transform", allocator, v, mat); + traceDowncall("GuiLoadStyle", fileName); } - return (MemorySegment)mh$.invokeExact(allocator, v, mat); + mh$.invokeExact(fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3RotateByQuaternion { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector4.layout() - ); + private static class GuiLoadStyleDefault { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3RotateByQuaternion"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLoadStyleDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -35945,59 +19562,54 @@ private static class Vector3RotateByQuaternion { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) + * void GuiLoadStyleDefault() * } */ - public static FunctionDescriptor Vector3RotateByQuaternion$descriptor() { - return Vector3RotateByQuaternion.DESC; + public static FunctionDescriptor GuiLoadStyleDefault$descriptor() { + return GuiLoadStyleDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) + * void GuiLoadStyleDefault() * } */ - public static MethodHandle Vector3RotateByQuaternion$handle() { - return Vector3RotateByQuaternion.HANDLE; + public static MethodHandle GuiLoadStyleDefault$handle() { + return GuiLoadStyleDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) + * void GuiLoadStyleDefault() * } */ - public static MemorySegment Vector3RotateByQuaternion$address() { - return Vector3RotateByQuaternion.ADDR; + public static MemorySegment GuiLoadStyleDefault$address() { + return GuiLoadStyleDefault.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q) + * void GuiLoadStyleDefault() * } */ - public static MemorySegment Vector3RotateByQuaternion(SegmentAllocator allocator, MemorySegment v, MemorySegment q) { - var mh$ = Vector3RotateByQuaternion.HANDLE; + public static void GuiLoadStyleDefault() { + var mh$ = GuiLoadStyleDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3RotateByQuaternion", allocator, v, q); + traceDowncall("GuiLoadStyleDefault"); } - return (MemorySegment)mh$.invokeExact(allocator, v, q); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3RotateByAxisAngle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); + private static class GuiEnableTooltip { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3RotateByAxisAngle"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiEnableTooltip"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36005,59 +19617,54 @@ private static class Vector3RotateByAxisAngle { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) + * void GuiEnableTooltip() * } */ - public static FunctionDescriptor Vector3RotateByAxisAngle$descriptor() { - return Vector3RotateByAxisAngle.DESC; + public static FunctionDescriptor GuiEnableTooltip$descriptor() { + return GuiEnableTooltip.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) + * void GuiEnableTooltip() * } */ - public static MethodHandle Vector3RotateByAxisAngle$handle() { - return Vector3RotateByAxisAngle.HANDLE; + public static MethodHandle GuiEnableTooltip$handle() { + return GuiEnableTooltip.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) + * void GuiEnableTooltip() * } - */ - public static MemorySegment Vector3RotateByAxisAngle$address() { - return Vector3RotateByAxisAngle.ADDR; + */ + public static MemorySegment GuiEnableTooltip$address() { + return GuiEnableTooltip.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle) + * void GuiEnableTooltip() * } */ - public static MemorySegment Vector3RotateByAxisAngle(SegmentAllocator allocator, MemorySegment v, MemorySegment axis, float angle) { - var mh$ = Vector3RotateByAxisAngle.HANDLE; + public static void GuiEnableTooltip() { + var mh$ = GuiEnableTooltip.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3RotateByAxisAngle", allocator, v, axis, angle); + traceDowncall("GuiEnableTooltip"); } - return (MemorySegment)mh$.invokeExact(allocator, v, axis, angle); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3MoveTowards { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); + private static class GuiDisableTooltip { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3MoveTowards"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiDisableTooltip"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36065,59 +19672,56 @@ private static class Vector3MoveTowards { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) + * void GuiDisableTooltip() * } */ - public static FunctionDescriptor Vector3MoveTowards$descriptor() { - return Vector3MoveTowards.DESC; + public static FunctionDescriptor GuiDisableTooltip$descriptor() { + return GuiDisableTooltip.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) + * void GuiDisableTooltip() * } */ - public static MethodHandle Vector3MoveTowards$handle() { - return Vector3MoveTowards.HANDLE; + public static MethodHandle GuiDisableTooltip$handle() { + return GuiDisableTooltip.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) + * void GuiDisableTooltip() * } */ - public static MemorySegment Vector3MoveTowards$address() { - return Vector3MoveTowards.ADDR; + public static MemorySegment GuiDisableTooltip$address() { + return GuiDisableTooltip.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance) + * void GuiDisableTooltip() * } */ - public static MemorySegment Vector3MoveTowards(SegmentAllocator allocator, MemorySegment v, MemorySegment target, float maxDistance) { - var mh$ = Vector3MoveTowards.HANDLE; + public static void GuiDisableTooltip() { + var mh$ = GuiDisableTooltip.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3MoveTowards", allocator, v, target, maxDistance); + traceDowncall("GuiDisableTooltip"); } - return (MemorySegment)mh$.invokeExact(allocator, v, target, maxDistance); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Lerp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT + private static class GuiSetTooltip { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Lerp"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSetTooltip"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36125,61 +19729,58 @@ private static class Vector3Lerp { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) + * void GuiSetTooltip(const char *tooltip) * } */ - public static FunctionDescriptor Vector3Lerp$descriptor() { - return Vector3Lerp.DESC; + public static FunctionDescriptor GuiSetTooltip$descriptor() { + return GuiSetTooltip.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) + * void GuiSetTooltip(const char *tooltip) * } */ - public static MethodHandle Vector3Lerp$handle() { - return Vector3Lerp.HANDLE; + public static MethodHandle GuiSetTooltip$handle() { + return GuiSetTooltip.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) + * void GuiSetTooltip(const char *tooltip) * } */ - public static MemorySegment Vector3Lerp$address() { - return Vector3Lerp.ADDR; + public static MemorySegment GuiSetTooltip$address() { + return GuiSetTooltip.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount) + * void GuiSetTooltip(const char *tooltip) * } */ - public static MemorySegment Vector3Lerp(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2, float amount) { - var mh$ = Vector3Lerp.HANDLE; + public static void GuiSetTooltip(MemorySegment tooltip) { + var mh$ = GuiSetTooltip.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Lerp", allocator, v1, v2, amount); + traceDowncall("GuiSetTooltip", tooltip); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2, amount); + mh$.invokeExact(tooltip); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3CubicHermite { + private static class GuiIconText { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3CubicHermite"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiIconText"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36187,58 +19788,56 @@ private static class Vector3CubicHermite { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) + * const char *GuiIconText(int iconId, const char *text) * } */ - public static FunctionDescriptor Vector3CubicHermite$descriptor() { - return Vector3CubicHermite.DESC; + public static FunctionDescriptor GuiIconText$descriptor() { + return GuiIconText.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) + * const char *GuiIconText(int iconId, const char *text) * } */ - public static MethodHandle Vector3CubicHermite$handle() { - return Vector3CubicHermite.HANDLE; + public static MethodHandle GuiIconText$handle() { + return GuiIconText.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) + * const char *GuiIconText(int iconId, const char *text) * } */ - public static MemorySegment Vector3CubicHermite$address() { - return Vector3CubicHermite.ADDR; + public static MemorySegment GuiIconText$address() { + return GuiIconText.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount) + * const char *GuiIconText(int iconId, const char *text) * } */ - public static MemorySegment Vector3CubicHermite(SegmentAllocator allocator, MemorySegment v1, MemorySegment tangent1, MemorySegment v2, MemorySegment tangent2, float amount) { - var mh$ = Vector3CubicHermite.HANDLE; + public static MemorySegment GuiIconText(int iconId, MemorySegment text) { + var mh$ = GuiIconText.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3CubicHermite", allocator, v1, tangent1, v2, tangent2, amount); + traceDowncall("GuiIconText", iconId, text); } - return (MemorySegment)mh$.invokeExact(allocator, v1, tangent1, v2, tangent2, amount); + return (MemorySegment)mh$.invokeExact(iconId, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Reflect { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() + private static class GuiSetIconScale { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Reflect"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSetIconScale"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36246,58 +19845,55 @@ private static class Vector3Reflect { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) + * void GuiSetIconScale(int scale) * } */ - public static FunctionDescriptor Vector3Reflect$descriptor() { - return Vector3Reflect.DESC; + public static FunctionDescriptor GuiSetIconScale$descriptor() { + return GuiSetIconScale.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) + * void GuiSetIconScale(int scale) * } */ - public static MethodHandle Vector3Reflect$handle() { - return Vector3Reflect.HANDLE; + public static MethodHandle GuiSetIconScale$handle() { + return GuiSetIconScale.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) + * void GuiSetIconScale(int scale) * } */ - public static MemorySegment Vector3Reflect$address() { - return Vector3Reflect.ADDR; + public static MemorySegment GuiSetIconScale$address() { + return GuiSetIconScale.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Reflect(Vector3 v, Vector3 normal) + * void GuiSetIconScale(int scale) * } */ - public static MemorySegment Vector3Reflect(SegmentAllocator allocator, MemorySegment v, MemorySegment normal) { - var mh$ = Vector3Reflect.HANDLE; + public static void GuiSetIconScale(int scale) { + var mh$ = GuiSetIconScale.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Reflect", allocator, v, normal); + traceDowncall("GuiSetIconScale", scale); } - return (MemorySegment)mh$.invokeExact(allocator, v, normal); + mh$.invokeExact(scale); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Min { + private static class GuiGetIcons { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Min"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiGetIcons"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36305,58 +19901,58 @@ private static class Vector3Min { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Min(Vector3 v1, Vector3 v2) + * unsigned int *GuiGetIcons() * } */ - public static FunctionDescriptor Vector3Min$descriptor() { - return Vector3Min.DESC; + public static FunctionDescriptor GuiGetIcons$descriptor() { + return GuiGetIcons.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Min(Vector3 v1, Vector3 v2) + * unsigned int *GuiGetIcons() * } */ - public static MethodHandle Vector3Min$handle() { - return Vector3Min.HANDLE; + public static MethodHandle GuiGetIcons$handle() { + return GuiGetIcons.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Min(Vector3 v1, Vector3 v2) + * unsigned int *GuiGetIcons() * } */ - public static MemorySegment Vector3Min$address() { - return Vector3Min.ADDR; + public static MemorySegment GuiGetIcons$address() { + return GuiGetIcons.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Min(Vector3 v1, Vector3 v2) + * unsigned int *GuiGetIcons() * } */ - public static MemorySegment Vector3Min(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Min.HANDLE; + public static MemorySegment GuiGetIcons() { + var mh$ = GuiGetIcons.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Min", allocator, v1, v2); + traceDowncall("GuiGetIcons"); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Max { + private static class GuiLoadIcons { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout() + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Max"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLoadIcons"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36364,60 +19960,60 @@ private static class Vector3Max { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Max(Vector3 v1, Vector3 v2) + * char **GuiLoadIcons(const char *fileName, bool loadIconsName) * } */ - public static FunctionDescriptor Vector3Max$descriptor() { - return Vector3Max.DESC; + public static FunctionDescriptor GuiLoadIcons$descriptor() { + return GuiLoadIcons.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Max(Vector3 v1, Vector3 v2) + * char **GuiLoadIcons(const char *fileName, bool loadIconsName) * } */ - public static MethodHandle Vector3Max$handle() { - return Vector3Max.HANDLE; + public static MethodHandle GuiLoadIcons$handle() { + return GuiLoadIcons.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Max(Vector3 v1, Vector3 v2) + * char **GuiLoadIcons(const char *fileName, bool loadIconsName) * } */ - public static MemorySegment Vector3Max$address() { - return Vector3Max.ADDR; + public static MemorySegment GuiLoadIcons$address() { + return GuiLoadIcons.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Max(Vector3 v1, Vector3 v2) + * char **GuiLoadIcons(const char *fileName, bool loadIconsName) * } */ - public static MemorySegment Vector3Max(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector3Max.HANDLE; + public static MemorySegment GuiLoadIcons(MemorySegment fileName, boolean loadIconsName) { + var mh$ = GuiLoadIcons.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Max", allocator, v1, v2); + traceDowncall("GuiLoadIcons", fileName, loadIconsName); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (MemorySegment)mh$.invokeExact(fileName, loadIconsName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Barycenter { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout() + private static class GuiDrawIcon { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Barycenter"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiDrawIcon"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36425,59 +20021,58 @@ private static class Vector3Barycenter { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) + * void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color) * } */ - public static FunctionDescriptor Vector3Barycenter$descriptor() { - return Vector3Barycenter.DESC; + public static FunctionDescriptor GuiDrawIcon$descriptor() { + return GuiDrawIcon.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) + * void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color) * } */ - public static MethodHandle Vector3Barycenter$handle() { - return Vector3Barycenter.HANDLE; + public static MethodHandle GuiDrawIcon$handle() { + return GuiDrawIcon.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) + * void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color) * } */ - public static MemorySegment Vector3Barycenter$address() { - return Vector3Barycenter.ADDR; + public static MemorySegment GuiDrawIcon$address() { + return GuiDrawIcon.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c) + * void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color) * } */ - public static MemorySegment Vector3Barycenter(SegmentAllocator allocator, MemorySegment p, MemorySegment a, MemorySegment b, MemorySegment c) { - var mh$ = Vector3Barycenter.HANDLE; + public static void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, MemorySegment color) { + var mh$ = GuiDrawIcon.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Barycenter", allocator, p, a, b, c); + traceDowncall("GuiDrawIcon", iconId, posX, posY, pixelSize, color); } - return (MemorySegment)mh$.invokeExact(allocator, p, a, b, c); + mh$.invokeExact(iconId, posX, posY, pixelSize, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Unproject { + private static class GuiWindowBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Matrix.layout(), - Matrix.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Unproject"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiWindowBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36485,57 +20080,58 @@ private static class Vector3Unproject { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) + * int GuiWindowBox(Rectangle bounds, const char *title) * } */ - public static FunctionDescriptor Vector3Unproject$descriptor() { - return Vector3Unproject.DESC; + public static FunctionDescriptor GuiWindowBox$descriptor() { + return GuiWindowBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) + * int GuiWindowBox(Rectangle bounds, const char *title) * } */ - public static MethodHandle Vector3Unproject$handle() { - return Vector3Unproject.HANDLE; + public static MethodHandle GuiWindowBox$handle() { + return GuiWindowBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) + * int GuiWindowBox(Rectangle bounds, const char *title) * } */ - public static MemorySegment Vector3Unproject$address() { - return Vector3Unproject.ADDR; + public static MemorySegment GuiWindowBox$address() { + return GuiWindowBox.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) + * int GuiWindowBox(Rectangle bounds, const char *title) * } */ - public static MemorySegment Vector3Unproject(SegmentAllocator allocator, MemorySegment source, MemorySegment projection, MemorySegment view) { - var mh$ = Vector3Unproject.HANDLE; + public static int GuiWindowBox(MemorySegment bounds, MemorySegment title) { + var mh$ = GuiWindowBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Unproject", allocator, source, projection, view); + traceDowncall("GuiWindowBox", bounds, title); } - return (MemorySegment)mh$.invokeExact(allocator, source, projection, view); + return (int)mh$.invokeExact(bounds, title); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3ToFloatV { + private static class GuiGroupBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - float3.layout(), - Vector3.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3ToFloatV"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiGroupBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36543,57 +20139,58 @@ private static class Vector3ToFloatV { /** * Function descriptor for: * {@snippet lang=c : - * float3 Vector3ToFloatV(Vector3 v) + * int GuiGroupBox(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector3ToFloatV$descriptor() { - return Vector3ToFloatV.DESC; + public static FunctionDescriptor GuiGroupBox$descriptor() { + return GuiGroupBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float3 Vector3ToFloatV(Vector3 v) + * int GuiGroupBox(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector3ToFloatV$handle() { - return Vector3ToFloatV.HANDLE; + public static MethodHandle GuiGroupBox$handle() { + return GuiGroupBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * float3 Vector3ToFloatV(Vector3 v) + * int GuiGroupBox(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3ToFloatV$address() { - return Vector3ToFloatV.ADDR; + public static MemorySegment GuiGroupBox$address() { + return GuiGroupBox.ADDR; } /** * {@snippet lang=c : - * float3 Vector3ToFloatV(Vector3 v) + * int GuiGroupBox(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3ToFloatV(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector3ToFloatV.HANDLE; + public static int GuiGroupBox(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiGroupBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3ToFloatV", allocator, v); + traceDowncall("GuiGroupBox", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Invert { + private static class GuiLine { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Invert"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLine"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36601,59 +20198,58 @@ private static class Vector3Invert { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Invert(Vector3 v) + * int GuiLine(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector3Invert$descriptor() { - return Vector3Invert.DESC; + public static FunctionDescriptor GuiLine$descriptor() { + return GuiLine.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Invert(Vector3 v) + * int GuiLine(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector3Invert$handle() { - return Vector3Invert.HANDLE; + public static MethodHandle GuiLine$handle() { + return GuiLine.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Invert(Vector3 v) + * int GuiLine(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3Invert$address() { - return Vector3Invert.ADDR; + public static MemorySegment GuiLine$address() { + return GuiLine.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Invert(Vector3 v) + * int GuiLine(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3Invert(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector3Invert.HANDLE; + public static int GuiLine(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiLine.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Invert", allocator, v); + traceDowncall("GuiLine", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Clamp { + private static class GuiPanel { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Clamp"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiPanel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36661,59 +20257,60 @@ private static class Vector3Clamp { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) + * int GuiPanel(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector3Clamp$descriptor() { - return Vector3Clamp.DESC; + public static FunctionDescriptor GuiPanel$descriptor() { + return GuiPanel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) + * int GuiPanel(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector3Clamp$handle() { - return Vector3Clamp.HANDLE; + public static MethodHandle GuiPanel$handle() { + return GuiPanel.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) + * int GuiPanel(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3Clamp$address() { - return Vector3Clamp.ADDR; + public static MemorySegment GuiPanel$address() { + return GuiPanel.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max) + * int GuiPanel(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3Clamp(SegmentAllocator allocator, MemorySegment v, MemorySegment min, MemorySegment max) { - var mh$ = Vector3Clamp.HANDLE; + public static int GuiPanel(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiPanel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Clamp", allocator, v, min, max); + traceDowncall("GuiPanel", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator, v, min, max); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3ClampValue { + private static class GuiTabBar { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3ClampValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiTabBar"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36721,58 +20318,61 @@ private static class Vector3ClampValue { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3ClampValue(Vector3 v, float min, float max) + * int GuiTabBar(Rectangle bounds, const char **text, int count, int *active) * } */ - public static FunctionDescriptor Vector3ClampValue$descriptor() { - return Vector3ClampValue.DESC; + public static FunctionDescriptor GuiTabBar$descriptor() { + return GuiTabBar.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3ClampValue(Vector3 v, float min, float max) + * int GuiTabBar(Rectangle bounds, const char **text, int count, int *active) * } */ - public static MethodHandle Vector3ClampValue$handle() { - return Vector3ClampValue.HANDLE; + public static MethodHandle GuiTabBar$handle() { + return GuiTabBar.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3ClampValue(Vector3 v, float min, float max) + * int GuiTabBar(Rectangle bounds, const char **text, int count, int *active) * } */ - public static MemorySegment Vector3ClampValue$address() { - return Vector3ClampValue.ADDR; + public static MemorySegment GuiTabBar$address() { + return GuiTabBar.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3ClampValue(Vector3 v, float min, float max) + * int GuiTabBar(Rectangle bounds, const char **text, int count, int *active) * } */ - public static MemorySegment Vector3ClampValue(SegmentAllocator allocator, MemorySegment v, float min, float max) { - var mh$ = Vector3ClampValue.HANDLE; + public static int GuiTabBar(MemorySegment bounds, MemorySegment text, int count, MemorySegment active) { + var mh$ = GuiTabBar.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3ClampValue", allocator, v, min, max); + traceDowncall("GuiTabBar", bounds, text, count, active); } - return (MemorySegment)mh$.invokeExact(allocator, v, min, max); + return (int)mh$.invokeExact(bounds, text, count, active); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Equals { + private static class GuiScrollPanel { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, - Vector3.layout(), - Vector3.layout() + Rectangle.layout(), + raylib.C_POINTER, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Equals"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiScrollPanel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36780,59 +20380,58 @@ private static class Vector3Equals { /** * Function descriptor for: * {@snippet lang=c : - * int Vector3Equals(Vector3 p, Vector3 q) + * int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view) * } */ - public static FunctionDescriptor Vector3Equals$descriptor() { - return Vector3Equals.DESC; + public static FunctionDescriptor GuiScrollPanel$descriptor() { + return GuiScrollPanel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int Vector3Equals(Vector3 p, Vector3 q) + * int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view) * } */ - public static MethodHandle Vector3Equals$handle() { - return Vector3Equals.HANDLE; + public static MethodHandle GuiScrollPanel$handle() { + return GuiScrollPanel.HANDLE; } /** * Address for: * {@snippet lang=c : - * int Vector3Equals(Vector3 p, Vector3 q) + * int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view) * } */ - public static MemorySegment Vector3Equals$address() { - return Vector3Equals.ADDR; + public static MemorySegment GuiScrollPanel$address() { + return GuiScrollPanel.ADDR; } /** * {@snippet lang=c : - * int Vector3Equals(Vector3 p, Vector3 q) + * int GuiScrollPanel(Rectangle bounds, const char *text, Rectangle content, Vector2 *scroll, Rectangle *view) * } */ - public static int Vector3Equals(MemorySegment p, MemorySegment q) { - var mh$ = Vector3Equals.HANDLE; + public static int GuiScrollPanel(MemorySegment bounds, MemorySegment text, MemorySegment content, MemorySegment scroll, MemorySegment view) { + var mh$ = GuiScrollPanel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Equals", p, q); + traceDowncall("GuiScrollPanel", bounds, text, content, scroll, view); } - return (int)mh$.invokeExact(p, q); + return (int)mh$.invokeExact(bounds, text, content, scroll, view); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector3Refract { + private static class GuiLabel { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector3.layout(), - Vector3.layout(), - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector3Refract"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLabel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36840,55 +20439,58 @@ private static class Vector3Refract { /** * Function descriptor for: * {@snippet lang=c : - * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) + * int GuiLabel(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector3Refract$descriptor() { - return Vector3Refract.DESC; + public static FunctionDescriptor GuiLabel$descriptor() { + return GuiLabel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) + * int GuiLabel(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector3Refract$handle() { - return Vector3Refract.HANDLE; + public static MethodHandle GuiLabel$handle() { + return GuiLabel.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) + * int GuiLabel(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3Refract$address() { - return Vector3Refract.ADDR; + public static MemorySegment GuiLabel$address() { + return GuiLabel.ADDR; } /** * {@snippet lang=c : - * Vector3 Vector3Refract(Vector3 v, Vector3 n, float r) + * int GuiLabel(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector3Refract(SegmentAllocator allocator, MemorySegment v, MemorySegment n, float r) { - var mh$ = Vector3Refract.HANDLE; + public static int GuiLabel(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiLabel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector3Refract", allocator, v, n, r); + traceDowncall("GuiLabel", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator, v, n, r); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Zero { + private static class GuiButton { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout() ); + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Zero"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiButton"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36896,55 +20498,58 @@ private static class Vector4Zero { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Zero() + * int GuiButton(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector4Zero$descriptor() { - return Vector4Zero.DESC; + public static FunctionDescriptor GuiButton$descriptor() { + return GuiButton.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Zero() + * int GuiButton(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector4Zero$handle() { - return Vector4Zero.HANDLE; + public static MethodHandle GuiButton$handle() { + return GuiButton.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Zero() + * int GuiButton(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4Zero$address() { - return Vector4Zero.ADDR; + public static MemorySegment GuiButton$address() { + return GuiButton.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Zero() + * int GuiButton(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4Zero(SegmentAllocator allocator) { - var mh$ = Vector4Zero.HANDLE; + public static int GuiButton(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiButton.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Zero", allocator); + traceDowncall("GuiButton", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4One { + private static class GuiLabelButton { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout() ); + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4One"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiLabelButton"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -36952,58 +20557,59 @@ private static class Vector4One { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4One() + * int GuiLabelButton(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector4One$descriptor() { - return Vector4One.DESC; + public static FunctionDescriptor GuiLabelButton$descriptor() { + return GuiLabelButton.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4One() + * int GuiLabelButton(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector4One$handle() { - return Vector4One.HANDLE; + public static MethodHandle GuiLabelButton$handle() { + return GuiLabelButton.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4One() + * int GuiLabelButton(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4One$address() { - return Vector4One.ADDR; + public static MemorySegment GuiLabelButton$address() { + return GuiLabelButton.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4One() + * int GuiLabelButton(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4One(SegmentAllocator allocator) { - var mh$ = Vector4One.HANDLE; + public static int GuiLabelButton(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiLabelButton.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4One", allocator); + traceDowncall("GuiLabelButton", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Add { + private static class GuiToggle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Add"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiToggle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37011,58 +20617,59 @@ private static class Vector4Add { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Add(Vector4 v1, Vector4 v2) + * int GuiToggle(Rectangle bounds, const char *text, bool *active) * } */ - public static FunctionDescriptor Vector4Add$descriptor() { - return Vector4Add.DESC; + public static FunctionDescriptor GuiToggle$descriptor() { + return GuiToggle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Add(Vector4 v1, Vector4 v2) + * int GuiToggle(Rectangle bounds, const char *text, bool *active) * } */ - public static MethodHandle Vector4Add$handle() { - return Vector4Add.HANDLE; + public static MethodHandle GuiToggle$handle() { + return GuiToggle.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Add(Vector4 v1, Vector4 v2) + * int GuiToggle(Rectangle bounds, const char *text, bool *active) * } */ - public static MemorySegment Vector4Add$address() { - return Vector4Add.ADDR; + public static MemorySegment GuiToggle$address() { + return GuiToggle.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Add(Vector4 v1, Vector4 v2) + * int GuiToggle(Rectangle bounds, const char *text, bool *active) * } */ - public static MemorySegment Vector4Add(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Add.HANDLE; + public static int GuiToggle(MemorySegment bounds, MemorySegment text, MemorySegment active) { + var mh$ = GuiToggle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Add", allocator, v1, v2); + traceDowncall("GuiToggle", bounds, text, active); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(bounds, text, active); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4AddValue { + private static class GuiToggleGroup { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4AddValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiToggleGroup"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37070,58 +20677,59 @@ private static class Vector4AddValue { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4AddValue(Vector4 v, float add) + * int GuiToggleGroup(Rectangle bounds, const char *text, int *active) * } */ - public static FunctionDescriptor Vector4AddValue$descriptor() { - return Vector4AddValue.DESC; + public static FunctionDescriptor GuiToggleGroup$descriptor() { + return GuiToggleGroup.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4AddValue(Vector4 v, float add) + * int GuiToggleGroup(Rectangle bounds, const char *text, int *active) * } */ - public static MethodHandle Vector4AddValue$handle() { - return Vector4AddValue.HANDLE; + public static MethodHandle GuiToggleGroup$handle() { + return GuiToggleGroup.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4AddValue(Vector4 v, float add) + * int GuiToggleGroup(Rectangle bounds, const char *text, int *active) * } */ - public static MemorySegment Vector4AddValue$address() { - return Vector4AddValue.ADDR; + public static MemorySegment GuiToggleGroup$address() { + return GuiToggleGroup.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4AddValue(Vector4 v, float add) + * int GuiToggleGroup(Rectangle bounds, const char *text, int *active) * } */ - public static MemorySegment Vector4AddValue(SegmentAllocator allocator, MemorySegment v, float add) { - var mh$ = Vector4AddValue.HANDLE; + public static int GuiToggleGroup(MemorySegment bounds, MemorySegment text, MemorySegment active) { + var mh$ = GuiToggleGroup.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4AddValue", allocator, v, add); + traceDowncall("GuiToggleGroup", bounds, text, active); } - return (MemorySegment)mh$.invokeExact(allocator, v, add); + return (int)mh$.invokeExact(bounds, text, active); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Subtract { + private static class GuiToggleSlider { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Subtract"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiToggleSlider"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37129,58 +20737,59 @@ private static class Vector4Subtract { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) + * int GuiToggleSlider(Rectangle bounds, const char *text, int *active) * } */ - public static FunctionDescriptor Vector4Subtract$descriptor() { - return Vector4Subtract.DESC; + public static FunctionDescriptor GuiToggleSlider$descriptor() { + return GuiToggleSlider.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) + * int GuiToggleSlider(Rectangle bounds, const char *text, int *active) * } */ - public static MethodHandle Vector4Subtract$handle() { - return Vector4Subtract.HANDLE; + public static MethodHandle GuiToggleSlider$handle() { + return GuiToggleSlider.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) + * int GuiToggleSlider(Rectangle bounds, const char *text, int *active) * } */ - public static MemorySegment Vector4Subtract$address() { - return Vector4Subtract.ADDR; + public static MemorySegment GuiToggleSlider$address() { + return GuiToggleSlider.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Subtract(Vector4 v1, Vector4 v2) + * int GuiToggleSlider(Rectangle bounds, const char *text, int *active) * } */ - public static MemorySegment Vector4Subtract(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Subtract.HANDLE; + public static int GuiToggleSlider(MemorySegment bounds, MemorySegment text, MemorySegment active) { + var mh$ = GuiToggleSlider.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Subtract", allocator, v1, v2); + traceDowncall("GuiToggleSlider", bounds, text, active); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(bounds, text, active); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4SubtractValue { + private static class GuiCheckBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4SubtractValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiCheckBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37188,57 +20797,59 @@ private static class Vector4SubtractValue { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4SubtractValue(Vector4 v, float add) + * int GuiCheckBox(Rectangle bounds, const char *text, bool *checked) * } */ - public static FunctionDescriptor Vector4SubtractValue$descriptor() { - return Vector4SubtractValue.DESC; + public static FunctionDescriptor GuiCheckBox$descriptor() { + return GuiCheckBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4SubtractValue(Vector4 v, float add) + * int GuiCheckBox(Rectangle bounds, const char *text, bool *checked) * } */ - public static MethodHandle Vector4SubtractValue$handle() { - return Vector4SubtractValue.HANDLE; + public static MethodHandle GuiCheckBox$handle() { + return GuiCheckBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4SubtractValue(Vector4 v, float add) + * int GuiCheckBox(Rectangle bounds, const char *text, bool *checked) * } */ - public static MemorySegment Vector4SubtractValue$address() { - return Vector4SubtractValue.ADDR; + public static MemorySegment GuiCheckBox$address() { + return GuiCheckBox.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4SubtractValue(Vector4 v, float add) + * int GuiCheckBox(Rectangle bounds, const char *text, bool *checked) * } */ - public static MemorySegment Vector4SubtractValue(SegmentAllocator allocator, MemorySegment v, float add) { - var mh$ = Vector4SubtractValue.HANDLE; + public static int GuiCheckBox(MemorySegment bounds, MemorySegment text, MemorySegment checked) { + var mh$ = GuiCheckBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4SubtractValue", allocator, v, add); + traceDowncall("GuiCheckBox", bounds, text, checked); } - return (MemorySegment)mh$.invokeExact(allocator, v, add); + return (int)mh$.invokeExact(bounds, text, checked); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Length { + private static class GuiComboBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Length"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiComboBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37246,57 +20857,60 @@ private static class Vector4Length { /** * Function descriptor for: * {@snippet lang=c : - * float Vector4Length(Vector4 v) + * int GuiComboBox(Rectangle bounds, const char *text, int *active) * } */ - public static FunctionDescriptor Vector4Length$descriptor() { - return Vector4Length.DESC; + public static FunctionDescriptor GuiComboBox$descriptor() { + return GuiComboBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector4Length(Vector4 v) + * int GuiComboBox(Rectangle bounds, const char *text, int *active) * } */ - public static MethodHandle Vector4Length$handle() { - return Vector4Length.HANDLE; + public static MethodHandle GuiComboBox$handle() { + return GuiComboBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector4Length(Vector4 v) + * int GuiComboBox(Rectangle bounds, const char *text, int *active) * } */ - public static MemorySegment Vector4Length$address() { - return Vector4Length.ADDR; + public static MemorySegment GuiComboBox$address() { + return GuiComboBox.ADDR; } /** * {@snippet lang=c : - * float Vector4Length(Vector4 v) + * int GuiComboBox(Rectangle bounds, const char *text, int *active) * } */ - public static float Vector4Length(MemorySegment v) { - var mh$ = Vector4Length.HANDLE; + public static int GuiComboBox(MemorySegment bounds, MemorySegment text, MemorySegment active) { + var mh$ = GuiComboBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Length", v); + traceDowncall("GuiComboBox", bounds, text, active); } - return (float)mh$.invokeExact(v); + return (int)mh$.invokeExact(bounds, text, active); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4LengthSqr { + private static class GuiDropdownBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4LengthSqr"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiDropdownBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37304,58 +20918,62 @@ private static class Vector4LengthSqr { /** * Function descriptor for: * {@snippet lang=c : - * float Vector4LengthSqr(Vector4 v) + * int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode) * } */ - public static FunctionDescriptor Vector4LengthSqr$descriptor() { - return Vector4LengthSqr.DESC; + public static FunctionDescriptor GuiDropdownBox$descriptor() { + return GuiDropdownBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector4LengthSqr(Vector4 v) + * int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode) * } */ - public static MethodHandle Vector4LengthSqr$handle() { - return Vector4LengthSqr.HANDLE; + public static MethodHandle GuiDropdownBox$handle() { + return GuiDropdownBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector4LengthSqr(Vector4 v) + * int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode) * } */ - public static MemorySegment Vector4LengthSqr$address() { - return Vector4LengthSqr.ADDR; + public static MemorySegment GuiDropdownBox$address() { + return GuiDropdownBox.ADDR; } /** * {@snippet lang=c : - * float Vector4LengthSqr(Vector4 v) + * int GuiDropdownBox(Rectangle bounds, const char *text, int *active, bool editMode) * } */ - public static float Vector4LengthSqr(MemorySegment v) { - var mh$ = Vector4LengthSqr.HANDLE; + public static int GuiDropdownBox(MemorySegment bounds, MemorySegment text, MemorySegment active, boolean editMode) { + var mh$ = GuiDropdownBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4LengthSqr", v); + traceDowncall("GuiDropdownBox", bounds, text, active, editMode); } - return (float)mh$.invokeExact(v); + return (int)mh$.invokeExact(bounds, text, active, editMode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4DotProduct { + private static class GuiSpinner { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4DotProduct"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSpinner"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37363,58 +20981,62 @@ private static class Vector4DotProduct { /** * Function descriptor for: * {@snippet lang=c : - * float Vector4DotProduct(Vector4 v1, Vector4 v2) + * int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static FunctionDescriptor Vector4DotProduct$descriptor() { - return Vector4DotProduct.DESC; + public static FunctionDescriptor GuiSpinner$descriptor() { + return GuiSpinner.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector4DotProduct(Vector4 v1, Vector4 v2) + * int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static MethodHandle Vector4DotProduct$handle() { - return Vector4DotProduct.HANDLE; + public static MethodHandle GuiSpinner$handle() { + return GuiSpinner.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector4DotProduct(Vector4 v1, Vector4 v2) + * int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static MemorySegment Vector4DotProduct$address() { - return Vector4DotProduct.ADDR; + public static MemorySegment GuiSpinner$address() { + return GuiSpinner.ADDR; } /** * {@snippet lang=c : - * float Vector4DotProduct(Vector4 v1, Vector4 v2) + * int GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static float Vector4DotProduct(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4DotProduct.HANDLE; + public static int GuiSpinner(MemorySegment bounds, MemorySegment text, MemorySegment value, int minValue, int maxValue, boolean editMode) { + var mh$ = GuiSpinner.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4DotProduct", v1, v2); + traceDowncall("GuiSpinner", bounds, text, value, minValue, maxValue, editMode); } - return (float)mh$.invokeExact(v1, v2); + return (int)mh$.invokeExact(bounds, text, value, minValue, maxValue, editMode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Distance { + private static class GuiValueBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Distance"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiValueBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37422,58 +21044,61 @@ private static class Vector4Distance { /** * Function descriptor for: * {@snippet lang=c : - * float Vector4Distance(Vector4 v1, Vector4 v2) + * int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static FunctionDescriptor Vector4Distance$descriptor() { - return Vector4Distance.DESC; + public static FunctionDescriptor GuiValueBox$descriptor() { + return GuiValueBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector4Distance(Vector4 v1, Vector4 v2) + * int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static MethodHandle Vector4Distance$handle() { - return Vector4Distance.HANDLE; + public static MethodHandle GuiValueBox$handle() { + return GuiValueBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector4Distance(Vector4 v1, Vector4 v2) + * int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static MemorySegment Vector4Distance$address() { - return Vector4Distance.ADDR; + public static MemorySegment GuiValueBox$address() { + return GuiValueBox.ADDR; } /** * {@snippet lang=c : - * float Vector4Distance(Vector4 v1, Vector4 v2) + * int GuiValueBox(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode) * } */ - public static float Vector4Distance(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Distance.HANDLE; + public static int GuiValueBox(MemorySegment bounds, MemorySegment text, MemorySegment value, int minValue, int maxValue, boolean editMode) { + var mh$ = GuiValueBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Distance", v1, v2); + traceDowncall("GuiValueBox", bounds, text, value, minValue, maxValue, editMode); } - return (float)mh$.invokeExact(v1, v2); + return (int)mh$.invokeExact(bounds, text, value, minValue, maxValue, editMode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4DistanceSqr { + private static class GuiValueBoxFloat { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4DistanceSqr"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiValueBoxFloat"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37481,58 +21106,60 @@ private static class Vector4DistanceSqr { /** * Function descriptor for: * {@snippet lang=c : - * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) + * int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode) * } */ - public static FunctionDescriptor Vector4DistanceSqr$descriptor() { - return Vector4DistanceSqr.DESC; + public static FunctionDescriptor GuiValueBoxFloat$descriptor() { + return GuiValueBoxFloat.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) + * int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode) * } */ - public static MethodHandle Vector4DistanceSqr$handle() { - return Vector4DistanceSqr.HANDLE; + public static MethodHandle GuiValueBoxFloat$handle() { + return GuiValueBoxFloat.HANDLE; } /** * Address for: * {@snippet lang=c : - * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) + * int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode) * } */ - public static MemorySegment Vector4DistanceSqr$address() { - return Vector4DistanceSqr.ADDR; + public static MemorySegment GuiValueBoxFloat$address() { + return GuiValueBoxFloat.ADDR; } /** * {@snippet lang=c : - * float Vector4DistanceSqr(Vector4 v1, Vector4 v2) + * int GuiValueBoxFloat(Rectangle bounds, const char *text, char *textValue, float *value, bool editMode) * } */ - public static float Vector4DistanceSqr(MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4DistanceSqr.HANDLE; + public static int GuiValueBoxFloat(MemorySegment bounds, MemorySegment text, MemorySegment textValue, MemorySegment value, boolean editMode) { + var mh$ = GuiValueBoxFloat.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4DistanceSqr", v1, v2); + traceDowncall("GuiValueBoxFloat", bounds, text, textValue, value, editMode); } - return (float)mh$.invokeExact(v1, v2); + return (int)mh$.invokeExact(bounds, text, textValue, value, editMode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Scale { + private static class GuiTextBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_INT, + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Scale"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiTextBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37540,58 +21167,62 @@ private static class Vector4Scale { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Scale(Vector4 v, float scale) + * int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) * } */ - public static FunctionDescriptor Vector4Scale$descriptor() { - return Vector4Scale.DESC; + public static FunctionDescriptor GuiTextBox$descriptor() { + return GuiTextBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Scale(Vector4 v, float scale) + * int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) * } */ - public static MethodHandle Vector4Scale$handle() { - return Vector4Scale.HANDLE; + public static MethodHandle GuiTextBox$handle() { + return GuiTextBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Scale(Vector4 v, float scale) + * int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) * } */ - public static MemorySegment Vector4Scale$address() { - return Vector4Scale.ADDR; + public static MemorySegment GuiTextBox$address() { + return GuiTextBox.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Scale(Vector4 v, float scale) + * int GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) * } */ - public static MemorySegment Vector4Scale(SegmentAllocator allocator, MemorySegment v, float scale) { - var mh$ = Vector4Scale.HANDLE; + public static int GuiTextBox(MemorySegment bounds, MemorySegment text, int textSize, boolean editMode) { + var mh$ = GuiTextBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Scale", allocator, v, scale); + traceDowncall("GuiTextBox", bounds, text, textSize, editMode); } - return (MemorySegment)mh$.invokeExact(allocator, v, scale); + return (int)mh$.invokeExact(bounds, text, textSize, editMode); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Multiply { + private static class GuiSlider { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Multiply"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSlider"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37599,57 +21230,62 @@ private static class Vector4Multiply { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) + * int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static FunctionDescriptor Vector4Multiply$descriptor() { - return Vector4Multiply.DESC; + public static FunctionDescriptor GuiSlider$descriptor() { + return GuiSlider.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) + * int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MethodHandle Vector4Multiply$handle() { - return Vector4Multiply.HANDLE; + public static MethodHandle GuiSlider$handle() { + return GuiSlider.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) + * int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MemorySegment Vector4Multiply$address() { - return Vector4Multiply.ADDR; + public static MemorySegment GuiSlider$address() { + return GuiSlider.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Multiply(Vector4 v1, Vector4 v2) + * int GuiSlider(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MemorySegment Vector4Multiply(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Multiply.HANDLE; + public static int GuiSlider(MemorySegment bounds, MemorySegment textLeft, MemorySegment textRight, MemorySegment value, float minValue, float maxValue) { + var mh$ = GuiSlider.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Multiply", allocator, v1, v2); + traceDowncall("GuiSlider", bounds, textLeft, textRight, value, minValue, maxValue); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(bounds, textLeft, textRight, value, minValue, maxValue); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Negate { + private static class GuiSliderBar { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Negate"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSliderBar"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37657,58 +21293,62 @@ private static class Vector4Negate { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Negate(Vector4 v) + * int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static FunctionDescriptor Vector4Negate$descriptor() { - return Vector4Negate.DESC; + public static FunctionDescriptor GuiSliderBar$descriptor() { + return GuiSliderBar.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Negate(Vector4 v) + * int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MethodHandle Vector4Negate$handle() { - return Vector4Negate.HANDLE; + public static MethodHandle GuiSliderBar$handle() { + return GuiSliderBar.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Negate(Vector4 v) + * int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MemorySegment Vector4Negate$address() { - return Vector4Negate.ADDR; + public static MemorySegment GuiSliderBar$address() { + return GuiSliderBar.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Negate(Vector4 v) + * int GuiSliderBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MemorySegment Vector4Negate(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector4Negate.HANDLE; + public static int GuiSliderBar(MemorySegment bounds, MemorySegment textLeft, MemorySegment textRight, MemorySegment value, float minValue, float maxValue) { + var mh$ = GuiSliderBar.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Negate", allocator, v); + traceDowncall("GuiSliderBar", bounds, textLeft, textRight, value, minValue, maxValue); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (int)mh$.invokeExact(bounds, textLeft, textRight, value, minValue, maxValue); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Divide { + private static class GuiProgressBar { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Divide"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiProgressBar"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37716,57 +21356,58 @@ private static class Vector4Divide { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) + * int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static FunctionDescriptor Vector4Divide$descriptor() { - return Vector4Divide.DESC; + public static FunctionDescriptor GuiProgressBar$descriptor() { + return GuiProgressBar.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) + * int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MethodHandle Vector4Divide$handle() { - return Vector4Divide.HANDLE; + public static MethodHandle GuiProgressBar$handle() { + return GuiProgressBar.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) + * int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MemorySegment Vector4Divide$address() { - return Vector4Divide.ADDR; + public static MemorySegment GuiProgressBar$address() { + return GuiProgressBar.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Divide(Vector4 v1, Vector4 v2) + * int GuiProgressBar(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue) * } */ - public static MemorySegment Vector4Divide(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Divide.HANDLE; + public static int GuiProgressBar(MemorySegment bounds, MemorySegment textLeft, MemorySegment textRight, MemorySegment value, float minValue, float maxValue) { + var mh$ = GuiProgressBar.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Divide", allocator, v1, v2); + traceDowncall("GuiProgressBar", bounds, textLeft, textRight, value, minValue, maxValue); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(bounds, textLeft, textRight, value, minValue, maxValue); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Normalize { + private static class GuiStatusBar { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Normalize"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiStatusBar"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37774,58 +21415,58 @@ private static class Vector4Normalize { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Normalize(Vector4 v) + * int GuiStatusBar(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector4Normalize$descriptor() { - return Vector4Normalize.DESC; + public static FunctionDescriptor GuiStatusBar$descriptor() { + return GuiStatusBar.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Normalize(Vector4 v) + * int GuiStatusBar(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector4Normalize$handle() { - return Vector4Normalize.HANDLE; + public static MethodHandle GuiStatusBar$handle() { + return GuiStatusBar.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Normalize(Vector4 v) + * int GuiStatusBar(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4Normalize$address() { - return Vector4Normalize.ADDR; + public static MemorySegment GuiStatusBar$address() { + return GuiStatusBar.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Normalize(Vector4 v) + * int GuiStatusBar(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4Normalize(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector4Normalize.HANDLE; + public static int GuiStatusBar(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiStatusBar.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Normalize", allocator, v); + traceDowncall("GuiStatusBar", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Min { + private static class GuiDummyRec { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Min"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiDummyRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37833,58 +21474,61 @@ private static class Vector4Min { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Min(Vector4 v1, Vector4 v2) + * int GuiDummyRec(Rectangle bounds, const char *text) * } */ - public static FunctionDescriptor Vector4Min$descriptor() { - return Vector4Min.DESC; + public static FunctionDescriptor GuiDummyRec$descriptor() { + return GuiDummyRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Min(Vector4 v1, Vector4 v2) + * int GuiDummyRec(Rectangle bounds, const char *text) * } */ - public static MethodHandle Vector4Min$handle() { - return Vector4Min.HANDLE; + public static MethodHandle GuiDummyRec$handle() { + return GuiDummyRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Min(Vector4 v1, Vector4 v2) + * int GuiDummyRec(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4Min$address() { - return Vector4Min.ADDR; + public static MemorySegment GuiDummyRec$address() { + return GuiDummyRec.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Min(Vector4 v1, Vector4 v2) + * int GuiDummyRec(Rectangle bounds, const char *text) * } */ - public static MemorySegment Vector4Min(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Min.HANDLE; + public static int GuiDummyRec(MemorySegment bounds, MemorySegment text) { + var mh$ = GuiDummyRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Min", allocator, v1, v2); + traceDowncall("GuiDummyRec", bounds, text); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(bounds, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Max { + private static class GuiGrid { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Max"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiGrid"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37892,59 +21536,60 @@ private static class Vector4Max { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Max(Vector4 v1, Vector4 v2) + * int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell) * } */ - public static FunctionDescriptor Vector4Max$descriptor() { - return Vector4Max.DESC; + public static FunctionDescriptor GuiGrid$descriptor() { + return GuiGrid.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Max(Vector4 v1, Vector4 v2) + * int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell) * } */ - public static MethodHandle Vector4Max$handle() { - return Vector4Max.HANDLE; + public static MethodHandle GuiGrid$handle() { + return GuiGrid.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Max(Vector4 v1, Vector4 v2) + * int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell) * } */ - public static MemorySegment Vector4Max$address() { - return Vector4Max.ADDR; + public static MemorySegment GuiGrid$address() { + return GuiGrid.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Max(Vector4 v1, Vector4 v2) + * int GuiGrid(Rectangle bounds, const char *text, float spacing, int subdivs, Vector2 *mouseCell) * } */ - public static MemorySegment Vector4Max(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2) { - var mh$ = Vector4Max.HANDLE; + public static int GuiGrid(MemorySegment bounds, MemorySegment text, float spacing, int subdivs, MemorySegment mouseCell) { + var mh$ = GuiGrid.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Max", allocator, v1, v2); + traceDowncall("GuiGrid", bounds, text, spacing, subdivs, mouseCell); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2); + return (int)mh$.invokeExact(bounds, text, spacing, subdivs, mouseCell); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Lerp { + private static class GuiListView { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Lerp"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiListView"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -37952,59 +21597,62 @@ private static class Vector4Lerp { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) + * int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active) * } */ - public static FunctionDescriptor Vector4Lerp$descriptor() { - return Vector4Lerp.DESC; + public static FunctionDescriptor GuiListView$descriptor() { + return GuiListView.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) + * int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active) * } */ - public static MethodHandle Vector4Lerp$handle() { - return Vector4Lerp.HANDLE; + public static MethodHandle GuiListView$handle() { + return GuiListView.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) + * int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active) * } */ - public static MemorySegment Vector4Lerp$address() { - return Vector4Lerp.ADDR; + public static MemorySegment GuiListView$address() { + return GuiListView.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount) + * int GuiListView(Rectangle bounds, const char *text, int *scrollIndex, int *active) * } */ - public static MemorySegment Vector4Lerp(SegmentAllocator allocator, MemorySegment v1, MemorySegment v2, float amount) { - var mh$ = Vector4Lerp.HANDLE; + public static int GuiListView(MemorySegment bounds, MemorySegment text, MemorySegment scrollIndex, MemorySegment active) { + var mh$ = GuiListView.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Lerp", allocator, v1, v2, amount); + traceDowncall("GuiListView", bounds, text, scrollIndex, active); } - return (MemorySegment)mh$.invokeExact(allocator, v1, v2, amount); + return (int)mh$.invokeExact(bounds, text, scrollIndex, active); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4MoveTowards { + private static class GuiListViewEx { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4MoveTowards"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiListViewEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38012,57 +21660,60 @@ private static class Vector4MoveTowards { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) + * int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus) * } */ - public static FunctionDescriptor Vector4MoveTowards$descriptor() { - return Vector4MoveTowards.DESC; + public static FunctionDescriptor GuiListViewEx$descriptor() { + return GuiListViewEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) + * int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus) * } */ - public static MethodHandle Vector4MoveTowards$handle() { - return Vector4MoveTowards.HANDLE; + public static MethodHandle GuiListViewEx$handle() { + return GuiListViewEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) + * int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus) * } */ - public static MemorySegment Vector4MoveTowards$address() { - return Vector4MoveTowards.ADDR; + public static MemorySegment GuiListViewEx$address() { + return GuiListViewEx.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance) + * int GuiListViewEx(Rectangle bounds, const char **text, int count, int *scrollIndex, int *active, int *focus) * } */ - public static MemorySegment Vector4MoveTowards(SegmentAllocator allocator, MemorySegment v, MemorySegment target, float maxDistance) { - var mh$ = Vector4MoveTowards.HANDLE; + public static int GuiListViewEx(MemorySegment bounds, MemorySegment text, int count, MemorySegment scrollIndex, MemorySegment active, MemorySegment focus) { + var mh$ = GuiListViewEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4MoveTowards", allocator, v, target, maxDistance); + traceDowncall("GuiListViewEx", bounds, text, count, scrollIndex, active, focus); } - return (MemorySegment)mh$.invokeExact(allocator, v, target, maxDistance); + return (int)mh$.invokeExact(bounds, text, count, scrollIndex, active, focus); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Invert { + private static class GuiMessageBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Invert"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiMessageBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38070,58 +21721,63 @@ private static class Vector4Invert { /** * Function descriptor for: * {@snippet lang=c : - * Vector4 Vector4Invert(Vector4 v) + * int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons) * } */ - public static FunctionDescriptor Vector4Invert$descriptor() { - return Vector4Invert.DESC; + public static FunctionDescriptor GuiMessageBox$descriptor() { + return GuiMessageBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector4 Vector4Invert(Vector4 v) + * int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons) * } */ - public static MethodHandle Vector4Invert$handle() { - return Vector4Invert.HANDLE; + public static MethodHandle GuiMessageBox$handle() { + return GuiMessageBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector4 Vector4Invert(Vector4 v) + * int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons) * } */ - public static MemorySegment Vector4Invert$address() { - return Vector4Invert.ADDR; + public static MemorySegment GuiMessageBox$address() { + return GuiMessageBox.ADDR; } /** * {@snippet lang=c : - * Vector4 Vector4Invert(Vector4 v) + * int GuiMessageBox(Rectangle bounds, const char *title, const char *message, const char *buttons) * } */ - public static MemorySegment Vector4Invert(SegmentAllocator allocator, MemorySegment v) { - var mh$ = Vector4Invert.HANDLE; + public static int GuiMessageBox(MemorySegment bounds, MemorySegment title, MemorySegment message, MemorySegment buttons) { + var mh$ = GuiMessageBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Invert", allocator, v); + traceDowncall("GuiMessageBox", bounds, title, message, buttons); } - return (MemorySegment)mh$.invokeExact(allocator, v); + return (int)mh$.invokeExact(bounds, title, message, buttons); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class Vector4Equals { + private static class GuiTextInputBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_INT, - Vector4.layout(), - Vector4.layout() + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("Vector4Equals"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiTextInputBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38129,57 +21785,59 @@ private static class Vector4Equals { /** * Function descriptor for: * {@snippet lang=c : - * int Vector4Equals(Vector4 p, Vector4 q) + * int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive) * } */ - public static FunctionDescriptor Vector4Equals$descriptor() { - return Vector4Equals.DESC; + public static FunctionDescriptor GuiTextInputBox$descriptor() { + return GuiTextInputBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int Vector4Equals(Vector4 p, Vector4 q) + * int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive) * } */ - public static MethodHandle Vector4Equals$handle() { - return Vector4Equals.HANDLE; + public static MethodHandle GuiTextInputBox$handle() { + return GuiTextInputBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * int Vector4Equals(Vector4 p, Vector4 q) + * int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive) * } */ - public static MemorySegment Vector4Equals$address() { - return Vector4Equals.ADDR; + public static MemorySegment GuiTextInputBox$address() { + return GuiTextInputBox.ADDR; } /** * {@snippet lang=c : - * int Vector4Equals(Vector4 p, Vector4 q) + * int GuiTextInputBox(Rectangle bounds, const char *title, const char *message, const char *buttons, char *text, int textMaxSize, bool *secretViewActive) * } */ - public static int Vector4Equals(MemorySegment p, MemorySegment q) { - var mh$ = Vector4Equals.HANDLE; + public static int GuiTextInputBox(MemorySegment bounds, MemorySegment title, MemorySegment message, MemorySegment buttons, MemorySegment text, int textMaxSize, MemorySegment secretViewActive) { + var mh$ = GuiTextInputBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("Vector4Equals", p, q); + traceDowncall("GuiTextInputBox", bounds, title, message, buttons, text, textMaxSize, secretViewActive); } - return (int)mh$.invokeExact(p, q); + return (int)mh$.invokeExact(bounds, title, message, buttons, text, textMaxSize, secretViewActive); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MatrixDeterminant { + private static class GuiColorPicker { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Matrix.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixDeterminant"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiColorPicker"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38187,57 +21845,59 @@ private static class MatrixDeterminant { /** * Function descriptor for: * {@snippet lang=c : - * float MatrixDeterminant(Matrix mat) + * int GuiColorPicker(Rectangle bounds, const char *text, Color *color) * } */ - public static FunctionDescriptor MatrixDeterminant$descriptor() { - return MatrixDeterminant.DESC; + public static FunctionDescriptor GuiColorPicker$descriptor() { + return GuiColorPicker.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float MatrixDeterminant(Matrix mat) + * int GuiColorPicker(Rectangle bounds, const char *text, Color *color) * } */ - public static MethodHandle MatrixDeterminant$handle() { - return MatrixDeterminant.HANDLE; + public static MethodHandle GuiColorPicker$handle() { + return GuiColorPicker.HANDLE; } /** * Address for: * {@snippet lang=c : - * float MatrixDeterminant(Matrix mat) + * int GuiColorPicker(Rectangle bounds, const char *text, Color *color) * } */ - public static MemorySegment MatrixDeterminant$address() { - return MatrixDeterminant.ADDR; + public static MemorySegment GuiColorPicker$address() { + return GuiColorPicker.ADDR; } /** * {@snippet lang=c : - * float MatrixDeterminant(Matrix mat) + * int GuiColorPicker(Rectangle bounds, const char *text, Color *color) * } */ - public static float MatrixDeterminant(MemorySegment mat) { - var mh$ = MatrixDeterminant.HANDLE; + public static int GuiColorPicker(MemorySegment bounds, MemorySegment text, MemorySegment color) { + var mh$ = GuiColorPicker.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MatrixDeterminant", mat); + traceDowncall("GuiColorPicker", bounds, text, color); } - return (float)mh$.invokeExact(mat); + return (int)mh$.invokeExact(bounds, text, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MatrixTrace { + private static class GuiColorPanel { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Matrix.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixTrace"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiColorPanel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38245,57 +21905,59 @@ private static class MatrixTrace { /** * Function descriptor for: * {@snippet lang=c : - * float MatrixTrace(Matrix mat) + * int GuiColorPanel(Rectangle bounds, const char *text, Color *color) * } */ - public static FunctionDescriptor MatrixTrace$descriptor() { - return MatrixTrace.DESC; + public static FunctionDescriptor GuiColorPanel$descriptor() { + return GuiColorPanel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float MatrixTrace(Matrix mat) + * int GuiColorPanel(Rectangle bounds, const char *text, Color *color) * } */ - public static MethodHandle MatrixTrace$handle() { - return MatrixTrace.HANDLE; + public static MethodHandle GuiColorPanel$handle() { + return GuiColorPanel.HANDLE; } /** * Address for: * {@snippet lang=c : - * float MatrixTrace(Matrix mat) + * int GuiColorPanel(Rectangle bounds, const char *text, Color *color) * } */ - public static MemorySegment MatrixTrace$address() { - return MatrixTrace.ADDR; + public static MemorySegment GuiColorPanel$address() { + return GuiColorPanel.ADDR; } /** * {@snippet lang=c : - * float MatrixTrace(Matrix mat) + * int GuiColorPanel(Rectangle bounds, const char *text, Color *color) * } */ - public static float MatrixTrace(MemorySegment mat) { - var mh$ = MatrixTrace.HANDLE; + public static int GuiColorPanel(MemorySegment bounds, MemorySegment text, MemorySegment color) { + var mh$ = GuiColorPanel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MatrixTrace", mat); + traceDowncall("GuiColorPanel", bounds, text, color); } - return (float)mh$.invokeExact(mat); + return (int)mh$.invokeExact(bounds, text, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MatrixTranspose { + private static class GuiColorBarAlpha { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Matrix.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixTranspose"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiColorBarAlpha"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38303,57 +21965,59 @@ private static class MatrixTranspose { /** * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixTranspose(Matrix mat) + * int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha) * } */ - public static FunctionDescriptor MatrixTranspose$descriptor() { - return MatrixTranspose.DESC; + public static FunctionDescriptor GuiColorBarAlpha$descriptor() { + return GuiColorBarAlpha.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixTranspose(Matrix mat) + * int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha) * } */ - public static MethodHandle MatrixTranspose$handle() { - return MatrixTranspose.HANDLE; + public static MethodHandle GuiColorBarAlpha$handle() { + return GuiColorBarAlpha.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix MatrixTranspose(Matrix mat) + * int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha) * } */ - public static MemorySegment MatrixTranspose$address() { - return MatrixTranspose.ADDR; + public static MemorySegment GuiColorBarAlpha$address() { + return GuiColorBarAlpha.ADDR; } /** * {@snippet lang=c : - * Matrix MatrixTranspose(Matrix mat) + * int GuiColorBarAlpha(Rectangle bounds, const char *text, float *alpha) * } */ - public static MemorySegment MatrixTranspose(SegmentAllocator allocator, MemorySegment mat) { - var mh$ = MatrixTranspose.HANDLE; + public static int GuiColorBarAlpha(MemorySegment bounds, MemorySegment text, MemorySegment alpha) { + var mh$ = GuiColorBarAlpha.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MatrixTranspose", allocator, mat); + traceDowncall("GuiColorBarAlpha", bounds, text, alpha); } - return (MemorySegment)mh$.invokeExact(allocator, mat); + return (int)mh$.invokeExact(bounds, text, alpha); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MatrixInvert { + private static class GuiColorBarHue { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Matrix.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixInvert"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiColorBarHue"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38361,55 +22025,59 @@ private static class MatrixInvert { /** * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixInvert(Matrix mat) + * int GuiColorBarHue(Rectangle bounds, const char *text, float *value) * } */ - public static FunctionDescriptor MatrixInvert$descriptor() { - return MatrixInvert.DESC; + public static FunctionDescriptor GuiColorBarHue$descriptor() { + return GuiColorBarHue.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixInvert(Matrix mat) + * int GuiColorBarHue(Rectangle bounds, const char *text, float *value) * } */ - public static MethodHandle MatrixInvert$handle() { - return MatrixInvert.HANDLE; + public static MethodHandle GuiColorBarHue$handle() { + return GuiColorBarHue.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix MatrixInvert(Matrix mat) + * int GuiColorBarHue(Rectangle bounds, const char *text, float *value) * } */ - public static MemorySegment MatrixInvert$address() { - return MatrixInvert.ADDR; + public static MemorySegment GuiColorBarHue$address() { + return GuiColorBarHue.ADDR; } /** * {@snippet lang=c : - * Matrix MatrixInvert(Matrix mat) + * int GuiColorBarHue(Rectangle bounds, const char *text, float *value) * } */ - public static MemorySegment MatrixInvert(SegmentAllocator allocator, MemorySegment mat) { - var mh$ = MatrixInvert.HANDLE; + public static int GuiColorBarHue(MemorySegment bounds, MemorySegment text, MemorySegment value) { + var mh$ = GuiColorBarHue.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MatrixInvert", allocator, mat); + traceDowncall("GuiColorBarHue", bounds, text, value); } - return (MemorySegment)mh$.invokeExact(allocator, mat); + return (int)mh$.invokeExact(bounds, text, value); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MatrixIdentity { + private static class GuiColorPickerHSV { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout() ); + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixIdentity"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiColorPickerHSV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38417,58 +22085,59 @@ private static class MatrixIdentity { /** * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixIdentity() + * int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static FunctionDescriptor MatrixIdentity$descriptor() { - return MatrixIdentity.DESC; + public static FunctionDescriptor GuiColorPickerHSV$descriptor() { + return GuiColorPickerHSV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixIdentity() + * int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static MethodHandle MatrixIdentity$handle() { - return MatrixIdentity.HANDLE; + public static MethodHandle GuiColorPickerHSV$handle() { + return GuiColorPickerHSV.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix MatrixIdentity() + * int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static MemorySegment MatrixIdentity$address() { - return MatrixIdentity.ADDR; + public static MemorySegment GuiColorPickerHSV$address() { + return GuiColorPickerHSV.ADDR; } /** * {@snippet lang=c : - * Matrix MatrixIdentity() + * int GuiColorPickerHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static MemorySegment MatrixIdentity(SegmentAllocator allocator) { - var mh$ = MatrixIdentity.HANDLE; + public static int GuiColorPickerHSV(MemorySegment bounds, MemorySegment text, MemorySegment colorHsv) { + var mh$ = GuiColorPickerHSV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MatrixIdentity", allocator); + traceDowncall("GuiColorPickerHSV", bounds, text, colorHsv); } - return (MemorySegment)mh$.invokeExact(allocator); + return (int)mh$.invokeExact(bounds, text, colorHsv); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MatrixAdd { + private static class GuiColorPanelHSV { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Matrix.layout(), - Matrix.layout() + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixAdd"); + public static final MemorySegment ADDR = raylib.findOrThrow("GuiColorPanelHSV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -38476,3299 +22145,2700 @@ private static class MatrixAdd { /** * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixAdd(Matrix left, Matrix right) + * int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static FunctionDescriptor MatrixAdd$descriptor() { - return MatrixAdd.DESC; + public static FunctionDescriptor GuiColorPanelHSV$descriptor() { + return GuiColorPanelHSV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixAdd(Matrix left, Matrix right) + * int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static MethodHandle MatrixAdd$handle() { - return MatrixAdd.HANDLE; + public static MethodHandle GuiColorPanelHSV$handle() { + return GuiColorPanelHSV.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix MatrixAdd(Matrix left, Matrix right) + * int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static MemorySegment MatrixAdd$address() { - return MatrixAdd.ADDR; + public static MemorySegment GuiColorPanelHSV$address() { + return GuiColorPanelHSV.ADDR; } /** * {@snippet lang=c : - * Matrix MatrixAdd(Matrix left, Matrix right) + * int GuiColorPanelHSV(Rectangle bounds, const char *text, Vector3 *colorHsv) * } */ - public static MemorySegment MatrixAdd(SegmentAllocator allocator, MemorySegment left, MemorySegment right) { - var mh$ = MatrixAdd.HANDLE; + public static int GuiColorPanelHSV(MemorySegment bounds, MemorySegment text, MemorySegment colorHsv) { + var mh$ = GuiColorPanelHSV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MatrixAdd", allocator, left, right); + traceDowncall("GuiColorPanelHSV", bounds, text, colorHsv); } - return (MemorySegment)mh$.invokeExact(allocator, left, right); + return (int)mh$.invokeExact(bounds, text, colorHsv); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - - private static class MatrixSubtract { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Matrix.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixSubtract"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_NONE = (int)0L; + /** + * {@snippet lang=c : + * enum .ICON_NONE = 0 + * } + */ + public static int ICON_NONE() { + return ICON_NONE; + } + private static final int ICON_FOLDER_FILE_OPEN = (int)1L; + /** + * {@snippet lang=c : + * enum .ICON_FOLDER_FILE_OPEN = 1 + * } + */ + public static int ICON_FOLDER_FILE_OPEN() { + return ICON_FOLDER_FILE_OPEN; + } + private static final int ICON_FILE_SAVE_CLASSIC = (int)2L; + /** + * {@snippet lang=c : + * enum .ICON_FILE_SAVE_CLASSIC = 2 + * } + */ + public static int ICON_FILE_SAVE_CLASSIC() { + return ICON_FILE_SAVE_CLASSIC; + } + private static final int ICON_FOLDER_OPEN = (int)3L; + /** + * {@snippet lang=c : + * enum .ICON_FOLDER_OPEN = 3 + * } + */ + public static int ICON_FOLDER_OPEN() { + return ICON_FOLDER_OPEN; + } + private static final int ICON_FOLDER_SAVE = (int)4L; + /** + * {@snippet lang=c : + * enum .ICON_FOLDER_SAVE = 4 + * } + */ + public static int ICON_FOLDER_SAVE() { + return ICON_FOLDER_SAVE; } - + private static final int ICON_FILE_OPEN = (int)5L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixSubtract(Matrix left, Matrix right) + * enum .ICON_FILE_OPEN = 5 * } */ - public static FunctionDescriptor MatrixSubtract$descriptor() { - return MatrixSubtract.DESC; + public static int ICON_FILE_OPEN() { + return ICON_FILE_OPEN; } - + private static final int ICON_FILE_SAVE = (int)6L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixSubtract(Matrix left, Matrix right) + * enum .ICON_FILE_SAVE = 6 * } */ - public static MethodHandle MatrixSubtract$handle() { - return MatrixSubtract.HANDLE; + public static int ICON_FILE_SAVE() { + return ICON_FILE_SAVE; } - + private static final int ICON_FILE_EXPORT = (int)7L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixSubtract(Matrix left, Matrix right) + * enum .ICON_FILE_EXPORT = 7 * } */ - public static MemorySegment MatrixSubtract$address() { - return MatrixSubtract.ADDR; + public static int ICON_FILE_EXPORT() { + return ICON_FILE_EXPORT; } - + private static final int ICON_FILE_ADD = (int)8L; /** * {@snippet lang=c : - * Matrix MatrixSubtract(Matrix left, Matrix right) + * enum .ICON_FILE_ADD = 8 * } */ - public static MemorySegment MatrixSubtract(SegmentAllocator allocator, MemorySegment left, MemorySegment right) { - var mh$ = MatrixSubtract.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixSubtract", allocator, left, right); - } - return (MemorySegment)mh$.invokeExact(allocator, left, right); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_FILE_ADD() { + return ICON_FILE_ADD; } - - private static class MatrixMultiply { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Matrix.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixMultiply"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_FILE_DELETE = (int)9L; + /** + * {@snippet lang=c : + * enum .ICON_FILE_DELETE = 9 + * } + */ + public static int ICON_FILE_DELETE() { + return ICON_FILE_DELETE; } - + private static final int ICON_FILETYPE_TEXT = (int)10L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixMultiply(Matrix left, Matrix right) + * enum .ICON_FILETYPE_TEXT = 10 * } */ - public static FunctionDescriptor MatrixMultiply$descriptor() { - return MatrixMultiply.DESC; + public static int ICON_FILETYPE_TEXT() { + return ICON_FILETYPE_TEXT; } - + private static final int ICON_FILETYPE_AUDIO = (int)11L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixMultiply(Matrix left, Matrix right) + * enum .ICON_FILETYPE_AUDIO = 11 * } */ - public static MethodHandle MatrixMultiply$handle() { - return MatrixMultiply.HANDLE; + public static int ICON_FILETYPE_AUDIO() { + return ICON_FILETYPE_AUDIO; } - + private static final int ICON_FILETYPE_IMAGE = (int)12L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixMultiply(Matrix left, Matrix right) + * enum .ICON_FILETYPE_IMAGE = 12 * } */ - public static MemorySegment MatrixMultiply$address() { - return MatrixMultiply.ADDR; + public static int ICON_FILETYPE_IMAGE() { + return ICON_FILETYPE_IMAGE; } - + private static final int ICON_FILETYPE_PLAY = (int)13L; /** * {@snippet lang=c : - * Matrix MatrixMultiply(Matrix left, Matrix right) + * enum .ICON_FILETYPE_PLAY = 13 * } */ - public static MemorySegment MatrixMultiply(SegmentAllocator allocator, MemorySegment left, MemorySegment right) { - var mh$ = MatrixMultiply.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixMultiply", allocator, left, right); - } - return (MemorySegment)mh$.invokeExact(allocator, left, right); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_FILETYPE_PLAY() { + return ICON_FILETYPE_PLAY; } - - private static class MatrixTranslate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixTranslate"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_FILETYPE_VIDEO = (int)14L; + /** + * {@snippet lang=c : + * enum .ICON_FILETYPE_VIDEO = 14 + * } + */ + public static int ICON_FILETYPE_VIDEO() { + return ICON_FILETYPE_VIDEO; } - + private static final int ICON_FILETYPE_INFO = (int)15L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixTranslate(float x, float y, float z) + * enum .ICON_FILETYPE_INFO = 15 * } */ - public static FunctionDescriptor MatrixTranslate$descriptor() { - return MatrixTranslate.DESC; + public static int ICON_FILETYPE_INFO() { + return ICON_FILETYPE_INFO; } - + private static final int ICON_FILE_COPY = (int)16L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixTranslate(float x, float y, float z) + * enum .ICON_FILE_COPY = 16 * } */ - public static MethodHandle MatrixTranslate$handle() { - return MatrixTranslate.HANDLE; + public static int ICON_FILE_COPY() { + return ICON_FILE_COPY; } - + private static final int ICON_FILE_CUT = (int)17L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixTranslate(float x, float y, float z) + * enum .ICON_FILE_CUT = 17 * } */ - public static MemorySegment MatrixTranslate$address() { - return MatrixTranslate.ADDR; + public static int ICON_FILE_CUT() { + return ICON_FILE_CUT; } - + private static final int ICON_FILE_PASTE = (int)18L; /** * {@snippet lang=c : - * Matrix MatrixTranslate(float x, float y, float z) + * enum .ICON_FILE_PASTE = 18 * } */ - public static MemorySegment MatrixTranslate(SegmentAllocator allocator, float x, float y, float z) { - var mh$ = MatrixTranslate.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixTranslate", allocator, x, y, z); - } - return (MemorySegment)mh$.invokeExact(allocator, x, y, z); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_FILE_PASTE() { + return ICON_FILE_PASTE; } - - private static class MatrixRotate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotate"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_CURSOR_HAND = (int)19L; + /** + * {@snippet lang=c : + * enum .ICON_CURSOR_HAND = 19 + * } + */ + public static int ICON_CURSOR_HAND() { + return ICON_CURSOR_HAND; } - + private static final int ICON_CURSOR_POINTER = (int)20L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixRotate(Vector3 axis, float angle) + * enum .ICON_CURSOR_POINTER = 20 * } */ - public static FunctionDescriptor MatrixRotate$descriptor() { - return MatrixRotate.DESC; + public static int ICON_CURSOR_POINTER() { + return ICON_CURSOR_POINTER; } - + private static final int ICON_CURSOR_CLASSIC = (int)21L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixRotate(Vector3 axis, float angle) + * enum .ICON_CURSOR_CLASSIC = 21 * } */ - public static MethodHandle MatrixRotate$handle() { - return MatrixRotate.HANDLE; + public static int ICON_CURSOR_CLASSIC() { + return ICON_CURSOR_CLASSIC; } - + private static final int ICON_PENCIL = (int)22L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixRotate(Vector3 axis, float angle) + * enum .ICON_PENCIL = 22 * } */ - public static MemorySegment MatrixRotate$address() { - return MatrixRotate.ADDR; + public static int ICON_PENCIL() { + return ICON_PENCIL; } - + private static final int ICON_PENCIL_BIG = (int)23L; /** * {@snippet lang=c : - * Matrix MatrixRotate(Vector3 axis, float angle) + * enum .ICON_PENCIL_BIG = 23 * } */ - public static MemorySegment MatrixRotate(SegmentAllocator allocator, MemorySegment axis, float angle) { - var mh$ = MatrixRotate.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixRotate", allocator, axis, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, axis, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_PENCIL_BIG() { + return ICON_PENCIL_BIG; } - - private static class MatrixRotateX { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateX"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_BRUSH_CLASSIC = (int)24L; + /** + * {@snippet lang=c : + * enum .ICON_BRUSH_CLASSIC = 24 + * } + */ + public static int ICON_BRUSH_CLASSIC() { + return ICON_BRUSH_CLASSIC; } - + private static final int ICON_BRUSH_PAINTER = (int)25L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixRotateX(float angle) + * enum .ICON_BRUSH_PAINTER = 25 * } */ - public static FunctionDescriptor MatrixRotateX$descriptor() { - return MatrixRotateX.DESC; + public static int ICON_BRUSH_PAINTER() { + return ICON_BRUSH_PAINTER; } - + private static final int ICON_WATER_DROP = (int)26L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixRotateX(float angle) + * enum .ICON_WATER_DROP = 26 * } */ - public static MethodHandle MatrixRotateX$handle() { - return MatrixRotateX.HANDLE; + public static int ICON_WATER_DROP() { + return ICON_WATER_DROP; } - + private static final int ICON_COLOR_PICKER = (int)27L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixRotateX(float angle) + * enum .ICON_COLOR_PICKER = 27 * } */ - public static MemorySegment MatrixRotateX$address() { - return MatrixRotateX.ADDR; + public static int ICON_COLOR_PICKER() { + return ICON_COLOR_PICKER; } - + private static final int ICON_RUBBER = (int)28L; /** * {@snippet lang=c : - * Matrix MatrixRotateX(float angle) + * enum .ICON_RUBBER = 28 * } */ - public static MemorySegment MatrixRotateX(SegmentAllocator allocator, float angle) { - var mh$ = MatrixRotateX.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixRotateX", allocator, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_RUBBER() { + return ICON_RUBBER; } - - private static class MatrixRotateY { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateY"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_COLOR_BUCKET = (int)29L; + /** + * {@snippet lang=c : + * enum .ICON_COLOR_BUCKET = 29 + * } + */ + public static int ICON_COLOR_BUCKET() { + return ICON_COLOR_BUCKET; } - + private static final int ICON_TEXT_T = (int)30L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixRotateY(float angle) + * enum .ICON_TEXT_T = 30 * } */ - public static FunctionDescriptor MatrixRotateY$descriptor() { - return MatrixRotateY.DESC; + public static int ICON_TEXT_T() { + return ICON_TEXT_T; } - + private static final int ICON_TEXT_A = (int)31L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixRotateY(float angle) + * enum .ICON_TEXT_A = 31 * } */ - public static MethodHandle MatrixRotateY$handle() { - return MatrixRotateY.HANDLE; + public static int ICON_TEXT_A() { + return ICON_TEXT_A; } - + private static final int ICON_SCALE = (int)32L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixRotateY(float angle) + * enum .ICON_SCALE = 32 * } */ - public static MemorySegment MatrixRotateY$address() { - return MatrixRotateY.ADDR; + public static int ICON_SCALE() { + return ICON_SCALE; } - + private static final int ICON_RESIZE = (int)33L; /** * {@snippet lang=c : - * Matrix MatrixRotateY(float angle) + * enum .ICON_RESIZE = 33 * } */ - public static MemorySegment MatrixRotateY(SegmentAllocator allocator, float angle) { - var mh$ = MatrixRotateY.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixRotateY", allocator, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_RESIZE() { + return ICON_RESIZE; } - - private static class MatrixRotateZ { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateZ"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_FILTER_POINT = (int)34L; + /** + * {@snippet lang=c : + * enum .ICON_FILTER_POINT = 34 + * } + */ + public static int ICON_FILTER_POINT() { + return ICON_FILTER_POINT; + } + private static final int ICON_FILTER_BILINEAR = (int)35L; + /** + * {@snippet lang=c : + * enum .ICON_FILTER_BILINEAR = 35 + * } + */ + public static int ICON_FILTER_BILINEAR() { + return ICON_FILTER_BILINEAR; } - + private static final int ICON_CROP = (int)36L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixRotateZ(float angle) + * enum .ICON_CROP = 36 * } */ - public static FunctionDescriptor MatrixRotateZ$descriptor() { - return MatrixRotateZ.DESC; + public static int ICON_CROP() { + return ICON_CROP; } - + private static final int ICON_CROP_ALPHA = (int)37L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixRotateZ(float angle) + * enum .ICON_CROP_ALPHA = 37 * } */ - public static MethodHandle MatrixRotateZ$handle() { - return MatrixRotateZ.HANDLE; + public static int ICON_CROP_ALPHA() { + return ICON_CROP_ALPHA; } - + private static final int ICON_SQUARE_TOGGLE = (int)38L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixRotateZ(float angle) + * enum .ICON_SQUARE_TOGGLE = 38 * } */ - public static MemorySegment MatrixRotateZ$address() { - return MatrixRotateZ.ADDR; + public static int ICON_SQUARE_TOGGLE() { + return ICON_SQUARE_TOGGLE; } - + private static final int ICON_SYMMETRY = (int)39L; /** * {@snippet lang=c : - * Matrix MatrixRotateZ(float angle) + * enum .ICON_SYMMETRY = 39 * } */ - public static MemorySegment MatrixRotateZ(SegmentAllocator allocator, float angle) { - var mh$ = MatrixRotateZ.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixRotateZ", allocator, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class MatrixRotateXYZ { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateXYZ"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_SYMMETRY() { + return ICON_SYMMETRY; } - + private static final int ICON_SYMMETRY_HORIZONTAL = (int)40L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixRotateXYZ(Vector3 angle) + * enum .ICON_SYMMETRY_HORIZONTAL = 40 * } */ - public static FunctionDescriptor MatrixRotateXYZ$descriptor() { - return MatrixRotateXYZ.DESC; + public static int ICON_SYMMETRY_HORIZONTAL() { + return ICON_SYMMETRY_HORIZONTAL; } - + private static final int ICON_SYMMETRY_VERTICAL = (int)41L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixRotateXYZ(Vector3 angle) + * enum .ICON_SYMMETRY_VERTICAL = 41 * } */ - public static MethodHandle MatrixRotateXYZ$handle() { - return MatrixRotateXYZ.HANDLE; + public static int ICON_SYMMETRY_VERTICAL() { + return ICON_SYMMETRY_VERTICAL; } - + private static final int ICON_LENS = (int)42L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixRotateXYZ(Vector3 angle) + * enum .ICON_LENS = 42 * } */ - public static MemorySegment MatrixRotateXYZ$address() { - return MatrixRotateXYZ.ADDR; + public static int ICON_LENS() { + return ICON_LENS; } - + private static final int ICON_LENS_BIG = (int)43L; /** * {@snippet lang=c : - * Matrix MatrixRotateXYZ(Vector3 angle) + * enum .ICON_LENS_BIG = 43 * } */ - public static MemorySegment MatrixRotateXYZ(SegmentAllocator allocator, MemorySegment angle) { - var mh$ = MatrixRotateXYZ.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixRotateXYZ", allocator, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class MatrixRotateZYX { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixRotateZYX"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_LENS_BIG() { + return ICON_LENS_BIG; } - + private static final int ICON_EYE_ON = (int)44L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixRotateZYX(Vector3 angle) + * enum .ICON_EYE_ON = 44 * } */ - public static FunctionDescriptor MatrixRotateZYX$descriptor() { - return MatrixRotateZYX.DESC; + public static int ICON_EYE_ON() { + return ICON_EYE_ON; } - + private static final int ICON_EYE_OFF = (int)45L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixRotateZYX(Vector3 angle) + * enum .ICON_EYE_OFF = 45 * } */ - public static MethodHandle MatrixRotateZYX$handle() { - return MatrixRotateZYX.HANDLE; + public static int ICON_EYE_OFF() { + return ICON_EYE_OFF; } - + private static final int ICON_FILTER_TOP = (int)46L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixRotateZYX(Vector3 angle) + * enum .ICON_FILTER_TOP = 46 * } */ - public static MemorySegment MatrixRotateZYX$address() { - return MatrixRotateZYX.ADDR; + public static int ICON_FILTER_TOP() { + return ICON_FILTER_TOP; } - + private static final int ICON_FILTER = (int)47L; /** * {@snippet lang=c : - * Matrix MatrixRotateZYX(Vector3 angle) + * enum .ICON_FILTER = 47 * } */ - public static MemorySegment MatrixRotateZYX(SegmentAllocator allocator, MemorySegment angle) { - var mh$ = MatrixRotateZYX.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixRotateZYX", allocator, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_FILTER() { + return ICON_FILTER; } - - private static class MatrixScale { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixScale"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_TARGET_POINT = (int)48L; + /** + * {@snippet lang=c : + * enum .ICON_TARGET_POINT = 48 + * } + */ + public static int ICON_TARGET_POINT() { + return ICON_TARGET_POINT; } - + private static final int ICON_TARGET_SMALL = (int)49L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixScale(float x, float y, float z) + * enum .ICON_TARGET_SMALL = 49 * } */ - public static FunctionDescriptor MatrixScale$descriptor() { - return MatrixScale.DESC; + public static int ICON_TARGET_SMALL() { + return ICON_TARGET_SMALL; } - + private static final int ICON_TARGET_BIG = (int)50L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixScale(float x, float y, float z) + * enum .ICON_TARGET_BIG = 50 * } */ - public static MethodHandle MatrixScale$handle() { - return MatrixScale.HANDLE; + public static int ICON_TARGET_BIG() { + return ICON_TARGET_BIG; } - + private static final int ICON_TARGET_MOVE = (int)51L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixScale(float x, float y, float z) + * enum .ICON_TARGET_MOVE = 51 * } */ - public static MemorySegment MatrixScale$address() { - return MatrixScale.ADDR; + public static int ICON_TARGET_MOVE() { + return ICON_TARGET_MOVE; } - + private static final int ICON_CURSOR_MOVE = (int)52L; /** * {@snippet lang=c : - * Matrix MatrixScale(float x, float y, float z) + * enum .ICON_CURSOR_MOVE = 52 * } */ - public static MemorySegment MatrixScale(SegmentAllocator allocator, float x, float y, float z) { - var mh$ = MatrixScale.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixScale", allocator, x, y, z); - } - return (MemorySegment)mh$.invokeExact(allocator, x, y, z); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_CURSOR_MOVE() { + return ICON_CURSOR_MOVE; } - - private static class MatrixFrustum { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixFrustum"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_CURSOR_SCALE = (int)53L; + /** + * {@snippet lang=c : + * enum .ICON_CURSOR_SCALE = 53 + * } + */ + public static int ICON_CURSOR_SCALE() { + return ICON_CURSOR_SCALE; } - + private static final int ICON_CURSOR_SCALE_RIGHT = (int)54L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) + * enum .ICON_CURSOR_SCALE_RIGHT = 54 * } */ - public static FunctionDescriptor MatrixFrustum$descriptor() { - return MatrixFrustum.DESC; + public static int ICON_CURSOR_SCALE_RIGHT() { + return ICON_CURSOR_SCALE_RIGHT; } - + private static final int ICON_CURSOR_SCALE_LEFT = (int)55L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) + * enum .ICON_CURSOR_SCALE_LEFT = 55 * } */ - public static MethodHandle MatrixFrustum$handle() { - return MatrixFrustum.HANDLE; + public static int ICON_CURSOR_SCALE_LEFT() { + return ICON_CURSOR_SCALE_LEFT; } - + private static final int ICON_UNDO = (int)56L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) + * enum .ICON_UNDO = 56 * } */ - public static MemorySegment MatrixFrustum$address() { - return MatrixFrustum.ADDR; + public static int ICON_UNDO() { + return ICON_UNDO; } - + private static final int ICON_REDO = (int)57L; /** * {@snippet lang=c : - * Matrix MatrixFrustum(double left, double right, double bottom, double top, double near, double far) + * enum .ICON_REDO = 57 * } */ - public static MemorySegment MatrixFrustum(SegmentAllocator allocator, double left, double right, double bottom, double top, double near, double far) { - var mh$ = MatrixFrustum.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixFrustum", allocator, left, right, bottom, top, near, far); - } - return (MemorySegment)mh$.invokeExact(allocator, left, right, bottom, top, near, far); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_REDO() { + return ICON_REDO; } - - private static class MatrixPerspective { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixPerspective"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_REREDO = (int)58L; + /** + * {@snippet lang=c : + * enum .ICON_REREDO = 58 + * } + */ + public static int ICON_REREDO() { + return ICON_REREDO; } - + private static final int ICON_MUTATE = (int)59L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) + * enum .ICON_MUTATE = 59 * } */ - public static FunctionDescriptor MatrixPerspective$descriptor() { - return MatrixPerspective.DESC; + public static int ICON_MUTATE() { + return ICON_MUTATE; } - + private static final int ICON_ROTATE = (int)60L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) + * enum .ICON_ROTATE = 60 * } */ - public static MethodHandle MatrixPerspective$handle() { - return MatrixPerspective.HANDLE; + public static int ICON_ROTATE() { + return ICON_ROTATE; } - + private static final int ICON_REPEAT = (int)61L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) + * enum .ICON_REPEAT = 61 * } */ - public static MemorySegment MatrixPerspective$address() { - return MatrixPerspective.ADDR; + public static int ICON_REPEAT() { + return ICON_REPEAT; } - + private static final int ICON_SHUFFLE = (int)62L; /** * {@snippet lang=c : - * Matrix MatrixPerspective(double fovY, double aspect, double nearPlane, double farPlane) + * enum .ICON_SHUFFLE = 62 * } */ - public static MemorySegment MatrixPerspective(SegmentAllocator allocator, double fovY, double aspect, double nearPlane, double farPlane) { - var mh$ = MatrixPerspective.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixPerspective", allocator, fovY, aspect, nearPlane, farPlane); - } - return (MemorySegment)mh$.invokeExact(allocator, fovY, aspect, nearPlane, farPlane); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_SHUFFLE() { + return ICON_SHUFFLE; } - - private static class MatrixOrtho { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE, - raylib.C_DOUBLE - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixOrtho"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_EMPTYBOX = (int)63L; + /** + * {@snippet lang=c : + * enum .ICON_EMPTYBOX = 63 + * } + */ + public static int ICON_EMPTYBOX() { + return ICON_EMPTYBOX; } - + private static final int ICON_TARGET = (int)64L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) + * enum .ICON_TARGET = 64 * } */ - public static FunctionDescriptor MatrixOrtho$descriptor() { - return MatrixOrtho.DESC; + public static int ICON_TARGET() { + return ICON_TARGET; } - + private static final int ICON_TARGET_SMALL_FILL = (int)65L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) + * enum .ICON_TARGET_SMALL_FILL = 65 * } */ - public static MethodHandle MatrixOrtho$handle() { - return MatrixOrtho.HANDLE; + public static int ICON_TARGET_SMALL_FILL() { + return ICON_TARGET_SMALL_FILL; } - + private static final int ICON_TARGET_BIG_FILL = (int)66L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) + * enum .ICON_TARGET_BIG_FILL = 66 * } */ - public static MemorySegment MatrixOrtho$address() { - return MatrixOrtho.ADDR; + public static int ICON_TARGET_BIG_FILL() { + return ICON_TARGET_BIG_FILL; } - + private static final int ICON_TARGET_MOVE_FILL = (int)67L; /** * {@snippet lang=c : - * Matrix MatrixOrtho(double left, double right, double bottom, double top, double nearPlane, double farPlane) + * enum .ICON_TARGET_MOVE_FILL = 67 * } */ - public static MemorySegment MatrixOrtho(SegmentAllocator allocator, double left, double right, double bottom, double top, double nearPlane, double farPlane) { - var mh$ = MatrixOrtho.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixOrtho", allocator, left, right, bottom, top, nearPlane, farPlane); - } - return (MemorySegment)mh$.invokeExact(allocator, left, right, bottom, top, nearPlane, farPlane); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class MatrixLookAt { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Vector3.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixLookAt"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_TARGET_MOVE_FILL() { + return ICON_TARGET_MOVE_FILL; } - + private static final int ICON_CURSOR_MOVE_FILL = (int)68L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) + * enum .ICON_CURSOR_MOVE_FILL = 68 * } */ - public static FunctionDescriptor MatrixLookAt$descriptor() { - return MatrixLookAt.DESC; + public static int ICON_CURSOR_MOVE_FILL() { + return ICON_CURSOR_MOVE_FILL; } - + private static final int ICON_CURSOR_SCALE_FILL = (int)69L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) + * enum .ICON_CURSOR_SCALE_FILL = 69 * } */ - public static MethodHandle MatrixLookAt$handle() { - return MatrixLookAt.HANDLE; + public static int ICON_CURSOR_SCALE_FILL() { + return ICON_CURSOR_SCALE_FILL; } - + private static final int ICON_CURSOR_SCALE_RIGHT_FILL = (int)70L; /** - * Address for: * {@snippet lang=c : - * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) + * enum .ICON_CURSOR_SCALE_RIGHT_FILL = 70 * } */ - public static MemorySegment MatrixLookAt$address() { - return MatrixLookAt.ADDR; + public static int ICON_CURSOR_SCALE_RIGHT_FILL() { + return ICON_CURSOR_SCALE_RIGHT_FILL; } - + private static final int ICON_CURSOR_SCALE_LEFT_FILL = (int)71L; /** * {@snippet lang=c : - * Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up) + * enum .ICON_CURSOR_SCALE_LEFT_FILL = 71 * } */ - public static MemorySegment MatrixLookAt(SegmentAllocator allocator, MemorySegment eye, MemorySegment target, MemorySegment up) { - var mh$ = MatrixLookAt.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixLookAt", allocator, eye, target, up); - } - return (MemorySegment)mh$.invokeExact(allocator, eye, target, up); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class MatrixToFloatV { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - float16.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("MatrixToFloatV"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_CURSOR_SCALE_LEFT_FILL() { + return ICON_CURSOR_SCALE_LEFT_FILL; } - + private static final int ICON_UNDO_FILL = (int)72L; /** - * Function descriptor for: * {@snippet lang=c : - * float16 MatrixToFloatV(Matrix mat) + * enum .ICON_UNDO_FILL = 72 * } */ - public static FunctionDescriptor MatrixToFloatV$descriptor() { - return MatrixToFloatV.DESC; + public static int ICON_UNDO_FILL() { + return ICON_UNDO_FILL; } - + private static final int ICON_REDO_FILL = (int)73L; /** - * Downcall method handle for: * {@snippet lang=c : - * float16 MatrixToFloatV(Matrix mat) + * enum .ICON_REDO_FILL = 73 * } */ - public static MethodHandle MatrixToFloatV$handle() { - return MatrixToFloatV.HANDLE; + public static int ICON_REDO_FILL() { + return ICON_REDO_FILL; } - + private static final int ICON_REREDO_FILL = (int)74L; /** - * Address for: * {@snippet lang=c : - * float16 MatrixToFloatV(Matrix mat) + * enum .ICON_REREDO_FILL = 74 * } */ - public static MemorySegment MatrixToFloatV$address() { - return MatrixToFloatV.ADDR; + public static int ICON_REREDO_FILL() { + return ICON_REREDO_FILL; } - + private static final int ICON_MUTATE_FILL = (int)75L; /** * {@snippet lang=c : - * float16 MatrixToFloatV(Matrix mat) + * enum .ICON_MUTATE_FILL = 75 * } */ - public static MemorySegment MatrixToFloatV(SegmentAllocator allocator, MemorySegment mat) { - var mh$ = MatrixToFloatV.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("MatrixToFloatV", allocator, mat); - } - return (MemorySegment)mh$.invokeExact(allocator, mat); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_MUTATE_FILL() { + return ICON_MUTATE_FILL; } - - private static class QuaternionAdd { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionAdd"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_ROTATE_FILL = (int)76L; + /** + * {@snippet lang=c : + * enum .ICON_ROTATE_FILL = 76 + * } + */ + public static int ICON_ROTATE_FILL() { + return ICON_ROTATE_FILL; } - + private static final int ICON_REPEAT_FILL = (int)77L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) + * enum .ICON_REPEAT_FILL = 77 * } */ - public static FunctionDescriptor QuaternionAdd$descriptor() { - return QuaternionAdd.DESC; + public static int ICON_REPEAT_FILL() { + return ICON_REPEAT_FILL; } - + private static final int ICON_SHUFFLE_FILL = (int)78L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) + * enum .ICON_SHUFFLE_FILL = 78 * } */ - public static MethodHandle QuaternionAdd$handle() { - return QuaternionAdd.HANDLE; + public static int ICON_SHUFFLE_FILL() { + return ICON_SHUFFLE_FILL; } - + private static final int ICON_EMPTYBOX_SMALL = (int)79L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) + * enum .ICON_EMPTYBOX_SMALL = 79 * } */ - public static MemorySegment QuaternionAdd$address() { - return QuaternionAdd.ADDR; + public static int ICON_EMPTYBOX_SMALL() { + return ICON_EMPTYBOX_SMALL; } - + private static final int ICON_BOX = (int)80L; /** * {@snippet lang=c : - * Quaternion QuaternionAdd(Quaternion q1, Quaternion q2) + * enum .ICON_BOX = 80 * } */ - public static MemorySegment QuaternionAdd(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { - var mh$ = QuaternionAdd.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionAdd", allocator, q1, q2); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_BOX() { + return ICON_BOX; } - - private static class QuaternionAddValue { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionAddValue"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_BOX_TOP = (int)81L; + /** + * {@snippet lang=c : + * enum .ICON_BOX_TOP = 81 + * } + */ + public static int ICON_BOX_TOP() { + return ICON_BOX_TOP; } - + private static final int ICON_BOX_TOP_RIGHT = (int)82L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionAddValue(Quaternion q, float add) + * enum .ICON_BOX_TOP_RIGHT = 82 * } */ - public static FunctionDescriptor QuaternionAddValue$descriptor() { - return QuaternionAddValue.DESC; + public static int ICON_BOX_TOP_RIGHT() { + return ICON_BOX_TOP_RIGHT; } - + private static final int ICON_BOX_RIGHT = (int)83L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionAddValue(Quaternion q, float add) + * enum .ICON_BOX_RIGHT = 83 * } */ - public static MethodHandle QuaternionAddValue$handle() { - return QuaternionAddValue.HANDLE; + public static int ICON_BOX_RIGHT() { + return ICON_BOX_RIGHT; } - + private static final int ICON_BOX_BOTTOM_RIGHT = (int)84L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionAddValue(Quaternion q, float add) + * enum .ICON_BOX_BOTTOM_RIGHT = 84 * } */ - public static MemorySegment QuaternionAddValue$address() { - return QuaternionAddValue.ADDR; + public static int ICON_BOX_BOTTOM_RIGHT() { + return ICON_BOX_BOTTOM_RIGHT; } - + private static final int ICON_BOX_BOTTOM = (int)85L; /** * {@snippet lang=c : - * Quaternion QuaternionAddValue(Quaternion q, float add) + * enum .ICON_BOX_BOTTOM = 85 * } */ - public static MemorySegment QuaternionAddValue(SegmentAllocator allocator, MemorySegment q, float add) { - var mh$ = QuaternionAddValue.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionAddValue", allocator, q, add); - } - return (MemorySegment)mh$.invokeExact(allocator, q, add); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_BOX_BOTTOM() { + return ICON_BOX_BOTTOM; } - - private static class QuaternionSubtract { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionSubtract"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_BOX_BOTTOM_LEFT = (int)86L; + /** + * {@snippet lang=c : + * enum .ICON_BOX_BOTTOM_LEFT = 86 + * } + */ + public static int ICON_BOX_BOTTOM_LEFT() { + return ICON_BOX_BOTTOM_LEFT; } - + private static final int ICON_BOX_LEFT = (int)87L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) + * enum .ICON_BOX_LEFT = 87 * } */ - public static FunctionDescriptor QuaternionSubtract$descriptor() { - return QuaternionSubtract.DESC; + public static int ICON_BOX_LEFT() { + return ICON_BOX_LEFT; } - + private static final int ICON_BOX_TOP_LEFT = (int)88L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) + * enum .ICON_BOX_TOP_LEFT = 88 * } */ - public static MethodHandle QuaternionSubtract$handle() { - return QuaternionSubtract.HANDLE; + public static int ICON_BOX_TOP_LEFT() { + return ICON_BOX_TOP_LEFT; } - + private static final int ICON_BOX_CENTER = (int)89L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) + * enum .ICON_BOX_CENTER = 89 * } */ - public static MemorySegment QuaternionSubtract$address() { - return QuaternionSubtract.ADDR; + public static int ICON_BOX_CENTER() { + return ICON_BOX_CENTER; } - + private static final int ICON_BOX_CIRCLE_MASK = (int)90L; /** * {@snippet lang=c : - * Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2) + * enum .ICON_BOX_CIRCLE_MASK = 90 * } */ - public static MemorySegment QuaternionSubtract(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { - var mh$ = QuaternionSubtract.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionSubtract", allocator, q1, q2); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_BOX_CIRCLE_MASK() { + return ICON_BOX_CIRCLE_MASK; } - - private static class QuaternionSubtractValue { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionSubtractValue"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_POT = (int)91L; + /** + * {@snippet lang=c : + * enum .ICON_POT = 91 + * } + */ + public static int ICON_POT() { + return ICON_POT; } - + private static final int ICON_ALPHA_MULTIPLY = (int)92L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionSubtractValue(Quaternion q, float sub) + * enum .ICON_ALPHA_MULTIPLY = 92 * } */ - public static FunctionDescriptor QuaternionSubtractValue$descriptor() { - return QuaternionSubtractValue.DESC; + public static int ICON_ALPHA_MULTIPLY() { + return ICON_ALPHA_MULTIPLY; } - + private static final int ICON_ALPHA_CLEAR = (int)93L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionSubtractValue(Quaternion q, float sub) + * enum .ICON_ALPHA_CLEAR = 93 * } */ - public static MethodHandle QuaternionSubtractValue$handle() { - return QuaternionSubtractValue.HANDLE; + public static int ICON_ALPHA_CLEAR() { + return ICON_ALPHA_CLEAR; } - + private static final int ICON_DITHERING = (int)94L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionSubtractValue(Quaternion q, float sub) + * enum .ICON_DITHERING = 94 * } */ - public static MemorySegment QuaternionSubtractValue$address() { - return QuaternionSubtractValue.ADDR; + public static int ICON_DITHERING() { + return ICON_DITHERING; } - + private static final int ICON_MIPMAPS = (int)95L; /** * {@snippet lang=c : - * Quaternion QuaternionSubtractValue(Quaternion q, float sub) + * enum .ICON_MIPMAPS = 95 * } */ - public static MemorySegment QuaternionSubtractValue(SegmentAllocator allocator, MemorySegment q, float sub) { - var mh$ = QuaternionSubtractValue.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionSubtractValue", allocator, q, sub); - } - return (MemorySegment)mh$.invokeExact(allocator, q, sub); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_MIPMAPS() { + return ICON_MIPMAPS; } - - private static class QuaternionIdentity { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout() ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionIdentity"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - + private static final int ICON_BOX_GRID = (int)96L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionIdentity() + * enum .ICON_BOX_GRID = 96 * } */ - public static FunctionDescriptor QuaternionIdentity$descriptor() { - return QuaternionIdentity.DESC; + public static int ICON_BOX_GRID() { + return ICON_BOX_GRID; } - + private static final int ICON_GRID = (int)97L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionIdentity() + * enum .ICON_GRID = 97 * } */ - public static MethodHandle QuaternionIdentity$handle() { - return QuaternionIdentity.HANDLE; + public static int ICON_GRID() { + return ICON_GRID; } - + private static final int ICON_BOX_CORNERS_SMALL = (int)98L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionIdentity() + * enum .ICON_BOX_CORNERS_SMALL = 98 * } */ - public static MemorySegment QuaternionIdentity$address() { - return QuaternionIdentity.ADDR; + public static int ICON_BOX_CORNERS_SMALL() { + return ICON_BOX_CORNERS_SMALL; } - + private static final int ICON_BOX_CORNERS_BIG = (int)99L; /** * {@snippet lang=c : - * Quaternion QuaternionIdentity() + * enum .ICON_BOX_CORNERS_BIG = 99 * } */ - public static MemorySegment QuaternionIdentity(SegmentAllocator allocator) { - var mh$ = QuaternionIdentity.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionIdentity", allocator); - } - return (MemorySegment)mh$.invokeExact(allocator); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionLength { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionLength"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_BOX_CORNERS_BIG() { + return ICON_BOX_CORNERS_BIG; } - + private static final int ICON_FOUR_BOXES = (int)100L; /** - * Function descriptor for: * {@snippet lang=c : - * float QuaternionLength(Quaternion q) + * enum .ICON_FOUR_BOXES = 100 * } */ - public static FunctionDescriptor QuaternionLength$descriptor() { - return QuaternionLength.DESC; + public static int ICON_FOUR_BOXES() { + return ICON_FOUR_BOXES; } - + private static final int ICON_GRID_FILL = (int)101L; /** - * Downcall method handle for: * {@snippet lang=c : - * float QuaternionLength(Quaternion q) + * enum .ICON_GRID_FILL = 101 * } */ - public static MethodHandle QuaternionLength$handle() { - return QuaternionLength.HANDLE; + public static int ICON_GRID_FILL() { + return ICON_GRID_FILL; } - + private static final int ICON_BOX_MULTISIZE = (int)102L; /** - * Address for: * {@snippet lang=c : - * float QuaternionLength(Quaternion q) + * enum .ICON_BOX_MULTISIZE = 102 * } */ - public static MemorySegment QuaternionLength$address() { - return QuaternionLength.ADDR; + public static int ICON_BOX_MULTISIZE() { + return ICON_BOX_MULTISIZE; } - + private static final int ICON_ZOOM_SMALL = (int)103L; /** * {@snippet lang=c : - * float QuaternionLength(Quaternion q) + * enum .ICON_ZOOM_SMALL = 103 * } */ - public static float QuaternionLength(MemorySegment q) { - var mh$ = QuaternionLength.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionLength", q); - } - return (float)mh$.invokeExact(q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionNormalize { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionNormalize"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_ZOOM_SMALL() { + return ICON_ZOOM_SMALL; } - + private static final int ICON_ZOOM_MEDIUM = (int)104L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionNormalize(Quaternion q) + * enum .ICON_ZOOM_MEDIUM = 104 * } */ - public static FunctionDescriptor QuaternionNormalize$descriptor() { - return QuaternionNormalize.DESC; + public static int ICON_ZOOM_MEDIUM() { + return ICON_ZOOM_MEDIUM; } - + private static final int ICON_ZOOM_BIG = (int)105L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionNormalize(Quaternion q) + * enum .ICON_ZOOM_BIG = 105 * } */ - public static MethodHandle QuaternionNormalize$handle() { - return QuaternionNormalize.HANDLE; + public static int ICON_ZOOM_BIG() { + return ICON_ZOOM_BIG; } - + private static final int ICON_ZOOM_ALL = (int)106L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionNormalize(Quaternion q) + * enum .ICON_ZOOM_ALL = 106 * } */ - public static MemorySegment QuaternionNormalize$address() { - return QuaternionNormalize.ADDR; + public static int ICON_ZOOM_ALL() { + return ICON_ZOOM_ALL; } - + private static final int ICON_ZOOM_CENTER = (int)107L; /** * {@snippet lang=c : - * Quaternion QuaternionNormalize(Quaternion q) + * enum .ICON_ZOOM_CENTER = 107 * } */ - public static MemorySegment QuaternionNormalize(SegmentAllocator allocator, MemorySegment q) { - var mh$ = QuaternionNormalize.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionNormalize", allocator, q); - } - return (MemorySegment)mh$.invokeExact(allocator, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_ZOOM_CENTER() { + return ICON_ZOOM_CENTER; } - - private static class QuaternionInvert { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionInvert"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - + private static final int ICON_BOX_DOTS_SMALL = (int)108L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionInvert(Quaternion q) + * enum .ICON_BOX_DOTS_SMALL = 108 * } */ - public static FunctionDescriptor QuaternionInvert$descriptor() { - return QuaternionInvert.DESC; + public static int ICON_BOX_DOTS_SMALL() { + return ICON_BOX_DOTS_SMALL; } - + private static final int ICON_BOX_DOTS_BIG = (int)109L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionInvert(Quaternion q) + * enum .ICON_BOX_DOTS_BIG = 109 * } */ - public static MethodHandle QuaternionInvert$handle() { - return QuaternionInvert.HANDLE; + public static int ICON_BOX_DOTS_BIG() { + return ICON_BOX_DOTS_BIG; } - + private static final int ICON_BOX_CONCENTRIC = (int)110L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionInvert(Quaternion q) + * enum .ICON_BOX_CONCENTRIC = 110 * } */ - public static MemorySegment QuaternionInvert$address() { - return QuaternionInvert.ADDR; + public static int ICON_BOX_CONCENTRIC() { + return ICON_BOX_CONCENTRIC; } - + private static final int ICON_BOX_GRID_BIG = (int)111L; /** * {@snippet lang=c : - * Quaternion QuaternionInvert(Quaternion q) + * enum .ICON_BOX_GRID_BIG = 111 * } */ - public static MemorySegment QuaternionInvert(SegmentAllocator allocator, MemorySegment q) { - var mh$ = QuaternionInvert.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionInvert", allocator, q); - } - return (MemorySegment)mh$.invokeExact(allocator, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionMultiply { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionMultiply"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_BOX_GRID_BIG() { + return ICON_BOX_GRID_BIG; } - + private static final int ICON_OK_TICK = (int)112L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) + * enum .ICON_OK_TICK = 112 * } */ - public static FunctionDescriptor QuaternionMultiply$descriptor() { - return QuaternionMultiply.DESC; + public static int ICON_OK_TICK() { + return ICON_OK_TICK; } - + private static final int ICON_CROSS = (int)113L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) + * enum .ICON_CROSS = 113 * } */ - public static MethodHandle QuaternionMultiply$handle() { - return QuaternionMultiply.HANDLE; + public static int ICON_CROSS() { + return ICON_CROSS; } - + private static final int ICON_ARROW_LEFT = (int)114L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) + * enum .ICON_ARROW_LEFT = 114 * } */ - public static MemorySegment QuaternionMultiply$address() { - return QuaternionMultiply.ADDR; + public static int ICON_ARROW_LEFT() { + return ICON_ARROW_LEFT; } - + private static final int ICON_ARROW_RIGHT = (int)115L; /** * {@snippet lang=c : - * Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2) + * enum .ICON_ARROW_RIGHT = 115 * } */ - public static MemorySegment QuaternionMultiply(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { - var mh$ = QuaternionMultiply.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionMultiply", allocator, q1, q2); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionScale { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionScale"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_ARROW_RIGHT() { + return ICON_ARROW_RIGHT; } - + private static final int ICON_ARROW_DOWN = (int)116L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionScale(Quaternion q, float mul) + * enum .ICON_ARROW_DOWN = 116 * } */ - public static FunctionDescriptor QuaternionScale$descriptor() { - return QuaternionScale.DESC; + public static int ICON_ARROW_DOWN() { + return ICON_ARROW_DOWN; } - + private static final int ICON_ARROW_UP = (int)117L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionScale(Quaternion q, float mul) + * enum .ICON_ARROW_UP = 117 * } */ - public static MethodHandle QuaternionScale$handle() { - return QuaternionScale.HANDLE; + public static int ICON_ARROW_UP() { + return ICON_ARROW_UP; } - + private static final int ICON_ARROW_LEFT_FILL = (int)118L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionScale(Quaternion q, float mul) + * enum .ICON_ARROW_LEFT_FILL = 118 * } */ - public static MemorySegment QuaternionScale$address() { - return QuaternionScale.ADDR; + public static int ICON_ARROW_LEFT_FILL() { + return ICON_ARROW_LEFT_FILL; } - + private static final int ICON_ARROW_RIGHT_FILL = (int)119L; /** * {@snippet lang=c : - * Quaternion QuaternionScale(Quaternion q, float mul) + * enum .ICON_ARROW_RIGHT_FILL = 119 * } */ - public static MemorySegment QuaternionScale(SegmentAllocator allocator, MemorySegment q, float mul) { - var mh$ = QuaternionScale.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionScale", allocator, q, mul); - } - return (MemorySegment)mh$.invokeExact(allocator, q, mul); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionDivide { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionDivide"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_ARROW_RIGHT_FILL() { + return ICON_ARROW_RIGHT_FILL; } - + private static final int ICON_ARROW_DOWN_FILL = (int)120L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) + * enum .ICON_ARROW_DOWN_FILL = 120 * } */ - public static FunctionDescriptor QuaternionDivide$descriptor() { - return QuaternionDivide.DESC; + public static int ICON_ARROW_DOWN_FILL() { + return ICON_ARROW_DOWN_FILL; } - + private static final int ICON_ARROW_UP_FILL = (int)121L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) + * enum .ICON_ARROW_UP_FILL = 121 * } */ - public static MethodHandle QuaternionDivide$handle() { - return QuaternionDivide.HANDLE; + public static int ICON_ARROW_UP_FILL() { + return ICON_ARROW_UP_FILL; } - + private static final int ICON_AUDIO = (int)122L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) + * enum .ICON_AUDIO = 122 * } */ - public static MemorySegment QuaternionDivide$address() { - return QuaternionDivide.ADDR; + public static int ICON_AUDIO() { + return ICON_AUDIO; } - + private static final int ICON_FX = (int)123L; /** * {@snippet lang=c : - * Quaternion QuaternionDivide(Quaternion q1, Quaternion q2) + * enum .ICON_FX = 123 * } */ - public static MemorySegment QuaternionDivide(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2) { - var mh$ = QuaternionDivide.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionDivide", allocator, q1, q2); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_FX() { + return ICON_FX; } - - private static class QuaternionLerp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionLerp"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_WAVE = (int)124L; + /** + * {@snippet lang=c : + * enum .ICON_WAVE = 124 + * } + */ + public static int ICON_WAVE() { + return ICON_WAVE; } - + private static final int ICON_WAVE_SINUS = (int)125L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_WAVE_SINUS = 125 * } */ - public static FunctionDescriptor QuaternionLerp$descriptor() { - return QuaternionLerp.DESC; + public static int ICON_WAVE_SINUS() { + return ICON_WAVE_SINUS; } - + private static final int ICON_WAVE_SQUARE = (int)126L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_WAVE_SQUARE = 126 * } */ - public static MethodHandle QuaternionLerp$handle() { - return QuaternionLerp.HANDLE; + public static int ICON_WAVE_SQUARE() { + return ICON_WAVE_SQUARE; } - + private static final int ICON_WAVE_TRIANGULAR = (int)127L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_WAVE_TRIANGULAR = 127 * } */ - public static MemorySegment QuaternionLerp$address() { - return QuaternionLerp.ADDR; + public static int ICON_WAVE_TRIANGULAR() { + return ICON_WAVE_TRIANGULAR; } - + private static final int ICON_CROSS_SMALL = (int)128L; /** * {@snippet lang=c : - * Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_CROSS_SMALL = 128 * } */ - public static MemorySegment QuaternionLerp(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2, float amount) { - var mh$ = QuaternionLerp.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionLerp", allocator, q1, q2, amount); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2, amount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_CROSS_SMALL() { + return ICON_CROSS_SMALL; } - - private static class QuaternionNlerp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionNlerp"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_PLAYER_PREVIOUS = (int)129L; + /** + * {@snippet lang=c : + * enum .ICON_PLAYER_PREVIOUS = 129 + * } + */ + public static int ICON_PLAYER_PREVIOUS() { + return ICON_PLAYER_PREVIOUS; } - + private static final int ICON_PLAYER_PLAY_BACK = (int)130L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_PLAYER_PLAY_BACK = 130 * } */ - public static FunctionDescriptor QuaternionNlerp$descriptor() { - return QuaternionNlerp.DESC; + public static int ICON_PLAYER_PLAY_BACK() { + return ICON_PLAYER_PLAY_BACK; } - + private static final int ICON_PLAYER_PLAY = (int)131L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_PLAYER_PLAY = 131 * } */ - public static MethodHandle QuaternionNlerp$handle() { - return QuaternionNlerp.HANDLE; + public static int ICON_PLAYER_PLAY() { + return ICON_PLAYER_PLAY; } - + private static final int ICON_PLAYER_PAUSE = (int)132L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_PLAYER_PAUSE = 132 * } */ - public static MemorySegment QuaternionNlerp$address() { - return QuaternionNlerp.ADDR; + public static int ICON_PLAYER_PAUSE() { + return ICON_PLAYER_PAUSE; } - + private static final int ICON_PLAYER_STOP = (int)133L; /** * {@snippet lang=c : - * Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_PLAYER_STOP = 133 * } */ - public static MemorySegment QuaternionNlerp(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2, float amount) { - var mh$ = QuaternionNlerp.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionNlerp", allocator, q1, q2, amount); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2, amount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_PLAYER_STOP() { + return ICON_PLAYER_STOP; } - - private static class QuaternionSlerp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionSlerp"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_PLAYER_NEXT = (int)134L; + /** + * {@snippet lang=c : + * enum .ICON_PLAYER_NEXT = 134 + * } + */ + public static int ICON_PLAYER_NEXT() { + return ICON_PLAYER_NEXT; } - + private static final int ICON_PLAYER_RECORD = (int)135L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_PLAYER_RECORD = 135 * } */ - public static FunctionDescriptor QuaternionSlerp$descriptor() { - return QuaternionSlerp.DESC; + public static int ICON_PLAYER_RECORD() { + return ICON_PLAYER_RECORD; } - + private static final int ICON_MAGNET = (int)136L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_MAGNET = 136 * } */ - public static MethodHandle QuaternionSlerp$handle() { - return QuaternionSlerp.HANDLE; + public static int ICON_MAGNET() { + return ICON_MAGNET; } - + private static final int ICON_LOCK_CLOSE = (int)137L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_LOCK_CLOSE = 137 * } */ - public static MemorySegment QuaternionSlerp$address() { - return QuaternionSlerp.ADDR; + public static int ICON_LOCK_CLOSE() { + return ICON_LOCK_CLOSE; } - + private static final int ICON_LOCK_OPEN = (int)138L; /** * {@snippet lang=c : - * Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount) + * enum .ICON_LOCK_OPEN = 138 * } */ - public static MemorySegment QuaternionSlerp(SegmentAllocator allocator, MemorySegment q1, MemorySegment q2, float amount) { - var mh$ = QuaternionSlerp.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionSlerp", allocator, q1, q2, amount); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, q2, amount); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_LOCK_OPEN() { + return ICON_LOCK_OPEN; } - - private static class QuaternionCubicHermiteSpline { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - Vector4.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionCubicHermiteSpline"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_CLOCK = (int)139L; + /** + * {@snippet lang=c : + * enum .ICON_CLOCK = 139 + * } + */ + public static int ICON_CLOCK() { + return ICON_CLOCK; } - + private static final int ICON_TOOLS = (int)140L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) + * enum .ICON_TOOLS = 140 * } */ - public static FunctionDescriptor QuaternionCubicHermiteSpline$descriptor() { - return QuaternionCubicHermiteSpline.DESC; + public static int ICON_TOOLS() { + return ICON_TOOLS; } - + private static final int ICON_GEAR = (int)141L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) + * enum .ICON_GEAR = 141 * } */ - public static MethodHandle QuaternionCubicHermiteSpline$handle() { - return QuaternionCubicHermiteSpline.HANDLE; + public static int ICON_GEAR() { + return ICON_GEAR; } - + private static final int ICON_GEAR_BIG = (int)142L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) + * enum .ICON_GEAR_BIG = 142 * } */ - public static MemorySegment QuaternionCubicHermiteSpline$address() { - return QuaternionCubicHermiteSpline.ADDR; + public static int ICON_GEAR_BIG() { + return ICON_GEAR_BIG; } - + private static final int ICON_BIN = (int)143L; /** * {@snippet lang=c : - * Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t) + * enum .ICON_BIN = 143 * } */ - public static MemorySegment QuaternionCubicHermiteSpline(SegmentAllocator allocator, MemorySegment q1, MemorySegment outTangent1, MemorySegment q2, MemorySegment inTangent2, float t) { - var mh$ = QuaternionCubicHermiteSpline.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionCubicHermiteSpline", allocator, q1, outTangent1, q2, inTangent2, t); - } - return (MemorySegment)mh$.invokeExact(allocator, q1, outTangent1, q2, inTangent2, t); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_BIN() { + return ICON_BIN; } - - private static class QuaternionFromVector3ToVector3 { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector3.layout(), - Vector3.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromVector3ToVector3"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_HAND_POINTER = (int)144L; + /** + * {@snippet lang=c : + * enum .ICON_HAND_POINTER = 144 + * } + */ + public static int ICON_HAND_POINTER() { + return ICON_HAND_POINTER; } - + private static final int ICON_LASER = (int)145L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) + * enum .ICON_LASER = 145 * } */ - public static FunctionDescriptor QuaternionFromVector3ToVector3$descriptor() { - return QuaternionFromVector3ToVector3.DESC; + public static int ICON_LASER() { + return ICON_LASER; } - + private static final int ICON_COIN = (int)146L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) + * enum .ICON_COIN = 146 * } */ - public static MethodHandle QuaternionFromVector3ToVector3$handle() { - return QuaternionFromVector3ToVector3.HANDLE; + public static int ICON_COIN() { + return ICON_COIN; } - + private static final int ICON_EXPLOSION = (int)147L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) + * enum .ICON_EXPLOSION = 147 * } */ - public static MemorySegment QuaternionFromVector3ToVector3$address() { - return QuaternionFromVector3ToVector3.ADDR; + public static int ICON_EXPLOSION() { + return ICON_EXPLOSION; } - + private static final int ICON_1UP = (int)148L; /** * {@snippet lang=c : - * Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to) + * enum .ICON_1UP = 148 * } */ - public static MemorySegment QuaternionFromVector3ToVector3(SegmentAllocator allocator, MemorySegment from, MemorySegment to) { - var mh$ = QuaternionFromVector3ToVector3.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionFromVector3ToVector3", allocator, from, to); - } - return (MemorySegment)mh$.invokeExact(allocator, from, to); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_1UP() { + return ICON_1UP; } - - private static class QuaternionFromMatrix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromMatrix"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_PLAYER = (int)149L; + /** + * {@snippet lang=c : + * enum .ICON_PLAYER = 149 + * } + */ + public static int ICON_PLAYER() { + return ICON_PLAYER; } - + private static final int ICON_PLAYER_JUMP = (int)150L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionFromMatrix(Matrix mat) + * enum .ICON_PLAYER_JUMP = 150 * } */ - public static FunctionDescriptor QuaternionFromMatrix$descriptor() { - return QuaternionFromMatrix.DESC; + public static int ICON_PLAYER_JUMP() { + return ICON_PLAYER_JUMP; } - + private static final int ICON_KEY = (int)151L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionFromMatrix(Matrix mat) + * enum .ICON_KEY = 151 * } */ - public static MethodHandle QuaternionFromMatrix$handle() { - return QuaternionFromMatrix.HANDLE; + public static int ICON_KEY() { + return ICON_KEY; } - + private static final int ICON_DEMON = (int)152L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionFromMatrix(Matrix mat) + * enum .ICON_DEMON = 152 * } */ - public static MemorySegment QuaternionFromMatrix$address() { - return QuaternionFromMatrix.ADDR; + public static int ICON_DEMON() { + return ICON_DEMON; } - + private static final int ICON_TEXT_POPUP = (int)153L; /** * {@snippet lang=c : - * Quaternion QuaternionFromMatrix(Matrix mat) + * enum .ICON_TEXT_POPUP = 153 * } */ - public static MemorySegment QuaternionFromMatrix(SegmentAllocator allocator, MemorySegment mat) { - var mh$ = QuaternionFromMatrix.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionFromMatrix", allocator, mat); - } - return (MemorySegment)mh$.invokeExact(allocator, mat); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionToMatrix { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionToMatrix"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_TEXT_POPUP() { + return ICON_TEXT_POPUP; } - + private static final int ICON_GEAR_EX = (int)154L; /** - * Function descriptor for: * {@snippet lang=c : - * Matrix QuaternionToMatrix(Quaternion q) + * enum .ICON_GEAR_EX = 154 * } */ - public static FunctionDescriptor QuaternionToMatrix$descriptor() { - return QuaternionToMatrix.DESC; + public static int ICON_GEAR_EX() { + return ICON_GEAR_EX; } - + private static final int ICON_CRACK = (int)155L; /** - * Downcall method handle for: * {@snippet lang=c : - * Matrix QuaternionToMatrix(Quaternion q) + * enum .ICON_CRACK = 155 * } */ - public static MethodHandle QuaternionToMatrix$handle() { - return QuaternionToMatrix.HANDLE; + public static int ICON_CRACK() { + return ICON_CRACK; } - + private static final int ICON_CRACK_POINTS = (int)156L; /** - * Address for: * {@snippet lang=c : - * Matrix QuaternionToMatrix(Quaternion q) + * enum .ICON_CRACK_POINTS = 156 * } */ - public static MemorySegment QuaternionToMatrix$address() { - return QuaternionToMatrix.ADDR; + public static int ICON_CRACK_POINTS() { + return ICON_CRACK_POINTS; } - + private static final int ICON_STAR = (int)157L; /** * {@snippet lang=c : - * Matrix QuaternionToMatrix(Quaternion q) + * enum .ICON_STAR = 157 * } */ - public static MemorySegment QuaternionToMatrix(SegmentAllocator allocator, MemorySegment q) { - var mh$ = QuaternionToMatrix.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionToMatrix", allocator, q); - } - return (MemorySegment)mh$.invokeExact(allocator, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionFromAxisAngle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector3.layout(), - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromAxisAngle"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_STAR() { + return ICON_STAR; } - + private static final int ICON_DOOR = (int)158L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) + * enum .ICON_DOOR = 158 * } */ - public static FunctionDescriptor QuaternionFromAxisAngle$descriptor() { - return QuaternionFromAxisAngle.DESC; + public static int ICON_DOOR() { + return ICON_DOOR; } - + private static final int ICON_EXIT = (int)159L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) + * enum .ICON_EXIT = 159 * } */ - public static MethodHandle QuaternionFromAxisAngle$handle() { - return QuaternionFromAxisAngle.HANDLE; + public static int ICON_EXIT() { + return ICON_EXIT; } - + private static final int ICON_MODE_2D = (int)160L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) + * enum .ICON_MODE_2D = 160 * } */ - public static MemorySegment QuaternionFromAxisAngle$address() { - return QuaternionFromAxisAngle.ADDR; + public static int ICON_MODE_2D() { + return ICON_MODE_2D; } - + private static final int ICON_MODE_3D = (int)161L; /** * {@snippet lang=c : - * Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle) + * enum .ICON_MODE_3D = 161 * } */ - public static MemorySegment QuaternionFromAxisAngle(SegmentAllocator allocator, MemorySegment axis, float angle) { - var mh$ = QuaternionFromAxisAngle.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionFromAxisAngle", allocator, axis, angle); - } - return (MemorySegment)mh$.invokeExact(allocator, axis, angle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionToAxisAngle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector4.layout(), - raylib.C_POINTER, - raylib.C_POINTER - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionToAxisAngle"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_MODE_3D() { + return ICON_MODE_3D; } - + private static final int ICON_CUBE = (int)162L; /** - * Function descriptor for: * {@snippet lang=c : - * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) + * enum .ICON_CUBE = 162 * } */ - public static FunctionDescriptor QuaternionToAxisAngle$descriptor() { - return QuaternionToAxisAngle.DESC; + public static int ICON_CUBE() { + return ICON_CUBE; } - + private static final int ICON_CUBE_FACE_TOP = (int)163L; /** - * Downcall method handle for: * {@snippet lang=c : - * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) + * enum .ICON_CUBE_FACE_TOP = 163 * } */ - public static MethodHandle QuaternionToAxisAngle$handle() { - return QuaternionToAxisAngle.HANDLE; + public static int ICON_CUBE_FACE_TOP() { + return ICON_CUBE_FACE_TOP; } - + private static final int ICON_CUBE_FACE_LEFT = (int)164L; /** - * Address for: * {@snippet lang=c : - * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) + * enum .ICON_CUBE_FACE_LEFT = 164 * } */ - public static MemorySegment QuaternionToAxisAngle$address() { - return QuaternionToAxisAngle.ADDR; + public static int ICON_CUBE_FACE_LEFT() { + return ICON_CUBE_FACE_LEFT; } - + private static final int ICON_CUBE_FACE_FRONT = (int)165L; /** * {@snippet lang=c : - * void QuaternionToAxisAngle(Quaternion q, Vector3 *outAxis, float *outAngle) + * enum .ICON_CUBE_FACE_FRONT = 165 * } */ - public static void QuaternionToAxisAngle(MemorySegment q, MemorySegment outAxis, MemorySegment outAngle) { - var mh$ = QuaternionToAxisAngle.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionToAxisAngle", q, outAxis, outAngle); - } - mh$.invokeExact(q, outAxis, outAngle); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_CUBE_FACE_FRONT() { + return ICON_CUBE_FACE_FRONT; } - - private static class QuaternionFromEuler { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionFromEuler"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); - } - + private static final int ICON_CUBE_FACE_BOTTOM = (int)166L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) + * enum .ICON_CUBE_FACE_BOTTOM = 166 * } */ - public static FunctionDescriptor QuaternionFromEuler$descriptor() { - return QuaternionFromEuler.DESC; + public static int ICON_CUBE_FACE_BOTTOM() { + return ICON_CUBE_FACE_BOTTOM; } - + private static final int ICON_CUBE_FACE_RIGHT = (int)167L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) + * enum .ICON_CUBE_FACE_RIGHT = 167 * } */ - public static MethodHandle QuaternionFromEuler$handle() { - return QuaternionFromEuler.HANDLE; + public static int ICON_CUBE_FACE_RIGHT() { + return ICON_CUBE_FACE_RIGHT; } - + private static final int ICON_CUBE_FACE_BACK = (int)168L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) + * enum .ICON_CUBE_FACE_BACK = 168 * } */ - public static MemorySegment QuaternionFromEuler$address() { - return QuaternionFromEuler.ADDR; + public static int ICON_CUBE_FACE_BACK() { + return ICON_CUBE_FACE_BACK; } - + private static final int ICON_CAMERA = (int)169L; /** * {@snippet lang=c : - * Quaternion QuaternionFromEuler(float pitch, float yaw, float roll) + * enum .ICON_CAMERA = 169 * } */ - public static MemorySegment QuaternionFromEuler(SegmentAllocator allocator, float pitch, float yaw, float roll) { - var mh$ = QuaternionFromEuler.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionFromEuler", allocator, pitch, yaw, roll); - } - return (MemorySegment)mh$.invokeExact(allocator, pitch, yaw, roll); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionToEuler { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector3.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionToEuler"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_CAMERA() { + return ICON_CAMERA; } - + private static final int ICON_SPECIAL = (int)170L; /** - * Function descriptor for: * {@snippet lang=c : - * Vector3 QuaternionToEuler(Quaternion q) + * enum .ICON_SPECIAL = 170 * } */ - public static FunctionDescriptor QuaternionToEuler$descriptor() { - return QuaternionToEuler.DESC; + public static int ICON_SPECIAL() { + return ICON_SPECIAL; } - + private static final int ICON_LINK_NET = (int)171L; /** - * Downcall method handle for: * {@snippet lang=c : - * Vector3 QuaternionToEuler(Quaternion q) + * enum .ICON_LINK_NET = 171 * } */ - public static MethodHandle QuaternionToEuler$handle() { - return QuaternionToEuler.HANDLE; + public static int ICON_LINK_NET() { + return ICON_LINK_NET; } - + private static final int ICON_LINK_BOXES = (int)172L; /** - * Address for: * {@snippet lang=c : - * Vector3 QuaternionToEuler(Quaternion q) + * enum .ICON_LINK_BOXES = 172 * } */ - public static MemorySegment QuaternionToEuler$address() { - return QuaternionToEuler.ADDR; + public static int ICON_LINK_BOXES() { + return ICON_LINK_BOXES; } - + private static final int ICON_LINK_MULTI = (int)173L; /** * {@snippet lang=c : - * Vector3 QuaternionToEuler(Quaternion q) + * enum .ICON_LINK_MULTI = 173 * } */ - public static MemorySegment QuaternionToEuler(SegmentAllocator allocator, MemorySegment q) { - var mh$ = QuaternionToEuler.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionToEuler", allocator, q); - } - return (MemorySegment)mh$.invokeExact(allocator, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_LINK_MULTI() { + return ICON_LINK_MULTI; } - - private static class QuaternionTransform { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector4.layout(), - Vector4.layout(), - Matrix.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionTransform"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + private static final int ICON_LINK = (int)174L; + /** + * {@snippet lang=c : + * enum .ICON_LINK = 174 + * } + */ + public static int ICON_LINK() { + return ICON_LINK; } - + private static final int ICON_LINK_BROKE = (int)175L; /** - * Function descriptor for: * {@snippet lang=c : - * Quaternion QuaternionTransform(Quaternion q, Matrix mat) + * enum .ICON_LINK_BROKE = 175 * } */ - public static FunctionDescriptor QuaternionTransform$descriptor() { - return QuaternionTransform.DESC; + public static int ICON_LINK_BROKE() { + return ICON_LINK_BROKE; } - + private static final int ICON_TEXT_NOTES = (int)176L; /** - * Downcall method handle for: * {@snippet lang=c : - * Quaternion QuaternionTransform(Quaternion q, Matrix mat) + * enum .ICON_TEXT_NOTES = 176 * } */ - public static MethodHandle QuaternionTransform$handle() { - return QuaternionTransform.HANDLE; + public static int ICON_TEXT_NOTES() { + return ICON_TEXT_NOTES; } - + private static final int ICON_NOTEBOOK = (int)177L; /** - * Address for: * {@snippet lang=c : - * Quaternion QuaternionTransform(Quaternion q, Matrix mat) + * enum .ICON_NOTEBOOK = 177 * } */ - public static MemorySegment QuaternionTransform$address() { - return QuaternionTransform.ADDR; + public static int ICON_NOTEBOOK() { + return ICON_NOTEBOOK; + } + private static final int ICON_SUITCASE = (int)178L; + /** + * {@snippet lang=c : + * enum .ICON_SUITCASE = 178 + * } + */ + public static int ICON_SUITCASE() { + return ICON_SUITCASE; } - + private static final int ICON_SUITCASE_ZIP = (int)179L; /** * {@snippet lang=c : - * Quaternion QuaternionTransform(Quaternion q, Matrix mat) + * enum .ICON_SUITCASE_ZIP = 179 * } */ - public static MemorySegment QuaternionTransform(SegmentAllocator allocator, MemorySegment q, MemorySegment mat) { - var mh$ = QuaternionTransform.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionTransform", allocator, q, mat); - } - return (MemorySegment)mh$.invokeExact(allocator, q, mat); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - - private static class QuaternionEquals { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - Vector4.layout(), - Vector4.layout() - ); - - public static final MemorySegment ADDR = raylib.findOrThrow("QuaternionEquals"); - - public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + public static int ICON_SUITCASE_ZIP() { + return ICON_SUITCASE_ZIP; } - + private static final int ICON_MAILBOX = (int)180L; /** - * Function descriptor for: * {@snippet lang=c : - * int QuaternionEquals(Quaternion p, Quaternion q) + * enum .ICON_MAILBOX = 180 * } */ - public static FunctionDescriptor QuaternionEquals$descriptor() { - return QuaternionEquals.DESC; + public static int ICON_MAILBOX() { + return ICON_MAILBOX; } - + private static final int ICON_MONITOR = (int)181L; /** - * Downcall method handle for: * {@snippet lang=c : - * int QuaternionEquals(Quaternion p, Quaternion q) + * enum .ICON_MONITOR = 181 * } */ - public static MethodHandle QuaternionEquals$handle() { - return QuaternionEquals.HANDLE; + public static int ICON_MONITOR() { + return ICON_MONITOR; } - + private static final int ICON_PRINTER = (int)182L; /** - * Address for: * {@snippet lang=c : - * int QuaternionEquals(Quaternion p, Quaternion q) + * enum .ICON_PRINTER = 182 * } */ - public static MemorySegment QuaternionEquals$address() { - return QuaternionEquals.ADDR; + public static int ICON_PRINTER() { + return ICON_PRINTER; } - + private static final int ICON_PHOTO_CAMERA = (int)183L; /** * {@snippet lang=c : - * int QuaternionEquals(Quaternion p, Quaternion q) + * enum .ICON_PHOTO_CAMERA = 183 * } */ - public static int QuaternionEquals(MemorySegment p, MemorySegment q) { - var mh$ = QuaternionEquals.HANDLE; - try { - if (TRACE_DOWNCALLS) { - traceDowncall("QuaternionEquals", p, q); - } - return (int)mh$.invokeExact(p, q); - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } + public static int ICON_PHOTO_CAMERA() { + return ICON_PHOTO_CAMERA; } + private static final int ICON_PHOTO_CAMERA_FLASH = (int)184L; /** * {@snippet lang=c : - * #define RAYLIB_VERSION "5.1-dev" + * enum .ICON_PHOTO_CAMERA_FLASH = 184 * } */ - public static MemorySegment RAYLIB_VERSION() { - class Holder { - static final MemorySegment RAYLIB_VERSION - = raylib.LIBRARY_ARENA.allocateFrom("5.1-dev"); - } - return Holder.RAYLIB_VERSION; + public static int ICON_PHOTO_CAMERA_FLASH() { + return ICON_PHOTO_CAMERA_FLASH; } - private static final float PI = 3.1415927410125732f; + private static final int ICON_HOUSE = (int)185L; /** * {@snippet lang=c : - * #define PI 3.1415927410125732 + * enum .ICON_HOUSE = 185 * } */ - public static float PI() { - return PI; + public static int ICON_HOUSE() { + return ICON_HOUSE; } - private static final float DEG2RAD = 0.01745329238474369f; + private static final int ICON_HEART = (int)186L; /** * {@snippet lang=c : - * #define DEG2RAD 0.01745329238474369 + * enum .ICON_HEART = 186 * } */ - public static float DEG2RAD() { - return DEG2RAD; + public static int ICON_HEART() { + return ICON_HEART; } - private static final float RAD2DEG = 57.2957763671875f; + private static final int ICON_CORNER = (int)187L; /** * {@snippet lang=c : - * #define RAD2DEG 57.2957763671875 + * enum .ICON_CORNER = 187 * } */ - public static float RAD2DEG() { - return RAD2DEG; + public static int ICON_CORNER() { + return ICON_CORNER; } - private static final int MOUSE_LEFT_BUTTON = (int)0L; + private static final int ICON_VERTICAL_BARS = (int)188L; /** * {@snippet lang=c : - * #define MOUSE_LEFT_BUTTON 0 + * enum .ICON_VERTICAL_BARS = 188 * } */ - public static int MOUSE_LEFT_BUTTON() { - return MOUSE_LEFT_BUTTON; + public static int ICON_VERTICAL_BARS() { + return ICON_VERTICAL_BARS; } - private static final int MOUSE_RIGHT_BUTTON = (int)1L; + private static final int ICON_VERTICAL_BARS_FILL = (int)189L; /** * {@snippet lang=c : - * #define MOUSE_RIGHT_BUTTON 1 + * enum .ICON_VERTICAL_BARS_FILL = 189 * } */ - public static int MOUSE_RIGHT_BUTTON() { - return MOUSE_RIGHT_BUTTON; + public static int ICON_VERTICAL_BARS_FILL() { + return ICON_VERTICAL_BARS_FILL; } - private static final int MOUSE_MIDDLE_BUTTON = (int)2L; + private static final int ICON_LIFE_BARS = (int)190L; /** * {@snippet lang=c : - * #define MOUSE_MIDDLE_BUTTON 2 + * enum .ICON_LIFE_BARS = 190 * } */ - public static int MOUSE_MIDDLE_BUTTON() { - return MOUSE_MIDDLE_BUTTON; + public static int ICON_LIFE_BARS() { + return ICON_LIFE_BARS; } - private static final int MATERIAL_MAP_DIFFUSE = (int)0L; + private static final int ICON_INFO = (int)191L; /** * {@snippet lang=c : - * #define MATERIAL_MAP_DIFFUSE 0 + * enum .ICON_INFO = 191 * } */ - public static int MATERIAL_MAP_DIFFUSE() { - return MATERIAL_MAP_DIFFUSE; + public static int ICON_INFO() { + return ICON_INFO; } - private static final int MATERIAL_MAP_SPECULAR = (int)1L; + private static final int ICON_CROSSLINE = (int)192L; /** * {@snippet lang=c : - * #define MATERIAL_MAP_SPECULAR 1 + * enum .ICON_CROSSLINE = 192 * } */ - public static int MATERIAL_MAP_SPECULAR() { - return MATERIAL_MAP_SPECULAR; + public static int ICON_CROSSLINE() { + return ICON_CROSSLINE; } - private static final int SHADER_LOC_MAP_DIFFUSE = (int)15L; + private static final int ICON_HELP = (int)193L; /** * {@snippet lang=c : - * #define SHADER_LOC_MAP_DIFFUSE 15 + * enum .ICON_HELP = 193 * } */ - public static int SHADER_LOC_MAP_DIFFUSE() { - return SHADER_LOC_MAP_DIFFUSE; + public static int ICON_HELP() { + return ICON_HELP; } - private static final int SHADER_LOC_MAP_SPECULAR = (int)16L; + private static final int ICON_FILETYPE_ALPHA = (int)194L; /** * {@snippet lang=c : - * #define SHADER_LOC_MAP_SPECULAR 16 + * enum .ICON_FILETYPE_ALPHA = 194 * } */ - public static int SHADER_LOC_MAP_SPECULAR() { - return SHADER_LOC_MAP_SPECULAR; + public static int ICON_FILETYPE_ALPHA() { + return ICON_FILETYPE_ALPHA; } + private static final int ICON_FILETYPE_HOME = (int)195L; /** * {@snippet lang=c : - * #define RLGL_VERSION "5.0" + * enum .ICON_FILETYPE_HOME = 195 * } */ - public static MemorySegment RLGL_VERSION() { - class Holder { - static final MemorySegment RLGL_VERSION - = raylib.LIBRARY_ARENA.allocateFrom("5.0"); - } - return Holder.RLGL_VERSION; + public static int ICON_FILETYPE_HOME() { + return ICON_FILETYPE_HOME; } - private static final double RL_CULL_DISTANCE_NEAR = 0.01d; + private static final int ICON_LAYERS_VISIBLE = (int)196L; /** * {@snippet lang=c : - * #define RL_CULL_DISTANCE_NEAR 0.01 + * enum .ICON_LAYERS_VISIBLE = 196 * } */ - public static double RL_CULL_DISTANCE_NEAR() { - return RL_CULL_DISTANCE_NEAR; + public static int ICON_LAYERS_VISIBLE() { + return ICON_LAYERS_VISIBLE; } - private static final double RL_CULL_DISTANCE_FAR = 1000.0d; + private static final int ICON_LAYERS = (int)197L; /** * {@snippet lang=c : - * #define RL_CULL_DISTANCE_FAR 1000.0 + * enum .ICON_LAYERS = 197 * } */ - public static double RL_CULL_DISTANCE_FAR() { - return RL_CULL_DISTANCE_FAR; + public static int ICON_LAYERS() { + return ICON_LAYERS; } - private static final int RL_SHADER_LOC_MAP_DIFFUSE = (int)15L; + private static final int ICON_WINDOW = (int)198L; /** * {@snippet lang=c : - * #define RL_SHADER_LOC_MAP_DIFFUSE 15 + * enum .ICON_WINDOW = 198 * } */ - public static int RL_SHADER_LOC_MAP_DIFFUSE() { - return RL_SHADER_LOC_MAP_DIFFUSE; + public static int ICON_WINDOW() { + return ICON_WINDOW; } - private static final int RL_SHADER_LOC_MAP_SPECULAR = (int)16L; + private static final int ICON_HIDPI = (int)199L; /** * {@snippet lang=c : - * #define RL_SHADER_LOC_MAP_SPECULAR 16 + * enum .ICON_HIDPI = 199 * } */ - public static int RL_SHADER_LOC_MAP_SPECULAR() { - return RL_SHADER_LOC_MAP_SPECULAR; + public static int ICON_HIDPI() { + return ICON_HIDPI; } - private static final float EPSILON = 9.999999974752427E-7f; + private static final int ICON_FILETYPE_BINARY = (int)200L; /** * {@snippet lang=c : - * #define EPSILON 9.999999974752427E-7 + * enum .ICON_FILETYPE_BINARY = 200 * } */ - public static float EPSILON() { - return EPSILON; + public static int ICON_FILETYPE_BINARY() { + return ICON_FILETYPE_BINARY; } + private static final int ICON_HEX = (int)201L; /** * {@snippet lang=c : - * #define __DARWIN_SUF_EXTSN "$DARWIN_EXTSN" + * enum .ICON_HEX = 201 * } */ - public static MemorySegment __DARWIN_SUF_EXTSN() { - class Holder { - static final MemorySegment __DARWIN_SUF_EXTSN - = raylib.LIBRARY_ARENA.allocateFrom("$DARWIN_EXTSN"); - } - return Holder.__DARWIN_SUF_EXTSN; + public static int ICON_HEX() { + return ICON_HEX; } - private static final long __DARWIN_C_ANSI = 4096L; + private static final int ICON_SHIELD = (int)202L; /** * {@snippet lang=c : - * #define __DARWIN_C_ANSI 4096 + * enum .ICON_SHIELD = 202 * } */ - public static long __DARWIN_C_ANSI() { - return __DARWIN_C_ANSI; + public static int ICON_SHIELD() { + return ICON_SHIELD; } - private static final long __DARWIN_C_FULL = 900000L; + private static final int ICON_FILE_NEW = (int)203L; /** * {@snippet lang=c : - * #define __DARWIN_C_FULL 900000 + * enum .ICON_FILE_NEW = 203 * } */ - public static long __DARWIN_C_FULL() { - return __DARWIN_C_FULL; + public static int ICON_FILE_NEW() { + return ICON_FILE_NEW; } - private static final long __DARWIN_C_LEVEL = 900000L; + private static final int ICON_FOLDER_ADD = (int)204L; /** * {@snippet lang=c : - * #define __DARWIN_C_LEVEL 900000 + * enum .ICON_FOLDER_ADD = 204 * } */ - public static long __DARWIN_C_LEVEL() { - return __DARWIN_C_LEVEL; + public static int ICON_FOLDER_ADD() { + return ICON_FOLDER_ADD; } - private static final int MAC_OS_X_VERSION_10_0 = (int)1000L; + private static final int ICON_ALARM = (int)205L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_0 1000 + * enum .ICON_ALARM = 205 * } */ - public static int MAC_OS_X_VERSION_10_0() { - return MAC_OS_X_VERSION_10_0; + public static int ICON_ALARM() { + return ICON_ALARM; } - private static final int MAC_OS_X_VERSION_10_1 = (int)1010L; + private static final int ICON_CPU = (int)206L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_1 1010 + * enum .ICON_CPU = 206 * } */ - public static int MAC_OS_X_VERSION_10_1() { - return MAC_OS_X_VERSION_10_1; + public static int ICON_CPU() { + return ICON_CPU; } - private static final int MAC_OS_X_VERSION_10_2 = (int)1020L; + private static final int ICON_ROM = (int)207L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_2 1020 + * enum .ICON_ROM = 207 * } */ - public static int MAC_OS_X_VERSION_10_2() { - return MAC_OS_X_VERSION_10_2; + public static int ICON_ROM() { + return ICON_ROM; } - private static final int MAC_OS_X_VERSION_10_3 = (int)1030L; + private static final int ICON_STEP_OVER = (int)208L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_3 1030 + * enum .ICON_STEP_OVER = 208 * } */ - public static int MAC_OS_X_VERSION_10_3() { - return MAC_OS_X_VERSION_10_3; + public static int ICON_STEP_OVER() { + return ICON_STEP_OVER; } - private static final int MAC_OS_X_VERSION_10_4 = (int)1040L; + private static final int ICON_STEP_INTO = (int)209L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_4 1040 + * enum .ICON_STEP_INTO = 209 * } */ - public static int MAC_OS_X_VERSION_10_4() { - return MAC_OS_X_VERSION_10_4; + public static int ICON_STEP_INTO() { + return ICON_STEP_INTO; } - private static final int MAC_OS_X_VERSION_10_5 = (int)1050L; + private static final int ICON_STEP_OUT = (int)210L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_5 1050 + * enum .ICON_STEP_OUT = 210 * } */ - public static int MAC_OS_X_VERSION_10_5() { - return MAC_OS_X_VERSION_10_5; + public static int ICON_STEP_OUT() { + return ICON_STEP_OUT; } - private static final int MAC_OS_X_VERSION_10_6 = (int)1060L; + private static final int ICON_RESTART = (int)211L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_6 1060 + * enum .ICON_RESTART = 211 * } */ - public static int MAC_OS_X_VERSION_10_6() { - return MAC_OS_X_VERSION_10_6; + public static int ICON_RESTART() { + return ICON_RESTART; } - private static final int MAC_OS_X_VERSION_10_7 = (int)1070L; + private static final int ICON_BREAKPOINT_ON = (int)212L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_7 1070 + * enum .ICON_BREAKPOINT_ON = 212 * } */ - public static int MAC_OS_X_VERSION_10_7() { - return MAC_OS_X_VERSION_10_7; + public static int ICON_BREAKPOINT_ON() { + return ICON_BREAKPOINT_ON; } - private static final int MAC_OS_X_VERSION_10_8 = (int)1080L; + private static final int ICON_BREAKPOINT_OFF = (int)213L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_8 1080 + * enum .ICON_BREAKPOINT_OFF = 213 * } */ - public static int MAC_OS_X_VERSION_10_8() { - return MAC_OS_X_VERSION_10_8; + public static int ICON_BREAKPOINT_OFF() { + return ICON_BREAKPOINT_OFF; } - private static final int MAC_OS_X_VERSION_10_9 = (int)1090L; + private static final int ICON_BURGER_MENU = (int)214L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_9 1090 + * enum .ICON_BURGER_MENU = 214 * } */ - public static int MAC_OS_X_VERSION_10_9() { - return MAC_OS_X_VERSION_10_9; + public static int ICON_BURGER_MENU() { + return ICON_BURGER_MENU; } - private static final int MAC_OS_X_VERSION_10_10 = (int)101000L; + private static final int ICON_CASE_SENSITIVE = (int)215L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_10 101000 + * enum .ICON_CASE_SENSITIVE = 215 * } */ - public static int MAC_OS_X_VERSION_10_10() { - return MAC_OS_X_VERSION_10_10; + public static int ICON_CASE_SENSITIVE() { + return ICON_CASE_SENSITIVE; } - private static final int MAC_OS_X_VERSION_10_10_2 = (int)101002L; + private static final int ICON_REG_EXP = (int)216L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_10_2 101002 + * enum .ICON_REG_EXP = 216 * } */ - public static int MAC_OS_X_VERSION_10_10_2() { - return MAC_OS_X_VERSION_10_10_2; + public static int ICON_REG_EXP() { + return ICON_REG_EXP; } - private static final int MAC_OS_X_VERSION_10_10_3 = (int)101003L; + private static final int ICON_FOLDER = (int)217L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_10_3 101003 + * enum .ICON_FOLDER = 217 * } */ - public static int MAC_OS_X_VERSION_10_10_3() { - return MAC_OS_X_VERSION_10_10_3; + public static int ICON_FOLDER() { + return ICON_FOLDER; } - private static final int MAC_OS_X_VERSION_10_11 = (int)101100L; + private static final int ICON_FILE = (int)218L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_11 101100 + * enum .ICON_FILE = 218 * } */ - public static int MAC_OS_X_VERSION_10_11() { - return MAC_OS_X_VERSION_10_11; + public static int ICON_FILE() { + return ICON_FILE; } - private static final int MAC_OS_X_VERSION_10_11_2 = (int)101102L; + private static final int ICON_SAND_TIMER = (int)219L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_11_2 101102 + * enum .ICON_SAND_TIMER = 219 * } */ - public static int MAC_OS_X_VERSION_10_11_2() { - return MAC_OS_X_VERSION_10_11_2; + public static int ICON_SAND_TIMER() { + return ICON_SAND_TIMER; } - private static final int MAC_OS_X_VERSION_10_11_3 = (int)101103L; + private static final int ICON_WARNING = (int)220L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_11_3 101103 + * enum .ICON_WARNING = 220 * } */ - public static int MAC_OS_X_VERSION_10_11_3() { - return MAC_OS_X_VERSION_10_11_3; + public static int ICON_WARNING() { + return ICON_WARNING; } - private static final int MAC_OS_X_VERSION_10_11_4 = (int)101104L; + private static final int ICON_HELP_BOX = (int)221L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_11_4 101104 + * enum .ICON_HELP_BOX = 221 * } */ - public static int MAC_OS_X_VERSION_10_11_4() { - return MAC_OS_X_VERSION_10_11_4; + public static int ICON_HELP_BOX() { + return ICON_HELP_BOX; } - private static final int MAC_OS_X_VERSION_10_12 = (int)101200L; + private static final int ICON_INFO_BOX = (int)222L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_12 101200 + * enum .ICON_INFO_BOX = 222 * } */ - public static int MAC_OS_X_VERSION_10_12() { - return MAC_OS_X_VERSION_10_12; + public static int ICON_INFO_BOX() { + return ICON_INFO_BOX; } - private static final int MAC_OS_X_VERSION_10_12_1 = (int)101201L; + private static final int ICON_PRIORITY = (int)223L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_12_1 101201 + * enum .ICON_PRIORITY = 223 * } */ - public static int MAC_OS_X_VERSION_10_12_1() { - return MAC_OS_X_VERSION_10_12_1; + public static int ICON_PRIORITY() { + return ICON_PRIORITY; } - private static final int MAC_OS_X_VERSION_10_12_2 = (int)101202L; + private static final int ICON_LAYERS_ISO = (int)224L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_12_2 101202 + * enum .ICON_LAYERS_ISO = 224 * } */ - public static int MAC_OS_X_VERSION_10_12_2() { - return MAC_OS_X_VERSION_10_12_2; + public static int ICON_LAYERS_ISO() { + return ICON_LAYERS_ISO; } - private static final int MAC_OS_X_VERSION_10_12_4 = (int)101204L; + private static final int ICON_LAYERS2 = (int)225L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_12_4 101204 + * enum .ICON_LAYERS2 = 225 * } */ - public static int MAC_OS_X_VERSION_10_12_4() { - return MAC_OS_X_VERSION_10_12_4; + public static int ICON_LAYERS2() { + return ICON_LAYERS2; } - private static final int MAC_OS_X_VERSION_10_13 = (int)101300L; + private static final int ICON_MLAYERS = (int)226L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_13 101300 + * enum .ICON_MLAYERS = 226 * } */ - public static int MAC_OS_X_VERSION_10_13() { - return MAC_OS_X_VERSION_10_13; + public static int ICON_MLAYERS() { + return ICON_MLAYERS; } - private static final int MAC_OS_X_VERSION_10_13_1 = (int)101301L; + private static final int ICON_MAPS = (int)227L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_13_1 101301 + * enum .ICON_MAPS = 227 * } */ - public static int MAC_OS_X_VERSION_10_13_1() { - return MAC_OS_X_VERSION_10_13_1; + public static int ICON_MAPS() { + return ICON_MAPS; } - private static final int MAC_OS_X_VERSION_10_13_2 = (int)101302L; + private static final int ICON_228 = (int)228L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_13_2 101302 + * enum .ICON_228 = 228 * } */ - public static int MAC_OS_X_VERSION_10_13_2() { - return MAC_OS_X_VERSION_10_13_2; + public static int ICON_228() { + return ICON_228; } - private static final int MAC_OS_X_VERSION_10_13_4 = (int)101304L; + private static final int ICON_229 = (int)229L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_13_4 101304 + * enum .ICON_229 = 229 * } */ - public static int MAC_OS_X_VERSION_10_13_4() { - return MAC_OS_X_VERSION_10_13_4; + public static int ICON_229() { + return ICON_229; } - private static final int MAC_OS_X_VERSION_10_14 = (int)101400L; + private static final int ICON_230 = (int)230L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_14 101400 + * enum .ICON_230 = 230 * } */ - public static int MAC_OS_X_VERSION_10_14() { - return MAC_OS_X_VERSION_10_14; + public static int ICON_230() { + return ICON_230; } - private static final int MAC_OS_X_VERSION_10_14_1 = (int)101401L; + private static final int ICON_231 = (int)231L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_14_1 101401 + * enum .ICON_231 = 231 * } */ - public static int MAC_OS_X_VERSION_10_14_1() { - return MAC_OS_X_VERSION_10_14_1; + public static int ICON_231() { + return ICON_231; } - private static final int MAC_OS_X_VERSION_10_14_4 = (int)101404L; + private static final int ICON_232 = (int)232L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_14_4 101404 + * enum .ICON_232 = 232 * } */ - public static int MAC_OS_X_VERSION_10_14_4() { - return MAC_OS_X_VERSION_10_14_4; + public static int ICON_232() { + return ICON_232; } - private static final int MAC_OS_X_VERSION_10_14_5 = (int)101405L; + private static final int ICON_233 = (int)233L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_14_5 101405 + * enum .ICON_233 = 233 * } */ - public static int MAC_OS_X_VERSION_10_14_5() { - return MAC_OS_X_VERSION_10_14_5; + public static int ICON_233() { + return ICON_233; } - private static final int MAC_OS_X_VERSION_10_14_6 = (int)101406L; + private static final int ICON_234 = (int)234L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_14_6 101406 + * enum .ICON_234 = 234 * } */ - public static int MAC_OS_X_VERSION_10_14_6() { - return MAC_OS_X_VERSION_10_14_6; + public static int ICON_234() { + return ICON_234; } - private static final int MAC_OS_X_VERSION_10_15 = (int)101500L; + private static final int ICON_235 = (int)235L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_15 101500 + * enum .ICON_235 = 235 * } */ - public static int MAC_OS_X_VERSION_10_15() { - return MAC_OS_X_VERSION_10_15; + public static int ICON_235() { + return ICON_235; } - private static final int MAC_OS_X_VERSION_10_15_1 = (int)101501L; + private static final int ICON_236 = (int)236L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_15_1 101501 + * enum .ICON_236 = 236 * } */ - public static int MAC_OS_X_VERSION_10_15_1() { - return MAC_OS_X_VERSION_10_15_1; + public static int ICON_236() { + return ICON_236; } - private static final int MAC_OS_X_VERSION_10_15_4 = (int)101504L; + private static final int ICON_237 = (int)237L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_15_4 101504 + * enum .ICON_237 = 237 * } */ - public static int MAC_OS_X_VERSION_10_15_4() { - return MAC_OS_X_VERSION_10_15_4; + public static int ICON_237() { + return ICON_237; } - private static final int MAC_OS_X_VERSION_10_16 = (int)101600L; + private static final int ICON_238 = (int)238L; /** * {@snippet lang=c : - * #define MAC_OS_X_VERSION_10_16 101600 + * enum .ICON_238 = 238 * } */ - public static int MAC_OS_X_VERSION_10_16() { - return MAC_OS_X_VERSION_10_16; + public static int ICON_238() { + return ICON_238; } - private static final int MAC_OS_VERSION_11_0 = (int)110000L; + private static final int ICON_239 = (int)239L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_11_0 110000 + * enum .ICON_239 = 239 * } */ - public static int MAC_OS_VERSION_11_0() { - return MAC_OS_VERSION_11_0; + public static int ICON_239() { + return ICON_239; } - private static final int MAC_OS_VERSION_11_1 = (int)110100L; + private static final int ICON_240 = (int)240L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_11_1 110100 + * enum .ICON_240 = 240 * } */ - public static int MAC_OS_VERSION_11_1() { - return MAC_OS_VERSION_11_1; + public static int ICON_240() { + return ICON_240; } - private static final int MAC_OS_VERSION_11_3 = (int)110300L; + private static final int ICON_241 = (int)241L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_11_3 110300 + * enum .ICON_241 = 241 * } */ - public static int MAC_OS_VERSION_11_3() { - return MAC_OS_VERSION_11_3; + public static int ICON_241() { + return ICON_241; } - private static final int MAC_OS_VERSION_11_4 = (int)110400L; + private static final int ICON_242 = (int)242L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_11_4 110400 + * enum .ICON_242 = 242 * } */ - public static int MAC_OS_VERSION_11_4() { - return MAC_OS_VERSION_11_4; + public static int ICON_242() { + return ICON_242; } - private static final int MAC_OS_VERSION_11_5 = (int)110500L; + private static final int ICON_243 = (int)243L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_11_5 110500 + * enum .ICON_243 = 243 * } */ - public static int MAC_OS_VERSION_11_5() { - return MAC_OS_VERSION_11_5; + public static int ICON_243() { + return ICON_243; } - private static final int MAC_OS_VERSION_11_6 = (int)110600L; + private static final int ICON_244 = (int)244L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_11_6 110600 + * enum .ICON_244 = 244 * } */ - public static int MAC_OS_VERSION_11_6() { - return MAC_OS_VERSION_11_6; + public static int ICON_244() { + return ICON_244; } - private static final int MAC_OS_VERSION_12_0 = (int)120000L; + private static final int ICON_245 = (int)245L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_0 120000 + * enum .ICON_245 = 245 * } */ - public static int MAC_OS_VERSION_12_0() { - return MAC_OS_VERSION_12_0; + public static int ICON_245() { + return ICON_245; } - private static final int MAC_OS_VERSION_12_1 = (int)120100L; + private static final int ICON_246 = (int)246L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_1 120100 + * enum .ICON_246 = 246 * } */ - public static int MAC_OS_VERSION_12_1() { - return MAC_OS_VERSION_12_1; + public static int ICON_246() { + return ICON_246; } - private static final int MAC_OS_VERSION_12_2 = (int)120200L; + private static final int ICON_247 = (int)247L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_2 120200 + * enum .ICON_247 = 247 * } */ - public static int MAC_OS_VERSION_12_2() { - return MAC_OS_VERSION_12_2; + public static int ICON_247() { + return ICON_247; } - private static final int MAC_OS_VERSION_12_3 = (int)120300L; + private static final int ICON_248 = (int)248L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_3 120300 + * enum .ICON_248 = 248 * } */ - public static int MAC_OS_VERSION_12_3() { - return MAC_OS_VERSION_12_3; + public static int ICON_248() { + return ICON_248; } - private static final int MAC_OS_VERSION_12_4 = (int)120400L; + private static final int ICON_249 = (int)249L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_4 120400 + * enum .ICON_249 = 249 * } */ - public static int MAC_OS_VERSION_12_4() { - return MAC_OS_VERSION_12_4; + public static int ICON_249() { + return ICON_249; } - private static final int MAC_OS_VERSION_12_5 = (int)120500L; + private static final int ICON_250 = (int)250L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_5 120500 + * enum .ICON_250 = 250 * } */ - public static int MAC_OS_VERSION_12_5() { - return MAC_OS_VERSION_12_5; + public static int ICON_250() { + return ICON_250; } - private static final int MAC_OS_VERSION_12_6 = (int)120600L; + private static final int ICON_251 = (int)251L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_6 120600 + * enum .ICON_251 = 251 * } */ - public static int MAC_OS_VERSION_12_6() { - return MAC_OS_VERSION_12_6; + public static int ICON_251() { + return ICON_251; } - private static final int MAC_OS_VERSION_12_7 = (int)120700L; + private static final int ICON_252 = (int)252L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_12_7 120700 + * enum .ICON_252 = 252 * } */ - public static int MAC_OS_VERSION_12_7() { - return MAC_OS_VERSION_12_7; + public static int ICON_252() { + return ICON_252; } - private static final int MAC_OS_VERSION_13_0 = (int)130000L; + private static final int ICON_253 = (int)253L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_0 130000 + * enum .ICON_253 = 253 * } */ - public static int MAC_OS_VERSION_13_0() { - return MAC_OS_VERSION_13_0; + public static int ICON_253() { + return ICON_253; } - private static final int MAC_OS_VERSION_13_1 = (int)130100L; + private static final int ICON_254 = (int)254L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_1 130100 + * enum .ICON_254 = 254 * } */ - public static int MAC_OS_VERSION_13_1() { - return MAC_OS_VERSION_13_1; + public static int ICON_254() { + return ICON_254; } - private static final int MAC_OS_VERSION_13_2 = (int)130200L; + private static final int ICON_255 = (int)255L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_2 130200 + * enum .ICON_255 = 255 * } */ - public static int MAC_OS_VERSION_13_2() { - return MAC_OS_VERSION_13_2; + public static int ICON_255() { + return ICON_255; } - private static final int MAC_OS_VERSION_13_3 = (int)130300L; + private static final int BORDER = (int)0L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_3 130300 + * enum .BORDER = 0 * } */ - public static int MAC_OS_VERSION_13_3() { - return MAC_OS_VERSION_13_3; + public static int BORDER() { + return BORDER; } - private static final int MAC_OS_VERSION_13_4 = (int)130400L; + private static final int BASE = (int)1L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_4 130400 + * enum .BASE = 1 * } */ - public static int MAC_OS_VERSION_13_4() { - return MAC_OS_VERSION_13_4; + public static int BASE() { + return BASE; } - private static final int MAC_OS_VERSION_13_5 = (int)130500L; + private static final int TEXT = (int)2L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_5 130500 + * enum .TEXT = 2 * } */ - public static int MAC_OS_VERSION_13_5() { - return MAC_OS_VERSION_13_5; + public static int TEXT() { + return TEXT; } - private static final int MAC_OS_VERSION_13_6 = (int)130600L; + private static final int OTHER = (int)3L; /** * {@snippet lang=c : - * #define MAC_OS_VERSION_13_6 130600 + * enum .OTHER = 3 * } */ - public static int MAC_OS_VERSION_13_6() { - return MAC_OS_VERSION_13_6; + public static int OTHER() { + return OTHER; } - private static final int MAC_OS_VERSION_14_0 = (int)140000L; + + private static class GuiSliderPro { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + Rectangle.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GuiSliderPro"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * #define MAC_OS_VERSION_14_0 140000 + * int GuiSliderPro(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue, int sliderWidth) * } */ - public static int MAC_OS_VERSION_14_0() { - return MAC_OS_VERSION_14_0; + public static FunctionDescriptor GuiSliderPro$descriptor() { + return GuiSliderPro.DESC; } - private static final int MAC_OS_VERSION_14_1 = (int)140100L; + /** + * Downcall method handle for: * {@snippet lang=c : - * #define MAC_OS_VERSION_14_1 140100 + * int GuiSliderPro(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue, int sliderWidth) * } */ - public static int MAC_OS_VERSION_14_1() { - return MAC_OS_VERSION_14_1; + public static MethodHandle GuiSliderPro$handle() { + return GuiSliderPro.HANDLE; } - private static final int MAC_OS_VERSION_14_2 = (int)140200L; + /** + * Address for: * {@snippet lang=c : - * #define MAC_OS_VERSION_14_2 140200 + * int GuiSliderPro(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue, int sliderWidth) * } */ - public static int MAC_OS_VERSION_14_2() { - return MAC_OS_VERSION_14_2; + public static MemorySegment GuiSliderPro$address() { + return GuiSliderPro.ADDR; } - private static final int __MAC_OS_X_VERSION_MAX_ALLOWED = (int)140200L; + /** * {@snippet lang=c : - * #define __MAC_OS_X_VERSION_MAX_ALLOWED 140200 + * int GuiSliderPro(Rectangle bounds, const char *textLeft, const char *textRight, float *value, float minValue, float maxValue, int sliderWidth) * } */ - public static int __MAC_OS_X_VERSION_MAX_ALLOWED() { - return __MAC_OS_X_VERSION_MAX_ALLOWED; + public static int GuiSliderPro(MemorySegment bounds, MemorySegment textLeft, MemorySegment textRight, MemorySegment value, float minValue, float maxValue, int sliderWidth) { + var mh$ = GuiSliderPro.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GuiSliderPro", bounds, textLeft, textRight, value, minValue, maxValue, sliderWidth); + } + return (int)mh$.invokeExact(bounds, textLeft, textRight, value, minValue, maxValue, sliderWidth); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTextLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTextLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final double HUGE_VAL = Double.valueOf("Infinity"); + /** + * Function descriptor for: * {@snippet lang=c : - * #define HUGE_VAL Infinity + * const char **GetTextLines(const char *text, int *count) * } */ - public static double HUGE_VAL() { - return HUGE_VAL; + public static FunctionDescriptor GetTextLines$descriptor() { + return GetTextLines.DESC; } - private static final float HUGE_VALF = Float.valueOf("Infinity"); + /** + * Downcall method handle for: * {@snippet lang=c : - * #define HUGE_VALF Infinity + * const char **GetTextLines(const char *text, int *count) * } */ - public static float HUGE_VALF() { - return HUGE_VALF; + public static MethodHandle GetTextLines$handle() { + return GetTextLines.HANDLE; } - private static final float NAN = Float.valueOf("NaN"); + /** + * Address for: * {@snippet lang=c : - * #define NAN NaN + * const char **GetTextLines(const char *text, int *count) * } */ - public static float NAN() { - return NAN; + public static MemorySegment GetTextLines$address() { + return GetTextLines.ADDR; } - private static final float INFINITY = Float.valueOf("Infinity"); + /** * {@snippet lang=c : - * #define INFINITY Infinity + * const char **GetTextLines(const char *text, int *count) * } */ - public static float INFINITY() { - return INFINITY; + public static MemorySegment GetTextLines(MemorySegment text, MemorySegment count) { + var mh$ = GetTextLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTextLines", text, count); + } + return (MemorySegment)mh$.invokeExact(text, count); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int FP_ILOGB0 = (int)-2147483648L; /** * {@snippet lang=c : - * #define FP_ILOGB0 -2147483648 + * #define RAYLIB_VERSION "5.1-dev" * } */ - public static int FP_ILOGB0() { - return FP_ILOGB0; + public static MemorySegment RAYLIB_VERSION() { + class Holder { + static final MemorySegment RAYLIB_VERSION + = raylib.LIBRARY_ARENA.allocateFrom("5.1-dev"); + } + return Holder.RAYLIB_VERSION; } - private static final int FP_ILOGBNAN = (int)-2147483648L; + private static final float PI = 3.1415927410125732f; /** * {@snippet lang=c : - * #define FP_ILOGBNAN -2147483648 + * #define PI 3.1415927410125732 * } */ - public static int FP_ILOGBNAN() { - return FP_ILOGBNAN; + public static float PI() { + return PI; } - private static final double M_E = 2.718281828459045d; + private static final float DEG2RAD = 0.01745329238474369f; /** * {@snippet lang=c : - * #define M_E 2.718281828459045 + * #define DEG2RAD 0.01745329238474369 * } */ - public static double M_E() { - return M_E; + public static float DEG2RAD() { + return DEG2RAD; } - private static final double M_LOG2E = 1.4426950408889634d; + private static final float RAD2DEG = 57.2957763671875f; /** * {@snippet lang=c : - * #define M_LOG2E 1.4426950408889634 + * #define RAD2DEG 57.2957763671875 * } */ - public static double M_LOG2E() { - return M_LOG2E; + public static float RAD2DEG() { + return RAD2DEG; } - private static final double M_LOG10E = 0.4342944819032518d; + private static final int MOUSE_LEFT_BUTTON = (int)0L; /** * {@snippet lang=c : - * #define M_LOG10E 0.4342944819032518 + * #define MOUSE_LEFT_BUTTON 0 * } */ - public static double M_LOG10E() { - return M_LOG10E; + public static int MOUSE_LEFT_BUTTON() { + return MOUSE_LEFT_BUTTON; } - private static final double M_LN2 = 0.6931471805599453d; + private static final int MOUSE_RIGHT_BUTTON = (int)1L; /** * {@snippet lang=c : - * #define M_LN2 0.6931471805599453 + * #define MOUSE_RIGHT_BUTTON 1 * } */ - public static double M_LN2() { - return M_LN2; + public static int MOUSE_RIGHT_BUTTON() { + return MOUSE_RIGHT_BUTTON; } - private static final double M_LN10 = 2.302585092994046d; + private static final int MOUSE_MIDDLE_BUTTON = (int)2L; /** * {@snippet lang=c : - * #define M_LN10 2.302585092994046 + * #define MOUSE_MIDDLE_BUTTON 2 * } */ - public static double M_LN10() { - return M_LN10; + public static int MOUSE_MIDDLE_BUTTON() { + return MOUSE_MIDDLE_BUTTON; } - private static final double M_PI = 3.141592653589793d; + private static final int MATERIAL_MAP_DIFFUSE = (int)0L; /** * {@snippet lang=c : - * #define M_PI 3.141592653589793 + * #define MATERIAL_MAP_DIFFUSE 0 * } */ - public static double M_PI() { - return M_PI; + public static int MATERIAL_MAP_DIFFUSE() { + return MATERIAL_MAP_DIFFUSE; } - private static final double M_PI_2 = 1.5707963267948966d; + private static final int MATERIAL_MAP_SPECULAR = (int)1L; /** * {@snippet lang=c : - * #define M_PI_2 1.5707963267948966 + * #define MATERIAL_MAP_SPECULAR 1 * } */ - public static double M_PI_2() { - return M_PI_2; + public static int MATERIAL_MAP_SPECULAR() { + return MATERIAL_MAP_SPECULAR; } - private static final double M_PI_4 = 0.7853981633974483d; + private static final int SHADER_LOC_MAP_DIFFUSE = (int)15L; /** * {@snippet lang=c : - * #define M_PI_4 0.7853981633974483 + * #define SHADER_LOC_MAP_DIFFUSE 15 * } */ - public static double M_PI_4() { - return M_PI_4; + public static int SHADER_LOC_MAP_DIFFUSE() { + return SHADER_LOC_MAP_DIFFUSE; } - private static final double M_1_PI = 0.3183098861837907d; + private static final int SHADER_LOC_MAP_SPECULAR = (int)16L; /** * {@snippet lang=c : - * #define M_1_PI 0.3183098861837907 + * #define SHADER_LOC_MAP_SPECULAR 16 * } */ - public static double M_1_PI() { - return M_1_PI; + public static int SHADER_LOC_MAP_SPECULAR() { + return SHADER_LOC_MAP_SPECULAR; } - private static final double M_2_PI = 0.6366197723675814d; /** * {@snippet lang=c : - * #define M_2_PI 0.6366197723675814 + * #define RLGL_VERSION "5.0" * } */ - public static double M_2_PI() { - return M_2_PI; + public static MemorySegment RLGL_VERSION() { + class Holder { + static final MemorySegment RLGL_VERSION + = raylib.LIBRARY_ARENA.allocateFrom("5.0"); + } + return Holder.RLGL_VERSION; } - private static final double M_2_SQRTPI = 1.1283791670955126d; + private static final double RL_CULL_DISTANCE_NEAR = 0.01d; /** * {@snippet lang=c : - * #define M_2_SQRTPI 1.1283791670955126 + * #define RL_CULL_DISTANCE_NEAR 0.01 * } */ - public static double M_2_SQRTPI() { - return M_2_SQRTPI; + public static double RL_CULL_DISTANCE_NEAR() { + return RL_CULL_DISTANCE_NEAR; } - private static final double M_SQRT2 = 1.4142135623730951d; + private static final double RL_CULL_DISTANCE_FAR = 1000.0d; /** * {@snippet lang=c : - * #define M_SQRT2 1.4142135623730951 + * #define RL_CULL_DISTANCE_FAR 1000.0 * } */ - public static double M_SQRT2() { - return M_SQRT2; + public static double RL_CULL_DISTANCE_FAR() { + return RL_CULL_DISTANCE_FAR; } - private static final double M_SQRT1_2 = 0.7071067811865476d; + private static final int RL_SHADER_LOC_MAP_DIFFUSE = (int)15L; /** * {@snippet lang=c : - * #define M_SQRT1_2 0.7071067811865476 + * #define RL_SHADER_LOC_MAP_DIFFUSE 15 * } */ - public static double M_SQRT1_2() { - return M_SQRT1_2; + public static int RL_SHADER_LOC_MAP_DIFFUSE() { + return RL_SHADER_LOC_MAP_DIFFUSE; } - private static final float MAXFLOAT = 3.4028234663852886E38f; + private static final int RL_SHADER_LOC_MAP_SPECULAR = (int)16L; /** * {@snippet lang=c : - * #define MAXFLOAT 3.4028234663852886E38 + * #define RL_SHADER_LOC_MAP_SPECULAR 16 * } */ - public static float MAXFLOAT() { - return MAXFLOAT; + public static int RL_SHADER_LOC_MAP_SPECULAR() { + return RL_SHADER_LOC_MAP_SPECULAR; } - private static final int FP_SNAN = (int)1L; + private static final float EPSILON = 9.999999974752427E-7f; /** * {@snippet lang=c : - * #define FP_SNAN 1 + * #define EPSILON 9.999999974752427E-7 * } */ - public static int FP_SNAN() { - return FP_SNAN; + public static float EPSILON() { + return EPSILON; } - private static final int FP_QNAN = (int)1L; /** * {@snippet lang=c : - * #define FP_QNAN 1 + * #define RAYGUI_VERSION "4.5-dev" * } */ - public static int FP_QNAN() { - return FP_QNAN; + public static MemorySegment RAYGUI_VERSION() { + class Holder { + static final MemorySegment RAYGUI_VERSION + = raylib.LIBRARY_ARENA.allocateFrom("4.5-dev"); + } + return Holder.RAYGUI_VERSION; } - private static final float HUGE = 3.4028234663852886E38f; + private static final int RAYGUI_ICON_DATA_ELEMENTS = (int)8L; /** * {@snippet lang=c : - * #define HUGE 3.4028234663852886E38 + * #define RAYGUI_ICON_DATA_ELEMENTS 8 * } */ - public static float HUGE() { - return HUGE; + public static int RAYGUI_ICON_DATA_ELEMENTS() { + return RAYGUI_ICON_DATA_ELEMENTS; } - private static final double X_TLOSS = 1.414847550405688E16d; + private static final float RAYGUI_GRID_ALPHA = 0.15000000596046448f; /** * {@snippet lang=c : - * #define X_TLOSS 1.414847550405688E16 + * #define RAYGUI_GRID_ALPHA 0.15000000596046448 * } */ - public static double X_TLOSS() { - return X_TLOSS; + public static float RAYGUI_GRID_ALPHA() { + return RAYGUI_GRID_ALPHA; } } diff --git a/src-java/org/vybe/raylib/raylib_1.java b/src-java/org/vybe/raylib/raylib_1.java index bed43b6b..e06208e2 100644 --- a/src-java/org/vybe/raylib/raylib_1.java +++ b/src-java/org/vybe/raylib/raylib_1.java @@ -70,15 +70,6 @@ static MemoryLayout align(MemoryLayout layout, long align) { public static final AddressLayout C_POINTER = ValueLayout.ADDRESS .withTargetLayout(MemoryLayout.sequenceLayout(java.lang.Long.MAX_VALUE, JAVA_BYTE)); public static final ValueLayout.OfLong C_LONG = ValueLayout.JAVA_LONG; - private static final int __GNUC_VA_LIST = (int)1L; - /** - * {@snippet lang=c : - * #define __GNUC_VA_LIST 1 - * } - */ - public static int __GNUC_VA_LIST() { - return __GNUC_VA_LIST; - } private static final int RAYLIB_VERSION_MAJOR = (int)5L; /** * {@snippet lang=c : @@ -106,33 +97,6 @@ public static int RAYLIB_VERSION_MINOR() { public static int RAYLIB_VERSION_PATCH() { return RAYLIB_VERSION_PATCH; } - private static final int true_ = (int)1L; - /** - * {@snippet lang=c : - * #define true 1 - * } - */ - public static int true_() { - return true_; - } - private static final int false_ = (int)0L; - /** - * {@snippet lang=c : - * #define false 0 - * } - */ - public static int false_() { - return false_; - } - private static final int __bool_true_false_are_defined = (int)1L; - /** - * {@snippet lang=c : - * #define __bool_true_false_are_defined 1 - * } - */ - public static int __bool_true_false_are_defined() { - return __bool_true_false_are_defined; - } private static final int RL_DEFAULT_BATCH_BUFFER_ELEMENTS = (int)8192L; /** * {@snippet lang=c : @@ -835,5364 +799,17729 @@ public static int RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT() { public static int RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2() { return RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2; } - private static final int __DARWIN_ONLY_64_BIT_INO_T = (int)1L; + private static final int RAYGUI_VERSION_MAJOR = (int)4L; /** * {@snippet lang=c : - * #define __DARWIN_ONLY_64_BIT_INO_T 1 + * #define RAYGUI_VERSION_MAJOR 4 * } */ - public static int __DARWIN_ONLY_64_BIT_INO_T() { - return __DARWIN_ONLY_64_BIT_INO_T; + public static int RAYGUI_VERSION_MAJOR() { + return RAYGUI_VERSION_MAJOR; } - private static final int __DARWIN_ONLY_UNIX_CONFORMANCE = (int)1L; + private static final int RAYGUI_VERSION_MINOR = (int)5L; /** * {@snippet lang=c : - * #define __DARWIN_ONLY_UNIX_CONFORMANCE 1 + * #define RAYGUI_VERSION_MINOR 5 * } */ - public static int __DARWIN_ONLY_UNIX_CONFORMANCE() { - return __DARWIN_ONLY_UNIX_CONFORMANCE; + public static int RAYGUI_VERSION_MINOR() { + return RAYGUI_VERSION_MINOR; } - private static final int __DARWIN_ONLY_VERS_1050 = (int)1L; + private static final int RAYGUI_VERSION_PATCH = (int)0L; /** * {@snippet lang=c : - * #define __DARWIN_ONLY_VERS_1050 1 + * #define RAYGUI_VERSION_PATCH 0 * } */ - public static int __DARWIN_ONLY_VERS_1050() { - return __DARWIN_ONLY_VERS_1050; + public static int RAYGUI_VERSION_PATCH() { + return RAYGUI_VERSION_PATCH; } - private static final int __DARWIN_UNIX03 = (int)1L; + private static final int SCROLLBAR_LEFT_SIDE = (int)0L; /** * {@snippet lang=c : - * #define __DARWIN_UNIX03 1 + * #define SCROLLBAR_LEFT_SIDE 0 * } */ - public static int __DARWIN_UNIX03() { - return __DARWIN_UNIX03; + public static int SCROLLBAR_LEFT_SIDE() { + return SCROLLBAR_LEFT_SIDE; } - private static final int __DARWIN_64_BIT_INO_T = (int)1L; + private static final int SCROLLBAR_RIGHT_SIDE = (int)1L; /** * {@snippet lang=c : - * #define __DARWIN_64_BIT_INO_T 1 + * #define SCROLLBAR_RIGHT_SIDE 1 * } */ - public static int __DARWIN_64_BIT_INO_T() { - return __DARWIN_64_BIT_INO_T; + public static int SCROLLBAR_RIGHT_SIDE() { + return SCROLLBAR_RIGHT_SIDE; } - private static final int __DARWIN_VERS_1050 = (int)1L; + private static final int RAYGUI_ICON_SIZE = (int)16L; /** * {@snippet lang=c : - * #define __DARWIN_VERS_1050 1 + * #define RAYGUI_ICON_SIZE 16 * } */ - public static int __DARWIN_VERS_1050() { - return __DARWIN_VERS_1050; + public static int RAYGUI_ICON_SIZE() { + return RAYGUI_ICON_SIZE; } - private static final int __DARWIN_NON_CANCELABLE = (int)0L; + private static final int RAYGUI_ICON_MAX_ICONS = (int)256L; /** * {@snippet lang=c : - * #define __DARWIN_NON_CANCELABLE 0 + * #define RAYGUI_ICON_MAX_ICONS 256 * } */ - public static int __DARWIN_NON_CANCELABLE() { - return __DARWIN_NON_CANCELABLE; + public static int RAYGUI_ICON_MAX_ICONS() { + return RAYGUI_ICON_MAX_ICONS; } - private static final int __STDC_WANT_LIB_EXT1__ = (int)1L; + private static final int RAYGUI_ICON_MAX_NAME_LENGTH = (int)32L; /** * {@snippet lang=c : - * #define __STDC_WANT_LIB_EXT1__ 1 + * #define RAYGUI_ICON_MAX_NAME_LENGTH 32 * } */ - public static int __STDC_WANT_LIB_EXT1__() { - return __STDC_WANT_LIB_EXT1__; + public static int RAYGUI_ICON_MAX_NAME_LENGTH() { + return RAYGUI_ICON_MAX_NAME_LENGTH; } - private static final int __DARWIN_NO_LONG_LONG = (int)0L; + private static final int RAYGUI_MAX_CONTROLS = (int)16L; /** * {@snippet lang=c : - * #define __DARWIN_NO_LONG_LONG 0 + * #define RAYGUI_MAX_CONTROLS 16 * } */ - public static int __DARWIN_NO_LONG_LONG() { - return __DARWIN_NO_LONG_LONG; + public static int RAYGUI_MAX_CONTROLS() { + return RAYGUI_MAX_CONTROLS; } - private static final int _DARWIN_FEATURE_64_BIT_INODE = (int)1L; + private static final int RAYGUI_MAX_PROPS_BASE = (int)16L; /** * {@snippet lang=c : - * #define _DARWIN_FEATURE_64_BIT_INODE 1 + * #define RAYGUI_MAX_PROPS_BASE 16 * } */ - public static int _DARWIN_FEATURE_64_BIT_INODE() { - return _DARWIN_FEATURE_64_BIT_INODE; + public static int RAYGUI_MAX_PROPS_BASE() { + return RAYGUI_MAX_PROPS_BASE; } - private static final int _DARWIN_FEATURE_ONLY_64_BIT_INODE = (int)1L; + private static final int RAYGUI_MAX_PROPS_EXTENDED = (int)8L; /** * {@snippet lang=c : - * #define _DARWIN_FEATURE_ONLY_64_BIT_INODE 1 + * #define RAYGUI_MAX_PROPS_EXTENDED 8 * } */ - public static int _DARWIN_FEATURE_ONLY_64_BIT_INODE() { - return _DARWIN_FEATURE_ONLY_64_BIT_INODE; + public static int RAYGUI_MAX_PROPS_EXTENDED() { + return RAYGUI_MAX_PROPS_EXTENDED; } - private static final int _DARWIN_FEATURE_ONLY_VERS_1050 = (int)1L; + private static final int RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT = (int)24L; /** * {@snippet lang=c : - * #define _DARWIN_FEATURE_ONLY_VERS_1050 1 + * #define RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT 24 * } */ - public static int _DARWIN_FEATURE_ONLY_VERS_1050() { - return _DARWIN_FEATURE_ONLY_VERS_1050; + public static int RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT() { + return RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT; } - private static final int _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = (int)1L; + private static final int RAYGUI_GROUPBOX_LINE_THICK = (int)1L; /** * {@snippet lang=c : - * #define _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE 1 + * #define RAYGUI_GROUPBOX_LINE_THICK 1 * } */ - public static int _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE() { - return _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE; + public static int RAYGUI_GROUPBOX_LINE_THICK() { + return RAYGUI_GROUPBOX_LINE_THICK; } - private static final int _DARWIN_FEATURE_UNIX_CONFORMANCE = (int)3L; + private static final int RAYGUI_LINE_MARGIN_TEXT = (int)12L; /** * {@snippet lang=c : - * #define _DARWIN_FEATURE_UNIX_CONFORMANCE 3 + * #define RAYGUI_LINE_MARGIN_TEXT 12 * } */ - public static int _DARWIN_FEATURE_UNIX_CONFORMANCE() { - return _DARWIN_FEATURE_UNIX_CONFORMANCE; + public static int RAYGUI_LINE_MARGIN_TEXT() { + return RAYGUI_LINE_MARGIN_TEXT; } - private static final int __has_ptrcheck = (int)0L; + private static final int RAYGUI_LINE_TEXT_PADDING = (int)4L; /** * {@snippet lang=c : - * #define __has_ptrcheck 0 + * #define RAYGUI_LINE_TEXT_PADDING 4 * } */ - public static int __has_ptrcheck() { - return __has_ptrcheck; + public static int RAYGUI_LINE_TEXT_PADDING() { + return RAYGUI_LINE_TEXT_PADDING; } - private static final int __API_TO_BE_DEPRECATED = (int)100000L; + private static final int RAYGUI_PANEL_BORDER_WIDTH = (int)1L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED 100000 + * #define RAYGUI_PANEL_BORDER_WIDTH 1 * } */ - public static int __API_TO_BE_DEPRECATED() { - return __API_TO_BE_DEPRECATED; + public static int RAYGUI_PANEL_BORDER_WIDTH() { + return RAYGUI_PANEL_BORDER_WIDTH; } - private static final int __API_TO_BE_DEPRECATED_MACOS = (int)100000L; + private static final int RAYGUI_TABBAR_ITEM_WIDTH = (int)160L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_MACOS 100000 + * #define RAYGUI_TABBAR_ITEM_WIDTH 160 * } */ - public static int __API_TO_BE_DEPRECATED_MACOS() { - return __API_TO_BE_DEPRECATED_MACOS; + public static int RAYGUI_TABBAR_ITEM_WIDTH() { + return RAYGUI_TABBAR_ITEM_WIDTH; } - private static final int __API_TO_BE_DEPRECATED_IOS = (int)100000L; + private static final int RAYGUI_MIN_SCROLLBAR_WIDTH = (int)40L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_IOS 100000 + * #define RAYGUI_MIN_SCROLLBAR_WIDTH 40 * } */ - public static int __API_TO_BE_DEPRECATED_IOS() { - return __API_TO_BE_DEPRECATED_IOS; + public static int RAYGUI_MIN_SCROLLBAR_WIDTH() { + return RAYGUI_MIN_SCROLLBAR_WIDTH; } - private static final int __API_TO_BE_DEPRECATED_MACCATALYST = (int)100000L; + private static final int RAYGUI_MIN_SCROLLBAR_HEIGHT = (int)40L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_MACCATALYST 100000 + * #define RAYGUI_MIN_SCROLLBAR_HEIGHT 40 * } */ - public static int __API_TO_BE_DEPRECATED_MACCATALYST() { - return __API_TO_BE_DEPRECATED_MACCATALYST; + public static int RAYGUI_MIN_SCROLLBAR_HEIGHT() { + return RAYGUI_MIN_SCROLLBAR_HEIGHT; } - private static final int __API_TO_BE_DEPRECATED_WATCHOS = (int)100000L; + private static final int RAYGUI_MIN_MOUSE_WHEEL_SPEED = (int)20L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_WATCHOS 100000 + * #define RAYGUI_MIN_MOUSE_WHEEL_SPEED 20 * } */ - public static int __API_TO_BE_DEPRECATED_WATCHOS() { - return __API_TO_BE_DEPRECATED_WATCHOS; + public static int RAYGUI_MIN_MOUSE_WHEEL_SPEED() { + return RAYGUI_MIN_MOUSE_WHEEL_SPEED; } - private static final int __API_TO_BE_DEPRECATED_TVOS = (int)100000L; + private static final int RAYGUI_TOGGLEGROUP_MAX_ITEMS = (int)32L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_TVOS 100000 + * #define RAYGUI_TOGGLEGROUP_MAX_ITEMS 32 * } */ - public static int __API_TO_BE_DEPRECATED_TVOS() { - return __API_TO_BE_DEPRECATED_TVOS; + public static int RAYGUI_TOGGLEGROUP_MAX_ITEMS() { + return RAYGUI_TOGGLEGROUP_MAX_ITEMS; } - private static final int __API_TO_BE_DEPRECATED_DRIVERKIT = (int)100000L; + private static final int RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN = (int)40L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_DRIVERKIT 100000 + * #define RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN 40 * } */ - public static int __API_TO_BE_DEPRECATED_DRIVERKIT() { - return __API_TO_BE_DEPRECATED_DRIVERKIT; + public static int RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN() { + return RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN; } - private static final int __API_TO_BE_DEPRECATED_VISIONOS = (int)100000L; + private static final int RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY = (int)1L; /** * {@snippet lang=c : - * #define __API_TO_BE_DEPRECATED_VISIONOS 100000 + * #define RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY 1 * } */ - public static int __API_TO_BE_DEPRECATED_VISIONOS() { - return __API_TO_BE_DEPRECATED_VISIONOS; + public static int RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY() { + return RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY; } - private static final int __MAC_10_0 = (int)1000L; + private static final int RAYGUI_VALUEBOX_MAX_CHARS = (int)32L; /** * {@snippet lang=c : - * #define __MAC_10_0 1000 + * #define RAYGUI_VALUEBOX_MAX_CHARS 32 * } */ - public static int __MAC_10_0() { - return __MAC_10_0; + public static int RAYGUI_VALUEBOX_MAX_CHARS() { + return RAYGUI_VALUEBOX_MAX_CHARS; } - private static final int __MAC_10_1 = (int)1010L; + private static final int RAYGUI_COLORBARALPHA_CHECKED_SIZE = (int)10L; /** * {@snippet lang=c : - * #define __MAC_10_1 1010 + * #define RAYGUI_COLORBARALPHA_CHECKED_SIZE 10 * } */ - public static int __MAC_10_1() { - return __MAC_10_1; + public static int RAYGUI_COLORBARALPHA_CHECKED_SIZE() { + return RAYGUI_COLORBARALPHA_CHECKED_SIZE; } - private static final int __MAC_10_2 = (int)1020L; + private static final int RAYGUI_MESSAGEBOX_BUTTON_HEIGHT = (int)24L; /** * {@snippet lang=c : - * #define __MAC_10_2 1020 + * #define RAYGUI_MESSAGEBOX_BUTTON_HEIGHT 24 * } */ - public static int __MAC_10_2() { - return __MAC_10_2; + public static int RAYGUI_MESSAGEBOX_BUTTON_HEIGHT() { + return RAYGUI_MESSAGEBOX_BUTTON_HEIGHT; } - private static final int __MAC_10_3 = (int)1030L; + private static final int RAYGUI_MESSAGEBOX_BUTTON_PADDING = (int)12L; /** * {@snippet lang=c : - * #define __MAC_10_3 1030 + * #define RAYGUI_MESSAGEBOX_BUTTON_PADDING 12 * } */ - public static int __MAC_10_3() { - return __MAC_10_3; + public static int RAYGUI_MESSAGEBOX_BUTTON_PADDING() { + return RAYGUI_MESSAGEBOX_BUTTON_PADDING; } - private static final int __MAC_10_4 = (int)1040L; + private static final int RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT = (int)24L; /** * {@snippet lang=c : - * #define __MAC_10_4 1040 + * #define RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT 24 * } */ - public static int __MAC_10_4() { - return __MAC_10_4; + public static int RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT() { + return RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT; } - private static final int __MAC_10_5 = (int)1050L; + private static final int RAYGUI_TEXTINPUTBOX_BUTTON_PADDING = (int)12L; /** * {@snippet lang=c : - * #define __MAC_10_5 1050 + * #define RAYGUI_TEXTINPUTBOX_BUTTON_PADDING 12 * } */ - public static int __MAC_10_5() { - return __MAC_10_5; + public static int RAYGUI_TEXTINPUTBOX_BUTTON_PADDING() { + return RAYGUI_TEXTINPUTBOX_BUTTON_PADDING; } - private static final int __MAC_10_6 = (int)1060L; + private static final int RAYGUI_TEXTINPUTBOX_HEIGHT = (int)26L; /** * {@snippet lang=c : - * #define __MAC_10_6 1060 + * #define RAYGUI_TEXTINPUTBOX_HEIGHT 26 * } */ - public static int __MAC_10_6() { - return __MAC_10_6; + public static int RAYGUI_TEXTINPUTBOX_HEIGHT() { + return RAYGUI_TEXTINPUTBOX_HEIGHT; } - private static final int __MAC_10_7 = (int)1070L; + private static final int MAX_LINE_BUFFER_SIZE = (int)256L; /** * {@snippet lang=c : - * #define __MAC_10_7 1070 + * #define MAX_LINE_BUFFER_SIZE 256 * } */ - public static int __MAC_10_7() { - return __MAC_10_7; + public static int MAX_LINE_BUFFER_SIZE() { + return MAX_LINE_BUFFER_SIZE; } - private static final int __MAC_10_8 = (int)1080L; + private static final int ICON_TEXT_PADDING = (int)4L; /** * {@snippet lang=c : - * #define __MAC_10_8 1080 + * #define ICON_TEXT_PADDING 4 * } */ - public static int __MAC_10_8() { - return __MAC_10_8; + public static int ICON_TEXT_PADDING() { + return ICON_TEXT_PADDING; } - private static final int __MAC_10_9 = (int)1090L; + private static final int RAYGUI_MAX_TEXT_LINES = (int)128L; /** * {@snippet lang=c : - * #define __MAC_10_9 1090 + * #define RAYGUI_MAX_TEXT_LINES 128 * } */ - public static int __MAC_10_9() { - return __MAC_10_9; + public static int RAYGUI_MAX_TEXT_LINES() { + return RAYGUI_MAX_TEXT_LINES; } - private static final int __MAC_10_10 = (int)101000L; + private static final int RAYGUI_TEXTSPLIT_MAX_ITEMS = (int)128L; /** * {@snippet lang=c : - * #define __MAC_10_10 101000 + * #define RAYGUI_TEXTSPLIT_MAX_ITEMS 128 * } */ - public static int __MAC_10_10() { - return __MAC_10_10; + public static int RAYGUI_TEXTSPLIT_MAX_ITEMS() { + return RAYGUI_TEXTSPLIT_MAX_ITEMS; } - private static final int __MAC_10_10_2 = (int)101002L; + private static final int RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE = (int)1024L; /** * {@snippet lang=c : - * #define __MAC_10_10_2 101002 + * #define RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE 1024 * } */ - public static int __MAC_10_10_2() { - return __MAC_10_10_2; + public static int RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE() { + return RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE; } - private static final int __MAC_10_10_3 = (int)101003L; + private static final int FLAG_VSYNC_HINT = (int)64L; /** * {@snippet lang=c : - * #define __MAC_10_10_3 101003 + * enum .FLAG_VSYNC_HINT = 64 * } */ - public static int __MAC_10_10_3() { - return __MAC_10_10_3; + public static int FLAG_VSYNC_HINT() { + return FLAG_VSYNC_HINT; } - private static final int __MAC_10_11 = (int)101100L; + private static final int FLAG_FULLSCREEN_MODE = (int)2L; /** * {@snippet lang=c : - * #define __MAC_10_11 101100 + * enum .FLAG_FULLSCREEN_MODE = 2 * } */ - public static int __MAC_10_11() { - return __MAC_10_11; + public static int FLAG_FULLSCREEN_MODE() { + return FLAG_FULLSCREEN_MODE; } - private static final int __MAC_10_11_2 = (int)101102L; + private static final int FLAG_WINDOW_RESIZABLE = (int)4L; /** * {@snippet lang=c : - * #define __MAC_10_11_2 101102 + * enum .FLAG_WINDOW_RESIZABLE = 4 * } */ - public static int __MAC_10_11_2() { - return __MAC_10_11_2; + public static int FLAG_WINDOW_RESIZABLE() { + return FLAG_WINDOW_RESIZABLE; } - private static final int __MAC_10_11_3 = (int)101103L; + private static final int FLAG_WINDOW_UNDECORATED = (int)8L; /** * {@snippet lang=c : - * #define __MAC_10_11_3 101103 + * enum .FLAG_WINDOW_UNDECORATED = 8 * } */ - public static int __MAC_10_11_3() { - return __MAC_10_11_3; + public static int FLAG_WINDOW_UNDECORATED() { + return FLAG_WINDOW_UNDECORATED; } - private static final int __MAC_10_11_4 = (int)101104L; + private static final int FLAG_WINDOW_HIDDEN = (int)128L; /** * {@snippet lang=c : - * #define __MAC_10_11_4 101104 + * enum .FLAG_WINDOW_HIDDEN = 128 * } */ - public static int __MAC_10_11_4() { - return __MAC_10_11_4; + public static int FLAG_WINDOW_HIDDEN() { + return FLAG_WINDOW_HIDDEN; } - private static final int __MAC_10_12 = (int)101200L; + private static final int FLAG_WINDOW_MINIMIZED = (int)512L; /** * {@snippet lang=c : - * #define __MAC_10_12 101200 + * enum .FLAG_WINDOW_MINIMIZED = 512 * } */ - public static int __MAC_10_12() { - return __MAC_10_12; + public static int FLAG_WINDOW_MINIMIZED() { + return FLAG_WINDOW_MINIMIZED; } - private static final int __MAC_10_12_1 = (int)101201L; + private static final int FLAG_WINDOW_MAXIMIZED = (int)1024L; /** * {@snippet lang=c : - * #define __MAC_10_12_1 101201 + * enum .FLAG_WINDOW_MAXIMIZED = 1024 * } */ - public static int __MAC_10_12_1() { - return __MAC_10_12_1; + public static int FLAG_WINDOW_MAXIMIZED() { + return FLAG_WINDOW_MAXIMIZED; } - private static final int __MAC_10_12_2 = (int)101202L; + private static final int FLAG_WINDOW_UNFOCUSED = (int)2048L; /** * {@snippet lang=c : - * #define __MAC_10_12_2 101202 + * enum .FLAG_WINDOW_UNFOCUSED = 2048 * } */ - public static int __MAC_10_12_2() { - return __MAC_10_12_2; + public static int FLAG_WINDOW_UNFOCUSED() { + return FLAG_WINDOW_UNFOCUSED; } - private static final int __MAC_10_12_4 = (int)101204L; + private static final int FLAG_WINDOW_TOPMOST = (int)4096L; /** * {@snippet lang=c : - * #define __MAC_10_12_4 101204 + * enum .FLAG_WINDOW_TOPMOST = 4096 * } */ - public static int __MAC_10_12_4() { - return __MAC_10_12_4; + public static int FLAG_WINDOW_TOPMOST() { + return FLAG_WINDOW_TOPMOST; } - private static final int __MAC_10_13 = (int)101300L; + private static final int FLAG_WINDOW_ALWAYS_RUN = (int)256L; /** * {@snippet lang=c : - * #define __MAC_10_13 101300 + * enum .FLAG_WINDOW_ALWAYS_RUN = 256 * } */ - public static int __MAC_10_13() { - return __MAC_10_13; + public static int FLAG_WINDOW_ALWAYS_RUN() { + return FLAG_WINDOW_ALWAYS_RUN; } - private static final int __MAC_10_13_1 = (int)101301L; + private static final int FLAG_WINDOW_TRANSPARENT = (int)16L; /** * {@snippet lang=c : - * #define __MAC_10_13_1 101301 + * enum .FLAG_WINDOW_TRANSPARENT = 16 * } */ - public static int __MAC_10_13_1() { - return __MAC_10_13_1; + public static int FLAG_WINDOW_TRANSPARENT() { + return FLAG_WINDOW_TRANSPARENT; } - private static final int __MAC_10_13_2 = (int)101302L; + private static final int FLAG_WINDOW_HIGHDPI = (int)8192L; /** * {@snippet lang=c : - * #define __MAC_10_13_2 101302 + * enum .FLAG_WINDOW_HIGHDPI = 8192 * } */ - public static int __MAC_10_13_2() { - return __MAC_10_13_2; + public static int FLAG_WINDOW_HIGHDPI() { + return FLAG_WINDOW_HIGHDPI; } - private static final int __MAC_10_13_4 = (int)101304L; + private static final int FLAG_WINDOW_MOUSE_PASSTHROUGH = (int)16384L; /** * {@snippet lang=c : - * #define __MAC_10_13_4 101304 + * enum .FLAG_WINDOW_MOUSE_PASSTHROUGH = 16384 * } */ - public static int __MAC_10_13_4() { - return __MAC_10_13_4; + public static int FLAG_WINDOW_MOUSE_PASSTHROUGH() { + return FLAG_WINDOW_MOUSE_PASSTHROUGH; } - private static final int __MAC_10_14 = (int)101400L; + private static final int FLAG_BORDERLESS_WINDOWED_MODE = (int)32768L; /** * {@snippet lang=c : - * #define __MAC_10_14 101400 + * enum .FLAG_BORDERLESS_WINDOWED_MODE = 32768 * } */ - public static int __MAC_10_14() { - return __MAC_10_14; + public static int FLAG_BORDERLESS_WINDOWED_MODE() { + return FLAG_BORDERLESS_WINDOWED_MODE; } - private static final int __MAC_10_14_1 = (int)101401L; + private static final int FLAG_MSAA_4X_HINT = (int)32L; /** * {@snippet lang=c : - * #define __MAC_10_14_1 101401 + * enum .FLAG_MSAA_4X_HINT = 32 * } */ - public static int __MAC_10_14_1() { - return __MAC_10_14_1; + public static int FLAG_MSAA_4X_HINT() { + return FLAG_MSAA_4X_HINT; } - private static final int __MAC_10_14_4 = (int)101404L; + private static final int FLAG_INTERLACED_HINT = (int)65536L; /** * {@snippet lang=c : - * #define __MAC_10_14_4 101404 + * enum .FLAG_INTERLACED_HINT = 65536 * } */ - public static int __MAC_10_14_4() { - return __MAC_10_14_4; + public static int FLAG_INTERLACED_HINT() { + return FLAG_INTERLACED_HINT; } - private static final int __MAC_10_14_5 = (int)101405L; + private static final int LOG_ALL = (int)0L; /** * {@snippet lang=c : - * #define __MAC_10_14_5 101405 + * enum .LOG_ALL = 0 * } */ - public static int __MAC_10_14_5() { - return __MAC_10_14_5; + public static int LOG_ALL() { + return LOG_ALL; } - private static final int __MAC_10_14_6 = (int)101406L; + private static final int LOG_TRACE = (int)1L; /** * {@snippet lang=c : - * #define __MAC_10_14_6 101406 + * enum .LOG_TRACE = 1 * } */ - public static int __MAC_10_14_6() { - return __MAC_10_14_6; + public static int LOG_TRACE() { + return LOG_TRACE; } - private static final int __MAC_10_15 = (int)101500L; + private static final int LOG_DEBUG = (int)2L; /** * {@snippet lang=c : - * #define __MAC_10_15 101500 + * enum .LOG_DEBUG = 2 * } */ - public static int __MAC_10_15() { - return __MAC_10_15; + public static int LOG_DEBUG() { + return LOG_DEBUG; } - private static final int __MAC_10_15_1 = (int)101501L; + private static final int LOG_INFO = (int)3L; /** * {@snippet lang=c : - * #define __MAC_10_15_1 101501 + * enum .LOG_INFO = 3 * } */ - public static int __MAC_10_15_1() { - return __MAC_10_15_1; + public static int LOG_INFO() { + return LOG_INFO; } - private static final int __MAC_10_15_4 = (int)101504L; + private static final int LOG_WARNING = (int)4L; /** * {@snippet lang=c : - * #define __MAC_10_15_4 101504 + * enum .LOG_WARNING = 4 * } */ - public static int __MAC_10_15_4() { - return __MAC_10_15_4; + public static int LOG_WARNING() { + return LOG_WARNING; } - private static final int __MAC_10_16 = (int)101600L; + private static final int LOG_ERROR = (int)5L; /** * {@snippet lang=c : - * #define __MAC_10_16 101600 + * enum .LOG_ERROR = 5 * } */ - public static int __MAC_10_16() { - return __MAC_10_16; + public static int LOG_ERROR() { + return LOG_ERROR; } - private static final int __MAC_11_0 = (int)110000L; + private static final int LOG_FATAL = (int)6L; /** * {@snippet lang=c : - * #define __MAC_11_0 110000 + * enum .LOG_FATAL = 6 * } */ - public static int __MAC_11_0() { - return __MAC_11_0; + public static int LOG_FATAL() { + return LOG_FATAL; } - private static final int __MAC_11_1 = (int)110100L; + private static final int LOG_NONE = (int)7L; /** * {@snippet lang=c : - * #define __MAC_11_1 110100 + * enum .LOG_NONE = 7 * } */ - public static int __MAC_11_1() { - return __MAC_11_1; + public static int LOG_NONE() { + return LOG_NONE; } - private static final int __MAC_11_3 = (int)110300L; + private static final int KEY_NULL = (int)0L; /** * {@snippet lang=c : - * #define __MAC_11_3 110300 + * enum .KEY_NULL = 0 * } */ - public static int __MAC_11_3() { - return __MAC_11_3; + public static int KEY_NULL() { + return KEY_NULL; } - private static final int __MAC_11_4 = (int)110400L; + private static final int KEY_APOSTROPHE = (int)39L; /** * {@snippet lang=c : - * #define __MAC_11_4 110400 + * enum .KEY_APOSTROPHE = 39 * } */ - public static int __MAC_11_4() { - return __MAC_11_4; + public static int KEY_APOSTROPHE() { + return KEY_APOSTROPHE; } - private static final int __MAC_11_5 = (int)110500L; + private static final int KEY_COMMA = (int)44L; /** * {@snippet lang=c : - * #define __MAC_11_5 110500 + * enum .KEY_COMMA = 44 * } */ - public static int __MAC_11_5() { - return __MAC_11_5; + public static int KEY_COMMA() { + return KEY_COMMA; } - private static final int __MAC_11_6 = (int)110600L; + private static final int KEY_MINUS = (int)45L; /** * {@snippet lang=c : - * #define __MAC_11_6 110600 + * enum .KEY_MINUS = 45 * } */ - public static int __MAC_11_6() { - return __MAC_11_6; + public static int KEY_MINUS() { + return KEY_MINUS; } - private static final int __MAC_12_0 = (int)120000L; + private static final int KEY_PERIOD = (int)46L; /** * {@snippet lang=c : - * #define __MAC_12_0 120000 + * enum .KEY_PERIOD = 46 * } */ - public static int __MAC_12_0() { - return __MAC_12_0; + public static int KEY_PERIOD() { + return KEY_PERIOD; } - private static final int __MAC_12_1 = (int)120100L; + private static final int KEY_SLASH = (int)47L; /** * {@snippet lang=c : - * #define __MAC_12_1 120100 + * enum .KEY_SLASH = 47 * } */ - public static int __MAC_12_1() { - return __MAC_12_1; + public static int KEY_SLASH() { + return KEY_SLASH; } - private static final int __MAC_12_2 = (int)120200L; + private static final int KEY_ZERO = (int)48L; /** * {@snippet lang=c : - * #define __MAC_12_2 120200 + * enum .KEY_ZERO = 48 * } */ - public static int __MAC_12_2() { - return __MAC_12_2; + public static int KEY_ZERO() { + return KEY_ZERO; } - private static final int __MAC_12_3 = (int)120300L; + private static final int KEY_ONE = (int)49L; /** * {@snippet lang=c : - * #define __MAC_12_3 120300 + * enum .KEY_ONE = 49 * } */ - public static int __MAC_12_3() { - return __MAC_12_3; + public static int KEY_ONE() { + return KEY_ONE; } - private static final int __MAC_12_4 = (int)120400L; + private static final int KEY_TWO = (int)50L; /** * {@snippet lang=c : - * #define __MAC_12_4 120400 + * enum .KEY_TWO = 50 * } */ - public static int __MAC_12_4() { - return __MAC_12_4; + public static int KEY_TWO() { + return KEY_TWO; } - private static final int __MAC_12_5 = (int)120500L; + private static final int KEY_THREE = (int)51L; /** * {@snippet lang=c : - * #define __MAC_12_5 120500 + * enum .KEY_THREE = 51 * } */ - public static int __MAC_12_5() { - return __MAC_12_5; + public static int KEY_THREE() { + return KEY_THREE; } - private static final int __MAC_12_6 = (int)120600L; + private static final int KEY_FOUR = (int)52L; /** * {@snippet lang=c : - * #define __MAC_12_6 120600 + * enum .KEY_FOUR = 52 * } */ - public static int __MAC_12_6() { - return __MAC_12_6; + public static int KEY_FOUR() { + return KEY_FOUR; } - private static final int __MAC_12_7 = (int)120700L; + private static final int KEY_FIVE = (int)53L; /** * {@snippet lang=c : - * #define __MAC_12_7 120700 + * enum .KEY_FIVE = 53 * } */ - public static int __MAC_12_7() { - return __MAC_12_7; + public static int KEY_FIVE() { + return KEY_FIVE; } - private static final int __MAC_13_0 = (int)130000L; + private static final int KEY_SIX = (int)54L; /** * {@snippet lang=c : - * #define __MAC_13_0 130000 + * enum .KEY_SIX = 54 * } */ - public static int __MAC_13_0() { - return __MAC_13_0; + public static int KEY_SIX() { + return KEY_SIX; } - private static final int __MAC_13_1 = (int)130100L; + private static final int KEY_SEVEN = (int)55L; /** * {@snippet lang=c : - * #define __MAC_13_1 130100 + * enum .KEY_SEVEN = 55 * } */ - public static int __MAC_13_1() { - return __MAC_13_1; + public static int KEY_SEVEN() { + return KEY_SEVEN; } - private static final int __MAC_13_2 = (int)130200L; + private static final int KEY_EIGHT = (int)56L; /** * {@snippet lang=c : - * #define __MAC_13_2 130200 + * enum .KEY_EIGHT = 56 * } */ - public static int __MAC_13_2() { - return __MAC_13_2; + public static int KEY_EIGHT() { + return KEY_EIGHT; } - private static final int __MAC_13_3 = (int)130300L; + private static final int KEY_NINE = (int)57L; /** * {@snippet lang=c : - * #define __MAC_13_3 130300 + * enum .KEY_NINE = 57 * } */ - public static int __MAC_13_3() { - return __MAC_13_3; + public static int KEY_NINE() { + return KEY_NINE; } - private static final int __MAC_13_4 = (int)130400L; + private static final int KEY_SEMICOLON = (int)59L; /** * {@snippet lang=c : - * #define __MAC_13_4 130400 + * enum .KEY_SEMICOLON = 59 * } */ - public static int __MAC_13_4() { - return __MAC_13_4; + public static int KEY_SEMICOLON() { + return KEY_SEMICOLON; } - private static final int __MAC_13_5 = (int)130500L; + private static final int KEY_EQUAL = (int)61L; /** * {@snippet lang=c : - * #define __MAC_13_5 130500 + * enum .KEY_EQUAL = 61 * } */ - public static int __MAC_13_5() { - return __MAC_13_5; + public static int KEY_EQUAL() { + return KEY_EQUAL; } - private static final int __MAC_13_6 = (int)130600L; + private static final int KEY_A = (int)65L; /** * {@snippet lang=c : - * #define __MAC_13_6 130600 + * enum .KEY_A = 65 * } */ - public static int __MAC_13_6() { - return __MAC_13_6; + public static int KEY_A() { + return KEY_A; } - private static final int __MAC_14_0 = (int)140000L; + private static final int KEY_B = (int)66L; /** * {@snippet lang=c : - * #define __MAC_14_0 140000 + * enum .KEY_B = 66 * } */ - public static int __MAC_14_0() { - return __MAC_14_0; + public static int KEY_B() { + return KEY_B; } - private static final int __MAC_14_1 = (int)140100L; + private static final int KEY_C = (int)67L; /** * {@snippet lang=c : - * #define __MAC_14_1 140100 + * enum .KEY_C = 67 * } */ - public static int __MAC_14_1() { - return __MAC_14_1; + public static int KEY_C() { + return KEY_C; } - private static final int __MAC_14_2 = (int)140200L; + private static final int KEY_D = (int)68L; /** * {@snippet lang=c : - * #define __MAC_14_2 140200 + * enum .KEY_D = 68 * } */ - public static int __MAC_14_2() { - return __MAC_14_2; + public static int KEY_D() { + return KEY_D; } - private static final int __IPHONE_2_0 = (int)20000L; + private static final int KEY_E = (int)69L; /** * {@snippet lang=c : - * #define __IPHONE_2_0 20000 + * enum .KEY_E = 69 * } */ - public static int __IPHONE_2_0() { - return __IPHONE_2_0; + public static int KEY_E() { + return KEY_E; } - private static final int __IPHONE_2_1 = (int)20100L; + private static final int KEY_F = (int)70L; /** * {@snippet lang=c : - * #define __IPHONE_2_1 20100 + * enum .KEY_F = 70 * } */ - public static int __IPHONE_2_1() { - return __IPHONE_2_1; + public static int KEY_F() { + return KEY_F; } - private static final int __IPHONE_2_2 = (int)20200L; + private static final int KEY_G = (int)71L; /** * {@snippet lang=c : - * #define __IPHONE_2_2 20200 + * enum .KEY_G = 71 * } */ - public static int __IPHONE_2_2() { - return __IPHONE_2_2; + public static int KEY_G() { + return KEY_G; } - private static final int __IPHONE_3_0 = (int)30000L; + private static final int KEY_H = (int)72L; /** * {@snippet lang=c : - * #define __IPHONE_3_0 30000 + * enum .KEY_H = 72 * } */ - public static int __IPHONE_3_0() { - return __IPHONE_3_0; + public static int KEY_H() { + return KEY_H; } - private static final int __IPHONE_3_1 = (int)30100L; + private static final int KEY_I = (int)73L; /** * {@snippet lang=c : - * #define __IPHONE_3_1 30100 + * enum .KEY_I = 73 * } */ - public static int __IPHONE_3_1() { - return __IPHONE_3_1; + public static int KEY_I() { + return KEY_I; } - private static final int __IPHONE_3_2 = (int)30200L; + private static final int KEY_J = (int)74L; /** * {@snippet lang=c : - * #define __IPHONE_3_2 30200 + * enum .KEY_J = 74 * } */ - public static int __IPHONE_3_2() { - return __IPHONE_3_2; + public static int KEY_J() { + return KEY_J; } - private static final int __IPHONE_4_0 = (int)40000L; + private static final int KEY_K = (int)75L; /** * {@snippet lang=c : - * #define __IPHONE_4_0 40000 + * enum .KEY_K = 75 * } */ - public static int __IPHONE_4_0() { - return __IPHONE_4_0; + public static int KEY_K() { + return KEY_K; } - private static final int __IPHONE_4_1 = (int)40100L; + private static final int KEY_L = (int)76L; /** * {@snippet lang=c : - * #define __IPHONE_4_1 40100 + * enum .KEY_L = 76 * } */ - public static int __IPHONE_4_1() { - return __IPHONE_4_1; + public static int KEY_L() { + return KEY_L; } - private static final int __IPHONE_4_2 = (int)40200L; + private static final int KEY_M = (int)77L; /** * {@snippet lang=c : - * #define __IPHONE_4_2 40200 + * enum .KEY_M = 77 * } */ - public static int __IPHONE_4_2() { - return __IPHONE_4_2; + public static int KEY_M() { + return KEY_M; } - private static final int __IPHONE_4_3 = (int)40300L; + private static final int KEY_N = (int)78L; /** * {@snippet lang=c : - * #define __IPHONE_4_3 40300 + * enum .KEY_N = 78 * } */ - public static int __IPHONE_4_3() { - return __IPHONE_4_3; + public static int KEY_N() { + return KEY_N; } - private static final int __IPHONE_5_0 = (int)50000L; + private static final int KEY_O = (int)79L; /** * {@snippet lang=c : - * #define __IPHONE_5_0 50000 + * enum .KEY_O = 79 * } */ - public static int __IPHONE_5_0() { - return __IPHONE_5_0; + public static int KEY_O() { + return KEY_O; } - private static final int __IPHONE_5_1 = (int)50100L; + private static final int KEY_P = (int)80L; /** * {@snippet lang=c : - * #define __IPHONE_5_1 50100 + * enum .KEY_P = 80 * } */ - public static int __IPHONE_5_1() { - return __IPHONE_5_1; + public static int KEY_P() { + return KEY_P; } - private static final int __IPHONE_6_0 = (int)60000L; + private static final int KEY_Q = (int)81L; /** * {@snippet lang=c : - * #define __IPHONE_6_0 60000 + * enum .KEY_Q = 81 * } */ - public static int __IPHONE_6_0() { - return __IPHONE_6_0; + public static int KEY_Q() { + return KEY_Q; } - private static final int __IPHONE_6_1 = (int)60100L; + private static final int KEY_R = (int)82L; /** * {@snippet lang=c : - * #define __IPHONE_6_1 60100 + * enum .KEY_R = 82 * } */ - public static int __IPHONE_6_1() { - return __IPHONE_6_1; + public static int KEY_R() { + return KEY_R; } - private static final int __IPHONE_7_0 = (int)70000L; + private static final int KEY_S = (int)83L; /** * {@snippet lang=c : - * #define __IPHONE_7_0 70000 + * enum .KEY_S = 83 * } */ - public static int __IPHONE_7_0() { - return __IPHONE_7_0; + public static int KEY_S() { + return KEY_S; } - private static final int __IPHONE_7_1 = (int)70100L; + private static final int KEY_T = (int)84L; /** * {@snippet lang=c : - * #define __IPHONE_7_1 70100 + * enum .KEY_T = 84 * } */ - public static int __IPHONE_7_1() { - return __IPHONE_7_1; + public static int KEY_T() { + return KEY_T; } - private static final int __IPHONE_8_0 = (int)80000L; + private static final int KEY_U = (int)85L; /** * {@snippet lang=c : - * #define __IPHONE_8_0 80000 + * enum .KEY_U = 85 * } */ - public static int __IPHONE_8_0() { - return __IPHONE_8_0; + public static int KEY_U() { + return KEY_U; } - private static final int __IPHONE_8_1 = (int)80100L; + private static final int KEY_V = (int)86L; /** * {@snippet lang=c : - * #define __IPHONE_8_1 80100 + * enum .KEY_V = 86 * } */ - public static int __IPHONE_8_1() { - return __IPHONE_8_1; + public static int KEY_V() { + return KEY_V; } - private static final int __IPHONE_8_2 = (int)80200L; + private static final int KEY_W = (int)87L; /** * {@snippet lang=c : - * #define __IPHONE_8_2 80200 + * enum .KEY_W = 87 * } */ - public static int __IPHONE_8_2() { - return __IPHONE_8_2; + public static int KEY_W() { + return KEY_W; } - private static final int __IPHONE_8_3 = (int)80300L; + private static final int KEY_X = (int)88L; /** * {@snippet lang=c : - * #define __IPHONE_8_3 80300 + * enum .KEY_X = 88 * } */ - public static int __IPHONE_8_3() { - return __IPHONE_8_3; + public static int KEY_X() { + return KEY_X; } - private static final int __IPHONE_8_4 = (int)80400L; + private static final int KEY_Y = (int)89L; /** * {@snippet lang=c : - * #define __IPHONE_8_4 80400 + * enum .KEY_Y = 89 * } */ - public static int __IPHONE_8_4() { - return __IPHONE_8_4; + public static int KEY_Y() { + return KEY_Y; } - private static final int __IPHONE_9_0 = (int)90000L; + private static final int KEY_Z = (int)90L; /** * {@snippet lang=c : - * #define __IPHONE_9_0 90000 + * enum .KEY_Z = 90 * } */ - public static int __IPHONE_9_0() { - return __IPHONE_9_0; + public static int KEY_Z() { + return KEY_Z; } - private static final int __IPHONE_9_1 = (int)90100L; + private static final int KEY_LEFT_BRACKET = (int)91L; /** * {@snippet lang=c : - * #define __IPHONE_9_1 90100 + * enum .KEY_LEFT_BRACKET = 91 * } */ - public static int __IPHONE_9_1() { - return __IPHONE_9_1; + public static int KEY_LEFT_BRACKET() { + return KEY_LEFT_BRACKET; } - private static final int __IPHONE_9_2 = (int)90200L; + private static final int KEY_BACKSLASH = (int)92L; /** * {@snippet lang=c : - * #define __IPHONE_9_2 90200 + * enum .KEY_BACKSLASH = 92 * } */ - public static int __IPHONE_9_2() { - return __IPHONE_9_2; + public static int KEY_BACKSLASH() { + return KEY_BACKSLASH; } - private static final int __IPHONE_9_3 = (int)90300L; + private static final int KEY_RIGHT_BRACKET = (int)93L; /** * {@snippet lang=c : - * #define __IPHONE_9_3 90300 + * enum .KEY_RIGHT_BRACKET = 93 * } */ - public static int __IPHONE_9_3() { - return __IPHONE_9_3; + public static int KEY_RIGHT_BRACKET() { + return KEY_RIGHT_BRACKET; } - private static final int __IPHONE_10_0 = (int)100000L; + private static final int KEY_GRAVE = (int)96L; /** * {@snippet lang=c : - * #define __IPHONE_10_0 100000 + * enum .KEY_GRAVE = 96 * } */ - public static int __IPHONE_10_0() { - return __IPHONE_10_0; + public static int KEY_GRAVE() { + return KEY_GRAVE; } - private static final int __IPHONE_10_1 = (int)100100L; + private static final int KEY_SPACE = (int)32L; /** * {@snippet lang=c : - * #define __IPHONE_10_1 100100 + * enum .KEY_SPACE = 32 * } */ - public static int __IPHONE_10_1() { - return __IPHONE_10_1; + public static int KEY_SPACE() { + return KEY_SPACE; } - private static final int __IPHONE_10_2 = (int)100200L; + private static final int KEY_ESCAPE = (int)256L; /** * {@snippet lang=c : - * #define __IPHONE_10_2 100200 + * enum .KEY_ESCAPE = 256 * } */ - public static int __IPHONE_10_2() { - return __IPHONE_10_2; + public static int KEY_ESCAPE() { + return KEY_ESCAPE; } - private static final int __IPHONE_10_3 = (int)100300L; + private static final int KEY_ENTER = (int)257L; /** * {@snippet lang=c : - * #define __IPHONE_10_3 100300 + * enum .KEY_ENTER = 257 * } */ - public static int __IPHONE_10_3() { - return __IPHONE_10_3; + public static int KEY_ENTER() { + return KEY_ENTER; } - private static final int __IPHONE_11_0 = (int)110000L; + private static final int KEY_TAB = (int)258L; /** * {@snippet lang=c : - * #define __IPHONE_11_0 110000 + * enum .KEY_TAB = 258 * } */ - public static int __IPHONE_11_0() { - return __IPHONE_11_0; + public static int KEY_TAB() { + return KEY_TAB; } - private static final int __IPHONE_11_1 = (int)110100L; + private static final int KEY_BACKSPACE = (int)259L; /** * {@snippet lang=c : - * #define __IPHONE_11_1 110100 + * enum .KEY_BACKSPACE = 259 * } */ - public static int __IPHONE_11_1() { - return __IPHONE_11_1; + public static int KEY_BACKSPACE() { + return KEY_BACKSPACE; } - private static final int __IPHONE_11_2 = (int)110200L; + private static final int KEY_INSERT = (int)260L; /** * {@snippet lang=c : - * #define __IPHONE_11_2 110200 + * enum .KEY_INSERT = 260 * } */ - public static int __IPHONE_11_2() { - return __IPHONE_11_2; + public static int KEY_INSERT() { + return KEY_INSERT; } - private static final int __IPHONE_11_3 = (int)110300L; + private static final int KEY_DELETE = (int)261L; /** * {@snippet lang=c : - * #define __IPHONE_11_3 110300 + * enum .KEY_DELETE = 261 * } */ - public static int __IPHONE_11_3() { - return __IPHONE_11_3; + public static int KEY_DELETE() { + return KEY_DELETE; } - private static final int __IPHONE_11_4 = (int)110400L; + private static final int KEY_RIGHT = (int)262L; /** * {@snippet lang=c : - * #define __IPHONE_11_4 110400 + * enum .KEY_RIGHT = 262 * } */ - public static int __IPHONE_11_4() { - return __IPHONE_11_4; + public static int KEY_RIGHT() { + return KEY_RIGHT; } - private static final int __IPHONE_12_0 = (int)120000L; + private static final int KEY_LEFT = (int)263L; /** * {@snippet lang=c : - * #define __IPHONE_12_0 120000 + * enum .KEY_LEFT = 263 * } */ - public static int __IPHONE_12_0() { - return __IPHONE_12_0; + public static int KEY_LEFT() { + return KEY_LEFT; } - private static final int __IPHONE_12_1 = (int)120100L; + private static final int KEY_DOWN = (int)264L; /** * {@snippet lang=c : - * #define __IPHONE_12_1 120100 + * enum .KEY_DOWN = 264 * } */ - public static int __IPHONE_12_1() { - return __IPHONE_12_1; + public static int KEY_DOWN() { + return KEY_DOWN; } - private static final int __IPHONE_12_2 = (int)120200L; + private static final int KEY_UP = (int)265L; /** * {@snippet lang=c : - * #define __IPHONE_12_2 120200 + * enum .KEY_UP = 265 * } */ - public static int __IPHONE_12_2() { - return __IPHONE_12_2; + public static int KEY_UP() { + return KEY_UP; } - private static final int __IPHONE_12_3 = (int)120300L; + private static final int KEY_PAGE_UP = (int)266L; /** * {@snippet lang=c : - * #define __IPHONE_12_3 120300 + * enum .KEY_PAGE_UP = 266 * } */ - public static int __IPHONE_12_3() { - return __IPHONE_12_3; + public static int KEY_PAGE_UP() { + return KEY_PAGE_UP; } - private static final int __IPHONE_12_4 = (int)120400L; + private static final int KEY_PAGE_DOWN = (int)267L; /** * {@snippet lang=c : - * #define __IPHONE_12_4 120400 + * enum .KEY_PAGE_DOWN = 267 * } */ - public static int __IPHONE_12_4() { - return __IPHONE_12_4; + public static int KEY_PAGE_DOWN() { + return KEY_PAGE_DOWN; } - private static final int __IPHONE_13_0 = (int)130000L; + private static final int KEY_HOME = (int)268L; /** * {@snippet lang=c : - * #define __IPHONE_13_0 130000 + * enum .KEY_HOME = 268 * } */ - public static int __IPHONE_13_0() { - return __IPHONE_13_0; + public static int KEY_HOME() { + return KEY_HOME; } - private static final int __IPHONE_13_1 = (int)130100L; + private static final int KEY_END = (int)269L; /** * {@snippet lang=c : - * #define __IPHONE_13_1 130100 + * enum .KEY_END = 269 * } */ - public static int __IPHONE_13_1() { - return __IPHONE_13_1; + public static int KEY_END() { + return KEY_END; } - private static final int __IPHONE_13_2 = (int)130200L; + private static final int KEY_CAPS_LOCK = (int)280L; /** * {@snippet lang=c : - * #define __IPHONE_13_2 130200 + * enum .KEY_CAPS_LOCK = 280 * } */ - public static int __IPHONE_13_2() { - return __IPHONE_13_2; + public static int KEY_CAPS_LOCK() { + return KEY_CAPS_LOCK; } - private static final int __IPHONE_13_3 = (int)130300L; + private static final int KEY_SCROLL_LOCK = (int)281L; /** * {@snippet lang=c : - * #define __IPHONE_13_3 130300 + * enum .KEY_SCROLL_LOCK = 281 * } */ - public static int __IPHONE_13_3() { - return __IPHONE_13_3; + public static int KEY_SCROLL_LOCK() { + return KEY_SCROLL_LOCK; } - private static final int __IPHONE_13_4 = (int)130400L; + private static final int KEY_NUM_LOCK = (int)282L; /** * {@snippet lang=c : - * #define __IPHONE_13_4 130400 + * enum .KEY_NUM_LOCK = 282 * } */ - public static int __IPHONE_13_4() { - return __IPHONE_13_4; + public static int KEY_NUM_LOCK() { + return KEY_NUM_LOCK; } - private static final int __IPHONE_13_5 = (int)130500L; + private static final int KEY_PRINT_SCREEN = (int)283L; /** * {@snippet lang=c : - * #define __IPHONE_13_5 130500 + * enum .KEY_PRINT_SCREEN = 283 * } */ - public static int __IPHONE_13_5() { - return __IPHONE_13_5; + public static int KEY_PRINT_SCREEN() { + return KEY_PRINT_SCREEN; } - private static final int __IPHONE_13_6 = (int)130600L; + private static final int KEY_PAUSE = (int)284L; /** * {@snippet lang=c : - * #define __IPHONE_13_6 130600 + * enum .KEY_PAUSE = 284 * } */ - public static int __IPHONE_13_6() { - return __IPHONE_13_6; + public static int KEY_PAUSE() { + return KEY_PAUSE; } - private static final int __IPHONE_13_7 = (int)130700L; + private static final int KEY_F1 = (int)290L; /** * {@snippet lang=c : - * #define __IPHONE_13_7 130700 + * enum .KEY_F1 = 290 * } */ - public static int __IPHONE_13_7() { - return __IPHONE_13_7; + public static int KEY_F1() { + return KEY_F1; } - private static final int __IPHONE_14_0 = (int)140000L; + private static final int KEY_F2 = (int)291L; /** * {@snippet lang=c : - * #define __IPHONE_14_0 140000 + * enum .KEY_F2 = 291 * } */ - public static int __IPHONE_14_0() { - return __IPHONE_14_0; + public static int KEY_F2() { + return KEY_F2; } - private static final int __IPHONE_14_1 = (int)140100L; + private static final int KEY_F3 = (int)292L; /** * {@snippet lang=c : - * #define __IPHONE_14_1 140100 + * enum .KEY_F3 = 292 * } */ - public static int __IPHONE_14_1() { - return __IPHONE_14_1; + public static int KEY_F3() { + return KEY_F3; } - private static final int __IPHONE_14_2 = (int)140200L; + private static final int KEY_F4 = (int)293L; /** * {@snippet lang=c : - * #define __IPHONE_14_2 140200 + * enum .KEY_F4 = 293 * } */ - public static int __IPHONE_14_2() { - return __IPHONE_14_2; + public static int KEY_F4() { + return KEY_F4; } - private static final int __IPHONE_14_3 = (int)140300L; + private static final int KEY_F5 = (int)294L; /** * {@snippet lang=c : - * #define __IPHONE_14_3 140300 + * enum .KEY_F5 = 294 * } */ - public static int __IPHONE_14_3() { - return __IPHONE_14_3; + public static int KEY_F5() { + return KEY_F5; } - private static final int __IPHONE_14_5 = (int)140500L; + private static final int KEY_F6 = (int)295L; /** * {@snippet lang=c : - * #define __IPHONE_14_5 140500 + * enum .KEY_F6 = 295 * } */ - public static int __IPHONE_14_5() { - return __IPHONE_14_5; + public static int KEY_F6() { + return KEY_F6; } - private static final int __IPHONE_14_4 = (int)140400L; + private static final int KEY_F7 = (int)296L; /** * {@snippet lang=c : - * #define __IPHONE_14_4 140400 + * enum .KEY_F7 = 296 * } */ - public static int __IPHONE_14_4() { - return __IPHONE_14_4; + public static int KEY_F7() { + return KEY_F7; } - private static final int __IPHONE_14_6 = (int)140600L; + private static final int KEY_F8 = (int)297L; /** * {@snippet lang=c : - * #define __IPHONE_14_6 140600 + * enum .KEY_F8 = 297 * } */ - public static int __IPHONE_14_6() { - return __IPHONE_14_6; + public static int KEY_F8() { + return KEY_F8; } - private static final int __IPHONE_14_7 = (int)140700L; + private static final int KEY_F9 = (int)298L; /** * {@snippet lang=c : - * #define __IPHONE_14_7 140700 + * enum .KEY_F9 = 298 * } */ - public static int __IPHONE_14_7() { - return __IPHONE_14_7; + public static int KEY_F9() { + return KEY_F9; } - private static final int __IPHONE_14_8 = (int)140800L; + private static final int KEY_F10 = (int)299L; /** * {@snippet lang=c : - * #define __IPHONE_14_8 140800 + * enum .KEY_F10 = 299 * } */ - public static int __IPHONE_14_8() { - return __IPHONE_14_8; + public static int KEY_F10() { + return KEY_F10; } - private static final int __IPHONE_15_0 = (int)150000L; + private static final int KEY_F11 = (int)300L; /** * {@snippet lang=c : - * #define __IPHONE_15_0 150000 + * enum .KEY_F11 = 300 * } */ - public static int __IPHONE_15_0() { - return __IPHONE_15_0; + public static int KEY_F11() { + return KEY_F11; } - private static final int __IPHONE_15_1 = (int)150100L; + private static final int KEY_F12 = (int)301L; /** * {@snippet lang=c : - * #define __IPHONE_15_1 150100 + * enum .KEY_F12 = 301 * } */ - public static int __IPHONE_15_1() { - return __IPHONE_15_1; + public static int KEY_F12() { + return KEY_F12; } - private static final int __IPHONE_15_2 = (int)150200L; + private static final int KEY_LEFT_SHIFT = (int)340L; /** * {@snippet lang=c : - * #define __IPHONE_15_2 150200 + * enum .KEY_LEFT_SHIFT = 340 * } */ - public static int __IPHONE_15_2() { - return __IPHONE_15_2; + public static int KEY_LEFT_SHIFT() { + return KEY_LEFT_SHIFT; } - private static final int __IPHONE_15_3 = (int)150300L; + private static final int KEY_LEFT_CONTROL = (int)341L; /** * {@snippet lang=c : - * #define __IPHONE_15_3 150300 + * enum .KEY_LEFT_CONTROL = 341 * } */ - public static int __IPHONE_15_3() { - return __IPHONE_15_3; + public static int KEY_LEFT_CONTROL() { + return KEY_LEFT_CONTROL; } - private static final int __IPHONE_15_4 = (int)150400L; + private static final int KEY_LEFT_ALT = (int)342L; /** * {@snippet lang=c : - * #define __IPHONE_15_4 150400 + * enum .KEY_LEFT_ALT = 342 * } */ - public static int __IPHONE_15_4() { - return __IPHONE_15_4; + public static int KEY_LEFT_ALT() { + return KEY_LEFT_ALT; } - private static final int __IPHONE_15_5 = (int)150500L; + private static final int KEY_LEFT_SUPER = (int)343L; /** * {@snippet lang=c : - * #define __IPHONE_15_5 150500 + * enum .KEY_LEFT_SUPER = 343 * } */ - public static int __IPHONE_15_5() { - return __IPHONE_15_5; + public static int KEY_LEFT_SUPER() { + return KEY_LEFT_SUPER; } - private static final int __IPHONE_15_6 = (int)150600L; + private static final int KEY_RIGHT_SHIFT = (int)344L; /** * {@snippet lang=c : - * #define __IPHONE_15_6 150600 + * enum .KEY_RIGHT_SHIFT = 344 * } */ - public static int __IPHONE_15_6() { - return __IPHONE_15_6; + public static int KEY_RIGHT_SHIFT() { + return KEY_RIGHT_SHIFT; } - private static final int __IPHONE_16_0 = (int)160000L; + private static final int KEY_RIGHT_CONTROL = (int)345L; /** * {@snippet lang=c : - * #define __IPHONE_16_0 160000 + * enum .KEY_RIGHT_CONTROL = 345 * } */ - public static int __IPHONE_16_0() { - return __IPHONE_16_0; + public static int KEY_RIGHT_CONTROL() { + return KEY_RIGHT_CONTROL; } - private static final int __IPHONE_16_1 = (int)160100L; + private static final int KEY_RIGHT_ALT = (int)346L; /** * {@snippet lang=c : - * #define __IPHONE_16_1 160100 + * enum .KEY_RIGHT_ALT = 346 * } */ - public static int __IPHONE_16_1() { - return __IPHONE_16_1; + public static int KEY_RIGHT_ALT() { + return KEY_RIGHT_ALT; } - private static final int __IPHONE_16_2 = (int)160200L; + private static final int KEY_RIGHT_SUPER = (int)347L; /** * {@snippet lang=c : - * #define __IPHONE_16_2 160200 + * enum .KEY_RIGHT_SUPER = 347 * } */ - public static int __IPHONE_16_2() { - return __IPHONE_16_2; + public static int KEY_RIGHT_SUPER() { + return KEY_RIGHT_SUPER; } - private static final int __IPHONE_16_3 = (int)160300L; + private static final int KEY_KB_MENU = (int)348L; /** * {@snippet lang=c : - * #define __IPHONE_16_3 160300 + * enum .KEY_KB_MENU = 348 * } */ - public static int __IPHONE_16_3() { - return __IPHONE_16_3; + public static int KEY_KB_MENU() { + return KEY_KB_MENU; } - private static final int __IPHONE_16_4 = (int)160400L; + private static final int KEY_KP_0 = (int)320L; /** * {@snippet lang=c : - * #define __IPHONE_16_4 160400 + * enum .KEY_KP_0 = 320 * } */ - public static int __IPHONE_16_4() { - return __IPHONE_16_4; + public static int KEY_KP_0() { + return KEY_KP_0; } - private static final int __IPHONE_16_5 = (int)160500L; + private static final int KEY_KP_1 = (int)321L; /** * {@snippet lang=c : - * #define __IPHONE_16_5 160500 + * enum .KEY_KP_1 = 321 * } */ - public static int __IPHONE_16_5() { - return __IPHONE_16_5; + public static int KEY_KP_1() { + return KEY_KP_1; } - private static final int __IPHONE_16_6 = (int)160600L; + private static final int KEY_KP_2 = (int)322L; /** * {@snippet lang=c : - * #define __IPHONE_16_6 160600 + * enum .KEY_KP_2 = 322 * } */ - public static int __IPHONE_16_6() { - return __IPHONE_16_6; + public static int KEY_KP_2() { + return KEY_KP_2; } - private static final int __IPHONE_16_7 = (int)160700L; + private static final int KEY_KP_3 = (int)323L; /** * {@snippet lang=c : - * #define __IPHONE_16_7 160700 + * enum .KEY_KP_3 = 323 * } */ - public static int __IPHONE_16_7() { - return __IPHONE_16_7; + public static int KEY_KP_3() { + return KEY_KP_3; } - private static final int __IPHONE_17_0 = (int)170000L; + private static final int KEY_KP_4 = (int)324L; /** * {@snippet lang=c : - * #define __IPHONE_17_0 170000 + * enum .KEY_KP_4 = 324 * } */ - public static int __IPHONE_17_0() { - return __IPHONE_17_0; + public static int KEY_KP_4() { + return KEY_KP_4; } - private static final int __IPHONE_17_1 = (int)170100L; + private static final int KEY_KP_5 = (int)325L; /** * {@snippet lang=c : - * #define __IPHONE_17_1 170100 + * enum .KEY_KP_5 = 325 * } */ - public static int __IPHONE_17_1() { - return __IPHONE_17_1; + public static int KEY_KP_5() { + return KEY_KP_5; } - private static final int __IPHONE_17_2 = (int)170200L; + private static final int KEY_KP_6 = (int)326L; /** * {@snippet lang=c : - * #define __IPHONE_17_2 170200 + * enum .KEY_KP_6 = 326 * } */ - public static int __IPHONE_17_2() { - return __IPHONE_17_2; + public static int KEY_KP_6() { + return KEY_KP_6; } - private static final int __WATCHOS_1_0 = (int)10000L; + private static final int KEY_KP_7 = (int)327L; /** * {@snippet lang=c : - * #define __WATCHOS_1_0 10000 + * enum .KEY_KP_7 = 327 * } */ - public static int __WATCHOS_1_0() { - return __WATCHOS_1_0; + public static int KEY_KP_7() { + return KEY_KP_7; } - private static final int __WATCHOS_2_0 = (int)20000L; + private static final int KEY_KP_8 = (int)328L; /** * {@snippet lang=c : - * #define __WATCHOS_2_0 20000 + * enum .KEY_KP_8 = 328 * } */ - public static int __WATCHOS_2_0() { - return __WATCHOS_2_0; + public static int KEY_KP_8() { + return KEY_KP_8; } - private static final int __WATCHOS_2_1 = (int)20100L; + private static final int KEY_KP_9 = (int)329L; /** * {@snippet lang=c : - * #define __WATCHOS_2_1 20100 + * enum .KEY_KP_9 = 329 * } */ - public static int __WATCHOS_2_1() { - return __WATCHOS_2_1; + public static int KEY_KP_9() { + return KEY_KP_9; } - private static final int __WATCHOS_2_2 = (int)20200L; + private static final int KEY_KP_DECIMAL = (int)330L; /** * {@snippet lang=c : - * #define __WATCHOS_2_2 20200 + * enum .KEY_KP_DECIMAL = 330 * } */ - public static int __WATCHOS_2_2() { - return __WATCHOS_2_2; + public static int KEY_KP_DECIMAL() { + return KEY_KP_DECIMAL; } - private static final int __WATCHOS_3_0 = (int)30000L; + private static final int KEY_KP_DIVIDE = (int)331L; /** * {@snippet lang=c : - * #define __WATCHOS_3_0 30000 + * enum .KEY_KP_DIVIDE = 331 * } */ - public static int __WATCHOS_3_0() { - return __WATCHOS_3_0; + public static int KEY_KP_DIVIDE() { + return KEY_KP_DIVIDE; } - private static final int __WATCHOS_3_1 = (int)30100L; + private static final int KEY_KP_MULTIPLY = (int)332L; /** * {@snippet lang=c : - * #define __WATCHOS_3_1 30100 + * enum .KEY_KP_MULTIPLY = 332 * } */ - public static int __WATCHOS_3_1() { - return __WATCHOS_3_1; + public static int KEY_KP_MULTIPLY() { + return KEY_KP_MULTIPLY; } - private static final int __WATCHOS_3_1_1 = (int)30101L; + private static final int KEY_KP_SUBTRACT = (int)333L; /** * {@snippet lang=c : - * #define __WATCHOS_3_1_1 30101 + * enum .KEY_KP_SUBTRACT = 333 * } */ - public static int __WATCHOS_3_1_1() { - return __WATCHOS_3_1_1; + public static int KEY_KP_SUBTRACT() { + return KEY_KP_SUBTRACT; } - private static final int __WATCHOS_3_2 = (int)30200L; + private static final int KEY_KP_ADD = (int)334L; /** * {@snippet lang=c : - * #define __WATCHOS_3_2 30200 + * enum .KEY_KP_ADD = 334 * } */ - public static int __WATCHOS_3_2() { - return __WATCHOS_3_2; + public static int KEY_KP_ADD() { + return KEY_KP_ADD; } - private static final int __WATCHOS_4_0 = (int)40000L; + private static final int KEY_KP_ENTER = (int)335L; /** * {@snippet lang=c : - * #define __WATCHOS_4_0 40000 + * enum .KEY_KP_ENTER = 335 * } */ - public static int __WATCHOS_4_0() { - return __WATCHOS_4_0; + public static int KEY_KP_ENTER() { + return KEY_KP_ENTER; } - private static final int __WATCHOS_4_1 = (int)40100L; + private static final int KEY_KP_EQUAL = (int)336L; /** * {@snippet lang=c : - * #define __WATCHOS_4_1 40100 + * enum .KEY_KP_EQUAL = 336 * } */ - public static int __WATCHOS_4_1() { - return __WATCHOS_4_1; + public static int KEY_KP_EQUAL() { + return KEY_KP_EQUAL; } - private static final int __WATCHOS_4_2 = (int)40200L; + private static final int KEY_BACK = (int)4L; /** * {@snippet lang=c : - * #define __WATCHOS_4_2 40200 + * enum .KEY_BACK = 4 * } */ - public static int __WATCHOS_4_2() { - return __WATCHOS_4_2; + public static int KEY_BACK() { + return KEY_BACK; } - private static final int __WATCHOS_4_3 = (int)40300L; + private static final int KEY_MENU = (int)5L; /** * {@snippet lang=c : - * #define __WATCHOS_4_3 40300 + * enum .KEY_MENU = 5 * } */ - public static int __WATCHOS_4_3() { - return __WATCHOS_4_3; + public static int KEY_MENU() { + return KEY_MENU; } - private static final int __WATCHOS_5_0 = (int)50000L; + private static final int KEY_VOLUME_UP = (int)24L; /** * {@snippet lang=c : - * #define __WATCHOS_5_0 50000 + * enum .KEY_VOLUME_UP = 24 * } */ - public static int __WATCHOS_5_0() { - return __WATCHOS_5_0; + public static int KEY_VOLUME_UP() { + return KEY_VOLUME_UP; } - private static final int __WATCHOS_5_1 = (int)50100L; + private static final int KEY_VOLUME_DOWN = (int)25L; /** * {@snippet lang=c : - * #define __WATCHOS_5_1 50100 + * enum .KEY_VOLUME_DOWN = 25 * } */ - public static int __WATCHOS_5_1() { - return __WATCHOS_5_1; + public static int KEY_VOLUME_DOWN() { + return KEY_VOLUME_DOWN; } - private static final int __WATCHOS_5_2 = (int)50200L; + private static final int MOUSE_BUTTON_LEFT = (int)0L; /** * {@snippet lang=c : - * #define __WATCHOS_5_2 50200 + * enum .MOUSE_BUTTON_LEFT = 0 * } */ - public static int __WATCHOS_5_2() { - return __WATCHOS_5_2; + public static int MOUSE_BUTTON_LEFT() { + return MOUSE_BUTTON_LEFT; } - private static final int __WATCHOS_5_3 = (int)50300L; + private static final int MOUSE_BUTTON_RIGHT = (int)1L; /** * {@snippet lang=c : - * #define __WATCHOS_5_3 50300 + * enum .MOUSE_BUTTON_RIGHT = 1 * } */ - public static int __WATCHOS_5_3() { - return __WATCHOS_5_3; + public static int MOUSE_BUTTON_RIGHT() { + return MOUSE_BUTTON_RIGHT; } - private static final int __WATCHOS_6_0 = (int)60000L; + private static final int MOUSE_BUTTON_MIDDLE = (int)2L; /** * {@snippet lang=c : - * #define __WATCHOS_6_0 60000 + * enum .MOUSE_BUTTON_MIDDLE = 2 * } */ - public static int __WATCHOS_6_0() { - return __WATCHOS_6_0; + public static int MOUSE_BUTTON_MIDDLE() { + return MOUSE_BUTTON_MIDDLE; } - private static final int __WATCHOS_6_1 = (int)60100L; + private static final int MOUSE_BUTTON_SIDE = (int)3L; /** * {@snippet lang=c : - * #define __WATCHOS_6_1 60100 + * enum .MOUSE_BUTTON_SIDE = 3 * } */ - public static int __WATCHOS_6_1() { - return __WATCHOS_6_1; + public static int MOUSE_BUTTON_SIDE() { + return MOUSE_BUTTON_SIDE; } - private static final int __WATCHOS_6_2 = (int)60200L; + private static final int MOUSE_BUTTON_EXTRA = (int)4L; /** * {@snippet lang=c : - * #define __WATCHOS_6_2 60200 + * enum .MOUSE_BUTTON_EXTRA = 4 * } */ - public static int __WATCHOS_6_2() { - return __WATCHOS_6_2; + public static int MOUSE_BUTTON_EXTRA() { + return MOUSE_BUTTON_EXTRA; } - private static final int __WATCHOS_7_0 = (int)70000L; + private static final int MOUSE_BUTTON_FORWARD = (int)5L; /** * {@snippet lang=c : - * #define __WATCHOS_7_0 70000 + * enum .MOUSE_BUTTON_FORWARD = 5 * } */ - public static int __WATCHOS_7_0() { - return __WATCHOS_7_0; + public static int MOUSE_BUTTON_FORWARD() { + return MOUSE_BUTTON_FORWARD; } - private static final int __WATCHOS_7_1 = (int)70100L; + private static final int MOUSE_BUTTON_BACK = (int)6L; /** * {@snippet lang=c : - * #define __WATCHOS_7_1 70100 + * enum .MOUSE_BUTTON_BACK = 6 * } */ - public static int __WATCHOS_7_1() { - return __WATCHOS_7_1; + public static int MOUSE_BUTTON_BACK() { + return MOUSE_BUTTON_BACK; } - private static final int __WATCHOS_7_2 = (int)70200L; + private static final int MOUSE_CURSOR_DEFAULT = (int)0L; /** * {@snippet lang=c : - * #define __WATCHOS_7_2 70200 + * enum .MOUSE_CURSOR_DEFAULT = 0 * } */ - public static int __WATCHOS_7_2() { - return __WATCHOS_7_2; + public static int MOUSE_CURSOR_DEFAULT() { + return MOUSE_CURSOR_DEFAULT; } - private static final int __WATCHOS_7_3 = (int)70300L; + private static final int MOUSE_CURSOR_ARROW = (int)1L; /** * {@snippet lang=c : - * #define __WATCHOS_7_3 70300 + * enum .MOUSE_CURSOR_ARROW = 1 * } */ - public static int __WATCHOS_7_3() { - return __WATCHOS_7_3; + public static int MOUSE_CURSOR_ARROW() { + return MOUSE_CURSOR_ARROW; } - private static final int __WATCHOS_7_4 = (int)70400L; + private static final int MOUSE_CURSOR_IBEAM = (int)2L; /** * {@snippet lang=c : - * #define __WATCHOS_7_4 70400 + * enum .MOUSE_CURSOR_IBEAM = 2 * } */ - public static int __WATCHOS_7_4() { - return __WATCHOS_7_4; + public static int MOUSE_CURSOR_IBEAM() { + return MOUSE_CURSOR_IBEAM; } - private static final int __WATCHOS_7_5 = (int)70500L; + private static final int MOUSE_CURSOR_CROSSHAIR = (int)3L; /** * {@snippet lang=c : - * #define __WATCHOS_7_5 70500 + * enum .MOUSE_CURSOR_CROSSHAIR = 3 * } */ - public static int __WATCHOS_7_5() { - return __WATCHOS_7_5; + public static int MOUSE_CURSOR_CROSSHAIR() { + return MOUSE_CURSOR_CROSSHAIR; } - private static final int __WATCHOS_7_6 = (int)70600L; + private static final int MOUSE_CURSOR_POINTING_HAND = (int)4L; /** * {@snippet lang=c : - * #define __WATCHOS_7_6 70600 + * enum .MOUSE_CURSOR_POINTING_HAND = 4 * } */ - public static int __WATCHOS_7_6() { - return __WATCHOS_7_6; + public static int MOUSE_CURSOR_POINTING_HAND() { + return MOUSE_CURSOR_POINTING_HAND; } - private static final int __WATCHOS_8_0 = (int)80000L; + private static final int MOUSE_CURSOR_RESIZE_EW = (int)5L; /** * {@snippet lang=c : - * #define __WATCHOS_8_0 80000 + * enum .MOUSE_CURSOR_RESIZE_EW = 5 * } */ - public static int __WATCHOS_8_0() { - return __WATCHOS_8_0; + public static int MOUSE_CURSOR_RESIZE_EW() { + return MOUSE_CURSOR_RESIZE_EW; } - private static final int __WATCHOS_8_1 = (int)80100L; + private static final int MOUSE_CURSOR_RESIZE_NS = (int)6L; /** * {@snippet lang=c : - * #define __WATCHOS_8_1 80100 + * enum .MOUSE_CURSOR_RESIZE_NS = 6 * } */ - public static int __WATCHOS_8_1() { - return __WATCHOS_8_1; + public static int MOUSE_CURSOR_RESIZE_NS() { + return MOUSE_CURSOR_RESIZE_NS; } - private static final int __WATCHOS_8_3 = (int)80300L; + private static final int MOUSE_CURSOR_RESIZE_NWSE = (int)7L; /** * {@snippet lang=c : - * #define __WATCHOS_8_3 80300 + * enum .MOUSE_CURSOR_RESIZE_NWSE = 7 * } */ - public static int __WATCHOS_8_3() { - return __WATCHOS_8_3; + public static int MOUSE_CURSOR_RESIZE_NWSE() { + return MOUSE_CURSOR_RESIZE_NWSE; } - private static final int __WATCHOS_8_4 = (int)80400L; + private static final int MOUSE_CURSOR_RESIZE_NESW = (int)8L; /** * {@snippet lang=c : - * #define __WATCHOS_8_4 80400 + * enum .MOUSE_CURSOR_RESIZE_NESW = 8 * } */ - public static int __WATCHOS_8_4() { - return __WATCHOS_8_4; + public static int MOUSE_CURSOR_RESIZE_NESW() { + return MOUSE_CURSOR_RESIZE_NESW; } - private static final int __WATCHOS_8_5 = (int)80500L; + private static final int MOUSE_CURSOR_RESIZE_ALL = (int)9L; /** * {@snippet lang=c : - * #define __WATCHOS_8_5 80500 + * enum .MOUSE_CURSOR_RESIZE_ALL = 9 * } */ - public static int __WATCHOS_8_5() { - return __WATCHOS_8_5; + public static int MOUSE_CURSOR_RESIZE_ALL() { + return MOUSE_CURSOR_RESIZE_ALL; } - private static final int __WATCHOS_8_6 = (int)80600L; + private static final int MOUSE_CURSOR_NOT_ALLOWED = (int)10L; /** * {@snippet lang=c : - * #define __WATCHOS_8_6 80600 + * enum .MOUSE_CURSOR_NOT_ALLOWED = 10 * } */ - public static int __WATCHOS_8_6() { - return __WATCHOS_8_6; + public static int MOUSE_CURSOR_NOT_ALLOWED() { + return MOUSE_CURSOR_NOT_ALLOWED; } - private static final int __WATCHOS_8_7 = (int)80700L; + private static final int GAMEPAD_BUTTON_UNKNOWN = (int)0L; /** * {@snippet lang=c : - * #define __WATCHOS_8_7 80700 + * enum .GAMEPAD_BUTTON_UNKNOWN = 0 * } */ - public static int __WATCHOS_8_7() { - return __WATCHOS_8_7; + public static int GAMEPAD_BUTTON_UNKNOWN() { + return GAMEPAD_BUTTON_UNKNOWN; } - private static final int __WATCHOS_9_0 = (int)90000L; + private static final int GAMEPAD_BUTTON_LEFT_FACE_UP = (int)1L; /** * {@snippet lang=c : - * #define __WATCHOS_9_0 90000 + * enum .GAMEPAD_BUTTON_LEFT_FACE_UP = 1 * } */ - public static int __WATCHOS_9_0() { - return __WATCHOS_9_0; + public static int GAMEPAD_BUTTON_LEFT_FACE_UP() { + return GAMEPAD_BUTTON_LEFT_FACE_UP; } - private static final int __WATCHOS_9_1 = (int)90100L; + private static final int GAMEPAD_BUTTON_LEFT_FACE_RIGHT = (int)2L; /** * {@snippet lang=c : - * #define __WATCHOS_9_1 90100 + * enum .GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2 * } */ - public static int __WATCHOS_9_1() { - return __WATCHOS_9_1; + public static int GAMEPAD_BUTTON_LEFT_FACE_RIGHT() { + return GAMEPAD_BUTTON_LEFT_FACE_RIGHT; } - private static final int __WATCHOS_9_2 = (int)90200L; + private static final int GAMEPAD_BUTTON_LEFT_FACE_DOWN = (int)3L; /** * {@snippet lang=c : - * #define __WATCHOS_9_2 90200 + * enum .GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3 * } */ - public static int __WATCHOS_9_2() { - return __WATCHOS_9_2; + public static int GAMEPAD_BUTTON_LEFT_FACE_DOWN() { + return GAMEPAD_BUTTON_LEFT_FACE_DOWN; } - private static final int __WATCHOS_9_3 = (int)90300L; + private static final int GAMEPAD_BUTTON_LEFT_FACE_LEFT = (int)4L; /** * {@snippet lang=c : - * #define __WATCHOS_9_3 90300 + * enum .GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4 * } */ - public static int __WATCHOS_9_3() { - return __WATCHOS_9_3; + public static int GAMEPAD_BUTTON_LEFT_FACE_LEFT() { + return GAMEPAD_BUTTON_LEFT_FACE_LEFT; } - private static final int __WATCHOS_9_4 = (int)90400L; + private static final int GAMEPAD_BUTTON_RIGHT_FACE_UP = (int)5L; /** * {@snippet lang=c : - * #define __WATCHOS_9_4 90400 + * enum .GAMEPAD_BUTTON_RIGHT_FACE_UP = 5 * } */ - public static int __WATCHOS_9_4() { - return __WATCHOS_9_4; + public static int GAMEPAD_BUTTON_RIGHT_FACE_UP() { + return GAMEPAD_BUTTON_RIGHT_FACE_UP; } - private static final int __WATCHOS_9_5 = (int)90500L; + private static final int GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = (int)6L; /** * {@snippet lang=c : - * #define __WATCHOS_9_5 90500 + * enum .GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6 * } */ - public static int __WATCHOS_9_5() { - return __WATCHOS_9_5; + public static int GAMEPAD_BUTTON_RIGHT_FACE_RIGHT() { + return GAMEPAD_BUTTON_RIGHT_FACE_RIGHT; } - private static final int __WATCHOS_9_6 = (int)90600L; + private static final int GAMEPAD_BUTTON_RIGHT_FACE_DOWN = (int)7L; /** * {@snippet lang=c : - * #define __WATCHOS_9_6 90600 + * enum .GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7 * } */ - public static int __WATCHOS_9_6() { - return __WATCHOS_9_6; + public static int GAMEPAD_BUTTON_RIGHT_FACE_DOWN() { + return GAMEPAD_BUTTON_RIGHT_FACE_DOWN; } - private static final int __WATCHOS_10_0 = (int)100000L; + private static final int GAMEPAD_BUTTON_RIGHT_FACE_LEFT = (int)8L; /** * {@snippet lang=c : - * #define __WATCHOS_10_0 100000 + * enum .GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8 * } */ - public static int __WATCHOS_10_0() { - return __WATCHOS_10_0; + public static int GAMEPAD_BUTTON_RIGHT_FACE_LEFT() { + return GAMEPAD_BUTTON_RIGHT_FACE_LEFT; } - private static final int __WATCHOS_10_1 = (int)100100L; + private static final int GAMEPAD_BUTTON_LEFT_TRIGGER_1 = (int)9L; /** * {@snippet lang=c : - * #define __WATCHOS_10_1 100100 + * enum .GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9 * } */ - public static int __WATCHOS_10_1() { - return __WATCHOS_10_1; + public static int GAMEPAD_BUTTON_LEFT_TRIGGER_1() { + return GAMEPAD_BUTTON_LEFT_TRIGGER_1; } - private static final int __WATCHOS_10_2 = (int)100200L; + private static final int GAMEPAD_BUTTON_LEFT_TRIGGER_2 = (int)10L; /** * {@snippet lang=c : - * #define __WATCHOS_10_2 100200 + * enum .GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10 * } */ - public static int __WATCHOS_10_2() { - return __WATCHOS_10_2; + public static int GAMEPAD_BUTTON_LEFT_TRIGGER_2() { + return GAMEPAD_BUTTON_LEFT_TRIGGER_2; } - private static final int __TVOS_9_0 = (int)90000L; + private static final int GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = (int)11L; /** * {@snippet lang=c : - * #define __TVOS_9_0 90000 + * enum .GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11 * } */ - public static int __TVOS_9_0() { - return __TVOS_9_0; + public static int GAMEPAD_BUTTON_RIGHT_TRIGGER_1() { + return GAMEPAD_BUTTON_RIGHT_TRIGGER_1; } - private static final int __TVOS_9_1 = (int)90100L; + private static final int GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = (int)12L; /** * {@snippet lang=c : - * #define __TVOS_9_1 90100 + * enum .GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12 * } */ - public static int __TVOS_9_1() { - return __TVOS_9_1; + public static int GAMEPAD_BUTTON_RIGHT_TRIGGER_2() { + return GAMEPAD_BUTTON_RIGHT_TRIGGER_2; } - private static final int __TVOS_9_2 = (int)90200L; + private static final int GAMEPAD_BUTTON_MIDDLE_LEFT = (int)13L; /** * {@snippet lang=c : - * #define __TVOS_9_2 90200 + * enum .GAMEPAD_BUTTON_MIDDLE_LEFT = 13 * } */ - public static int __TVOS_9_2() { - return __TVOS_9_2; + public static int GAMEPAD_BUTTON_MIDDLE_LEFT() { + return GAMEPAD_BUTTON_MIDDLE_LEFT; } - private static final int __TVOS_10_0 = (int)100000L; + private static final int GAMEPAD_BUTTON_MIDDLE = (int)14L; /** * {@snippet lang=c : - * #define __TVOS_10_0 100000 + * enum .GAMEPAD_BUTTON_MIDDLE = 14 * } */ - public static int __TVOS_10_0() { - return __TVOS_10_0; + public static int GAMEPAD_BUTTON_MIDDLE() { + return GAMEPAD_BUTTON_MIDDLE; } - private static final int __TVOS_10_0_1 = (int)100001L; + private static final int GAMEPAD_BUTTON_MIDDLE_RIGHT = (int)15L; /** * {@snippet lang=c : - * #define __TVOS_10_0_1 100001 + * enum .GAMEPAD_BUTTON_MIDDLE_RIGHT = 15 * } */ - public static int __TVOS_10_0_1() { - return __TVOS_10_0_1; + public static int GAMEPAD_BUTTON_MIDDLE_RIGHT() { + return GAMEPAD_BUTTON_MIDDLE_RIGHT; } - private static final int __TVOS_10_1 = (int)100100L; + private static final int GAMEPAD_BUTTON_LEFT_THUMB = (int)16L; /** * {@snippet lang=c : - * #define __TVOS_10_1 100100 + * enum .GAMEPAD_BUTTON_LEFT_THUMB = 16 * } */ - public static int __TVOS_10_1() { - return __TVOS_10_1; + public static int GAMEPAD_BUTTON_LEFT_THUMB() { + return GAMEPAD_BUTTON_LEFT_THUMB; } - private static final int __TVOS_10_2 = (int)100200L; + private static final int GAMEPAD_BUTTON_RIGHT_THUMB = (int)17L; /** * {@snippet lang=c : - * #define __TVOS_10_2 100200 + * enum .GAMEPAD_BUTTON_RIGHT_THUMB = 17 * } */ - public static int __TVOS_10_2() { - return __TVOS_10_2; + public static int GAMEPAD_BUTTON_RIGHT_THUMB() { + return GAMEPAD_BUTTON_RIGHT_THUMB; } - private static final int __TVOS_11_0 = (int)110000L; + private static final int GAMEPAD_AXIS_LEFT_X = (int)0L; /** * {@snippet lang=c : - * #define __TVOS_11_0 110000 + * enum .GAMEPAD_AXIS_LEFT_X = 0 * } */ - public static int __TVOS_11_0() { - return __TVOS_11_0; + public static int GAMEPAD_AXIS_LEFT_X() { + return GAMEPAD_AXIS_LEFT_X; } - private static final int __TVOS_11_1 = (int)110100L; + private static final int GAMEPAD_AXIS_LEFT_Y = (int)1L; /** * {@snippet lang=c : - * #define __TVOS_11_1 110100 + * enum .GAMEPAD_AXIS_LEFT_Y = 1 * } */ - public static int __TVOS_11_1() { - return __TVOS_11_1; + public static int GAMEPAD_AXIS_LEFT_Y() { + return GAMEPAD_AXIS_LEFT_Y; } - private static final int __TVOS_11_2 = (int)110200L; + private static final int GAMEPAD_AXIS_RIGHT_X = (int)2L; /** * {@snippet lang=c : - * #define __TVOS_11_2 110200 + * enum .GAMEPAD_AXIS_RIGHT_X = 2 * } */ - public static int __TVOS_11_2() { - return __TVOS_11_2; + public static int GAMEPAD_AXIS_RIGHT_X() { + return GAMEPAD_AXIS_RIGHT_X; } - private static final int __TVOS_11_3 = (int)110300L; + private static final int GAMEPAD_AXIS_RIGHT_Y = (int)3L; /** * {@snippet lang=c : - * #define __TVOS_11_3 110300 + * enum .GAMEPAD_AXIS_RIGHT_Y = 3 * } */ - public static int __TVOS_11_3() { - return __TVOS_11_3; + public static int GAMEPAD_AXIS_RIGHT_Y() { + return GAMEPAD_AXIS_RIGHT_Y; } - private static final int __TVOS_11_4 = (int)110400L; + private static final int GAMEPAD_AXIS_LEFT_TRIGGER = (int)4L; /** * {@snippet lang=c : - * #define __TVOS_11_4 110400 + * enum .GAMEPAD_AXIS_LEFT_TRIGGER = 4 * } */ - public static int __TVOS_11_4() { - return __TVOS_11_4; + public static int GAMEPAD_AXIS_LEFT_TRIGGER() { + return GAMEPAD_AXIS_LEFT_TRIGGER; } - private static final int __TVOS_12_0 = (int)120000L; + private static final int GAMEPAD_AXIS_RIGHT_TRIGGER = (int)5L; /** * {@snippet lang=c : - * #define __TVOS_12_0 120000 + * enum .GAMEPAD_AXIS_RIGHT_TRIGGER = 5 * } */ - public static int __TVOS_12_0() { - return __TVOS_12_0; + public static int GAMEPAD_AXIS_RIGHT_TRIGGER() { + return GAMEPAD_AXIS_RIGHT_TRIGGER; } - private static final int __TVOS_12_1 = (int)120100L; + private static final int MATERIAL_MAP_ALBEDO = (int)0L; /** * {@snippet lang=c : - * #define __TVOS_12_1 120100 + * enum .MATERIAL_MAP_ALBEDO = 0 * } */ - public static int __TVOS_12_1() { - return __TVOS_12_1; + public static int MATERIAL_MAP_ALBEDO() { + return MATERIAL_MAP_ALBEDO; } - private static final int __TVOS_12_2 = (int)120200L; + private static final int MATERIAL_MAP_METALNESS = (int)1L; /** * {@snippet lang=c : - * #define __TVOS_12_2 120200 + * enum .MATERIAL_MAP_METALNESS = 1 * } */ - public static int __TVOS_12_2() { - return __TVOS_12_2; + public static int MATERIAL_MAP_METALNESS() { + return MATERIAL_MAP_METALNESS; } - private static final int __TVOS_12_3 = (int)120300L; + private static final int MATERIAL_MAP_NORMAL = (int)2L; /** * {@snippet lang=c : - * #define __TVOS_12_3 120300 + * enum .MATERIAL_MAP_NORMAL = 2 * } */ - public static int __TVOS_12_3() { - return __TVOS_12_3; + public static int MATERIAL_MAP_NORMAL() { + return MATERIAL_MAP_NORMAL; } - private static final int __TVOS_12_4 = (int)120400L; + private static final int MATERIAL_MAP_ROUGHNESS = (int)3L; /** * {@snippet lang=c : - * #define __TVOS_12_4 120400 + * enum .MATERIAL_MAP_ROUGHNESS = 3 * } */ - public static int __TVOS_12_4() { - return __TVOS_12_4; + public static int MATERIAL_MAP_ROUGHNESS() { + return MATERIAL_MAP_ROUGHNESS; } - private static final int __TVOS_13_0 = (int)130000L; + private static final int MATERIAL_MAP_OCCLUSION = (int)4L; /** * {@snippet lang=c : - * #define __TVOS_13_0 130000 + * enum .MATERIAL_MAP_OCCLUSION = 4 * } */ - public static int __TVOS_13_0() { - return __TVOS_13_0; + public static int MATERIAL_MAP_OCCLUSION() { + return MATERIAL_MAP_OCCLUSION; } - private static final int __TVOS_13_2 = (int)130200L; + private static final int MATERIAL_MAP_EMISSION = (int)5L; /** * {@snippet lang=c : - * #define __TVOS_13_2 130200 + * enum .MATERIAL_MAP_EMISSION = 5 * } */ - public static int __TVOS_13_2() { - return __TVOS_13_2; + public static int MATERIAL_MAP_EMISSION() { + return MATERIAL_MAP_EMISSION; } - private static final int __TVOS_13_3 = (int)130300L; + private static final int MATERIAL_MAP_HEIGHT = (int)6L; /** * {@snippet lang=c : - * #define __TVOS_13_3 130300 + * enum .MATERIAL_MAP_HEIGHT = 6 * } */ - public static int __TVOS_13_3() { - return __TVOS_13_3; + public static int MATERIAL_MAP_HEIGHT() { + return MATERIAL_MAP_HEIGHT; } - private static final int __TVOS_13_4 = (int)130400L; + private static final int MATERIAL_MAP_CUBEMAP = (int)7L; /** * {@snippet lang=c : - * #define __TVOS_13_4 130400 + * enum .MATERIAL_MAP_CUBEMAP = 7 * } */ - public static int __TVOS_13_4() { - return __TVOS_13_4; + public static int MATERIAL_MAP_CUBEMAP() { + return MATERIAL_MAP_CUBEMAP; } - private static final int __TVOS_14_0 = (int)140000L; + private static final int MATERIAL_MAP_IRRADIANCE = (int)8L; /** * {@snippet lang=c : - * #define __TVOS_14_0 140000 + * enum .MATERIAL_MAP_IRRADIANCE = 8 * } */ - public static int __TVOS_14_0() { - return __TVOS_14_0; + public static int MATERIAL_MAP_IRRADIANCE() { + return MATERIAL_MAP_IRRADIANCE; } - private static final int __TVOS_14_1 = (int)140100L; + private static final int MATERIAL_MAP_PREFILTER = (int)9L; /** * {@snippet lang=c : - * #define __TVOS_14_1 140100 + * enum .MATERIAL_MAP_PREFILTER = 9 * } */ - public static int __TVOS_14_1() { - return __TVOS_14_1; + public static int MATERIAL_MAP_PREFILTER() { + return MATERIAL_MAP_PREFILTER; } - private static final int __TVOS_14_2 = (int)140200L; + private static final int MATERIAL_MAP_BRDF = (int)10L; /** * {@snippet lang=c : - * #define __TVOS_14_2 140200 + * enum .MATERIAL_MAP_BRDF = 10 * } */ - public static int __TVOS_14_2() { - return __TVOS_14_2; + public static int MATERIAL_MAP_BRDF() { + return MATERIAL_MAP_BRDF; } - private static final int __TVOS_14_3 = (int)140300L; + private static final int SHADER_LOC_VERTEX_POSITION = (int)0L; /** * {@snippet lang=c : - * #define __TVOS_14_3 140300 + * enum .SHADER_LOC_VERTEX_POSITION = 0 * } */ - public static int __TVOS_14_3() { - return __TVOS_14_3; + public static int SHADER_LOC_VERTEX_POSITION() { + return SHADER_LOC_VERTEX_POSITION; } - private static final int __TVOS_14_5 = (int)140500L; + private static final int SHADER_LOC_VERTEX_TEXCOORD01 = (int)1L; /** * {@snippet lang=c : - * #define __TVOS_14_5 140500 + * enum .SHADER_LOC_VERTEX_TEXCOORD01 = 1 * } */ - public static int __TVOS_14_5() { - return __TVOS_14_5; + public static int SHADER_LOC_VERTEX_TEXCOORD01() { + return SHADER_LOC_VERTEX_TEXCOORD01; } - private static final int __TVOS_14_6 = (int)140600L; + private static final int SHADER_LOC_VERTEX_TEXCOORD02 = (int)2L; /** * {@snippet lang=c : - * #define __TVOS_14_6 140600 + * enum .SHADER_LOC_VERTEX_TEXCOORD02 = 2 * } */ - public static int __TVOS_14_6() { - return __TVOS_14_6; + public static int SHADER_LOC_VERTEX_TEXCOORD02() { + return SHADER_LOC_VERTEX_TEXCOORD02; } - private static final int __TVOS_14_7 = (int)140700L; + private static final int SHADER_LOC_VERTEX_NORMAL = (int)3L; /** * {@snippet lang=c : - * #define __TVOS_14_7 140700 + * enum .SHADER_LOC_VERTEX_NORMAL = 3 * } */ - public static int __TVOS_14_7() { - return __TVOS_14_7; + public static int SHADER_LOC_VERTEX_NORMAL() { + return SHADER_LOC_VERTEX_NORMAL; } - private static final int __TVOS_15_0 = (int)150000L; + private static final int SHADER_LOC_VERTEX_TANGENT = (int)4L; /** * {@snippet lang=c : - * #define __TVOS_15_0 150000 + * enum .SHADER_LOC_VERTEX_TANGENT = 4 * } */ - public static int __TVOS_15_0() { - return __TVOS_15_0; + public static int SHADER_LOC_VERTEX_TANGENT() { + return SHADER_LOC_VERTEX_TANGENT; } - private static final int __TVOS_15_1 = (int)150100L; + private static final int SHADER_LOC_VERTEX_COLOR = (int)5L; /** * {@snippet lang=c : - * #define __TVOS_15_1 150100 + * enum .SHADER_LOC_VERTEX_COLOR = 5 * } */ - public static int __TVOS_15_1() { - return __TVOS_15_1; + public static int SHADER_LOC_VERTEX_COLOR() { + return SHADER_LOC_VERTEX_COLOR; } - private static final int __TVOS_15_2 = (int)150200L; + private static final int SHADER_LOC_MATRIX_MVP = (int)6L; /** * {@snippet lang=c : - * #define __TVOS_15_2 150200 + * enum .SHADER_LOC_MATRIX_MVP = 6 * } */ - public static int __TVOS_15_2() { - return __TVOS_15_2; + public static int SHADER_LOC_MATRIX_MVP() { + return SHADER_LOC_MATRIX_MVP; } - private static final int __TVOS_15_3 = (int)150300L; + private static final int SHADER_LOC_MATRIX_VIEW = (int)7L; /** * {@snippet lang=c : - * #define __TVOS_15_3 150300 + * enum .SHADER_LOC_MATRIX_VIEW = 7 * } */ - public static int __TVOS_15_3() { - return __TVOS_15_3; + public static int SHADER_LOC_MATRIX_VIEW() { + return SHADER_LOC_MATRIX_VIEW; } - private static final int __TVOS_15_4 = (int)150400L; + private static final int SHADER_LOC_MATRIX_PROJECTION = (int)8L; /** * {@snippet lang=c : - * #define __TVOS_15_4 150400 + * enum .SHADER_LOC_MATRIX_PROJECTION = 8 * } */ - public static int __TVOS_15_4() { - return __TVOS_15_4; + public static int SHADER_LOC_MATRIX_PROJECTION() { + return SHADER_LOC_MATRIX_PROJECTION; } - private static final int __TVOS_15_5 = (int)150500L; + private static final int SHADER_LOC_MATRIX_MODEL = (int)9L; /** * {@snippet lang=c : - * #define __TVOS_15_5 150500 + * enum .SHADER_LOC_MATRIX_MODEL = 9 * } */ - public static int __TVOS_15_5() { - return __TVOS_15_5; + public static int SHADER_LOC_MATRIX_MODEL() { + return SHADER_LOC_MATRIX_MODEL; } - private static final int __TVOS_15_6 = (int)150600L; + private static final int SHADER_LOC_MATRIX_NORMAL = (int)10L; /** * {@snippet lang=c : - * #define __TVOS_15_6 150600 + * enum .SHADER_LOC_MATRIX_NORMAL = 10 * } */ - public static int __TVOS_15_6() { - return __TVOS_15_6; + public static int SHADER_LOC_MATRIX_NORMAL() { + return SHADER_LOC_MATRIX_NORMAL; } - private static final int __TVOS_16_0 = (int)160000L; + private static final int SHADER_LOC_VECTOR_VIEW = (int)11L; /** * {@snippet lang=c : - * #define __TVOS_16_0 160000 + * enum .SHADER_LOC_VECTOR_VIEW = 11 * } */ - public static int __TVOS_16_0() { - return __TVOS_16_0; + public static int SHADER_LOC_VECTOR_VIEW() { + return SHADER_LOC_VECTOR_VIEW; } - private static final int __TVOS_16_1 = (int)160100L; + private static final int SHADER_LOC_COLOR_DIFFUSE = (int)12L; /** * {@snippet lang=c : - * #define __TVOS_16_1 160100 + * enum .SHADER_LOC_COLOR_DIFFUSE = 12 * } */ - public static int __TVOS_16_1() { - return __TVOS_16_1; + public static int SHADER_LOC_COLOR_DIFFUSE() { + return SHADER_LOC_COLOR_DIFFUSE; } - private static final int __TVOS_16_2 = (int)160200L; + private static final int SHADER_LOC_COLOR_SPECULAR = (int)13L; /** * {@snippet lang=c : - * #define __TVOS_16_2 160200 + * enum .SHADER_LOC_COLOR_SPECULAR = 13 * } */ - public static int __TVOS_16_2() { - return __TVOS_16_2; + public static int SHADER_LOC_COLOR_SPECULAR() { + return SHADER_LOC_COLOR_SPECULAR; } - private static final int __TVOS_16_3 = (int)160300L; + private static final int SHADER_LOC_COLOR_AMBIENT = (int)14L; /** * {@snippet lang=c : - * #define __TVOS_16_3 160300 + * enum .SHADER_LOC_COLOR_AMBIENT = 14 * } */ - public static int __TVOS_16_3() { - return __TVOS_16_3; + public static int SHADER_LOC_COLOR_AMBIENT() { + return SHADER_LOC_COLOR_AMBIENT; } - private static final int __TVOS_16_4 = (int)160400L; + private static final int SHADER_LOC_MAP_ALBEDO = (int)15L; /** * {@snippet lang=c : - * #define __TVOS_16_4 160400 + * enum .SHADER_LOC_MAP_ALBEDO = 15 * } */ - public static int __TVOS_16_4() { - return __TVOS_16_4; + public static int SHADER_LOC_MAP_ALBEDO() { + return SHADER_LOC_MAP_ALBEDO; } - private static final int __TVOS_16_5 = (int)160500L; + private static final int SHADER_LOC_MAP_METALNESS = (int)16L; /** * {@snippet lang=c : - * #define __TVOS_16_5 160500 + * enum .SHADER_LOC_MAP_METALNESS = 16 * } */ - public static int __TVOS_16_5() { - return __TVOS_16_5; + public static int SHADER_LOC_MAP_METALNESS() { + return SHADER_LOC_MAP_METALNESS; } - private static final int __TVOS_16_6 = (int)160600L; + private static final int SHADER_LOC_MAP_NORMAL = (int)17L; /** * {@snippet lang=c : - * #define __TVOS_16_6 160600 + * enum .SHADER_LOC_MAP_NORMAL = 17 * } */ - public static int __TVOS_16_6() { - return __TVOS_16_6; + public static int SHADER_LOC_MAP_NORMAL() { + return SHADER_LOC_MAP_NORMAL; } - private static final int __TVOS_17_0 = (int)170000L; + private static final int SHADER_LOC_MAP_ROUGHNESS = (int)18L; /** * {@snippet lang=c : - * #define __TVOS_17_0 170000 + * enum .SHADER_LOC_MAP_ROUGHNESS = 18 * } */ - public static int __TVOS_17_0() { - return __TVOS_17_0; + public static int SHADER_LOC_MAP_ROUGHNESS() { + return SHADER_LOC_MAP_ROUGHNESS; } - private static final int __TVOS_17_1 = (int)170100L; + private static final int SHADER_LOC_MAP_OCCLUSION = (int)19L; /** * {@snippet lang=c : - * #define __TVOS_17_1 170100 + * enum .SHADER_LOC_MAP_OCCLUSION = 19 * } */ - public static int __TVOS_17_1() { - return __TVOS_17_1; + public static int SHADER_LOC_MAP_OCCLUSION() { + return SHADER_LOC_MAP_OCCLUSION; } - private static final int __TVOS_17_2 = (int)170200L; + private static final int SHADER_LOC_MAP_EMISSION = (int)20L; /** * {@snippet lang=c : - * #define __TVOS_17_2 170200 + * enum .SHADER_LOC_MAP_EMISSION = 20 * } */ - public static int __TVOS_17_2() { - return __TVOS_17_2; + public static int SHADER_LOC_MAP_EMISSION() { + return SHADER_LOC_MAP_EMISSION; } - private static final int __BRIDGEOS_2_0 = (int)20000L; + private static final int SHADER_LOC_MAP_HEIGHT = (int)21L; /** * {@snippet lang=c : - * #define __BRIDGEOS_2_0 20000 + * enum .SHADER_LOC_MAP_HEIGHT = 21 * } */ - public static int __BRIDGEOS_2_0() { - return __BRIDGEOS_2_0; + public static int SHADER_LOC_MAP_HEIGHT() { + return SHADER_LOC_MAP_HEIGHT; } - private static final int __BRIDGEOS_3_0 = (int)30000L; + private static final int SHADER_LOC_MAP_CUBEMAP = (int)22L; /** * {@snippet lang=c : - * #define __BRIDGEOS_3_0 30000 + * enum .SHADER_LOC_MAP_CUBEMAP = 22 * } */ - public static int __BRIDGEOS_3_0() { - return __BRIDGEOS_3_0; + public static int SHADER_LOC_MAP_CUBEMAP() { + return SHADER_LOC_MAP_CUBEMAP; } - private static final int __BRIDGEOS_3_1 = (int)30100L; + private static final int SHADER_LOC_MAP_IRRADIANCE = (int)23L; /** * {@snippet lang=c : - * #define __BRIDGEOS_3_1 30100 + * enum .SHADER_LOC_MAP_IRRADIANCE = 23 * } */ - public static int __BRIDGEOS_3_1() { - return __BRIDGEOS_3_1; + public static int SHADER_LOC_MAP_IRRADIANCE() { + return SHADER_LOC_MAP_IRRADIANCE; } - private static final int __BRIDGEOS_3_4 = (int)30400L; + private static final int SHADER_LOC_MAP_PREFILTER = (int)24L; /** * {@snippet lang=c : - * #define __BRIDGEOS_3_4 30400 + * enum .SHADER_LOC_MAP_PREFILTER = 24 * } */ - public static int __BRIDGEOS_3_4() { - return __BRIDGEOS_3_4; + public static int SHADER_LOC_MAP_PREFILTER() { + return SHADER_LOC_MAP_PREFILTER; } - private static final int __BRIDGEOS_4_0 = (int)40000L; + private static final int SHADER_LOC_MAP_BRDF = (int)25L; /** * {@snippet lang=c : - * #define __BRIDGEOS_4_0 40000 + * enum .SHADER_LOC_MAP_BRDF = 25 * } */ - public static int __BRIDGEOS_4_0() { - return __BRIDGEOS_4_0; + public static int SHADER_LOC_MAP_BRDF() { + return SHADER_LOC_MAP_BRDF; } - private static final int __BRIDGEOS_4_1 = (int)40100L; + private static final int SHADER_UNIFORM_FLOAT = (int)0L; /** * {@snippet lang=c : - * #define __BRIDGEOS_4_1 40100 + * enum .SHADER_UNIFORM_FLOAT = 0 * } */ - public static int __BRIDGEOS_4_1() { - return __BRIDGEOS_4_1; + public static int SHADER_UNIFORM_FLOAT() { + return SHADER_UNIFORM_FLOAT; } - private static final int __BRIDGEOS_5_0 = (int)50000L; + private static final int SHADER_UNIFORM_VEC2 = (int)1L; /** * {@snippet lang=c : - * #define __BRIDGEOS_5_0 50000 + * enum .SHADER_UNIFORM_VEC2 = 1 * } */ - public static int __BRIDGEOS_5_0() { - return __BRIDGEOS_5_0; + public static int SHADER_UNIFORM_VEC2() { + return SHADER_UNIFORM_VEC2; } - private static final int __BRIDGEOS_5_1 = (int)50100L; + private static final int SHADER_UNIFORM_VEC3 = (int)2L; /** * {@snippet lang=c : - * #define __BRIDGEOS_5_1 50100 + * enum .SHADER_UNIFORM_VEC3 = 2 * } */ - public static int __BRIDGEOS_5_1() { - return __BRIDGEOS_5_1; + public static int SHADER_UNIFORM_VEC3() { + return SHADER_UNIFORM_VEC3; } - private static final int __BRIDGEOS_5_3 = (int)50300L; + private static final int SHADER_UNIFORM_VEC4 = (int)3L; /** * {@snippet lang=c : - * #define __BRIDGEOS_5_3 50300 + * enum .SHADER_UNIFORM_VEC4 = 3 * } */ - public static int __BRIDGEOS_5_3() { - return __BRIDGEOS_5_3; + public static int SHADER_UNIFORM_VEC4() { + return SHADER_UNIFORM_VEC4; } - private static final int __BRIDGEOS_6_0 = (int)60000L; + private static final int SHADER_UNIFORM_INT = (int)4L; /** * {@snippet lang=c : - * #define __BRIDGEOS_6_0 60000 + * enum .SHADER_UNIFORM_INT = 4 * } */ - public static int __BRIDGEOS_6_0() { - return __BRIDGEOS_6_0; + public static int SHADER_UNIFORM_INT() { + return SHADER_UNIFORM_INT; } - private static final int __BRIDGEOS_6_2 = (int)60200L; + private static final int SHADER_UNIFORM_IVEC2 = (int)5L; /** * {@snippet lang=c : - * #define __BRIDGEOS_6_2 60200 + * enum .SHADER_UNIFORM_IVEC2 = 5 * } */ - public static int __BRIDGEOS_6_2() { - return __BRIDGEOS_6_2; + public static int SHADER_UNIFORM_IVEC2() { + return SHADER_UNIFORM_IVEC2; } - private static final int __BRIDGEOS_6_4 = (int)60400L; + private static final int SHADER_UNIFORM_IVEC3 = (int)6L; /** * {@snippet lang=c : - * #define __BRIDGEOS_6_4 60400 + * enum .SHADER_UNIFORM_IVEC3 = 6 * } */ - public static int __BRIDGEOS_6_4() { - return __BRIDGEOS_6_4; + public static int SHADER_UNIFORM_IVEC3() { + return SHADER_UNIFORM_IVEC3; } - private static final int __BRIDGEOS_6_5 = (int)60500L; + private static final int SHADER_UNIFORM_IVEC4 = (int)7L; /** * {@snippet lang=c : - * #define __BRIDGEOS_6_5 60500 + * enum .SHADER_UNIFORM_IVEC4 = 7 * } */ - public static int __BRIDGEOS_6_5() { - return __BRIDGEOS_6_5; + public static int SHADER_UNIFORM_IVEC4() { + return SHADER_UNIFORM_IVEC4; } - private static final int __BRIDGEOS_6_6 = (int)60600L; + private static final int SHADER_UNIFORM_SAMPLER2D = (int)8L; /** * {@snippet lang=c : - * #define __BRIDGEOS_6_6 60600 + * enum .SHADER_UNIFORM_SAMPLER2D = 8 * } */ - public static int __BRIDGEOS_6_6() { - return __BRIDGEOS_6_6; + public static int SHADER_UNIFORM_SAMPLER2D() { + return SHADER_UNIFORM_SAMPLER2D; } - private static final int __BRIDGEOS_7_0 = (int)70000L; + private static final int SHADER_ATTRIB_FLOAT = (int)0L; /** * {@snippet lang=c : - * #define __BRIDGEOS_7_0 70000 + * enum .SHADER_ATTRIB_FLOAT = 0 * } */ - public static int __BRIDGEOS_7_0() { - return __BRIDGEOS_7_0; + public static int SHADER_ATTRIB_FLOAT() { + return SHADER_ATTRIB_FLOAT; } - private static final int __BRIDGEOS_7_1 = (int)70100L; + private static final int SHADER_ATTRIB_VEC2 = (int)1L; /** * {@snippet lang=c : - * #define __BRIDGEOS_7_1 70100 + * enum .SHADER_ATTRIB_VEC2 = 1 * } */ - public static int __BRIDGEOS_7_1() { - return __BRIDGEOS_7_1; + public static int SHADER_ATTRIB_VEC2() { + return SHADER_ATTRIB_VEC2; } - private static final int __BRIDGEOS_7_2 = (int)70200L; + private static final int SHADER_ATTRIB_VEC3 = (int)2L; /** * {@snippet lang=c : - * #define __BRIDGEOS_7_2 70200 + * enum .SHADER_ATTRIB_VEC3 = 2 * } */ - public static int __BRIDGEOS_7_2() { - return __BRIDGEOS_7_2; + public static int SHADER_ATTRIB_VEC3() { + return SHADER_ATTRIB_VEC3; } - private static final int __BRIDGEOS_7_3 = (int)70300L; + private static final int SHADER_ATTRIB_VEC4 = (int)3L; /** * {@snippet lang=c : - * #define __BRIDGEOS_7_3 70300 + * enum .SHADER_ATTRIB_VEC4 = 3 * } */ - public static int __BRIDGEOS_7_3() { - return __BRIDGEOS_7_3; + public static int SHADER_ATTRIB_VEC4() { + return SHADER_ATTRIB_VEC4; } - private static final int __BRIDGEOS_7_4 = (int)70400L; + private static final int PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = (int)1L; /** * {@snippet lang=c : - * #define __BRIDGEOS_7_4 70400 + * enum .PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 * } */ - public static int __BRIDGEOS_7_4() { - return __BRIDGEOS_7_4; + public static int PIXELFORMAT_UNCOMPRESSED_GRAYSCALE() { + return PIXELFORMAT_UNCOMPRESSED_GRAYSCALE; } - private static final int __BRIDGEOS_7_6 = (int)70600L; + private static final int PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = (int)2L; /** * {@snippet lang=c : - * #define __BRIDGEOS_7_6 70600 + * enum .PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 * } */ - public static int __BRIDGEOS_7_6() { - return __BRIDGEOS_7_6; + public static int PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA() { + return PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA; } - private static final int __BRIDGEOS_8_0 = (int)80000L; + private static final int PIXELFORMAT_UNCOMPRESSED_R5G6B5 = (int)3L; /** * {@snippet lang=c : - * #define __BRIDGEOS_8_0 80000 + * enum .PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 * } */ - public static int __BRIDGEOS_8_0() { - return __BRIDGEOS_8_0; + public static int PIXELFORMAT_UNCOMPRESSED_R5G6B5() { + return PIXELFORMAT_UNCOMPRESSED_R5G6B5; } - private static final int __BRIDGEOS_8_1 = (int)80100L; + private static final int PIXELFORMAT_UNCOMPRESSED_R8G8B8 = (int)4L; /** * {@snippet lang=c : - * #define __BRIDGEOS_8_1 80100 + * enum .PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 * } */ - public static int __BRIDGEOS_8_1() { - return __BRIDGEOS_8_1; + public static int PIXELFORMAT_UNCOMPRESSED_R8G8B8() { + return PIXELFORMAT_UNCOMPRESSED_R8G8B8; } - private static final int __BRIDGEOS_8_2 = (int)80200L; + private static final int PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = (int)5L; /** * {@snippet lang=c : - * #define __BRIDGEOS_8_2 80200 + * enum .PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 * } */ - public static int __BRIDGEOS_8_2() { - return __BRIDGEOS_8_2; + public static int PIXELFORMAT_UNCOMPRESSED_R5G5B5A1() { + return PIXELFORMAT_UNCOMPRESSED_R5G5B5A1; } - private static final int __DRIVERKIT_19_0 = (int)190000L; + private static final int PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = (int)6L; /** * {@snippet lang=c : - * #define __DRIVERKIT_19_0 190000 + * enum .PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 * } */ - public static int __DRIVERKIT_19_0() { - return __DRIVERKIT_19_0; + public static int PIXELFORMAT_UNCOMPRESSED_R4G4B4A4() { + return PIXELFORMAT_UNCOMPRESSED_R4G4B4A4; } - private static final int __DRIVERKIT_20_0 = (int)200000L; + private static final int PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = (int)7L; /** * {@snippet lang=c : - * #define __DRIVERKIT_20_0 200000 + * enum .PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 * } */ - public static int __DRIVERKIT_20_0() { - return __DRIVERKIT_20_0; + public static int PIXELFORMAT_UNCOMPRESSED_R8G8B8A8() { + return PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; } - private static final int __DRIVERKIT_21_0 = (int)210000L; + private static final int PIXELFORMAT_UNCOMPRESSED_R32 = (int)8L; /** * {@snippet lang=c : - * #define __DRIVERKIT_21_0 210000 + * enum .PIXELFORMAT_UNCOMPRESSED_R32 = 8 * } */ - public static int __DRIVERKIT_21_0() { - return __DRIVERKIT_21_0; + public static int PIXELFORMAT_UNCOMPRESSED_R32() { + return PIXELFORMAT_UNCOMPRESSED_R32; } - private static final int __DRIVERKIT_22_0 = (int)220000L; + private static final int PIXELFORMAT_UNCOMPRESSED_R32G32B32 = (int)9L; /** * {@snippet lang=c : - * #define __DRIVERKIT_22_0 220000 + * enum .PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 * } */ - public static int __DRIVERKIT_22_0() { - return __DRIVERKIT_22_0; + public static int PIXELFORMAT_UNCOMPRESSED_R32G32B32() { + return PIXELFORMAT_UNCOMPRESSED_R32G32B32; } - private static final int __DRIVERKIT_22_4 = (int)220400L; + private static final int PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = (int)10L; /** * {@snippet lang=c : - * #define __DRIVERKIT_22_4 220400 + * enum .PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 * } */ - public static int __DRIVERKIT_22_4() { - return __DRIVERKIT_22_4; + public static int PIXELFORMAT_UNCOMPRESSED_R32G32B32A32() { + return PIXELFORMAT_UNCOMPRESSED_R32G32B32A32; } - private static final int __DRIVERKIT_22_5 = (int)220500L; + private static final int PIXELFORMAT_UNCOMPRESSED_R16 = (int)11L; /** * {@snippet lang=c : - * #define __DRIVERKIT_22_5 220500 + * enum .PIXELFORMAT_UNCOMPRESSED_R16 = 11 * } */ - public static int __DRIVERKIT_22_5() { - return __DRIVERKIT_22_5; + public static int PIXELFORMAT_UNCOMPRESSED_R16() { + return PIXELFORMAT_UNCOMPRESSED_R16; } - private static final int __DRIVERKIT_22_6 = (int)220600L; + private static final int PIXELFORMAT_UNCOMPRESSED_R16G16B16 = (int)12L; /** * {@snippet lang=c : - * #define __DRIVERKIT_22_6 220600 + * enum .PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 * } */ - public static int __DRIVERKIT_22_6() { - return __DRIVERKIT_22_6; + public static int PIXELFORMAT_UNCOMPRESSED_R16G16B16() { + return PIXELFORMAT_UNCOMPRESSED_R16G16B16; } - private static final int __DRIVERKIT_23_0 = (int)230000L; + private static final int PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = (int)13L; /** * {@snippet lang=c : - * #define __DRIVERKIT_23_0 230000 + * enum .PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 * } */ - public static int __DRIVERKIT_23_0() { - return __DRIVERKIT_23_0; + public static int PIXELFORMAT_UNCOMPRESSED_R16G16B16A16() { + return PIXELFORMAT_UNCOMPRESSED_R16G16B16A16; } - private static final int __DRIVERKIT_23_1 = (int)230100L; + private static final int PIXELFORMAT_COMPRESSED_DXT1_RGB = (int)14L; /** * {@snippet lang=c : - * #define __DRIVERKIT_23_1 230100 + * enum .PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 * } */ - public static int __DRIVERKIT_23_1() { - return __DRIVERKIT_23_1; + public static int PIXELFORMAT_COMPRESSED_DXT1_RGB() { + return PIXELFORMAT_COMPRESSED_DXT1_RGB; } - private static final int __DRIVERKIT_23_2 = (int)230200L; + private static final int PIXELFORMAT_COMPRESSED_DXT1_RGBA = (int)15L; /** * {@snippet lang=c : - * #define __DRIVERKIT_23_2 230200 + * enum .PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 * } */ - public static int __DRIVERKIT_23_2() { - return __DRIVERKIT_23_2; + public static int PIXELFORMAT_COMPRESSED_DXT1_RGBA() { + return PIXELFORMAT_COMPRESSED_DXT1_RGBA; } - private static final int __VISIONOS_1_0 = (int)10000L; + private static final int PIXELFORMAT_COMPRESSED_DXT3_RGBA = (int)16L; /** * {@snippet lang=c : - * #define __VISIONOS_1_0 10000 + * enum .PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 * } */ - public static int __VISIONOS_1_0() { - return __VISIONOS_1_0; + public static int PIXELFORMAT_COMPRESSED_DXT3_RGBA() { + return PIXELFORMAT_COMPRESSED_DXT3_RGBA; } - private static final int __ENABLE_LEGACY_MAC_AVAILABILITY = (int)1L; + private static final int PIXELFORMAT_COMPRESSED_DXT5_RGBA = (int)17L; /** * {@snippet lang=c : - * #define __ENABLE_LEGACY_MAC_AVAILABILITY 1 + * enum .PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 * } */ - public static int __ENABLE_LEGACY_MAC_AVAILABILITY() { - return __ENABLE_LEGACY_MAC_AVAILABILITY; + public static int PIXELFORMAT_COMPRESSED_DXT5_RGBA() { + return PIXELFORMAT_COMPRESSED_DXT5_RGBA; } - private static final int FP_NAN = (int)1L; + private static final int PIXELFORMAT_COMPRESSED_ETC1_RGB = (int)18L; /** * {@snippet lang=c : - * #define FP_NAN 1 + * enum .PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 * } */ - public static int FP_NAN() { - return FP_NAN; + public static int PIXELFORMAT_COMPRESSED_ETC1_RGB() { + return PIXELFORMAT_COMPRESSED_ETC1_RGB; } - private static final int FP_INFINITE = (int)2L; + private static final int PIXELFORMAT_COMPRESSED_ETC2_RGB = (int)19L; /** * {@snippet lang=c : - * #define FP_INFINITE 2 + * enum .PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 * } */ - public static int FP_INFINITE() { - return FP_INFINITE; + public static int PIXELFORMAT_COMPRESSED_ETC2_RGB() { + return PIXELFORMAT_COMPRESSED_ETC2_RGB; } - private static final int FP_ZERO = (int)3L; + private static final int PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = (int)20L; /** * {@snippet lang=c : - * #define FP_ZERO 3 + * enum .PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 * } */ - public static int FP_ZERO() { - return FP_ZERO; + public static int PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA() { + return PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA; } - private static final int FP_NORMAL = (int)4L; + private static final int PIXELFORMAT_COMPRESSED_PVRT_RGB = (int)21L; /** * {@snippet lang=c : - * #define FP_NORMAL 4 + * enum .PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 * } */ - public static int FP_NORMAL() { - return FP_NORMAL; + public static int PIXELFORMAT_COMPRESSED_PVRT_RGB() { + return PIXELFORMAT_COMPRESSED_PVRT_RGB; } - private static final int FP_SUBNORMAL = (int)5L; + private static final int PIXELFORMAT_COMPRESSED_PVRT_RGBA = (int)22L; /** * {@snippet lang=c : - * #define FP_SUBNORMAL 5 + * enum .PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 * } */ - public static int FP_SUBNORMAL() { - return FP_SUBNORMAL; + public static int PIXELFORMAT_COMPRESSED_PVRT_RGBA() { + return PIXELFORMAT_COMPRESSED_PVRT_RGBA; } - private static final int FP_SUPERNORMAL = (int)6L; + private static final int PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = (int)23L; /** * {@snippet lang=c : - * #define FP_SUPERNORMAL 6 + * enum .PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 * } */ - public static int FP_SUPERNORMAL() { - return FP_SUPERNORMAL; + public static int PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA() { + return PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA; } - private static final int FP_FAST_FMA = (int)1L; + private static final int PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = (int)24L; /** * {@snippet lang=c : - * #define FP_FAST_FMA 1 + * enum .PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 * } */ - public static int FP_FAST_FMA() { - return FP_FAST_FMA; + public static int PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA() { + return PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA; } - private static final int FP_FAST_FMAF = (int)1L; + private static final int TEXTURE_FILTER_POINT = (int)0L; /** * {@snippet lang=c : - * #define FP_FAST_FMAF 1 + * enum .TEXTURE_FILTER_POINT = 0 * } */ - public static int FP_FAST_FMAF() { - return FP_FAST_FMAF; + public static int TEXTURE_FILTER_POINT() { + return TEXTURE_FILTER_POINT; } - private static final int FP_FAST_FMAL = (int)1L; + private static final int TEXTURE_FILTER_BILINEAR = (int)1L; /** * {@snippet lang=c : - * #define FP_FAST_FMAL 1 + * enum .TEXTURE_FILTER_BILINEAR = 1 * } */ - public static int FP_FAST_FMAL() { - return FP_FAST_FMAL; + public static int TEXTURE_FILTER_BILINEAR() { + return TEXTURE_FILTER_BILINEAR; } - private static final int MATH_ERRNO = (int)1L; + private static final int TEXTURE_FILTER_TRILINEAR = (int)2L; /** * {@snippet lang=c : - * #define MATH_ERRNO 1 + * enum .TEXTURE_FILTER_TRILINEAR = 2 * } */ - public static int MATH_ERRNO() { - return MATH_ERRNO; + public static int TEXTURE_FILTER_TRILINEAR() { + return TEXTURE_FILTER_TRILINEAR; } - private static final int MATH_ERREXCEPT = (int)2L; + private static final int TEXTURE_FILTER_ANISOTROPIC_4X = (int)3L; /** * {@snippet lang=c : - * #define MATH_ERREXCEPT 2 + * enum .TEXTURE_FILTER_ANISOTROPIC_4X = 3 * } */ - public static int MATH_ERREXCEPT() { - return MATH_ERREXCEPT; + public static int TEXTURE_FILTER_ANISOTROPIC_4X() { + return TEXTURE_FILTER_ANISOTROPIC_4X; } - private static final int DOMAIN = (int)1L; + private static final int TEXTURE_FILTER_ANISOTROPIC_8X = (int)4L; /** * {@snippet lang=c : - * #define DOMAIN 1 + * enum .TEXTURE_FILTER_ANISOTROPIC_8X = 4 * } */ - public static int DOMAIN() { - return DOMAIN; + public static int TEXTURE_FILTER_ANISOTROPIC_8X() { + return TEXTURE_FILTER_ANISOTROPIC_8X; } - private static final int SING = (int)2L; + private static final int TEXTURE_FILTER_ANISOTROPIC_16X = (int)5L; /** * {@snippet lang=c : - * #define SING 2 + * enum .TEXTURE_FILTER_ANISOTROPIC_16X = 5 * } */ - public static int SING() { - return SING; + public static int TEXTURE_FILTER_ANISOTROPIC_16X() { + return TEXTURE_FILTER_ANISOTROPIC_16X; } - private static final int OVERFLOW = (int)3L; + private static final int TEXTURE_WRAP_REPEAT = (int)0L; /** * {@snippet lang=c : - * #define OVERFLOW 3 + * enum .TEXTURE_WRAP_REPEAT = 0 * } */ - public static int OVERFLOW() { - return OVERFLOW; + public static int TEXTURE_WRAP_REPEAT() { + return TEXTURE_WRAP_REPEAT; } - private static final int UNDERFLOW = (int)4L; + private static final int TEXTURE_WRAP_CLAMP = (int)1L; /** * {@snippet lang=c : - * #define UNDERFLOW 4 + * enum .TEXTURE_WRAP_CLAMP = 1 * } */ - public static int UNDERFLOW() { - return UNDERFLOW; + public static int TEXTURE_WRAP_CLAMP() { + return TEXTURE_WRAP_CLAMP; } - private static final int TLOSS = (int)5L; + private static final int TEXTURE_WRAP_MIRROR_REPEAT = (int)2L; /** * {@snippet lang=c : - * #define TLOSS 5 + * enum .TEXTURE_WRAP_MIRROR_REPEAT = 2 * } */ - public static int TLOSS() { - return TLOSS; + public static int TEXTURE_WRAP_MIRROR_REPEAT() { + return TEXTURE_WRAP_MIRROR_REPEAT; } - private static final int PLOSS = (int)6L; + private static final int TEXTURE_WRAP_MIRROR_CLAMP = (int)3L; /** * {@snippet lang=c : - * #define PLOSS 6 + * enum .TEXTURE_WRAP_MIRROR_CLAMP = 3 * } */ - public static int PLOSS() { - return PLOSS; + public static int TEXTURE_WRAP_MIRROR_CLAMP() { + return TEXTURE_WRAP_MIRROR_CLAMP; } + private static final int CUBEMAP_LAYOUT_AUTO_DETECT = (int)0L; /** * {@snippet lang=c : - * typedef __builtin_va_list va_list + * enum .CUBEMAP_LAYOUT_AUTO_DETECT = 0 * } */ - public static final AddressLayout va_list = raylib.C_POINTER; + public static int CUBEMAP_LAYOUT_AUTO_DETECT() { + return CUBEMAP_LAYOUT_AUTO_DETECT; + } + private static final int CUBEMAP_LAYOUT_LINE_VERTICAL = (int)1L; /** * {@snippet lang=c : - * typedef __builtin_va_list __gnuc_va_list + * enum .CUBEMAP_LAYOUT_LINE_VERTICAL = 1 * } */ - public static final AddressLayout __gnuc_va_list = raylib.C_POINTER; - private static final int FLAG_VSYNC_HINT = (int)64L; + public static int CUBEMAP_LAYOUT_LINE_VERTICAL() { + return CUBEMAP_LAYOUT_LINE_VERTICAL; + } + private static final int CUBEMAP_LAYOUT_LINE_HORIZONTAL = (int)2L; /** * {@snippet lang=c : - * enum .FLAG_VSYNC_HINT = 64 + * enum .CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2 * } */ - public static int FLAG_VSYNC_HINT() { - return FLAG_VSYNC_HINT; + public static int CUBEMAP_LAYOUT_LINE_HORIZONTAL() { + return CUBEMAP_LAYOUT_LINE_HORIZONTAL; } - private static final int FLAG_FULLSCREEN_MODE = (int)2L; + private static final int CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = (int)3L; /** * {@snippet lang=c : - * enum .FLAG_FULLSCREEN_MODE = 2 + * enum .CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3 * } */ - public static int FLAG_FULLSCREEN_MODE() { - return FLAG_FULLSCREEN_MODE; + public static int CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR() { + return CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR; } - private static final int FLAG_WINDOW_RESIZABLE = (int)4L; + private static final int CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = (int)4L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_RESIZABLE = 4 + * enum .CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4 * } */ - public static int FLAG_WINDOW_RESIZABLE() { - return FLAG_WINDOW_RESIZABLE; + public static int CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE() { + return CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE; } - private static final int FLAG_WINDOW_UNDECORATED = (int)8L; + private static final int CUBEMAP_LAYOUT_PANORAMA = (int)5L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_UNDECORATED = 8 + * enum .CUBEMAP_LAYOUT_PANORAMA = 5 * } */ - public static int FLAG_WINDOW_UNDECORATED() { - return FLAG_WINDOW_UNDECORATED; + public static int CUBEMAP_LAYOUT_PANORAMA() { + return CUBEMAP_LAYOUT_PANORAMA; } - private static final int FLAG_WINDOW_HIDDEN = (int)128L; + private static final int FONT_DEFAULT = (int)0L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_HIDDEN = 128 + * enum .FONT_DEFAULT = 0 * } */ - public static int FLAG_WINDOW_HIDDEN() { - return FLAG_WINDOW_HIDDEN; + public static int FONT_DEFAULT() { + return FONT_DEFAULT; } - private static final int FLAG_WINDOW_MINIMIZED = (int)512L; + private static final int FONT_BITMAP = (int)1L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_MINIMIZED = 512 + * enum .FONT_BITMAP = 1 * } */ - public static int FLAG_WINDOW_MINIMIZED() { - return FLAG_WINDOW_MINIMIZED; + public static int FONT_BITMAP() { + return FONT_BITMAP; } - private static final int FLAG_WINDOW_MAXIMIZED = (int)1024L; + private static final int FONT_SDF = (int)2L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_MAXIMIZED = 1024 + * enum .FONT_SDF = 2 * } */ - public static int FLAG_WINDOW_MAXIMIZED() { - return FLAG_WINDOW_MAXIMIZED; + public static int FONT_SDF() { + return FONT_SDF; } - private static final int FLAG_WINDOW_UNFOCUSED = (int)2048L; + private static final int BLEND_ALPHA = (int)0L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_UNFOCUSED = 2048 + * enum .BLEND_ALPHA = 0 * } */ - public static int FLAG_WINDOW_UNFOCUSED() { - return FLAG_WINDOW_UNFOCUSED; + public static int BLEND_ALPHA() { + return BLEND_ALPHA; } - private static final int FLAG_WINDOW_TOPMOST = (int)4096L; + private static final int BLEND_ADDITIVE = (int)1L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_TOPMOST = 4096 + * enum .BLEND_ADDITIVE = 1 * } */ - public static int FLAG_WINDOW_TOPMOST() { - return FLAG_WINDOW_TOPMOST; + public static int BLEND_ADDITIVE() { + return BLEND_ADDITIVE; } - private static final int FLAG_WINDOW_ALWAYS_RUN = (int)256L; + private static final int BLEND_MULTIPLIED = (int)2L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_ALWAYS_RUN = 256 + * enum .BLEND_MULTIPLIED = 2 * } */ - public static int FLAG_WINDOW_ALWAYS_RUN() { - return FLAG_WINDOW_ALWAYS_RUN; + public static int BLEND_MULTIPLIED() { + return BLEND_MULTIPLIED; } - private static final int FLAG_WINDOW_TRANSPARENT = (int)16L; + private static final int BLEND_ADD_COLORS = (int)3L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_TRANSPARENT = 16 + * enum .BLEND_ADD_COLORS = 3 * } */ - public static int FLAG_WINDOW_TRANSPARENT() { - return FLAG_WINDOW_TRANSPARENT; + public static int BLEND_ADD_COLORS() { + return BLEND_ADD_COLORS; } - private static final int FLAG_WINDOW_HIGHDPI = (int)8192L; + private static final int BLEND_SUBTRACT_COLORS = (int)4L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_HIGHDPI = 8192 + * enum .BLEND_SUBTRACT_COLORS = 4 * } */ - public static int FLAG_WINDOW_HIGHDPI() { - return FLAG_WINDOW_HIGHDPI; + public static int BLEND_SUBTRACT_COLORS() { + return BLEND_SUBTRACT_COLORS; } - private static final int FLAG_WINDOW_MOUSE_PASSTHROUGH = (int)16384L; + private static final int BLEND_ALPHA_PREMULTIPLY = (int)5L; /** * {@snippet lang=c : - * enum .FLAG_WINDOW_MOUSE_PASSTHROUGH = 16384 + * enum .BLEND_ALPHA_PREMULTIPLY = 5 * } */ - public static int FLAG_WINDOW_MOUSE_PASSTHROUGH() { - return FLAG_WINDOW_MOUSE_PASSTHROUGH; + public static int BLEND_ALPHA_PREMULTIPLY() { + return BLEND_ALPHA_PREMULTIPLY; } - private static final int FLAG_BORDERLESS_WINDOWED_MODE = (int)32768L; + private static final int BLEND_CUSTOM = (int)6L; /** * {@snippet lang=c : - * enum .FLAG_BORDERLESS_WINDOWED_MODE = 32768 + * enum .BLEND_CUSTOM = 6 * } */ - public static int FLAG_BORDERLESS_WINDOWED_MODE() { - return FLAG_BORDERLESS_WINDOWED_MODE; + public static int BLEND_CUSTOM() { + return BLEND_CUSTOM; } - private static final int FLAG_MSAA_4X_HINT = (int)32L; + private static final int BLEND_CUSTOM_SEPARATE = (int)7L; /** * {@snippet lang=c : - * enum .FLAG_MSAA_4X_HINT = 32 + * enum .BLEND_CUSTOM_SEPARATE = 7 * } */ - public static int FLAG_MSAA_4X_HINT() { - return FLAG_MSAA_4X_HINT; + public static int BLEND_CUSTOM_SEPARATE() { + return BLEND_CUSTOM_SEPARATE; } - private static final int FLAG_INTERLACED_HINT = (int)65536L; + private static final int GESTURE_NONE = (int)0L; /** * {@snippet lang=c : - * enum .FLAG_INTERLACED_HINT = 65536 + * enum .GESTURE_NONE = 0 * } */ - public static int FLAG_INTERLACED_HINT() { - return FLAG_INTERLACED_HINT; + public static int GESTURE_NONE() { + return GESTURE_NONE; } - private static final int LOG_ALL = (int)0L; + private static final int GESTURE_TAP = (int)1L; /** * {@snippet lang=c : - * enum .LOG_ALL = 0 + * enum .GESTURE_TAP = 1 * } */ - public static int LOG_ALL() { - return LOG_ALL; + public static int GESTURE_TAP() { + return GESTURE_TAP; } - private static final int LOG_TRACE = (int)1L; + private static final int GESTURE_DOUBLETAP = (int)2L; /** * {@snippet lang=c : - * enum .LOG_TRACE = 1 + * enum .GESTURE_DOUBLETAP = 2 * } */ - public static int LOG_TRACE() { - return LOG_TRACE; + public static int GESTURE_DOUBLETAP() { + return GESTURE_DOUBLETAP; } - private static final int LOG_DEBUG = (int)2L; + private static final int GESTURE_HOLD = (int)4L; /** * {@snippet lang=c : - * enum .LOG_DEBUG = 2 + * enum .GESTURE_HOLD = 4 * } */ - public static int LOG_DEBUG() { - return LOG_DEBUG; + public static int GESTURE_HOLD() { + return GESTURE_HOLD; } - private static final int LOG_INFO = (int)3L; + private static final int GESTURE_DRAG = (int)8L; /** * {@snippet lang=c : - * enum .LOG_INFO = 3 + * enum .GESTURE_DRAG = 8 * } */ - public static int LOG_INFO() { - return LOG_INFO; + public static int GESTURE_DRAG() { + return GESTURE_DRAG; } - private static final int LOG_WARNING = (int)4L; + private static final int GESTURE_SWIPE_RIGHT = (int)16L; /** * {@snippet lang=c : - * enum .LOG_WARNING = 4 + * enum .GESTURE_SWIPE_RIGHT = 16 * } */ - public static int LOG_WARNING() { - return LOG_WARNING; + public static int GESTURE_SWIPE_RIGHT() { + return GESTURE_SWIPE_RIGHT; } - private static final int LOG_ERROR = (int)5L; + private static final int GESTURE_SWIPE_LEFT = (int)32L; /** * {@snippet lang=c : - * enum .LOG_ERROR = 5 + * enum .GESTURE_SWIPE_LEFT = 32 * } */ - public static int LOG_ERROR() { - return LOG_ERROR; + public static int GESTURE_SWIPE_LEFT() { + return GESTURE_SWIPE_LEFT; } - private static final int LOG_FATAL = (int)6L; + private static final int GESTURE_SWIPE_UP = (int)64L; /** * {@snippet lang=c : - * enum .LOG_FATAL = 6 + * enum .GESTURE_SWIPE_UP = 64 * } */ - public static int LOG_FATAL() { - return LOG_FATAL; + public static int GESTURE_SWIPE_UP() { + return GESTURE_SWIPE_UP; } - private static final int LOG_NONE = (int)7L; + private static final int GESTURE_SWIPE_DOWN = (int)128L; /** * {@snippet lang=c : - * enum .LOG_NONE = 7 + * enum .GESTURE_SWIPE_DOWN = 128 * } */ - public static int LOG_NONE() { - return LOG_NONE; + public static int GESTURE_SWIPE_DOWN() { + return GESTURE_SWIPE_DOWN; } - private static final int KEY_NULL = (int)0L; + private static final int GESTURE_PINCH_IN = (int)256L; /** * {@snippet lang=c : - * enum .KEY_NULL = 0 + * enum .GESTURE_PINCH_IN = 256 * } */ - public static int KEY_NULL() { - return KEY_NULL; + public static int GESTURE_PINCH_IN() { + return GESTURE_PINCH_IN; } - private static final int KEY_APOSTROPHE = (int)39L; + private static final int GESTURE_PINCH_OUT = (int)512L; /** * {@snippet lang=c : - * enum .KEY_APOSTROPHE = 39 + * enum .GESTURE_PINCH_OUT = 512 * } */ - public static int KEY_APOSTROPHE() { - return KEY_APOSTROPHE; + public static int GESTURE_PINCH_OUT() { + return GESTURE_PINCH_OUT; } - private static final int KEY_COMMA = (int)44L; + private static final int CAMERA_CUSTOM = (int)0L; /** * {@snippet lang=c : - * enum .KEY_COMMA = 44 + * enum .CAMERA_CUSTOM = 0 * } */ - public static int KEY_COMMA() { - return KEY_COMMA; + public static int CAMERA_CUSTOM() { + return CAMERA_CUSTOM; } - private static final int KEY_MINUS = (int)45L; + private static final int CAMERA_FREE = (int)1L; /** * {@snippet lang=c : - * enum .KEY_MINUS = 45 + * enum .CAMERA_FREE = 1 * } */ - public static int KEY_MINUS() { - return KEY_MINUS; + public static int CAMERA_FREE() { + return CAMERA_FREE; } - private static final int KEY_PERIOD = (int)46L; + private static final int CAMERA_ORBITAL = (int)2L; /** * {@snippet lang=c : - * enum .KEY_PERIOD = 46 + * enum .CAMERA_ORBITAL = 2 * } */ - public static int KEY_PERIOD() { - return KEY_PERIOD; + public static int CAMERA_ORBITAL() { + return CAMERA_ORBITAL; } - private static final int KEY_SLASH = (int)47L; + private static final int CAMERA_FIRST_PERSON = (int)3L; /** * {@snippet lang=c : - * enum .KEY_SLASH = 47 + * enum .CAMERA_FIRST_PERSON = 3 * } */ - public static int KEY_SLASH() { - return KEY_SLASH; + public static int CAMERA_FIRST_PERSON() { + return CAMERA_FIRST_PERSON; } - private static final int KEY_ZERO = (int)48L; + private static final int CAMERA_THIRD_PERSON = (int)4L; /** * {@snippet lang=c : - * enum .KEY_ZERO = 48 + * enum .CAMERA_THIRD_PERSON = 4 * } */ - public static int KEY_ZERO() { - return KEY_ZERO; + public static int CAMERA_THIRD_PERSON() { + return CAMERA_THIRD_PERSON; } - private static final int KEY_ONE = (int)49L; + private static final int CAMERA_PERSPECTIVE = (int)0L; /** * {@snippet lang=c : - * enum .KEY_ONE = 49 + * enum .CAMERA_PERSPECTIVE = 0 * } */ - public static int KEY_ONE() { - return KEY_ONE; + public static int CAMERA_PERSPECTIVE() { + return CAMERA_PERSPECTIVE; } - private static final int KEY_TWO = (int)50L; + private static final int CAMERA_ORTHOGRAPHIC = (int)1L; /** * {@snippet lang=c : - * enum .KEY_TWO = 50 + * enum .CAMERA_ORTHOGRAPHIC = 1 * } */ - public static int KEY_TWO() { - return KEY_TWO; + public static int CAMERA_ORTHOGRAPHIC() { + return CAMERA_ORTHOGRAPHIC; } - private static final int KEY_THREE = (int)51L; + private static final int NPATCH_NINE_PATCH = (int)0L; /** * {@snippet lang=c : - * enum .KEY_THREE = 51 + * enum .NPATCH_NINE_PATCH = 0 * } */ - public static int KEY_THREE() { - return KEY_THREE; + public static int NPATCH_NINE_PATCH() { + return NPATCH_NINE_PATCH; } - private static final int KEY_FOUR = (int)52L; + private static final int NPATCH_THREE_PATCH_VERTICAL = (int)1L; /** * {@snippet lang=c : - * enum .KEY_FOUR = 52 + * enum .NPATCH_THREE_PATCH_VERTICAL = 1 * } */ - public static int KEY_FOUR() { - return KEY_FOUR; + public static int NPATCH_THREE_PATCH_VERTICAL() { + return NPATCH_THREE_PATCH_VERTICAL; } - private static final int KEY_FIVE = (int)53L; + private static final int NPATCH_THREE_PATCH_HORIZONTAL = (int)2L; /** * {@snippet lang=c : - * enum .KEY_FIVE = 53 + * enum .NPATCH_THREE_PATCH_HORIZONTAL = 2 * } */ - public static int KEY_FIVE() { - return KEY_FIVE; + public static int NPATCH_THREE_PATCH_HORIZONTAL() { + return NPATCH_THREE_PATCH_HORIZONTAL; } - private static final int KEY_SIX = (int)54L; + + private static class InitWindow { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("InitWindow"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_SIX = 54 + * void InitWindow(int width, int height, const char *title) * } */ - public static int KEY_SIX() { - return KEY_SIX; + public static FunctionDescriptor InitWindow$descriptor() { + return InitWindow.DESC; } - private static final int KEY_SEVEN = (int)55L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_SEVEN = 55 + * void InitWindow(int width, int height, const char *title) * } */ - public static int KEY_SEVEN() { - return KEY_SEVEN; + public static MethodHandle InitWindow$handle() { + return InitWindow.HANDLE; } - private static final int KEY_EIGHT = (int)56L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_EIGHT = 56 + * void InitWindow(int width, int height, const char *title) * } */ - public static int KEY_EIGHT() { - return KEY_EIGHT; + public static MemorySegment InitWindow$address() { + return InitWindow.ADDR; } - private static final int KEY_NINE = (int)57L; + /** * {@snippet lang=c : - * enum .KEY_NINE = 57 + * void InitWindow(int width, int height, const char *title) * } */ - public static int KEY_NINE() { - return KEY_NINE; + public static void InitWindow(int width, int height, MemorySegment title) { + var mh$ = InitWindow.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("InitWindow", width, height, title); + } + mh$.invokeExact(width, height, title); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_SEMICOLON = (int)59L; + + private static class CloseWindow { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("CloseWindow"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_SEMICOLON = 59 + * void CloseWindow() * } */ - public static int KEY_SEMICOLON() { - return KEY_SEMICOLON; + public static FunctionDescriptor CloseWindow$descriptor() { + return CloseWindow.DESC; } - private static final int KEY_EQUAL = (int)61L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_EQUAL = 61 + * void CloseWindow() * } */ - public static int KEY_EQUAL() { - return KEY_EQUAL; + public static MethodHandle CloseWindow$handle() { + return CloseWindow.HANDLE; } - private static final int KEY_A = (int)65L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_A = 65 + * void CloseWindow() * } */ - public static int KEY_A() { - return KEY_A; + public static MemorySegment CloseWindow$address() { + return CloseWindow.ADDR; } - private static final int KEY_B = (int)66L; + /** * {@snippet lang=c : - * enum .KEY_B = 66 + * void CloseWindow() * } */ - public static int KEY_B() { - return KEY_B; + public static void CloseWindow() { + var mh$ = CloseWindow.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("CloseWindow"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_C = (int)67L; + + private static class WindowShouldClose { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("WindowShouldClose"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_C = 67 + * bool WindowShouldClose() * } */ - public static int KEY_C() { - return KEY_C; + public static FunctionDescriptor WindowShouldClose$descriptor() { + return WindowShouldClose.DESC; } - private static final int KEY_D = (int)68L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_D = 68 + * bool WindowShouldClose() * } */ - public static int KEY_D() { - return KEY_D; + public static MethodHandle WindowShouldClose$handle() { + return WindowShouldClose.HANDLE; } - private static final int KEY_E = (int)69L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_E = 69 + * bool WindowShouldClose() * } */ - public static int KEY_E() { - return KEY_E; + public static MemorySegment WindowShouldClose$address() { + return WindowShouldClose.ADDR; } - private static final int KEY_F = (int)70L; + /** * {@snippet lang=c : - * enum .KEY_F = 70 + * bool WindowShouldClose() * } */ - public static int KEY_F() { - return KEY_F; + public static boolean WindowShouldClose() { + var mh$ = WindowShouldClose.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("WindowShouldClose"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_G = (int)71L; + + private static class IsWindowReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowReady"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_G = 71 + * bool IsWindowReady() * } */ - public static int KEY_G() { - return KEY_G; + public static FunctionDescriptor IsWindowReady$descriptor() { + return IsWindowReady.DESC; } - private static final int KEY_H = (int)72L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_H = 72 + * bool IsWindowReady() * } */ - public static int KEY_H() { - return KEY_H; + public static MethodHandle IsWindowReady$handle() { + return IsWindowReady.HANDLE; } - private static final int KEY_I = (int)73L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_I = 73 + * bool IsWindowReady() * } */ - public static int KEY_I() { - return KEY_I; + public static MemorySegment IsWindowReady$address() { + return IsWindowReady.ADDR; } - private static final int KEY_J = (int)74L; + /** * {@snippet lang=c : - * enum .KEY_J = 74 + * bool IsWindowReady() * } */ - public static int KEY_J() { - return KEY_J; + public static boolean IsWindowReady() { + var mh$ = IsWindowReady.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowReady"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_K = (int)75L; + + private static class IsWindowFullscreen { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowFullscreen"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_K = 75 + * bool IsWindowFullscreen() * } */ - public static int KEY_K() { - return KEY_K; + public static FunctionDescriptor IsWindowFullscreen$descriptor() { + return IsWindowFullscreen.DESC; } - private static final int KEY_L = (int)76L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_L = 76 + * bool IsWindowFullscreen() * } */ - public static int KEY_L() { - return KEY_L; + public static MethodHandle IsWindowFullscreen$handle() { + return IsWindowFullscreen.HANDLE; } - private static final int KEY_M = (int)77L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_M = 77 + * bool IsWindowFullscreen() * } */ - public static int KEY_M() { - return KEY_M; + public static MemorySegment IsWindowFullscreen$address() { + return IsWindowFullscreen.ADDR; } - private static final int KEY_N = (int)78L; + /** * {@snippet lang=c : - * enum .KEY_N = 78 + * bool IsWindowFullscreen() * } */ - public static int KEY_N() { - return KEY_N; + public static boolean IsWindowFullscreen() { + var mh$ = IsWindowFullscreen.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowFullscreen"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_O = (int)79L; + + private static class IsWindowHidden { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowHidden"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_O = 79 + * bool IsWindowHidden() * } */ - public static int KEY_O() { - return KEY_O; + public static FunctionDescriptor IsWindowHidden$descriptor() { + return IsWindowHidden.DESC; } - private static final int KEY_P = (int)80L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_P = 80 + * bool IsWindowHidden() * } */ - public static int KEY_P() { - return KEY_P; + public static MethodHandle IsWindowHidden$handle() { + return IsWindowHidden.HANDLE; } - private static final int KEY_Q = (int)81L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_Q = 81 + * bool IsWindowHidden() * } */ - public static int KEY_Q() { - return KEY_Q; + public static MemorySegment IsWindowHidden$address() { + return IsWindowHidden.ADDR; } - private static final int KEY_R = (int)82L; + /** * {@snippet lang=c : - * enum .KEY_R = 82 + * bool IsWindowHidden() * } */ - public static int KEY_R() { - return KEY_R; + public static boolean IsWindowHidden() { + var mh$ = IsWindowHidden.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowHidden"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_S = (int)83L; + + private static class IsWindowMinimized { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowMinimized"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_S = 83 + * bool IsWindowMinimized() * } */ - public static int KEY_S() { - return KEY_S; + public static FunctionDescriptor IsWindowMinimized$descriptor() { + return IsWindowMinimized.DESC; } - private static final int KEY_T = (int)84L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_T = 84 + * bool IsWindowMinimized() * } */ - public static int KEY_T() { - return KEY_T; + public static MethodHandle IsWindowMinimized$handle() { + return IsWindowMinimized.HANDLE; } - private static final int KEY_U = (int)85L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_U = 85 + * bool IsWindowMinimized() * } */ - public static int KEY_U() { - return KEY_U; + public static MemorySegment IsWindowMinimized$address() { + return IsWindowMinimized.ADDR; } - private static final int KEY_V = (int)86L; + /** * {@snippet lang=c : - * enum .KEY_V = 86 + * bool IsWindowMinimized() * } */ - public static int KEY_V() { - return KEY_V; + public static boolean IsWindowMinimized() { + var mh$ = IsWindowMinimized.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowMinimized"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_W = (int)87L; + + private static class IsWindowMaximized { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowMaximized"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_W = 87 + * bool IsWindowMaximized() * } */ - public static int KEY_W() { - return KEY_W; + public static FunctionDescriptor IsWindowMaximized$descriptor() { + return IsWindowMaximized.DESC; } - private static final int KEY_X = (int)88L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_X = 88 + * bool IsWindowMaximized() * } */ - public static int KEY_X() { - return KEY_X; + public static MethodHandle IsWindowMaximized$handle() { + return IsWindowMaximized.HANDLE; } - private static final int KEY_Y = (int)89L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_Y = 89 + * bool IsWindowMaximized() * } */ - public static int KEY_Y() { - return KEY_Y; + public static MemorySegment IsWindowMaximized$address() { + return IsWindowMaximized.ADDR; } - private static final int KEY_Z = (int)90L; + /** * {@snippet lang=c : - * enum .KEY_Z = 90 + * bool IsWindowMaximized() * } */ - public static int KEY_Z() { - return KEY_Z; + public static boolean IsWindowMaximized() { + var mh$ = IsWindowMaximized.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowMaximized"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_LEFT_BRACKET = (int)91L; + + private static class IsWindowFocused { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowFocused"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_LEFT_BRACKET = 91 + * bool IsWindowFocused() * } */ - public static int KEY_LEFT_BRACKET() { - return KEY_LEFT_BRACKET; + public static FunctionDescriptor IsWindowFocused$descriptor() { + return IsWindowFocused.DESC; } - private static final int KEY_BACKSLASH = (int)92L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_BACKSLASH = 92 + * bool IsWindowFocused() * } */ - public static int KEY_BACKSLASH() { - return KEY_BACKSLASH; + public static MethodHandle IsWindowFocused$handle() { + return IsWindowFocused.HANDLE; } - private static final int KEY_RIGHT_BRACKET = (int)93L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_RIGHT_BRACKET = 93 + * bool IsWindowFocused() * } */ - public static int KEY_RIGHT_BRACKET() { - return KEY_RIGHT_BRACKET; + public static MemorySegment IsWindowFocused$address() { + return IsWindowFocused.ADDR; } - private static final int KEY_GRAVE = (int)96L; + /** * {@snippet lang=c : - * enum .KEY_GRAVE = 96 + * bool IsWindowFocused() * } */ - public static int KEY_GRAVE() { - return KEY_GRAVE; + public static boolean IsWindowFocused() { + var mh$ = IsWindowFocused.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowFocused"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_SPACE = (int)32L; - /** - * {@snippet lang=c : - * enum .KEY_SPACE = 32 - * } - */ - public static int KEY_SPACE() { - return KEY_SPACE; + + private static class IsWindowResized { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowResized"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int KEY_ESCAPE = (int)256L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_ESCAPE = 256 + * bool IsWindowResized() * } */ - public static int KEY_ESCAPE() { - return KEY_ESCAPE; + public static FunctionDescriptor IsWindowResized$descriptor() { + return IsWindowResized.DESC; } - private static final int KEY_ENTER = (int)257L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_ENTER = 257 + * bool IsWindowResized() * } */ - public static int KEY_ENTER() { - return KEY_ENTER; + public static MethodHandle IsWindowResized$handle() { + return IsWindowResized.HANDLE; } - private static final int KEY_TAB = (int)258L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_TAB = 258 + * bool IsWindowResized() * } */ - public static int KEY_TAB() { - return KEY_TAB; + public static MemorySegment IsWindowResized$address() { + return IsWindowResized.ADDR; } - private static final int KEY_BACKSPACE = (int)259L; + /** * {@snippet lang=c : - * enum .KEY_BACKSPACE = 259 + * bool IsWindowResized() * } */ - public static int KEY_BACKSPACE() { - return KEY_BACKSPACE; + public static boolean IsWindowResized() { + var mh$ = IsWindowResized.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowResized"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_INSERT = (int)260L; - /** - * {@snippet lang=c : - * enum .KEY_INSERT = 260 - * } - */ - public static int KEY_INSERT() { - return KEY_INSERT; + + private static class IsWindowState { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowState"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int KEY_DELETE = (int)261L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_DELETE = 261 + * bool IsWindowState(unsigned int flag) * } */ - public static int KEY_DELETE() { - return KEY_DELETE; + public static FunctionDescriptor IsWindowState$descriptor() { + return IsWindowState.DESC; } - private static final int KEY_RIGHT = (int)262L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_RIGHT = 262 + * bool IsWindowState(unsigned int flag) * } */ - public static int KEY_RIGHT() { - return KEY_RIGHT; + public static MethodHandle IsWindowState$handle() { + return IsWindowState.HANDLE; } - private static final int KEY_LEFT = (int)263L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_LEFT = 263 + * bool IsWindowState(unsigned int flag) * } */ - public static int KEY_LEFT() { - return KEY_LEFT; + public static MemorySegment IsWindowState$address() { + return IsWindowState.ADDR; } - private static final int KEY_DOWN = (int)264L; + /** * {@snippet lang=c : - * enum .KEY_DOWN = 264 + * bool IsWindowState(unsigned int flag) * } */ - public static int KEY_DOWN() { - return KEY_DOWN; + public static boolean IsWindowState(int flag) { + var mh$ = IsWindowState.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsWindowState", flag); + } + return (boolean)mh$.invokeExact(flag); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_UP = (int)265L; + + private static class SetWindowState { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowState"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_UP = 265 + * void SetWindowState(unsigned int flags) * } */ - public static int KEY_UP() { - return KEY_UP; + public static FunctionDescriptor SetWindowState$descriptor() { + return SetWindowState.DESC; } - private static final int KEY_PAGE_UP = (int)266L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_PAGE_UP = 266 + * void SetWindowState(unsigned int flags) * } */ - public static int KEY_PAGE_UP() { - return KEY_PAGE_UP; + public static MethodHandle SetWindowState$handle() { + return SetWindowState.HANDLE; } - private static final int KEY_PAGE_DOWN = (int)267L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_PAGE_DOWN = 267 + * void SetWindowState(unsigned int flags) * } */ - public static int KEY_PAGE_DOWN() { - return KEY_PAGE_DOWN; + public static MemorySegment SetWindowState$address() { + return SetWindowState.ADDR; } - private static final int KEY_HOME = (int)268L; + /** * {@snippet lang=c : - * enum .KEY_HOME = 268 + * void SetWindowState(unsigned int flags) * } */ - public static int KEY_HOME() { - return KEY_HOME; + public static void SetWindowState(int flags) { + var mh$ = SetWindowState.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowState", flags); + } + mh$.invokeExact(flags); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_END = (int)269L; + + private static class ClearWindowState { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ClearWindowState"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_END = 269 + * void ClearWindowState(unsigned int flags) * } */ - public static int KEY_END() { - return KEY_END; + public static FunctionDescriptor ClearWindowState$descriptor() { + return ClearWindowState.DESC; } - private static final int KEY_CAPS_LOCK = (int)280L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_CAPS_LOCK = 280 + * void ClearWindowState(unsigned int flags) * } */ - public static int KEY_CAPS_LOCK() { - return KEY_CAPS_LOCK; + public static MethodHandle ClearWindowState$handle() { + return ClearWindowState.HANDLE; } - private static final int KEY_SCROLL_LOCK = (int)281L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_SCROLL_LOCK = 281 + * void ClearWindowState(unsigned int flags) * } */ - public static int KEY_SCROLL_LOCK() { - return KEY_SCROLL_LOCK; + public static MemorySegment ClearWindowState$address() { + return ClearWindowState.ADDR; } - private static final int KEY_NUM_LOCK = (int)282L; + /** * {@snippet lang=c : - * enum .KEY_NUM_LOCK = 282 + * void ClearWindowState(unsigned int flags) * } */ - public static int KEY_NUM_LOCK() { - return KEY_NUM_LOCK; - } - private static final int KEY_PRINT_SCREEN = (int)283L; - /** - * {@snippet lang=c : - * enum .KEY_PRINT_SCREEN = 283 - * } - */ - public static int KEY_PRINT_SCREEN() { - return KEY_PRINT_SCREEN; + public static void ClearWindowState(int flags) { + var mh$ = ClearWindowState.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ClearWindowState", flags); + } + mh$.invokeExact(flags); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_PAUSE = (int)284L; + + private static class ToggleFullscreen { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ToggleFullscreen"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_PAUSE = 284 + * void ToggleFullscreen() * } */ - public static int KEY_PAUSE() { - return KEY_PAUSE; + public static FunctionDescriptor ToggleFullscreen$descriptor() { + return ToggleFullscreen.DESC; } - private static final int KEY_F1 = (int)290L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_F1 = 290 + * void ToggleFullscreen() * } */ - public static int KEY_F1() { - return KEY_F1; + public static MethodHandle ToggleFullscreen$handle() { + return ToggleFullscreen.HANDLE; } - private static final int KEY_F2 = (int)291L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_F2 = 291 + * void ToggleFullscreen() * } */ - public static int KEY_F2() { - return KEY_F2; + public static MemorySegment ToggleFullscreen$address() { + return ToggleFullscreen.ADDR; } - private static final int KEY_F3 = (int)292L; + /** * {@snippet lang=c : - * enum .KEY_F3 = 292 + * void ToggleFullscreen() * } */ - public static int KEY_F3() { - return KEY_F3; + public static void ToggleFullscreen() { + var mh$ = ToggleFullscreen.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ToggleFullscreen"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_F4 = (int)293L; + + private static class ToggleBorderlessWindowed { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ToggleBorderlessWindowed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_F4 = 293 + * void ToggleBorderlessWindowed() * } */ - public static int KEY_F4() { - return KEY_F4; + public static FunctionDescriptor ToggleBorderlessWindowed$descriptor() { + return ToggleBorderlessWindowed.DESC; } - private static final int KEY_F5 = (int)294L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_F5 = 294 + * void ToggleBorderlessWindowed() * } */ - public static int KEY_F5() { - return KEY_F5; + public static MethodHandle ToggleBorderlessWindowed$handle() { + return ToggleBorderlessWindowed.HANDLE; } - private static final int KEY_F6 = (int)295L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_F6 = 295 + * void ToggleBorderlessWindowed() * } */ - public static int KEY_F6() { - return KEY_F6; + public static MemorySegment ToggleBorderlessWindowed$address() { + return ToggleBorderlessWindowed.ADDR; } - private static final int KEY_F7 = (int)296L; + /** * {@snippet lang=c : - * enum .KEY_F7 = 296 + * void ToggleBorderlessWindowed() * } */ - public static int KEY_F7() { - return KEY_F7; + public static void ToggleBorderlessWindowed() { + var mh$ = ToggleBorderlessWindowed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ToggleBorderlessWindowed"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_F8 = (int)297L; + + private static class MaximizeWindow { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("MaximizeWindow"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_F8 = 297 + * void MaximizeWindow() * } */ - public static int KEY_F8() { - return KEY_F8; + public static FunctionDescriptor MaximizeWindow$descriptor() { + return MaximizeWindow.DESC; } - private static final int KEY_F9 = (int)298L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_F9 = 298 + * void MaximizeWindow() * } */ - public static int KEY_F9() { - return KEY_F9; + public static MethodHandle MaximizeWindow$handle() { + return MaximizeWindow.HANDLE; } - private static final int KEY_F10 = (int)299L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_F10 = 299 + * void MaximizeWindow() * } */ - public static int KEY_F10() { - return KEY_F10; + public static MemorySegment MaximizeWindow$address() { + return MaximizeWindow.ADDR; } - private static final int KEY_F11 = (int)300L; + /** * {@snippet lang=c : - * enum .KEY_F11 = 300 + * void MaximizeWindow() * } */ - public static int KEY_F11() { - return KEY_F11; + public static void MaximizeWindow() { + var mh$ = MaximizeWindow.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("MaximizeWindow"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_F12 = (int)301L; + + private static class MinimizeWindow { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("MinimizeWindow"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_F12 = 301 + * void MinimizeWindow() * } */ - public static int KEY_F12() { - return KEY_F12; + public static FunctionDescriptor MinimizeWindow$descriptor() { + return MinimizeWindow.DESC; } - private static final int KEY_LEFT_SHIFT = (int)340L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_LEFT_SHIFT = 340 + * void MinimizeWindow() * } */ - public static int KEY_LEFT_SHIFT() { - return KEY_LEFT_SHIFT; + public static MethodHandle MinimizeWindow$handle() { + return MinimizeWindow.HANDLE; } - private static final int KEY_LEFT_CONTROL = (int)341L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_LEFT_CONTROL = 341 + * void MinimizeWindow() * } */ - public static int KEY_LEFT_CONTROL() { - return KEY_LEFT_CONTROL; + public static MemorySegment MinimizeWindow$address() { + return MinimizeWindow.ADDR; } - private static final int KEY_LEFT_ALT = (int)342L; + /** * {@snippet lang=c : - * enum .KEY_LEFT_ALT = 342 + * void MinimizeWindow() * } */ - public static int KEY_LEFT_ALT() { - return KEY_LEFT_ALT; + public static void MinimizeWindow() { + var mh$ = MinimizeWindow.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("MinimizeWindow"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_LEFT_SUPER = (int)343L; + + private static class RestoreWindow { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("RestoreWindow"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_LEFT_SUPER = 343 + * void RestoreWindow() * } */ - public static int KEY_LEFT_SUPER() { - return KEY_LEFT_SUPER; + public static FunctionDescriptor RestoreWindow$descriptor() { + return RestoreWindow.DESC; } - private static final int KEY_RIGHT_SHIFT = (int)344L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_RIGHT_SHIFT = 344 + * void RestoreWindow() * } */ - public static int KEY_RIGHT_SHIFT() { - return KEY_RIGHT_SHIFT; + public static MethodHandle RestoreWindow$handle() { + return RestoreWindow.HANDLE; } - private static final int KEY_RIGHT_CONTROL = (int)345L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_RIGHT_CONTROL = 345 + * void RestoreWindow() * } */ - public static int KEY_RIGHT_CONTROL() { - return KEY_RIGHT_CONTROL; + public static MemorySegment RestoreWindow$address() { + return RestoreWindow.ADDR; } - private static final int KEY_RIGHT_ALT = (int)346L; + /** * {@snippet lang=c : - * enum .KEY_RIGHT_ALT = 346 + * void RestoreWindow() * } */ - public static int KEY_RIGHT_ALT() { - return KEY_RIGHT_ALT; + public static void RestoreWindow() { + var mh$ = RestoreWindow.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("RestoreWindow"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_RIGHT_SUPER = (int)347L; + + private static class SetWindowIcon { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Image.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowIcon"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_RIGHT_SUPER = 347 + * void SetWindowIcon(Image image) * } */ - public static int KEY_RIGHT_SUPER() { - return KEY_RIGHT_SUPER; + public static FunctionDescriptor SetWindowIcon$descriptor() { + return SetWindowIcon.DESC; } - private static final int KEY_KB_MENU = (int)348L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_KB_MENU = 348 + * void SetWindowIcon(Image image) * } */ - public static int KEY_KB_MENU() { - return KEY_KB_MENU; + public static MethodHandle SetWindowIcon$handle() { + return SetWindowIcon.HANDLE; } - private static final int KEY_KP_0 = (int)320L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_KP_0 = 320 + * void SetWindowIcon(Image image) * } */ - public static int KEY_KP_0() { - return KEY_KP_0; + public static MemorySegment SetWindowIcon$address() { + return SetWindowIcon.ADDR; } - private static final int KEY_KP_1 = (int)321L; + /** * {@snippet lang=c : - * enum .KEY_KP_1 = 321 + * void SetWindowIcon(Image image) * } */ - public static int KEY_KP_1() { - return KEY_KP_1; + public static void SetWindowIcon(MemorySegment image) { + var mh$ = SetWindowIcon.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowIcon", image); + } + mh$.invokeExact(image); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_KP_2 = (int)322L; + + private static class SetWindowIcons { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowIcons"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_KP_2 = 322 + * void SetWindowIcons(Image *images, int count) * } */ - public static int KEY_KP_2() { - return KEY_KP_2; + public static FunctionDescriptor SetWindowIcons$descriptor() { + return SetWindowIcons.DESC; } - private static final int KEY_KP_3 = (int)323L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_KP_3 = 323 + * void SetWindowIcons(Image *images, int count) * } */ - public static int KEY_KP_3() { - return KEY_KP_3; + public static MethodHandle SetWindowIcons$handle() { + return SetWindowIcons.HANDLE; } - private static final int KEY_KP_4 = (int)324L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_KP_4 = 324 + * void SetWindowIcons(Image *images, int count) * } */ - public static int KEY_KP_4() { - return KEY_KP_4; + public static MemorySegment SetWindowIcons$address() { + return SetWindowIcons.ADDR; } - private static final int KEY_KP_5 = (int)325L; + /** * {@snippet lang=c : - * enum .KEY_KP_5 = 325 + * void SetWindowIcons(Image *images, int count) * } */ - public static int KEY_KP_5() { - return KEY_KP_5; + public static void SetWindowIcons(MemorySegment images, int count) { + var mh$ = SetWindowIcons.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowIcons", images, count); + } + mh$.invokeExact(images, count); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_KP_6 = (int)326L; + + private static class SetWindowTitle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowTitle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_KP_6 = 326 + * void SetWindowTitle(const char *title) * } */ - public static int KEY_KP_6() { - return KEY_KP_6; + public static FunctionDescriptor SetWindowTitle$descriptor() { + return SetWindowTitle.DESC; } - private static final int KEY_KP_7 = (int)327L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_KP_7 = 327 + * void SetWindowTitle(const char *title) * } */ - public static int KEY_KP_7() { - return KEY_KP_7; + public static MethodHandle SetWindowTitle$handle() { + return SetWindowTitle.HANDLE; } - private static final int KEY_KP_8 = (int)328L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_KP_8 = 328 + * void SetWindowTitle(const char *title) * } */ - public static int KEY_KP_8() { - return KEY_KP_8; + public static MemorySegment SetWindowTitle$address() { + return SetWindowTitle.ADDR; } - private static final int KEY_KP_9 = (int)329L; + /** * {@snippet lang=c : - * enum .KEY_KP_9 = 329 + * void SetWindowTitle(const char *title) * } */ - public static int KEY_KP_9() { - return KEY_KP_9; + public static void SetWindowTitle(MemorySegment title) { + var mh$ = SetWindowTitle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowTitle", title); + } + mh$.invokeExact(title); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_KP_DECIMAL = (int)330L; + + private static class SetWindowPosition { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowPosition"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_KP_DECIMAL = 330 + * void SetWindowPosition(int x, int y) * } */ - public static int KEY_KP_DECIMAL() { - return KEY_KP_DECIMAL; + public static FunctionDescriptor SetWindowPosition$descriptor() { + return SetWindowPosition.DESC; } - private static final int KEY_KP_DIVIDE = (int)331L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_KP_DIVIDE = 331 + * void SetWindowPosition(int x, int y) * } */ - public static int KEY_KP_DIVIDE() { - return KEY_KP_DIVIDE; + public static MethodHandle SetWindowPosition$handle() { + return SetWindowPosition.HANDLE; } - private static final int KEY_KP_MULTIPLY = (int)332L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_KP_MULTIPLY = 332 + * void SetWindowPosition(int x, int y) * } */ - public static int KEY_KP_MULTIPLY() { - return KEY_KP_MULTIPLY; + public static MemorySegment SetWindowPosition$address() { + return SetWindowPosition.ADDR; } - private static final int KEY_KP_SUBTRACT = (int)333L; + /** * {@snippet lang=c : - * enum .KEY_KP_SUBTRACT = 333 + * void SetWindowPosition(int x, int y) * } */ - public static int KEY_KP_SUBTRACT() { - return KEY_KP_SUBTRACT; + public static void SetWindowPosition(int x, int y) { + var mh$ = SetWindowPosition.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowPosition", x, y); + } + mh$.invokeExact(x, y); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_KP_ADD = (int)334L; + + private static class SetWindowMonitor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowMonitor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_KP_ADD = 334 + * void SetWindowMonitor(int monitor) * } */ - public static int KEY_KP_ADD() { - return KEY_KP_ADD; + public static FunctionDescriptor SetWindowMonitor$descriptor() { + return SetWindowMonitor.DESC; } - private static final int KEY_KP_ENTER = (int)335L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_KP_ENTER = 335 + * void SetWindowMonitor(int monitor) * } */ - public static int KEY_KP_ENTER() { - return KEY_KP_ENTER; + public static MethodHandle SetWindowMonitor$handle() { + return SetWindowMonitor.HANDLE; } - private static final int KEY_KP_EQUAL = (int)336L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_KP_EQUAL = 336 + * void SetWindowMonitor(int monitor) * } */ - public static int KEY_KP_EQUAL() { - return KEY_KP_EQUAL; + public static MemorySegment SetWindowMonitor$address() { + return SetWindowMonitor.ADDR; } - private static final int KEY_BACK = (int)4L; + /** * {@snippet lang=c : - * enum .KEY_BACK = 4 + * void SetWindowMonitor(int monitor) * } */ - public static int KEY_BACK() { - return KEY_BACK; + public static void SetWindowMonitor(int monitor) { + var mh$ = SetWindowMonitor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowMonitor", monitor); + } + mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int KEY_MENU = (int)5L; + + private static class SetWindowMinSize { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowMinSize"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .KEY_MENU = 5 + * void SetWindowMinSize(int width, int height) * } */ - public static int KEY_MENU() { - return KEY_MENU; + public static FunctionDescriptor SetWindowMinSize$descriptor() { + return SetWindowMinSize.DESC; } - private static final int KEY_VOLUME_UP = (int)24L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .KEY_VOLUME_UP = 24 + * void SetWindowMinSize(int width, int height) * } */ - public static int KEY_VOLUME_UP() { - return KEY_VOLUME_UP; + public static MethodHandle SetWindowMinSize$handle() { + return SetWindowMinSize.HANDLE; } - private static final int KEY_VOLUME_DOWN = (int)25L; + /** + * Address for: * {@snippet lang=c : - * enum .KEY_VOLUME_DOWN = 25 + * void SetWindowMinSize(int width, int height) * } */ - public static int KEY_VOLUME_DOWN() { - return KEY_VOLUME_DOWN; + public static MemorySegment SetWindowMinSize$address() { + return SetWindowMinSize.ADDR; } - private static final int MOUSE_BUTTON_LEFT = (int)0L; + /** * {@snippet lang=c : - * enum .MOUSE_BUTTON_LEFT = 0 + * void SetWindowMinSize(int width, int height) * } */ - public static int MOUSE_BUTTON_LEFT() { - return MOUSE_BUTTON_LEFT; + public static void SetWindowMinSize(int width, int height) { + var mh$ = SetWindowMinSize.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowMinSize", width, height); + } + mh$.invokeExact(width, height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MOUSE_BUTTON_RIGHT = (int)1L; + + private static class SetWindowMaxSize { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowMaxSize"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MOUSE_BUTTON_RIGHT = 1 + * void SetWindowMaxSize(int width, int height) * } */ - public static int MOUSE_BUTTON_RIGHT() { - return MOUSE_BUTTON_RIGHT; + public static FunctionDescriptor SetWindowMaxSize$descriptor() { + return SetWindowMaxSize.DESC; } - private static final int MOUSE_BUTTON_MIDDLE = (int)2L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .MOUSE_BUTTON_MIDDLE = 2 + * void SetWindowMaxSize(int width, int height) * } */ - public static int MOUSE_BUTTON_MIDDLE() { - return MOUSE_BUTTON_MIDDLE; + public static MethodHandle SetWindowMaxSize$handle() { + return SetWindowMaxSize.HANDLE; } - private static final int MOUSE_BUTTON_SIDE = (int)3L; + /** + * Address for: * {@snippet lang=c : - * enum .MOUSE_BUTTON_SIDE = 3 + * void SetWindowMaxSize(int width, int height) * } */ - public static int MOUSE_BUTTON_SIDE() { - return MOUSE_BUTTON_SIDE; + public static MemorySegment SetWindowMaxSize$address() { + return SetWindowMaxSize.ADDR; } - private static final int MOUSE_BUTTON_EXTRA = (int)4L; + /** * {@snippet lang=c : - * enum .MOUSE_BUTTON_EXTRA = 4 + * void SetWindowMaxSize(int width, int height) * } */ - public static int MOUSE_BUTTON_EXTRA() { - return MOUSE_BUTTON_EXTRA; + public static void SetWindowMaxSize(int width, int height) { + var mh$ = SetWindowMaxSize.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowMaxSize", width, height); + } + mh$.invokeExact(width, height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MOUSE_BUTTON_FORWARD = (int)5L; + + private static class SetWindowSize { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowSize"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MOUSE_BUTTON_FORWARD = 5 + * void SetWindowSize(int width, int height) * } */ - public static int MOUSE_BUTTON_FORWARD() { - return MOUSE_BUTTON_FORWARD; + public static FunctionDescriptor SetWindowSize$descriptor() { + return SetWindowSize.DESC; } - private static final int MOUSE_BUTTON_BACK = (int)6L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .MOUSE_BUTTON_BACK = 6 + * void SetWindowSize(int width, int height) * } */ - public static int MOUSE_BUTTON_BACK() { - return MOUSE_BUTTON_BACK; + public static MethodHandle SetWindowSize$handle() { + return SetWindowSize.HANDLE; } - private static final int MOUSE_CURSOR_DEFAULT = (int)0L; + /** + * Address for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_DEFAULT = 0 + * void SetWindowSize(int width, int height) * } */ - public static int MOUSE_CURSOR_DEFAULT() { - return MOUSE_CURSOR_DEFAULT; + public static MemorySegment SetWindowSize$address() { + return SetWindowSize.ADDR; } - private static final int MOUSE_CURSOR_ARROW = (int)1L; + /** * {@snippet lang=c : - * enum .MOUSE_CURSOR_ARROW = 1 + * void SetWindowSize(int width, int height) * } */ - public static int MOUSE_CURSOR_ARROW() { - return MOUSE_CURSOR_ARROW; + public static void SetWindowSize(int width, int height) { + var mh$ = SetWindowSize.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowSize", width, height); + } + mh$.invokeExact(width, height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MOUSE_CURSOR_IBEAM = (int)2L; + + private static class SetWindowOpacity { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowOpacity"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_IBEAM = 2 + * void SetWindowOpacity(float opacity) * } */ - public static int MOUSE_CURSOR_IBEAM() { - return MOUSE_CURSOR_IBEAM; + public static FunctionDescriptor SetWindowOpacity$descriptor() { + return SetWindowOpacity.DESC; } - private static final int MOUSE_CURSOR_CROSSHAIR = (int)3L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_CROSSHAIR = 3 + * void SetWindowOpacity(float opacity) * } */ - public static int MOUSE_CURSOR_CROSSHAIR() { - return MOUSE_CURSOR_CROSSHAIR; + public static MethodHandle SetWindowOpacity$handle() { + return SetWindowOpacity.HANDLE; } - private static final int MOUSE_CURSOR_POINTING_HAND = (int)4L; + /** + * Address for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_POINTING_HAND = 4 + * void SetWindowOpacity(float opacity) * } */ - public static int MOUSE_CURSOR_POINTING_HAND() { - return MOUSE_CURSOR_POINTING_HAND; + public static MemorySegment SetWindowOpacity$address() { + return SetWindowOpacity.ADDR; } - private static final int MOUSE_CURSOR_RESIZE_EW = (int)5L; + /** * {@snippet lang=c : - * enum .MOUSE_CURSOR_RESIZE_EW = 5 + * void SetWindowOpacity(float opacity) * } */ - public static int MOUSE_CURSOR_RESIZE_EW() { - return MOUSE_CURSOR_RESIZE_EW; + public static void SetWindowOpacity(float opacity) { + var mh$ = SetWindowOpacity.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowOpacity", opacity); + } + mh$.invokeExact(opacity); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MOUSE_CURSOR_RESIZE_NS = (int)6L; + + private static class SetWindowFocused { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowFocused"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_RESIZE_NS = 6 + * void SetWindowFocused() * } */ - public static int MOUSE_CURSOR_RESIZE_NS() { - return MOUSE_CURSOR_RESIZE_NS; - } - private static final int MOUSE_CURSOR_RESIZE_NWSE = (int)7L; - /** - * {@snippet lang=c : - * enum .MOUSE_CURSOR_RESIZE_NWSE = 7 - * } - */ - public static int MOUSE_CURSOR_RESIZE_NWSE() { - return MOUSE_CURSOR_RESIZE_NWSE; + public static FunctionDescriptor SetWindowFocused$descriptor() { + return SetWindowFocused.DESC; } - private static final int MOUSE_CURSOR_RESIZE_NESW = (int)8L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_RESIZE_NESW = 8 + * void SetWindowFocused() * } */ - public static int MOUSE_CURSOR_RESIZE_NESW() { - return MOUSE_CURSOR_RESIZE_NESW; + public static MethodHandle SetWindowFocused$handle() { + return SetWindowFocused.HANDLE; } - private static final int MOUSE_CURSOR_RESIZE_ALL = (int)9L; + /** + * Address for: * {@snippet lang=c : - * enum .MOUSE_CURSOR_RESIZE_ALL = 9 + * void SetWindowFocused() * } */ - public static int MOUSE_CURSOR_RESIZE_ALL() { - return MOUSE_CURSOR_RESIZE_ALL; + public static MemorySegment SetWindowFocused$address() { + return SetWindowFocused.ADDR; } - private static final int MOUSE_CURSOR_NOT_ALLOWED = (int)10L; + /** * {@snippet lang=c : - * enum .MOUSE_CURSOR_NOT_ALLOWED = 10 + * void SetWindowFocused() * } */ - public static int MOUSE_CURSOR_NOT_ALLOWED() { - return MOUSE_CURSOR_NOT_ALLOWED; + public static void SetWindowFocused() { + var mh$ = SetWindowFocused.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetWindowFocused"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GAMEPAD_BUTTON_UNKNOWN = (int)0L; - /** - * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_UNKNOWN = 0 - * } - */ - public static int GAMEPAD_BUTTON_UNKNOWN() { - return GAMEPAD_BUTTON_UNKNOWN; + + private static class GetWindowHandle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWindowHandle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int GAMEPAD_BUTTON_LEFT_FACE_UP = (int)1L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_FACE_UP = 1 + * void *GetWindowHandle() * } */ - public static int GAMEPAD_BUTTON_LEFT_FACE_UP() { - return GAMEPAD_BUTTON_LEFT_FACE_UP; + public static FunctionDescriptor GetWindowHandle$descriptor() { + return GetWindowHandle.DESC; } - private static final int GAMEPAD_BUTTON_LEFT_FACE_RIGHT = (int)2L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2 + * void *GetWindowHandle() * } */ - public static int GAMEPAD_BUTTON_LEFT_FACE_RIGHT() { - return GAMEPAD_BUTTON_LEFT_FACE_RIGHT; + public static MethodHandle GetWindowHandle$handle() { + return GetWindowHandle.HANDLE; } - private static final int GAMEPAD_BUTTON_LEFT_FACE_DOWN = (int)3L; + /** + * Address for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3 + * void *GetWindowHandle() * } */ - public static int GAMEPAD_BUTTON_LEFT_FACE_DOWN() { - return GAMEPAD_BUTTON_LEFT_FACE_DOWN; + public static MemorySegment GetWindowHandle$address() { + return GetWindowHandle.ADDR; } - private static final int GAMEPAD_BUTTON_LEFT_FACE_LEFT = (int)4L; + /** * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4 + * void *GetWindowHandle() * } */ - public static int GAMEPAD_BUTTON_LEFT_FACE_LEFT() { - return GAMEPAD_BUTTON_LEFT_FACE_LEFT; + public static MemorySegment GetWindowHandle() { + var mh$ = GetWindowHandle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWindowHandle"); + } + return (MemorySegment)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GAMEPAD_BUTTON_RIGHT_FACE_UP = (int)5L; - /** - * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_FACE_UP = 5 - * } - */ - public static int GAMEPAD_BUTTON_RIGHT_FACE_UP() { - return GAMEPAD_BUTTON_RIGHT_FACE_UP; + + private static class GetScreenWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenWidth"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = (int)6L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6 + * int GetScreenWidth() * } */ - public static int GAMEPAD_BUTTON_RIGHT_FACE_RIGHT() { - return GAMEPAD_BUTTON_RIGHT_FACE_RIGHT; + public static FunctionDescriptor GetScreenWidth$descriptor() { + return GetScreenWidth.DESC; } - private static final int GAMEPAD_BUTTON_RIGHT_FACE_DOWN = (int)7L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7 + * int GetScreenWidth() * } */ - public static int GAMEPAD_BUTTON_RIGHT_FACE_DOWN() { - return GAMEPAD_BUTTON_RIGHT_FACE_DOWN; + public static MethodHandle GetScreenWidth$handle() { + return GetScreenWidth.HANDLE; } - private static final int GAMEPAD_BUTTON_RIGHT_FACE_LEFT = (int)8L; + /** + * Address for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8 + * int GetScreenWidth() * } */ - public static int GAMEPAD_BUTTON_RIGHT_FACE_LEFT() { - return GAMEPAD_BUTTON_RIGHT_FACE_LEFT; + public static MemorySegment GetScreenWidth$address() { + return GetScreenWidth.ADDR; } - private static final int GAMEPAD_BUTTON_LEFT_TRIGGER_1 = (int)9L; + /** * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9 + * int GetScreenWidth() * } */ - public static int GAMEPAD_BUTTON_LEFT_TRIGGER_1() { - return GAMEPAD_BUTTON_LEFT_TRIGGER_1; + public static int GetScreenWidth() { + var mh$ = GetScreenWidth.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetScreenWidth"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GAMEPAD_BUTTON_LEFT_TRIGGER_2 = (int)10L; + + private static class GetScreenHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10 + * int GetScreenHeight() * } */ - public static int GAMEPAD_BUTTON_LEFT_TRIGGER_2() { - return GAMEPAD_BUTTON_LEFT_TRIGGER_2; + public static FunctionDescriptor GetScreenHeight$descriptor() { + return GetScreenHeight.DESC; } - private static final int GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = (int)11L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11 + * int GetScreenHeight() * } */ - public static int GAMEPAD_BUTTON_RIGHT_TRIGGER_1() { - return GAMEPAD_BUTTON_RIGHT_TRIGGER_1; + public static MethodHandle GetScreenHeight$handle() { + return GetScreenHeight.HANDLE; } - private static final int GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = (int)12L; + /** + * Address for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12 + * int GetScreenHeight() * } */ - public static int GAMEPAD_BUTTON_RIGHT_TRIGGER_2() { - return GAMEPAD_BUTTON_RIGHT_TRIGGER_2; + public static MemorySegment GetScreenHeight$address() { + return GetScreenHeight.ADDR; } - private static final int GAMEPAD_BUTTON_MIDDLE_LEFT = (int)13L; + /** * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_MIDDLE_LEFT = 13 + * int GetScreenHeight() * } */ - public static int GAMEPAD_BUTTON_MIDDLE_LEFT() { - return GAMEPAD_BUTTON_MIDDLE_LEFT; + public static int GetScreenHeight() { + var mh$ = GetScreenHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetScreenHeight"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GAMEPAD_BUTTON_MIDDLE = (int)14L; + + private static class GetRenderWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetRenderWidth"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_MIDDLE = 14 + * int GetRenderWidth() * } */ - public static int GAMEPAD_BUTTON_MIDDLE() { - return GAMEPAD_BUTTON_MIDDLE; + public static FunctionDescriptor GetRenderWidth$descriptor() { + return GetRenderWidth.DESC; } - private static final int GAMEPAD_BUTTON_MIDDLE_RIGHT = (int)15L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_MIDDLE_RIGHT = 15 + * int GetRenderWidth() * } */ - public static int GAMEPAD_BUTTON_MIDDLE_RIGHT() { - return GAMEPAD_BUTTON_MIDDLE_RIGHT; + public static MethodHandle GetRenderWidth$handle() { + return GetRenderWidth.HANDLE; } - private static final int GAMEPAD_BUTTON_LEFT_THUMB = (int)16L; + /** + * Address for: * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_LEFT_THUMB = 16 + * int GetRenderWidth() * } */ - public static int GAMEPAD_BUTTON_LEFT_THUMB() { - return GAMEPAD_BUTTON_LEFT_THUMB; + public static MemorySegment GetRenderWidth$address() { + return GetRenderWidth.ADDR; } - private static final int GAMEPAD_BUTTON_RIGHT_THUMB = (int)17L; + /** * {@snippet lang=c : - * enum .GAMEPAD_BUTTON_RIGHT_THUMB = 17 + * int GetRenderWidth() * } */ - public static int GAMEPAD_BUTTON_RIGHT_THUMB() { - return GAMEPAD_BUTTON_RIGHT_THUMB; + public static int GetRenderWidth() { + var mh$ = GetRenderWidth.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetRenderWidth"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetRenderHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetRenderHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetRenderHeight() + * } + */ + public static FunctionDescriptor GetRenderHeight$descriptor() { + return GetRenderHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetRenderHeight() + * } + */ + public static MethodHandle GetRenderHeight$handle() { + return GetRenderHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetRenderHeight() + * } + */ + public static MemorySegment GetRenderHeight$address() { + return GetRenderHeight.ADDR; + } + + /** + * {@snippet lang=c : + * int GetRenderHeight() + * } + */ + public static int GetRenderHeight() { + var mh$ = GetRenderHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetRenderHeight"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + /** + * Variadic invoker class for: + * {@snippet lang=c : + * float GetCurrentAspect() + * } + */ + public static class GetCurrentAspect { + private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); + private static final MemorySegment ADDR = raylib.findOrThrow("GetCurrentAspect"); + + private final MethodHandle handle; + private final FunctionDescriptor descriptor; + private final MethodHandle spreader; + + private GetCurrentAspect(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { + this.handle = handle; + this.descriptor = descriptor; + this.spreader = spreader; + } + + /** + * Variadic invoker factory for: + * {@snippet lang=c : + * float GetCurrentAspect() + * } + */ + public static GetCurrentAspect makeInvoker(MemoryLayout... layouts) { + FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); + Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); + var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); + var spreader$ = mh$.asSpreader(Object[].class, layouts.length); + return new GetCurrentAspect(mh$, desc$, spreader$); + } + + /** + * {@return the address} + */ + public static MemorySegment address() { + return ADDR; + } + + /** + * {@return the specialized method handle} + */ + public MethodHandle handle() { + return handle; + } + + /** + * {@return the specialized descriptor} + */ + public FunctionDescriptor descriptor() { + return descriptor; + } + + public float apply(Object... x0) { + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetCurrentAspect", x0); + } + return (float)spreader.invokeExact(x0); + } catch(IllegalArgumentException | ClassCastException ex$) { + throw ex$; // rethrow IAE from passing wrong number/type of args + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + } + + private static class GetMonitorCount { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorCount"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMonitorCount() + * } + */ + public static FunctionDescriptor GetMonitorCount$descriptor() { + return GetMonitorCount.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMonitorCount() + * } + */ + public static MethodHandle GetMonitorCount$handle() { + return GetMonitorCount.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMonitorCount() + * } + */ + public static MemorySegment GetMonitorCount$address() { + return GetMonitorCount.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMonitorCount() + * } + */ + public static int GetMonitorCount() { + var mh$ = GetMonitorCount.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorCount"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetCurrentMonitor { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetCurrentMonitor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetCurrentMonitor() + * } + */ + public static FunctionDescriptor GetCurrentMonitor$descriptor() { + return GetCurrentMonitor.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetCurrentMonitor() + * } + */ + public static MethodHandle GetCurrentMonitor$handle() { + return GetCurrentMonitor.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetCurrentMonitor() + * } + */ + public static MemorySegment GetCurrentMonitor$address() { + return GetCurrentMonitor.ADDR; + } + + /** + * {@snippet lang=c : + * int GetCurrentMonitor() + * } + */ + public static int GetCurrentMonitor() { + var mh$ = GetCurrentMonitor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetCurrentMonitor"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorPosition { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorPosition"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetMonitorPosition(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorPosition$descriptor() { + return GetMonitorPosition.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetMonitorPosition(int monitor) + * } + */ + public static MethodHandle GetMonitorPosition$handle() { + return GetMonitorPosition.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetMonitorPosition(int monitor) + * } + */ + public static MemorySegment GetMonitorPosition$address() { + return GetMonitorPosition.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetMonitorPosition(int monitor) + * } + */ + public static MemorySegment GetMonitorPosition(SegmentAllocator allocator, int monitor) { + var mh$ = GetMonitorPosition.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorPosition", allocator, monitor); + } + return (MemorySegment)mh$.invokeExact(allocator, monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorWidth"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMonitorWidth(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorWidth$descriptor() { + return GetMonitorWidth.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMonitorWidth(int monitor) + * } + */ + public static MethodHandle GetMonitorWidth$handle() { + return GetMonitorWidth.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMonitorWidth(int monitor) + * } + */ + public static MemorySegment GetMonitorWidth$address() { + return GetMonitorWidth.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMonitorWidth(int monitor) + * } + */ + public static int GetMonitorWidth(int monitor) { + var mh$ = GetMonitorWidth.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorWidth", monitor); + } + return (int)mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMonitorHeight(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorHeight$descriptor() { + return GetMonitorHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMonitorHeight(int monitor) + * } + */ + public static MethodHandle GetMonitorHeight$handle() { + return GetMonitorHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMonitorHeight(int monitor) + * } + */ + public static MemorySegment GetMonitorHeight$address() { + return GetMonitorHeight.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMonitorHeight(int monitor) + * } + */ + public static int GetMonitorHeight(int monitor) { + var mh$ = GetMonitorHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorHeight", monitor); + } + return (int)mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorPhysicalWidth { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorPhysicalWidth"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMonitorPhysicalWidth(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorPhysicalWidth$descriptor() { + return GetMonitorPhysicalWidth.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMonitorPhysicalWidth(int monitor) + * } + */ + public static MethodHandle GetMonitorPhysicalWidth$handle() { + return GetMonitorPhysicalWidth.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMonitorPhysicalWidth(int monitor) + * } + */ + public static MemorySegment GetMonitorPhysicalWidth$address() { + return GetMonitorPhysicalWidth.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMonitorPhysicalWidth(int monitor) + * } + */ + public static int GetMonitorPhysicalWidth(int monitor) { + var mh$ = GetMonitorPhysicalWidth.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorPhysicalWidth", monitor); + } + return (int)mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorPhysicalHeight { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorPhysicalHeight"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMonitorPhysicalHeight(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorPhysicalHeight$descriptor() { + return GetMonitorPhysicalHeight.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMonitorPhysicalHeight(int monitor) + * } + */ + public static MethodHandle GetMonitorPhysicalHeight$handle() { + return GetMonitorPhysicalHeight.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMonitorPhysicalHeight(int monitor) + * } + */ + public static MemorySegment GetMonitorPhysicalHeight$address() { + return GetMonitorPhysicalHeight.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMonitorPhysicalHeight(int monitor) + * } + */ + public static int GetMonitorPhysicalHeight(int monitor) { + var mh$ = GetMonitorPhysicalHeight.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorPhysicalHeight", monitor); + } + return (int)mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorRefreshRate { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorRefreshRate"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMonitorRefreshRate(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorRefreshRate$descriptor() { + return GetMonitorRefreshRate.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMonitorRefreshRate(int monitor) + * } + */ + public static MethodHandle GetMonitorRefreshRate$handle() { + return GetMonitorRefreshRate.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMonitorRefreshRate(int monitor) + * } + */ + public static MemorySegment GetMonitorRefreshRate$address() { + return GetMonitorRefreshRate.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMonitorRefreshRate(int monitor) + * } + */ + public static int GetMonitorRefreshRate(int monitor) { + var mh$ = GetMonitorRefreshRate.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorRefreshRate", monitor); + } + return (int)mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetWindowPosition { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWindowPosition"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetWindowPosition() + * } + */ + public static FunctionDescriptor GetWindowPosition$descriptor() { + return GetWindowPosition.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetWindowPosition() + * } + */ + public static MethodHandle GetWindowPosition$handle() { + return GetWindowPosition.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetWindowPosition() + * } + */ + public static MemorySegment GetWindowPosition$address() { + return GetWindowPosition.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetWindowPosition() + * } + */ + public static MemorySegment GetWindowPosition(SegmentAllocator allocator) { + var mh$ = GetWindowPosition.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWindowPosition", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetWindowScaleDPI { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWindowScaleDPI"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetWindowScaleDPI() + * } + */ + public static FunctionDescriptor GetWindowScaleDPI$descriptor() { + return GetWindowScaleDPI.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetWindowScaleDPI() + * } + */ + public static MethodHandle GetWindowScaleDPI$handle() { + return GetWindowScaleDPI.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetWindowScaleDPI() + * } + */ + public static MemorySegment GetWindowScaleDPI$address() { + return GetWindowScaleDPI.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetWindowScaleDPI() + * } + */ + public static MemorySegment GetWindowScaleDPI(SegmentAllocator allocator) { + var mh$ = GetWindowScaleDPI.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWindowScaleDPI", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMonitorName { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorName"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetMonitorName(int monitor) + * } + */ + public static FunctionDescriptor GetMonitorName$descriptor() { + return GetMonitorName.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetMonitorName(int monitor) + * } + */ + public static MethodHandle GetMonitorName$handle() { + return GetMonitorName.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetMonitorName(int monitor) + * } + */ + public static MemorySegment GetMonitorName$address() { + return GetMonitorName.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetMonitorName(int monitor) + * } + */ + public static MemorySegment GetMonitorName(int monitor) { + var mh$ = GetMonitorName.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMonitorName", monitor); + } + return (MemorySegment)mh$.invokeExact(monitor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetClipboardText { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetClipboardText"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetClipboardText(const char *text) + * } + */ + public static FunctionDescriptor SetClipboardText$descriptor() { + return SetClipboardText.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetClipboardText(const char *text) + * } + */ + public static MethodHandle SetClipboardText$handle() { + return SetClipboardText.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetClipboardText(const char *text) + * } + */ + public static MemorySegment SetClipboardText$address() { + return SetClipboardText.ADDR; + } + + /** + * {@snippet lang=c : + * void SetClipboardText(const char *text) + * } + */ + public static void SetClipboardText(MemorySegment text) { + var mh$ = SetClipboardText.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetClipboardText", text); + } + mh$.invokeExact(text); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetClipboardText { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetClipboardText"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetClipboardText() + * } + */ + public static FunctionDescriptor GetClipboardText$descriptor() { + return GetClipboardText.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetClipboardText() + * } + */ + public static MethodHandle GetClipboardText$handle() { + return GetClipboardText.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetClipboardText() + * } + */ + public static MemorySegment GetClipboardText$address() { + return GetClipboardText.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetClipboardText() + * } + */ + public static MemorySegment GetClipboardText() { + var mh$ = GetClipboardText.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetClipboardText"); + } + return (MemorySegment)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EnableEventWaiting { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EnableEventWaiting"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EnableEventWaiting() + * } + */ + public static FunctionDescriptor EnableEventWaiting$descriptor() { + return EnableEventWaiting.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EnableEventWaiting() + * } + */ + public static MethodHandle EnableEventWaiting$handle() { + return EnableEventWaiting.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EnableEventWaiting() + * } + */ + public static MemorySegment EnableEventWaiting$address() { + return EnableEventWaiting.ADDR; + } + + /** + * {@snippet lang=c : + * void EnableEventWaiting() + * } + */ + public static void EnableEventWaiting() { + var mh$ = EnableEventWaiting.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EnableEventWaiting"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DisableEventWaiting { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DisableEventWaiting"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DisableEventWaiting() + * } + */ + public static FunctionDescriptor DisableEventWaiting$descriptor() { + return DisableEventWaiting.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DisableEventWaiting() + * } + */ + public static MethodHandle DisableEventWaiting$handle() { + return DisableEventWaiting.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DisableEventWaiting() + * } + */ + public static MemorySegment DisableEventWaiting$address() { + return DisableEventWaiting.ADDR; + } + + /** + * {@snippet lang=c : + * void DisableEventWaiting() + * } + */ + public static void DisableEventWaiting() { + var mh$ = DisableEventWaiting.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DisableEventWaiting"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class ShowCursor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ShowCursor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void ShowCursor() + * } + */ + public static FunctionDescriptor ShowCursor$descriptor() { + return ShowCursor.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void ShowCursor() + * } + */ + public static MethodHandle ShowCursor$handle() { + return ShowCursor.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void ShowCursor() + * } + */ + public static MemorySegment ShowCursor$address() { + return ShowCursor.ADDR; + } + + /** + * {@snippet lang=c : + * void ShowCursor() + * } + */ + public static void ShowCursor() { + var mh$ = ShowCursor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ShowCursor"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class HideCursor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("HideCursor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void HideCursor() + * } + */ + public static FunctionDescriptor HideCursor$descriptor() { + return HideCursor.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void HideCursor() + * } + */ + public static MethodHandle HideCursor$handle() { + return HideCursor.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void HideCursor() + * } + */ + public static MemorySegment HideCursor$address() { + return HideCursor.ADDR; + } + + /** + * {@snippet lang=c : + * void HideCursor() + * } + */ + public static void HideCursor() { + var mh$ = HideCursor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("HideCursor"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsCursorHidden { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsCursorHidden"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsCursorHidden() + * } + */ + public static FunctionDescriptor IsCursorHidden$descriptor() { + return IsCursorHidden.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsCursorHidden() + * } + */ + public static MethodHandle IsCursorHidden$handle() { + return IsCursorHidden.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsCursorHidden() + * } + */ + public static MemorySegment IsCursorHidden$address() { + return IsCursorHidden.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsCursorHidden() + * } + */ + public static boolean IsCursorHidden() { + var mh$ = IsCursorHidden.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsCursorHidden"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EnableCursor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EnableCursor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EnableCursor() + * } + */ + public static FunctionDescriptor EnableCursor$descriptor() { + return EnableCursor.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EnableCursor() + * } + */ + public static MethodHandle EnableCursor$handle() { + return EnableCursor.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EnableCursor() + * } + */ + public static MemorySegment EnableCursor$address() { + return EnableCursor.ADDR; + } + + /** + * {@snippet lang=c : + * void EnableCursor() + * } + */ + public static void EnableCursor() { + var mh$ = EnableCursor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EnableCursor"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DisableCursor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DisableCursor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DisableCursor() + * } + */ + public static FunctionDescriptor DisableCursor$descriptor() { + return DisableCursor.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DisableCursor() + * } + */ + public static MethodHandle DisableCursor$handle() { + return DisableCursor.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DisableCursor() + * } + */ + public static MemorySegment DisableCursor$address() { + return DisableCursor.ADDR; + } + + /** + * {@snippet lang=c : + * void DisableCursor() + * } + */ + public static void DisableCursor() { + var mh$ = DisableCursor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DisableCursor"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsCursorOnScreen { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsCursorOnScreen"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsCursorOnScreen() + * } + */ + public static FunctionDescriptor IsCursorOnScreen$descriptor() { + return IsCursorOnScreen.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsCursorOnScreen() + * } + */ + public static MethodHandle IsCursorOnScreen$handle() { + return IsCursorOnScreen.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsCursorOnScreen() + * } + */ + public static MemorySegment IsCursorOnScreen$address() { + return IsCursorOnScreen.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsCursorOnScreen() + * } + */ + public static boolean IsCursorOnScreen() { + var mh$ = IsCursorOnScreen.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsCursorOnScreen"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class ClearBackground { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ClearBackground"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void ClearBackground(Color color) + * } + */ + public static FunctionDescriptor ClearBackground$descriptor() { + return ClearBackground.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void ClearBackground(Color color) + * } + */ + public static MethodHandle ClearBackground$handle() { + return ClearBackground.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void ClearBackground(Color color) + * } + */ + public static MemorySegment ClearBackground$address() { + return ClearBackground.ADDR; + } + + /** + * {@snippet lang=c : + * void ClearBackground(Color color) + * } + */ + public static void ClearBackground(MemorySegment color) { + var mh$ = ClearBackground.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ClearBackground", color); + } + mh$.invokeExact(color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginDrawing { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginDrawing"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginDrawing() + * } + */ + public static FunctionDescriptor BeginDrawing$descriptor() { + return BeginDrawing.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginDrawing() + * } + */ + public static MethodHandle BeginDrawing$handle() { + return BeginDrawing.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginDrawing() + * } + */ + public static MemorySegment BeginDrawing$address() { + return BeginDrawing.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginDrawing() + * } + */ + public static void BeginDrawing() { + var mh$ = BeginDrawing.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginDrawing"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndDrawing { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndDrawing"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndDrawing() + * } + */ + public static FunctionDescriptor EndDrawing$descriptor() { + return EndDrawing.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndDrawing() + * } + */ + public static MethodHandle EndDrawing$handle() { + return EndDrawing.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndDrawing() + * } + */ + public static MemorySegment EndDrawing$address() { + return EndDrawing.ADDR; + } + + /** + * {@snippet lang=c : + * void EndDrawing() + * } + */ + public static void EndDrawing() { + var mh$ = EndDrawing.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndDrawing"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginMode2D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Camera2D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginMode2D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginMode2D(Camera2D camera) + * } + */ + public static FunctionDescriptor BeginMode2D$descriptor() { + return BeginMode2D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginMode2D(Camera2D camera) + * } + */ + public static MethodHandle BeginMode2D$handle() { + return BeginMode2D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginMode2D(Camera2D camera) + * } + */ + public static MemorySegment BeginMode2D$address() { + return BeginMode2D.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginMode2D(Camera2D camera) + * } + */ + public static void BeginMode2D(MemorySegment camera) { + var mh$ = BeginMode2D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginMode2D", camera); + } + mh$.invokeExact(camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndMode2D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndMode2D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndMode2D() + * } + */ + public static FunctionDescriptor EndMode2D$descriptor() { + return EndMode2D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndMode2D() + * } + */ + public static MethodHandle EndMode2D$handle() { + return EndMode2D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndMode2D() + * } + */ + public static MemorySegment EndMode2D$address() { + return EndMode2D.ADDR; + } + + /** + * {@snippet lang=c : + * void EndMode2D() + * } + */ + public static void EndMode2D() { + var mh$ = EndMode2D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndMode2D"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginMode3D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Camera3D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginMode3D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginMode3D(Camera3D camera) + * } + */ + public static FunctionDescriptor BeginMode3D$descriptor() { + return BeginMode3D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginMode3D(Camera3D camera) + * } + */ + public static MethodHandle BeginMode3D$handle() { + return BeginMode3D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginMode3D(Camera3D camera) + * } + */ + public static MemorySegment BeginMode3D$address() { + return BeginMode3D.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginMode3D(Camera3D camera) + * } + */ + public static void BeginMode3D(MemorySegment camera) { + var mh$ = BeginMode3D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginMode3D", camera); + } + mh$.invokeExact(camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndMode3D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndMode3D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndMode3D() + * } + */ + public static FunctionDescriptor EndMode3D$descriptor() { + return EndMode3D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndMode3D() + * } + */ + public static MethodHandle EndMode3D$handle() { + return EndMode3D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndMode3D() + * } + */ + public static MemorySegment EndMode3D$address() { + return EndMode3D.ADDR; + } + + /** + * {@snippet lang=c : + * void EndMode3D() + * } + */ + public static void EndMode3D() { + var mh$ = EndMode3D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndMode3D"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginTextureMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + RenderTexture.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginTextureMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginTextureMode(RenderTexture2D target) + * } + */ + public static FunctionDescriptor BeginTextureMode$descriptor() { + return BeginTextureMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginTextureMode(RenderTexture2D target) + * } + */ + public static MethodHandle BeginTextureMode$handle() { + return BeginTextureMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginTextureMode(RenderTexture2D target) + * } + */ + public static MemorySegment BeginTextureMode$address() { + return BeginTextureMode.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginTextureMode(RenderTexture2D target) + * } + */ + public static void BeginTextureMode(MemorySegment target) { + var mh$ = BeginTextureMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginTextureMode", target); + } + mh$.invokeExact(target); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndTextureMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndTextureMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndTextureMode() + * } + */ + public static FunctionDescriptor EndTextureMode$descriptor() { + return EndTextureMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndTextureMode() + * } + */ + public static MethodHandle EndTextureMode$handle() { + return EndTextureMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndTextureMode() + * } + */ + public static MemorySegment EndTextureMode$address() { + return EndTextureMode.ADDR; + } + + /** + * {@snippet lang=c : + * void EndTextureMode() + * } + */ + public static void EndTextureMode() { + var mh$ = EndTextureMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndTextureMode"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginShaderMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Shader.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginShaderMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginShaderMode(Shader shader) + * } + */ + public static FunctionDescriptor BeginShaderMode$descriptor() { + return BeginShaderMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginShaderMode(Shader shader) + * } + */ + public static MethodHandle BeginShaderMode$handle() { + return BeginShaderMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginShaderMode(Shader shader) + * } + */ + public static MemorySegment BeginShaderMode$address() { + return BeginShaderMode.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginShaderMode(Shader shader) + * } + */ + public static void BeginShaderMode(MemorySegment shader) { + var mh$ = BeginShaderMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginShaderMode", shader); + } + mh$.invokeExact(shader); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndShaderMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndShaderMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndShaderMode() + * } + */ + public static FunctionDescriptor EndShaderMode$descriptor() { + return EndShaderMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndShaderMode() + * } + */ + public static MethodHandle EndShaderMode$handle() { + return EndShaderMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndShaderMode() + * } + */ + public static MemorySegment EndShaderMode$address() { + return EndShaderMode.ADDR; + } + + /** + * {@snippet lang=c : + * void EndShaderMode() + * } + */ + public static void EndShaderMode() { + var mh$ = EndShaderMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndShaderMode"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginBlendMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginBlendMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginBlendMode(int mode) + * } + */ + public static FunctionDescriptor BeginBlendMode$descriptor() { + return BeginBlendMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginBlendMode(int mode) + * } + */ + public static MethodHandle BeginBlendMode$handle() { + return BeginBlendMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginBlendMode(int mode) + * } + */ + public static MemorySegment BeginBlendMode$address() { + return BeginBlendMode.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginBlendMode(int mode) + * } + */ + public static void BeginBlendMode(int mode) { + var mh$ = BeginBlendMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginBlendMode", mode); + } + mh$.invokeExact(mode); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndBlendMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndBlendMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndBlendMode() + * } + */ + public static FunctionDescriptor EndBlendMode$descriptor() { + return EndBlendMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndBlendMode() + * } + */ + public static MethodHandle EndBlendMode$handle() { + return EndBlendMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndBlendMode() + * } + */ + public static MemorySegment EndBlendMode$address() { + return EndBlendMode.ADDR; + } + + /** + * {@snippet lang=c : + * void EndBlendMode() + * } + */ + public static void EndBlendMode() { + var mh$ = EndBlendMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndBlendMode"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginScissorMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginScissorMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginScissorMode(int x, int y, int width, int height) + * } + */ + public static FunctionDescriptor BeginScissorMode$descriptor() { + return BeginScissorMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginScissorMode(int x, int y, int width, int height) + * } + */ + public static MethodHandle BeginScissorMode$handle() { + return BeginScissorMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginScissorMode(int x, int y, int width, int height) + * } + */ + public static MemorySegment BeginScissorMode$address() { + return BeginScissorMode.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginScissorMode(int x, int y, int width, int height) + * } + */ + public static void BeginScissorMode(int x, int y, int width, int height) { + var mh$ = BeginScissorMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginScissorMode", x, y, width, height); + } + mh$.invokeExact(x, y, width, height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndScissorMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndScissorMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndScissorMode() + * } + */ + public static FunctionDescriptor EndScissorMode$descriptor() { + return EndScissorMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndScissorMode() + * } + */ + public static MethodHandle EndScissorMode$handle() { + return EndScissorMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndScissorMode() + * } + */ + public static MemorySegment EndScissorMode$address() { + return EndScissorMode.ADDR; + } + + /** + * {@snippet lang=c : + * void EndScissorMode() + * } + */ + public static void EndScissorMode() { + var mh$ = EndScissorMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndScissorMode"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class BeginVrStereoMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + VrStereoConfig.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("BeginVrStereoMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void BeginVrStereoMode(VrStereoConfig config) + * } + */ + public static FunctionDescriptor BeginVrStereoMode$descriptor() { + return BeginVrStereoMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void BeginVrStereoMode(VrStereoConfig config) + * } + */ + public static MethodHandle BeginVrStereoMode$handle() { + return BeginVrStereoMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void BeginVrStereoMode(VrStereoConfig config) + * } + */ + public static MemorySegment BeginVrStereoMode$address() { + return BeginVrStereoMode.ADDR; + } + + /** + * {@snippet lang=c : + * void BeginVrStereoMode(VrStereoConfig config) + * } + */ + public static void BeginVrStereoMode(MemorySegment config) { + var mh$ = BeginVrStereoMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("BeginVrStereoMode", config); + } + mh$.invokeExact(config); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EndVrStereoMode { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EndVrStereoMode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void EndVrStereoMode() + * } + */ + public static FunctionDescriptor EndVrStereoMode$descriptor() { + return EndVrStereoMode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void EndVrStereoMode() + * } + */ + public static MethodHandle EndVrStereoMode$handle() { + return EndVrStereoMode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void EndVrStereoMode() + * } + */ + public static MemorySegment EndVrStereoMode$address() { + return EndVrStereoMode.ADDR; + } + + /** + * {@snippet lang=c : + * void EndVrStereoMode() + * } + */ + public static void EndVrStereoMode() { + var mh$ = EndVrStereoMode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EndVrStereoMode"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadVrStereoConfig { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + VrStereoConfig.layout(), + VrDeviceInfo.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadVrStereoConfig"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * } + */ + public static FunctionDescriptor LoadVrStereoConfig$descriptor() { + return LoadVrStereoConfig.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * } + */ + public static MethodHandle LoadVrStereoConfig$handle() { + return LoadVrStereoConfig.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * } + */ + public static MemorySegment LoadVrStereoConfig$address() { + return LoadVrStereoConfig.ADDR; + } + + /** + * {@snippet lang=c : + * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * } + */ + public static MemorySegment LoadVrStereoConfig(SegmentAllocator allocator, MemorySegment device) { + var mh$ = LoadVrStereoConfig.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadVrStereoConfig", allocator, device); + } + return (MemorySegment)mh$.invokeExact(allocator, device); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadVrStereoConfig { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + VrStereoConfig.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadVrStereoConfig"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadVrStereoConfig(VrStereoConfig config) + * } + */ + public static FunctionDescriptor UnloadVrStereoConfig$descriptor() { + return UnloadVrStereoConfig.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadVrStereoConfig(VrStereoConfig config) + * } + */ + public static MethodHandle UnloadVrStereoConfig$handle() { + return UnloadVrStereoConfig.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadVrStereoConfig(VrStereoConfig config) + * } + */ + public static MemorySegment UnloadVrStereoConfig$address() { + return UnloadVrStereoConfig.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadVrStereoConfig(VrStereoConfig config) + * } + */ + public static void UnloadVrStereoConfig(MemorySegment config) { + var mh$ = UnloadVrStereoConfig.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadVrStereoConfig", config); + } + mh$.invokeExact(config); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadShader { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Shader.layout(), + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadShader"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * } + */ + public static FunctionDescriptor LoadShader$descriptor() { + return LoadShader.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * } + */ + public static MethodHandle LoadShader$handle() { + return LoadShader.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * } + */ + public static MemorySegment LoadShader$address() { + return LoadShader.ADDR; + } + + /** + * {@snippet lang=c : + * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * } + */ + public static MemorySegment LoadShader(SegmentAllocator allocator, MemorySegment vsFileName, MemorySegment fsFileName) { + var mh$ = LoadShader.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadShader", allocator, vsFileName, fsFileName); + } + return (MemorySegment)mh$.invokeExact(allocator, vsFileName, fsFileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadShaderFromMemory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Shader.layout(), + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadShaderFromMemory"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * } + */ + public static FunctionDescriptor LoadShaderFromMemory$descriptor() { + return LoadShaderFromMemory.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * } + */ + public static MethodHandle LoadShaderFromMemory$handle() { + return LoadShaderFromMemory.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * } + */ + public static MemorySegment LoadShaderFromMemory$address() { + return LoadShaderFromMemory.ADDR; + } + + /** + * {@snippet lang=c : + * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * } + */ + public static MemorySegment LoadShaderFromMemory(SegmentAllocator allocator, MemorySegment vsCode, MemorySegment fsCode) { + var mh$ = LoadShaderFromMemory.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadShaderFromMemory", allocator, vsCode, fsCode); + } + return (MemorySegment)mh$.invokeExact(allocator, vsCode, fsCode); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsShaderReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Shader.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsShaderReady"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsShaderReady(Shader shader) + * } + */ + public static FunctionDescriptor IsShaderReady$descriptor() { + return IsShaderReady.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsShaderReady(Shader shader) + * } + */ + public static MethodHandle IsShaderReady$handle() { + return IsShaderReady.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsShaderReady(Shader shader) + * } + */ + public static MemorySegment IsShaderReady$address() { + return IsShaderReady.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsShaderReady(Shader shader) + * } + */ + public static boolean IsShaderReady(MemorySegment shader) { + var mh$ = IsShaderReady.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsShaderReady", shader); + } + return (boolean)mh$.invokeExact(shader); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetShaderLocation { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + Shader.layout(), + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetShaderLocation"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetShaderLocation(Shader shader, const char *uniformName) + * } + */ + public static FunctionDescriptor GetShaderLocation$descriptor() { + return GetShaderLocation.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetShaderLocation(Shader shader, const char *uniformName) + * } + */ + public static MethodHandle GetShaderLocation$handle() { + return GetShaderLocation.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetShaderLocation(Shader shader, const char *uniformName) + * } + */ + public static MemorySegment GetShaderLocation$address() { + return GetShaderLocation.ADDR; + } + + /** + * {@snippet lang=c : + * int GetShaderLocation(Shader shader, const char *uniformName) + * } + */ + public static int GetShaderLocation(MemorySegment shader, MemorySegment uniformName) { + var mh$ = GetShaderLocation.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetShaderLocation", shader, uniformName); + } + return (int)mh$.invokeExact(shader, uniformName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetShaderLocationAttrib { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + Shader.layout(), + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetShaderLocationAttrib"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * } + */ + public static FunctionDescriptor GetShaderLocationAttrib$descriptor() { + return GetShaderLocationAttrib.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * } + */ + public static MethodHandle GetShaderLocationAttrib$handle() { + return GetShaderLocationAttrib.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * } + */ + public static MemorySegment GetShaderLocationAttrib$address() { + return GetShaderLocationAttrib.ADDR; + } + + /** + * {@snippet lang=c : + * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * } + */ + public static int GetShaderLocationAttrib(MemorySegment shader, MemorySegment attribName) { + var mh$ = GetShaderLocationAttrib.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetShaderLocationAttrib", shader, attribName); + } + return (int)mh$.invokeExact(shader, attribName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetShaderValue { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Shader.layout(), + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValue"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * } + */ + public static FunctionDescriptor SetShaderValue$descriptor() { + return SetShaderValue.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * } + */ + public static MethodHandle SetShaderValue$handle() { + return SetShaderValue.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * } + */ + public static MemorySegment SetShaderValue$address() { + return SetShaderValue.ADDR; + } + + /** + * {@snippet lang=c : + * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * } + */ + public static void SetShaderValue(MemorySegment shader, int locIndex, MemorySegment value, int uniformType) { + var mh$ = SetShaderValue.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetShaderValue", shader, locIndex, value, uniformType); + } + mh$.invokeExact(shader, locIndex, value, uniformType); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetShaderValueV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Shader.layout(), + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValueV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * } + */ + public static FunctionDescriptor SetShaderValueV$descriptor() { + return SetShaderValueV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * } + */ + public static MethodHandle SetShaderValueV$handle() { + return SetShaderValueV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * } + */ + public static MemorySegment SetShaderValueV$address() { + return SetShaderValueV.ADDR; + } + + /** + * {@snippet lang=c : + * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * } + */ + public static void SetShaderValueV(MemorySegment shader, int locIndex, MemorySegment value, int uniformType, int count) { + var mh$ = SetShaderValueV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetShaderValueV", shader, locIndex, value, uniformType, count); + } + mh$.invokeExact(shader, locIndex, value, uniformType, count); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetShaderValueMatrix { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Shader.layout(), + raylib.C_INT, + Matrix.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValueMatrix"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * } + */ + public static FunctionDescriptor SetShaderValueMatrix$descriptor() { + return SetShaderValueMatrix.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * } + */ + public static MethodHandle SetShaderValueMatrix$handle() { + return SetShaderValueMatrix.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * } + */ + public static MemorySegment SetShaderValueMatrix$address() { + return SetShaderValueMatrix.ADDR; + } + + /** + * {@snippet lang=c : + * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * } + */ + public static void SetShaderValueMatrix(MemorySegment shader, int locIndex, MemorySegment mat) { + var mh$ = SetShaderValueMatrix.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetShaderValueMatrix", shader, locIndex, mat); + } + mh$.invokeExact(shader, locIndex, mat); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetShaderValueTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Shader.layout(), + raylib.C_INT, + Texture.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValueTexture"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * } + */ + public static FunctionDescriptor SetShaderValueTexture$descriptor() { + return SetShaderValueTexture.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * } + */ + public static MethodHandle SetShaderValueTexture$handle() { + return SetShaderValueTexture.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * } + */ + public static MemorySegment SetShaderValueTexture$address() { + return SetShaderValueTexture.ADDR; + } + + /** + * {@snippet lang=c : + * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * } + */ + public static void SetShaderValueTexture(MemorySegment shader, int locIndex, MemorySegment texture) { + var mh$ = SetShaderValueTexture.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetShaderValueTexture", shader, locIndex, texture); + } + mh$.invokeExact(shader, locIndex, texture); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadShader { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Shader.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadShader"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadShader(Shader shader) + * } + */ + public static FunctionDescriptor UnloadShader$descriptor() { + return UnloadShader.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadShader(Shader shader) + * } + */ + public static MethodHandle UnloadShader$handle() { + return UnloadShader.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadShader(Shader shader) + * } + */ + public static MemorySegment UnloadShader$address() { + return UnloadShader.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadShader(Shader shader) + * } + */ + public static void UnloadShader(MemorySegment shader) { + var mh$ = UnloadShader.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadShader", shader); + } + mh$.invokeExact(shader); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetScreenToWorldRay { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Ray.layout(), + Vector2.layout(), + Camera3D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenToWorldRay"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * } + */ + public static FunctionDescriptor GetScreenToWorldRay$descriptor() { + return GetScreenToWorldRay.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * } + */ + public static MethodHandle GetScreenToWorldRay$handle() { + return GetScreenToWorldRay.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * } + */ + public static MemorySegment GetScreenToWorldRay$address() { + return GetScreenToWorldRay.ADDR; + } + + /** + * {@snippet lang=c : + * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * } + */ + public static MemorySegment GetScreenToWorldRay(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { + var mh$ = GetScreenToWorldRay.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetScreenToWorldRay", allocator, position, camera); + } + return (MemorySegment)mh$.invokeExact(allocator, position, camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetScreenToWorldRayEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Ray.layout(), + Vector2.layout(), + Camera3D.layout(), + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenToWorldRayEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * } + */ + public static FunctionDescriptor GetScreenToWorldRayEx$descriptor() { + return GetScreenToWorldRayEx.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * } + */ + public static MethodHandle GetScreenToWorldRayEx$handle() { + return GetScreenToWorldRayEx.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * } + */ + public static MemorySegment GetScreenToWorldRayEx$address() { + return GetScreenToWorldRayEx.ADDR; + } + + /** + * {@snippet lang=c : + * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * } + */ + public static MemorySegment GetScreenToWorldRayEx(SegmentAllocator allocator, MemorySegment position, MemorySegment camera, int width, int height) { + var mh$ = GetScreenToWorldRayEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetScreenToWorldRayEx", allocator, position, camera, width, height); + } + return (MemorySegment)mh$.invokeExact(allocator, position, camera, width, height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetWorldToScreen { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector3.layout(), + Camera3D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWorldToScreen"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * } + */ + public static FunctionDescriptor GetWorldToScreen$descriptor() { + return GetWorldToScreen.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * } + */ + public static MethodHandle GetWorldToScreen$handle() { + return GetWorldToScreen.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * } + */ + public static MemorySegment GetWorldToScreen$address() { + return GetWorldToScreen.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * } + */ + public static MemorySegment GetWorldToScreen(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { + var mh$ = GetWorldToScreen.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWorldToScreen", allocator, position, camera); + } + return (MemorySegment)mh$.invokeExact(allocator, position, camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetWorldToScreenEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector3.layout(), + Camera3D.layout(), + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWorldToScreenEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * } + */ + public static FunctionDescriptor GetWorldToScreenEx$descriptor() { + return GetWorldToScreenEx.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * } + */ + public static MethodHandle GetWorldToScreenEx$handle() { + return GetWorldToScreenEx.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * } + */ + public static MemorySegment GetWorldToScreenEx$address() { + return GetWorldToScreenEx.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * } + */ + public static MemorySegment GetWorldToScreenEx(SegmentAllocator allocator, MemorySegment position, MemorySegment camera, int width, int height) { + var mh$ = GetWorldToScreenEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWorldToScreenEx", allocator, position, camera, width, height); + } + return (MemorySegment)mh$.invokeExact(allocator, position, camera, width, height); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetWorldToScreen2D { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector2.layout(), + Camera2D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWorldToScreen2D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * } + */ + public static FunctionDescriptor GetWorldToScreen2D$descriptor() { + return GetWorldToScreen2D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * } + */ + public static MethodHandle GetWorldToScreen2D$handle() { + return GetWorldToScreen2D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * } + */ + public static MemorySegment GetWorldToScreen2D$address() { + return GetWorldToScreen2D.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * } + */ + public static MemorySegment GetWorldToScreen2D(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { + var mh$ = GetWorldToScreen2D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWorldToScreen2D", allocator, position, camera); + } + return (MemorySegment)mh$.invokeExact(allocator, position, camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetScreenToWorld2D { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector2.layout(), + Camera2D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenToWorld2D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * } + */ + public static FunctionDescriptor GetScreenToWorld2D$descriptor() { + return GetScreenToWorld2D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * } + */ + public static MethodHandle GetScreenToWorld2D$handle() { + return GetScreenToWorld2D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * } + */ + public static MemorySegment GetScreenToWorld2D$address() { + return GetScreenToWorld2D.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * } + */ + public static MemorySegment GetScreenToWorld2D(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { + var mh$ = GetScreenToWorld2D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetScreenToWorld2D", allocator, position, camera); + } + return (MemorySegment)mh$.invokeExact(allocator, position, camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetCameraMatrix { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Matrix.layout(), + Camera3D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetCameraMatrix"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Matrix GetCameraMatrix(Camera camera) + * } + */ + public static FunctionDescriptor GetCameraMatrix$descriptor() { + return GetCameraMatrix.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Matrix GetCameraMatrix(Camera camera) + * } + */ + public static MethodHandle GetCameraMatrix$handle() { + return GetCameraMatrix.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Matrix GetCameraMatrix(Camera camera) + * } + */ + public static MemorySegment GetCameraMatrix$address() { + return GetCameraMatrix.ADDR; + } + + /** + * {@snippet lang=c : + * Matrix GetCameraMatrix(Camera camera) + * } + */ + public static MemorySegment GetCameraMatrix(SegmentAllocator allocator, MemorySegment camera) { + var mh$ = GetCameraMatrix.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetCameraMatrix", allocator, camera); + } + return (MemorySegment)mh$.invokeExact(allocator, camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetCameraMatrix2D { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Matrix.layout(), + Camera2D.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetCameraMatrix2D"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Matrix GetCameraMatrix2D(Camera2D camera) + * } + */ + public static FunctionDescriptor GetCameraMatrix2D$descriptor() { + return GetCameraMatrix2D.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Matrix GetCameraMatrix2D(Camera2D camera) + * } + */ + public static MethodHandle GetCameraMatrix2D$handle() { + return GetCameraMatrix2D.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Matrix GetCameraMatrix2D(Camera2D camera) + * } + */ + public static MemorySegment GetCameraMatrix2D$address() { + return GetCameraMatrix2D.ADDR; + } + + /** + * {@snippet lang=c : + * Matrix GetCameraMatrix2D(Camera2D camera) + * } + */ + public static MemorySegment GetCameraMatrix2D(SegmentAllocator allocator, MemorySegment camera) { + var mh$ = GetCameraMatrix2D.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetCameraMatrix2D", allocator, camera); + } + return (MemorySegment)mh$.invokeExact(allocator, camera); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetTargetFPS { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetTargetFPS"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetTargetFPS(int fps) + * } + */ + public static FunctionDescriptor SetTargetFPS$descriptor() { + return SetTargetFPS.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetTargetFPS(int fps) + * } + */ + public static MethodHandle SetTargetFPS$handle() { + return SetTargetFPS.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetTargetFPS(int fps) + * } + */ + public static MemorySegment SetTargetFPS$address() { + return SetTargetFPS.ADDR; + } + + /** + * {@snippet lang=c : + * void SetTargetFPS(int fps) + * } + */ + public static void SetTargetFPS(int fps) { + var mh$ = SetTargetFPS.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetTargetFPS", fps); + } + mh$.invokeExact(fps); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFrameTime { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFrameTime"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * float GetFrameTime() + * } + */ + public static FunctionDescriptor GetFrameTime$descriptor() { + return GetFrameTime.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * float GetFrameTime() + * } + */ + public static MethodHandle GetFrameTime$handle() { + return GetFrameTime.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * float GetFrameTime() + * } + */ + public static MemorySegment GetFrameTime$address() { + return GetFrameTime.ADDR; + } + + /** + * {@snippet lang=c : + * float GetFrameTime() + * } + */ + public static float GetFrameTime() { + var mh$ = GetFrameTime.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFrameTime"); + } + return (float)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTime { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_DOUBLE ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTime"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * double GetTime() + * } + */ + public static FunctionDescriptor GetTime$descriptor() { + return GetTime.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * double GetTime() + * } + */ + public static MethodHandle GetTime$handle() { + return GetTime.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * double GetTime() + * } + */ + public static MemorySegment GetTime$address() { + return GetTime.ADDR; + } + + /** + * {@snippet lang=c : + * double GetTime() + * } + */ + public static double GetTime() { + var mh$ = GetTime.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTime"); + } + return (double)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFPS { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFPS"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetFPS() + * } + */ + public static FunctionDescriptor GetFPS$descriptor() { + return GetFPS.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetFPS() + * } + */ + public static MethodHandle GetFPS$handle() { + return GetFPS.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetFPS() + * } + */ + public static MemorySegment GetFPS$address() { + return GetFPS.ADDR; + } + + /** + * {@snippet lang=c : + * int GetFPS() + * } + */ + public static int GetFPS() { + var mh$ = GetFPS.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFPS"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SwapScreenBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SwapScreenBuffer"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SwapScreenBuffer() + * } + */ + public static FunctionDescriptor SwapScreenBuffer$descriptor() { + return SwapScreenBuffer.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SwapScreenBuffer() + * } + */ + public static MethodHandle SwapScreenBuffer$handle() { + return SwapScreenBuffer.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SwapScreenBuffer() + * } + */ + public static MemorySegment SwapScreenBuffer$address() { + return SwapScreenBuffer.ADDR; + } + + /** + * {@snippet lang=c : + * void SwapScreenBuffer() + * } + */ + public static void SwapScreenBuffer() { + var mh$ = SwapScreenBuffer.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SwapScreenBuffer"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class PollInputEvents { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("PollInputEvents"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void PollInputEvents() + * } + */ + public static FunctionDescriptor PollInputEvents$descriptor() { + return PollInputEvents.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void PollInputEvents() + * } + */ + public static MethodHandle PollInputEvents$handle() { + return PollInputEvents.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void PollInputEvents() + * } + */ + public static MemorySegment PollInputEvents$address() { + return PollInputEvents.ADDR; + } + + /** + * {@snippet lang=c : + * void PollInputEvents() + * } + */ + public static void PollInputEvents() { + var mh$ = PollInputEvents.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("PollInputEvents"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class WaitTime { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_DOUBLE + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("WaitTime"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void WaitTime(double seconds) + * } + */ + public static FunctionDescriptor WaitTime$descriptor() { + return WaitTime.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void WaitTime(double seconds) + * } + */ + public static MethodHandle WaitTime$handle() { + return WaitTime.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void WaitTime(double seconds) + * } + */ + public static MemorySegment WaitTime$address() { + return WaitTime.ADDR; + } + + /** + * {@snippet lang=c : + * void WaitTime(double seconds) + * } + */ + public static void WaitTime(double seconds) { + var mh$ = WaitTime.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("WaitTime", seconds); + } + mh$.invokeExact(seconds); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetRandomSeed { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetRandomSeed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetRandomSeed(unsigned int seed) + * } + */ + public static FunctionDescriptor SetRandomSeed$descriptor() { + return SetRandomSeed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetRandomSeed(unsigned int seed) + * } + */ + public static MethodHandle SetRandomSeed$handle() { + return SetRandomSeed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetRandomSeed(unsigned int seed) + * } + */ + public static MemorySegment SetRandomSeed$address() { + return SetRandomSeed.ADDR; + } + + /** + * {@snippet lang=c : + * void SetRandomSeed(unsigned int seed) + * } + */ + public static void SetRandomSeed(int seed) { + var mh$ = SetRandomSeed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetRandomSeed", seed); + } + mh$.invokeExact(seed); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetRandomValue { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetRandomValue"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetRandomValue(int min, int max) + * } + */ + public static FunctionDescriptor GetRandomValue$descriptor() { + return GetRandomValue.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetRandomValue(int min, int max) + * } + */ + public static MethodHandle GetRandomValue$handle() { + return GetRandomValue.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetRandomValue(int min, int max) + * } + */ + public static MemorySegment GetRandomValue$address() { + return GetRandomValue.ADDR; + } + + /** + * {@snippet lang=c : + * int GetRandomValue(int min, int max) + * } + */ + public static int GetRandomValue(int min, int max) { + var mh$ = GetRandomValue.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetRandomValue", min, max); + } + return (int)mh$.invokeExact(min, max); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadRandomSequence { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadRandomSequence"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int *LoadRandomSequence(unsigned int count, int min, int max) + * } + */ + public static FunctionDescriptor LoadRandomSequence$descriptor() { + return LoadRandomSequence.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int *LoadRandomSequence(unsigned int count, int min, int max) + * } + */ + public static MethodHandle LoadRandomSequence$handle() { + return LoadRandomSequence.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int *LoadRandomSequence(unsigned int count, int min, int max) + * } + */ + public static MemorySegment LoadRandomSequence$address() { + return LoadRandomSequence.ADDR; + } + + /** + * {@snippet lang=c : + * int *LoadRandomSequence(unsigned int count, int min, int max) + * } + */ + public static MemorySegment LoadRandomSequence(int count, int min, int max) { + var mh$ = LoadRandomSequence.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadRandomSequence", count, min, max); + } + return (MemorySegment)mh$.invokeExact(count, min, max); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadRandomSequence { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadRandomSequence"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadRandomSequence(int *sequence) + * } + */ + public static FunctionDescriptor UnloadRandomSequence$descriptor() { + return UnloadRandomSequence.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadRandomSequence(int *sequence) + * } + */ + public static MethodHandle UnloadRandomSequence$handle() { + return UnloadRandomSequence.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadRandomSequence(int *sequence) + * } + */ + public static MemorySegment UnloadRandomSequence$address() { + return UnloadRandomSequence.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadRandomSequence(int *sequence) + * } + */ + public static void UnloadRandomSequence(MemorySegment sequence) { + var mh$ = UnloadRandomSequence.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadRandomSequence", sequence); + } + mh$.invokeExact(sequence); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class TakeScreenshot { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("TakeScreenshot"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void TakeScreenshot(const char *fileName) + * } + */ + public static FunctionDescriptor TakeScreenshot$descriptor() { + return TakeScreenshot.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void TakeScreenshot(const char *fileName) + * } + */ + public static MethodHandle TakeScreenshot$handle() { + return TakeScreenshot.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void TakeScreenshot(const char *fileName) + * } + */ + public static MemorySegment TakeScreenshot$address() { + return TakeScreenshot.ADDR; + } + + /** + * {@snippet lang=c : + * void TakeScreenshot(const char *fileName) + * } + */ + public static void TakeScreenshot(MemorySegment fileName) { + var mh$ = TakeScreenshot.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("TakeScreenshot", fileName); + } + mh$.invokeExact(fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetConfigFlags { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetConfigFlags"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetConfigFlags(unsigned int flags) + * } + */ + public static FunctionDescriptor SetConfigFlags$descriptor() { + return SetConfigFlags.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetConfigFlags(unsigned int flags) + * } + */ + public static MethodHandle SetConfigFlags$handle() { + return SetConfigFlags.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetConfigFlags(unsigned int flags) + * } + */ + public static MemorySegment SetConfigFlags$address() { + return SetConfigFlags.ADDR; + } + + /** + * {@snippet lang=c : + * void SetConfigFlags(unsigned int flags) + * } + */ + public static void SetConfigFlags(int flags) { + var mh$ = SetConfigFlags.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetConfigFlags", flags); + } + mh$.invokeExact(flags); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class OpenURL { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("OpenURL"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void OpenURL(const char *url) + * } + */ + public static FunctionDescriptor OpenURL$descriptor() { + return OpenURL.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void OpenURL(const char *url) + * } + */ + public static MethodHandle OpenURL$handle() { + return OpenURL.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void OpenURL(const char *url) + * } + */ + public static MemorySegment OpenURL$address() { + return OpenURL.ADDR; + } + + /** + * {@snippet lang=c : + * void OpenURL(const char *url) + * } + */ + public static void OpenURL(MemorySegment url) { + var mh$ = OpenURL.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("OpenURL", url); + } + mh$.invokeExact(url); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + /** + * Variadic invoker class for: + * {@snippet lang=c : + * void TraceLog(int logLevel, const char *text, ...) + * } + */ + public static class TraceLog { + private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_POINTER + ); + private static final MemorySegment ADDR = raylib.findOrThrow("TraceLog"); + + private final MethodHandle handle; + private final FunctionDescriptor descriptor; + private final MethodHandle spreader; + + private TraceLog(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { + this.handle = handle; + this.descriptor = descriptor; + this.spreader = spreader; + } + + /** + * Variadic invoker factory for: + * {@snippet lang=c : + * void TraceLog(int logLevel, const char *text, ...) + * } + */ + public static TraceLog makeInvoker(MemoryLayout... layouts) { + FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); + Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); + var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); + var spreader$ = mh$.asSpreader(Object[].class, layouts.length); + return new TraceLog(mh$, desc$, spreader$); + } + + /** + * {@return the address} + */ + public static MemorySegment address() { + return ADDR; + } + + /** + * {@return the specialized method handle} + */ + public MethodHandle handle() { + return handle; + } + + /** + * {@return the specialized descriptor} + */ + public FunctionDescriptor descriptor() { + return descriptor; + } + + public void apply(int logLevel, MemorySegment text, Object... x2) { + try { + if (TRACE_DOWNCALLS) { + traceDowncall("TraceLog", logLevel, text, x2); + } + spreader.invokeExact(logLevel, text, x2); + } catch(IllegalArgumentException | ClassCastException ex$) { + throw ex$; // rethrow IAE from passing wrong number/type of args + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + } + + private static class SetTraceLogLevel { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetTraceLogLevel"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetTraceLogLevel(int logLevel) + * } + */ + public static FunctionDescriptor SetTraceLogLevel$descriptor() { + return SetTraceLogLevel.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetTraceLogLevel(int logLevel) + * } + */ + public static MethodHandle SetTraceLogLevel$handle() { + return SetTraceLogLevel.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetTraceLogLevel(int logLevel) + * } + */ + public static MemorySegment SetTraceLogLevel$address() { + return SetTraceLogLevel.ADDR; + } + + /** + * {@snippet lang=c : + * void SetTraceLogLevel(int logLevel) + * } + */ + public static void SetTraceLogLevel(int logLevel) { + var mh$ = SetTraceLogLevel.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetTraceLogLevel", logLevel); + } + mh$.invokeExact(logLevel); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class MemAlloc { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("MemAlloc"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void *MemAlloc(unsigned int size) + * } + */ + public static FunctionDescriptor MemAlloc$descriptor() { + return MemAlloc.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void *MemAlloc(unsigned int size) + * } + */ + public static MethodHandle MemAlloc$handle() { + return MemAlloc.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void *MemAlloc(unsigned int size) + * } + */ + public static MemorySegment MemAlloc$address() { + return MemAlloc.ADDR; + } + + /** + * {@snippet lang=c : + * void *MemAlloc(unsigned int size) + * } + */ + public static MemorySegment MemAlloc(int size) { + var mh$ = MemAlloc.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("MemAlloc", size); + } + return (MemorySegment)mh$.invokeExact(size); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class MemRealloc { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("MemRealloc"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void *MemRealloc(void *ptr, unsigned int size) + * } + */ + public static FunctionDescriptor MemRealloc$descriptor() { + return MemRealloc.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void *MemRealloc(void *ptr, unsigned int size) + * } + */ + public static MethodHandle MemRealloc$handle() { + return MemRealloc.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void *MemRealloc(void *ptr, unsigned int size) + * } + */ + public static MemorySegment MemRealloc$address() { + return MemRealloc.ADDR; + } + + /** + * {@snippet lang=c : + * void *MemRealloc(void *ptr, unsigned int size) + * } + */ + public static MemorySegment MemRealloc(MemorySegment ptr, int size) { + var mh$ = MemRealloc.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("MemRealloc", ptr, size); + } + return (MemorySegment)mh$.invokeExact(ptr, size); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class MemFree { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("MemFree"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void MemFree(void *ptr) + * } + */ + public static FunctionDescriptor MemFree$descriptor() { + return MemFree.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void MemFree(void *ptr) + * } + */ + public static MethodHandle MemFree$handle() { + return MemFree.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void MemFree(void *ptr) + * } + */ + public static MemorySegment MemFree$address() { + return MemFree.ADDR; + } + + /** + * {@snippet lang=c : + * void MemFree(void *ptr) + * } + */ + public static void MemFree(MemorySegment ptr) { + var mh$ = MemFree.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("MemFree", ptr); + } + mh$.invokeExact(ptr); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetTraceLogCallback { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetTraceLogCallback"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetTraceLogCallback(TraceLogCallback callback) + * } + */ + public static FunctionDescriptor SetTraceLogCallback$descriptor() { + return SetTraceLogCallback.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetTraceLogCallback(TraceLogCallback callback) + * } + */ + public static MethodHandle SetTraceLogCallback$handle() { + return SetTraceLogCallback.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetTraceLogCallback(TraceLogCallback callback) + * } + */ + public static MemorySegment SetTraceLogCallback$address() { + return SetTraceLogCallback.ADDR; + } + + /** + * {@snippet lang=c : + * void SetTraceLogCallback(TraceLogCallback callback) + * } + */ + public static void SetTraceLogCallback(MemorySegment callback) { + var mh$ = SetTraceLogCallback.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetTraceLogCallback", callback); + } + mh$.invokeExact(callback); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetLoadFileDataCallback { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetLoadFileDataCallback"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * } + */ + public static FunctionDescriptor SetLoadFileDataCallback$descriptor() { + return SetLoadFileDataCallback.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * } + */ + public static MethodHandle SetLoadFileDataCallback$handle() { + return SetLoadFileDataCallback.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * } + */ + public static MemorySegment SetLoadFileDataCallback$address() { + return SetLoadFileDataCallback.ADDR; + } + + /** + * {@snippet lang=c : + * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * } + */ + public static void SetLoadFileDataCallback(MemorySegment callback) { + var mh$ = SetLoadFileDataCallback.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetLoadFileDataCallback", callback); + } + mh$.invokeExact(callback); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetSaveFileDataCallback { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetSaveFileDataCallback"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * } + */ + public static FunctionDescriptor SetSaveFileDataCallback$descriptor() { + return SetSaveFileDataCallback.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * } + */ + public static MethodHandle SetSaveFileDataCallback$handle() { + return SetSaveFileDataCallback.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * } + */ + public static MemorySegment SetSaveFileDataCallback$address() { + return SetSaveFileDataCallback.ADDR; + } + + /** + * {@snippet lang=c : + * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * } + */ + public static void SetSaveFileDataCallback(MemorySegment callback) { + var mh$ = SetSaveFileDataCallback.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetSaveFileDataCallback", callback); + } + mh$.invokeExact(callback); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetLoadFileTextCallback { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetLoadFileTextCallback"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * } + */ + public static FunctionDescriptor SetLoadFileTextCallback$descriptor() { + return SetLoadFileTextCallback.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * } + */ + public static MethodHandle SetLoadFileTextCallback$handle() { + return SetLoadFileTextCallback.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * } + */ + public static MemorySegment SetLoadFileTextCallback$address() { + return SetLoadFileTextCallback.ADDR; + } + + /** + * {@snippet lang=c : + * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * } + */ + public static void SetLoadFileTextCallback(MemorySegment callback) { + var mh$ = SetLoadFileTextCallback.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetLoadFileTextCallback", callback); + } + mh$.invokeExact(callback); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetSaveFileTextCallback { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetSaveFileTextCallback"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * } + */ + public static FunctionDescriptor SetSaveFileTextCallback$descriptor() { + return SetSaveFileTextCallback.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * } + */ + public static MethodHandle SetSaveFileTextCallback$handle() { + return SetSaveFileTextCallback.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * } + */ + public static MemorySegment SetSaveFileTextCallback$address() { + return SetSaveFileTextCallback.ADDR; + } + + /** + * {@snippet lang=c : + * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * } + */ + public static void SetSaveFileTextCallback(MemorySegment callback) { + var mh$ = SetSaveFileTextCallback.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetSaveFileTextCallback", callback); + } + mh$.invokeExact(callback); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadFileData { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFileData"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * } + */ + public static FunctionDescriptor LoadFileData$descriptor() { + return LoadFileData.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * } + */ + public static MethodHandle LoadFileData$handle() { + return LoadFileData.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * } + */ + public static MemorySegment LoadFileData$address() { + return LoadFileData.ADDR; + } + + /** + * {@snippet lang=c : + * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * } + */ + public static MemorySegment LoadFileData(MemorySegment fileName, MemorySegment dataSize) { + var mh$ = LoadFileData.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadFileData", fileName, dataSize); + } + return (MemorySegment)mh$.invokeExact(fileName, dataSize); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadFileData { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFileData"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadFileData(unsigned char *data) + * } + */ + public static FunctionDescriptor UnloadFileData$descriptor() { + return UnloadFileData.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadFileData(unsigned char *data) + * } + */ + public static MethodHandle UnloadFileData$handle() { + return UnloadFileData.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadFileData(unsigned char *data) + * } + */ + public static MemorySegment UnloadFileData$address() { + return UnloadFileData.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadFileData(unsigned char *data) + * } + */ + public static void UnloadFileData(MemorySegment data) { + var mh$ = UnloadFileData.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadFileData", data); + } + mh$.invokeExact(data); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SaveFileData { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SaveFileData"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool SaveFileData(const char *fileName, void *data, int dataSize) + * } + */ + public static FunctionDescriptor SaveFileData$descriptor() { + return SaveFileData.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool SaveFileData(const char *fileName, void *data, int dataSize) + * } + */ + public static MethodHandle SaveFileData$handle() { + return SaveFileData.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool SaveFileData(const char *fileName, void *data, int dataSize) + * } + */ + public static MemorySegment SaveFileData$address() { + return SaveFileData.ADDR; + } + + /** + * {@snippet lang=c : + * bool SaveFileData(const char *fileName, void *data, int dataSize) + * } + */ + public static boolean SaveFileData(MemorySegment fileName, MemorySegment data, int dataSize) { + var mh$ = SaveFileData.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SaveFileData", fileName, data, dataSize); + } + return (boolean)mh$.invokeExact(fileName, data, dataSize); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class ExportDataAsCode { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ExportDataAsCode"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * } + */ + public static FunctionDescriptor ExportDataAsCode$descriptor() { + return ExportDataAsCode.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * } + */ + public static MethodHandle ExportDataAsCode$handle() { + return ExportDataAsCode.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * } + */ + public static MemorySegment ExportDataAsCode$address() { + return ExportDataAsCode.ADDR; + } + + /** + * {@snippet lang=c : + * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * } + */ + public static boolean ExportDataAsCode(MemorySegment data, int dataSize, MemorySegment fileName) { + var mh$ = ExportDataAsCode.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ExportDataAsCode", data, dataSize, fileName); + } + return (boolean)mh$.invokeExact(data, dataSize, fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadFileText { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFileText"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * char *LoadFileText(const char *fileName) + * } + */ + public static FunctionDescriptor LoadFileText$descriptor() { + return LoadFileText.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * char *LoadFileText(const char *fileName) + * } + */ + public static MethodHandle LoadFileText$handle() { + return LoadFileText.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * char *LoadFileText(const char *fileName) + * } + */ + public static MemorySegment LoadFileText$address() { + return LoadFileText.ADDR; + } + + /** + * {@snippet lang=c : + * char *LoadFileText(const char *fileName) + * } + */ + public static MemorySegment LoadFileText(MemorySegment fileName) { + var mh$ = LoadFileText.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadFileText", fileName); + } + return (MemorySegment)mh$.invokeExact(fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadFileText { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFileText"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadFileText(char *text) + * } + */ + public static FunctionDescriptor UnloadFileText$descriptor() { + return UnloadFileText.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadFileText(char *text) + * } + */ + public static MethodHandle UnloadFileText$handle() { + return UnloadFileText.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadFileText(char *text) + * } + */ + public static MemorySegment UnloadFileText$address() { + return UnloadFileText.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadFileText(char *text) + * } + */ + public static void UnloadFileText(MemorySegment text) { + var mh$ = UnloadFileText.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadFileText", text); + } + mh$.invokeExact(text); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SaveFileText { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SaveFileText"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool SaveFileText(const char *fileName, char *text) + * } + */ + public static FunctionDescriptor SaveFileText$descriptor() { + return SaveFileText.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool SaveFileText(const char *fileName, char *text) + * } + */ + public static MethodHandle SaveFileText$handle() { + return SaveFileText.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool SaveFileText(const char *fileName, char *text) + * } + */ + public static MemorySegment SaveFileText$address() { + return SaveFileText.ADDR; + } + + /** + * {@snippet lang=c : + * bool SaveFileText(const char *fileName, char *text) + * } + */ + public static boolean SaveFileText(MemorySegment fileName, MemorySegment text) { + var mh$ = SaveFileText.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SaveFileText", fileName, text); + } + return (boolean)mh$.invokeExact(fileName, text); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class FileExists { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("FileExists"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool FileExists(const char *fileName) + * } + */ + public static FunctionDescriptor FileExists$descriptor() { + return FileExists.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool FileExists(const char *fileName) + * } + */ + public static MethodHandle FileExists$handle() { + return FileExists.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool FileExists(const char *fileName) + * } + */ + public static MemorySegment FileExists$address() { + return FileExists.ADDR; + } + + /** + * {@snippet lang=c : + * bool FileExists(const char *fileName) + * } + */ + public static boolean FileExists(MemorySegment fileName) { + var mh$ = FileExists.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("FileExists", fileName); + } + return (boolean)mh$.invokeExact(fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DirectoryExists { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DirectoryExists"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool DirectoryExists(const char *dirPath) + * } + */ + public static FunctionDescriptor DirectoryExists$descriptor() { + return DirectoryExists.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool DirectoryExists(const char *dirPath) + * } + */ + public static MethodHandle DirectoryExists$handle() { + return DirectoryExists.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool DirectoryExists(const char *dirPath) + * } + */ + public static MemorySegment DirectoryExists$address() { + return DirectoryExists.ADDR; + } + + /** + * {@snippet lang=c : + * bool DirectoryExists(const char *dirPath) + * } + */ + public static boolean DirectoryExists(MemorySegment dirPath) { + var mh$ = DirectoryExists.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DirectoryExists", dirPath); + } + return (boolean)mh$.invokeExact(dirPath); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsFileExtension { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsFileExtension"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsFileExtension(const char *fileName, const char *ext) + * } + */ + public static FunctionDescriptor IsFileExtension$descriptor() { + return IsFileExtension.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsFileExtension(const char *fileName, const char *ext) + * } + */ + public static MethodHandle IsFileExtension$handle() { + return IsFileExtension.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsFileExtension(const char *fileName, const char *ext) + * } + */ + public static MemorySegment IsFileExtension$address() { + return IsFileExtension.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsFileExtension(const char *fileName, const char *ext) + * } + */ + public static boolean IsFileExtension(MemorySegment fileName, MemorySegment ext) { + var mh$ = IsFileExtension.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsFileExtension", fileName, ext); + } + return (boolean)mh$.invokeExact(fileName, ext); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFileLength { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFileLength"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetFileLength(const char *fileName) + * } + */ + public static FunctionDescriptor GetFileLength$descriptor() { + return GetFileLength.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetFileLength(const char *fileName) + * } + */ + public static MethodHandle GetFileLength$handle() { + return GetFileLength.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetFileLength(const char *fileName) + * } + */ + public static MemorySegment GetFileLength$address() { + return GetFileLength.ADDR; + } + + /** + * {@snippet lang=c : + * int GetFileLength(const char *fileName) + * } + */ + public static int GetFileLength(MemorySegment fileName) { + var mh$ = GetFileLength.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFileLength", fileName); + } + return (int)mh$.invokeExact(fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFileExtension { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFileExtension"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetFileExtension(const char *fileName) + * } + */ + public static FunctionDescriptor GetFileExtension$descriptor() { + return GetFileExtension.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetFileExtension(const char *fileName) + * } + */ + public static MethodHandle GetFileExtension$handle() { + return GetFileExtension.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetFileExtension(const char *fileName) + * } + */ + public static MemorySegment GetFileExtension$address() { + return GetFileExtension.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetFileExtension(const char *fileName) + * } + */ + public static MemorySegment GetFileExtension(MemorySegment fileName) { + var mh$ = GetFileExtension.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFileExtension", fileName); + } + return (MemorySegment)mh$.invokeExact(fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFileName { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFileName"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetFileName(const char *filePath) + * } + */ + public static FunctionDescriptor GetFileName$descriptor() { + return GetFileName.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetFileName(const char *filePath) + * } + */ + public static MethodHandle GetFileName$handle() { + return GetFileName.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetFileName(const char *filePath) + * } + */ + public static MemorySegment GetFileName$address() { + return GetFileName.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetFileName(const char *filePath) + * } + */ + public static MemorySegment GetFileName(MemorySegment filePath) { + var mh$ = GetFileName.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFileName", filePath); + } + return (MemorySegment)mh$.invokeExact(filePath); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFileNameWithoutExt { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFileNameWithoutExt"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetFileNameWithoutExt(const char *filePath) + * } + */ + public static FunctionDescriptor GetFileNameWithoutExt$descriptor() { + return GetFileNameWithoutExt.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetFileNameWithoutExt(const char *filePath) + * } + */ + public static MethodHandle GetFileNameWithoutExt$handle() { + return GetFileNameWithoutExt.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetFileNameWithoutExt(const char *filePath) + * } + */ + public static MemorySegment GetFileNameWithoutExt$address() { + return GetFileNameWithoutExt.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetFileNameWithoutExt(const char *filePath) + * } + */ + public static MemorySegment GetFileNameWithoutExt(MemorySegment filePath) { + var mh$ = GetFileNameWithoutExt.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFileNameWithoutExt", filePath); + } + return (MemorySegment)mh$.invokeExact(filePath); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetDirectoryPath { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetDirectoryPath"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetDirectoryPath(const char *filePath) + * } + */ + public static FunctionDescriptor GetDirectoryPath$descriptor() { + return GetDirectoryPath.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetDirectoryPath(const char *filePath) + * } + */ + public static MethodHandle GetDirectoryPath$handle() { + return GetDirectoryPath.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetDirectoryPath(const char *filePath) + * } + */ + public static MemorySegment GetDirectoryPath$address() { + return GetDirectoryPath.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetDirectoryPath(const char *filePath) + * } + */ + public static MemorySegment GetDirectoryPath(MemorySegment filePath) { + var mh$ = GetDirectoryPath.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetDirectoryPath", filePath); + } + return (MemorySegment)mh$.invokeExact(filePath); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetPrevDirectoryPath { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetPrevDirectoryPath"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetPrevDirectoryPath(const char *dirPath) + * } + */ + public static FunctionDescriptor GetPrevDirectoryPath$descriptor() { + return GetPrevDirectoryPath.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetPrevDirectoryPath(const char *dirPath) + * } + */ + public static MethodHandle GetPrevDirectoryPath$handle() { + return GetPrevDirectoryPath.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetPrevDirectoryPath(const char *dirPath) + * } + */ + public static MemorySegment GetPrevDirectoryPath$address() { + return GetPrevDirectoryPath.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetPrevDirectoryPath(const char *dirPath) + * } + */ + public static MemorySegment GetPrevDirectoryPath(MemorySegment dirPath) { + var mh$ = GetPrevDirectoryPath.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetPrevDirectoryPath", dirPath); + } + return (MemorySegment)mh$.invokeExact(dirPath); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetWorkingDirectory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetWorkingDirectory"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetWorkingDirectory() + * } + */ + public static FunctionDescriptor GetWorkingDirectory$descriptor() { + return GetWorkingDirectory.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetWorkingDirectory() + * } + */ + public static MethodHandle GetWorkingDirectory$handle() { + return GetWorkingDirectory.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetWorkingDirectory() + * } + */ + public static MemorySegment GetWorkingDirectory$address() { + return GetWorkingDirectory.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetWorkingDirectory() + * } + */ + public static MemorySegment GetWorkingDirectory() { + var mh$ = GetWorkingDirectory.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetWorkingDirectory"); + } + return (MemorySegment)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetApplicationDirectory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetApplicationDirectory"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetApplicationDirectory() + * } + */ + public static FunctionDescriptor GetApplicationDirectory$descriptor() { + return GetApplicationDirectory.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetApplicationDirectory() + * } + */ + public static MethodHandle GetApplicationDirectory$handle() { + return GetApplicationDirectory.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetApplicationDirectory() + * } + */ + public static MemorySegment GetApplicationDirectory$address() { + return GetApplicationDirectory.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetApplicationDirectory() + * } + */ + public static MemorySegment GetApplicationDirectory() { + var mh$ = GetApplicationDirectory.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetApplicationDirectory"); + } + return (MemorySegment)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class ChangeDirectory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ChangeDirectory"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool ChangeDirectory(const char *dir) + * } + */ + public static FunctionDescriptor ChangeDirectory$descriptor() { + return ChangeDirectory.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool ChangeDirectory(const char *dir) + * } + */ + public static MethodHandle ChangeDirectory$handle() { + return ChangeDirectory.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool ChangeDirectory(const char *dir) + * } + */ + public static MemorySegment ChangeDirectory$address() { + return ChangeDirectory.ADDR; + } + + /** + * {@snippet lang=c : + * bool ChangeDirectory(const char *dir) + * } + */ + public static boolean ChangeDirectory(MemorySegment dir) { + var mh$ = ChangeDirectory.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ChangeDirectory", dir); + } + return (boolean)mh$.invokeExact(dir); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsPathFile { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsPathFile"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsPathFile(const char *path) + * } + */ + public static FunctionDescriptor IsPathFile$descriptor() { + return IsPathFile.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsPathFile(const char *path) + * } + */ + public static MethodHandle IsPathFile$handle() { + return IsPathFile.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsPathFile(const char *path) + * } + */ + public static MemorySegment IsPathFile$address() { + return IsPathFile.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsPathFile(const char *path) + * } + */ + public static boolean IsPathFile(MemorySegment path) { + var mh$ = IsPathFile.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsPathFile", path); + } + return (boolean)mh$.invokeExact(path); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadDirectoryFiles { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + FilePathList.layout(), + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadDirectoryFiles"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * FilePathList LoadDirectoryFiles(const char *dirPath) + * } + */ + public static FunctionDescriptor LoadDirectoryFiles$descriptor() { + return LoadDirectoryFiles.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * FilePathList LoadDirectoryFiles(const char *dirPath) + * } + */ + public static MethodHandle LoadDirectoryFiles$handle() { + return LoadDirectoryFiles.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * FilePathList LoadDirectoryFiles(const char *dirPath) + * } + */ + public static MemorySegment LoadDirectoryFiles$address() { + return LoadDirectoryFiles.ADDR; + } + + /** + * {@snippet lang=c : + * FilePathList LoadDirectoryFiles(const char *dirPath) + * } + */ + public static MemorySegment LoadDirectoryFiles(SegmentAllocator allocator, MemorySegment dirPath) { + var mh$ = LoadDirectoryFiles.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadDirectoryFiles", allocator, dirPath); + } + return (MemorySegment)mh$.invokeExact(allocator, dirPath); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadDirectoryFilesEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + FilePathList.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_BOOL + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadDirectoryFilesEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * } + */ + public static FunctionDescriptor LoadDirectoryFilesEx$descriptor() { + return LoadDirectoryFilesEx.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * } + */ + public static MethodHandle LoadDirectoryFilesEx$handle() { + return LoadDirectoryFilesEx.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * } + */ + public static MemorySegment LoadDirectoryFilesEx$address() { + return LoadDirectoryFilesEx.ADDR; + } + + /** + * {@snippet lang=c : + * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * } + */ + public static MemorySegment LoadDirectoryFilesEx(SegmentAllocator allocator, MemorySegment basePath, MemorySegment filter, boolean scanSubdirs) { + var mh$ = LoadDirectoryFilesEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadDirectoryFilesEx", allocator, basePath, filter, scanSubdirs); + } + return (MemorySegment)mh$.invokeExact(allocator, basePath, filter, scanSubdirs); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadDirectoryFiles { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + FilePathList.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadDirectoryFiles"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadDirectoryFiles(FilePathList files) + * } + */ + public static FunctionDescriptor UnloadDirectoryFiles$descriptor() { + return UnloadDirectoryFiles.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadDirectoryFiles(FilePathList files) + * } + */ + public static MethodHandle UnloadDirectoryFiles$handle() { + return UnloadDirectoryFiles.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadDirectoryFiles(FilePathList files) + * } + */ + public static MemorySegment UnloadDirectoryFiles$address() { + return UnloadDirectoryFiles.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadDirectoryFiles(FilePathList files) + * } + */ + public static void UnloadDirectoryFiles(MemorySegment files) { + var mh$ = UnloadDirectoryFiles.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadDirectoryFiles", files); + } + mh$.invokeExact(files); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsFileDropped { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsFileDropped"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsFileDropped() + * } + */ + public static FunctionDescriptor IsFileDropped$descriptor() { + return IsFileDropped.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsFileDropped() + * } + */ + public static MethodHandle IsFileDropped$handle() { + return IsFileDropped.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsFileDropped() + * } + */ + public static MemorySegment IsFileDropped$address() { + return IsFileDropped.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsFileDropped() + * } + */ + public static boolean IsFileDropped() { + var mh$ = IsFileDropped.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsFileDropped"); + } + return (boolean)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadDroppedFiles { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + FilePathList.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadDroppedFiles"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * FilePathList LoadDroppedFiles() + * } + */ + public static FunctionDescriptor LoadDroppedFiles$descriptor() { + return LoadDroppedFiles.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * FilePathList LoadDroppedFiles() + * } + */ + public static MethodHandle LoadDroppedFiles$handle() { + return LoadDroppedFiles.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * FilePathList LoadDroppedFiles() + * } + */ + public static MemorySegment LoadDroppedFiles$address() { + return LoadDroppedFiles.ADDR; + } + + /** + * {@snippet lang=c : + * FilePathList LoadDroppedFiles() + * } + */ + public static MemorySegment LoadDroppedFiles(SegmentAllocator allocator) { + var mh$ = LoadDroppedFiles.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadDroppedFiles", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadDroppedFiles { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + FilePathList.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadDroppedFiles"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadDroppedFiles(FilePathList files) + * } + */ + public static FunctionDescriptor UnloadDroppedFiles$descriptor() { + return UnloadDroppedFiles.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadDroppedFiles(FilePathList files) + * } + */ + public static MethodHandle UnloadDroppedFiles$handle() { + return UnloadDroppedFiles.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadDroppedFiles(FilePathList files) + * } + */ + public static MemorySegment UnloadDroppedFiles$address() { + return UnloadDroppedFiles.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadDroppedFiles(FilePathList files) + * } + */ + public static void UnloadDroppedFiles(MemorySegment files) { + var mh$ = UnloadDroppedFiles.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadDroppedFiles", files); + } + mh$.invokeExact(files); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetFileModTime { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_LONG, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetFileModTime"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * long GetFileModTime(const char *fileName) + * } + */ + public static FunctionDescriptor GetFileModTime$descriptor() { + return GetFileModTime.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * long GetFileModTime(const char *fileName) + * } + */ + public static MethodHandle GetFileModTime$handle() { + return GetFileModTime.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * long GetFileModTime(const char *fileName) + * } + */ + public static MemorySegment GetFileModTime$address() { + return GetFileModTime.ADDR; + } + + /** + * {@snippet lang=c : + * long GetFileModTime(const char *fileName) + * } + */ + public static long GetFileModTime(MemorySegment fileName) { + var mh$ = GetFileModTime.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetFileModTime", fileName); + } + return (long)mh$.invokeExact(fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class CompressData { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("CompressData"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * } + */ + public static FunctionDescriptor CompressData$descriptor() { + return CompressData.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * } + */ + public static MethodHandle CompressData$handle() { + return CompressData.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * } + */ + public static MemorySegment CompressData$address() { + return CompressData.ADDR; + } + + /** + * {@snippet lang=c : + * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * } + */ + public static MemorySegment CompressData(MemorySegment data, int dataSize, MemorySegment compDataSize) { + var mh$ = CompressData.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("CompressData", data, dataSize, compDataSize); + } + return (MemorySegment)mh$.invokeExact(data, dataSize, compDataSize); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DecompressData { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DecompressData"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * } + */ + public static FunctionDescriptor DecompressData$descriptor() { + return DecompressData.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * } + */ + public static MethodHandle DecompressData$handle() { + return DecompressData.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * } + */ + public static MemorySegment DecompressData$address() { + return DecompressData.ADDR; + } + + /** + * {@snippet lang=c : + * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * } + */ + public static MemorySegment DecompressData(MemorySegment compData, int compDataSize, MemorySegment dataSize) { + var mh$ = DecompressData.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DecompressData", compData, compDataSize, dataSize); + } + return (MemorySegment)mh$.invokeExact(compData, compDataSize, dataSize); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class EncodeDataBase64 { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("EncodeDataBase64"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * } + */ + public static FunctionDescriptor EncodeDataBase64$descriptor() { + return EncodeDataBase64.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * } + */ + public static MethodHandle EncodeDataBase64$handle() { + return EncodeDataBase64.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * } + */ + public static MemorySegment EncodeDataBase64$address() { + return EncodeDataBase64.ADDR; + } + + /** + * {@snippet lang=c : + * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * } + */ + public static MemorySegment EncodeDataBase64(MemorySegment data, int dataSize, MemorySegment outputSize) { + var mh$ = EncodeDataBase64.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("EncodeDataBase64", data, dataSize, outputSize); + } + return (MemorySegment)mh$.invokeExact(data, dataSize, outputSize); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DecodeDataBase64 { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DecodeDataBase64"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * } + */ + public static FunctionDescriptor DecodeDataBase64$descriptor() { + return DecodeDataBase64.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * } + */ + public static MethodHandle DecodeDataBase64$handle() { + return DecodeDataBase64.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * } + */ + public static MemorySegment DecodeDataBase64$address() { + return DecodeDataBase64.ADDR; + } + + /** + * {@snippet lang=c : + * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * } + */ + public static MemorySegment DecodeDataBase64(MemorySegment data, MemorySegment outputSize) { + var mh$ = DecodeDataBase64.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DecodeDataBase64", data, outputSize); + } + return (MemorySegment)mh$.invokeExact(data, outputSize); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class LoadAutomationEventList { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + AutomationEventList.layout(), + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("LoadAutomationEventList"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * AutomationEventList LoadAutomationEventList(const char *fileName) + * } + */ + public static FunctionDescriptor LoadAutomationEventList$descriptor() { + return LoadAutomationEventList.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * AutomationEventList LoadAutomationEventList(const char *fileName) + * } + */ + public static MethodHandle LoadAutomationEventList$handle() { + return LoadAutomationEventList.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * AutomationEventList LoadAutomationEventList(const char *fileName) + * } + */ + public static MemorySegment LoadAutomationEventList$address() { + return LoadAutomationEventList.ADDR; + } + + /** + * {@snippet lang=c : + * AutomationEventList LoadAutomationEventList(const char *fileName) + * } + */ + public static MemorySegment LoadAutomationEventList(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadAutomationEventList.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("LoadAutomationEventList", allocator, fileName); + } + return (MemorySegment)mh$.invokeExact(allocator, fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UnloadAutomationEventList { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + AutomationEventList.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadAutomationEventList"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UnloadAutomationEventList(AutomationEventList list) + * } + */ + public static FunctionDescriptor UnloadAutomationEventList$descriptor() { + return UnloadAutomationEventList.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UnloadAutomationEventList(AutomationEventList list) + * } + */ + public static MethodHandle UnloadAutomationEventList$handle() { + return UnloadAutomationEventList.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UnloadAutomationEventList(AutomationEventList list) + * } + */ + public static MemorySegment UnloadAutomationEventList$address() { + return UnloadAutomationEventList.ADDR; + } + + /** + * {@snippet lang=c : + * void UnloadAutomationEventList(AutomationEventList list) + * } + */ + public static void UnloadAutomationEventList(MemorySegment list) { + var mh$ = UnloadAutomationEventList.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UnloadAutomationEventList", list); + } + mh$.invokeExact(list); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class ExportAutomationEventList { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + AutomationEventList.layout(), + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("ExportAutomationEventList"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * } + */ + public static FunctionDescriptor ExportAutomationEventList$descriptor() { + return ExportAutomationEventList.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * } + */ + public static MethodHandle ExportAutomationEventList$handle() { + return ExportAutomationEventList.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * } + */ + public static MemorySegment ExportAutomationEventList$address() { + return ExportAutomationEventList.ADDR; + } + + /** + * {@snippet lang=c : + * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * } + */ + public static boolean ExportAutomationEventList(MemorySegment list, MemorySegment fileName) { + var mh$ = ExportAutomationEventList.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("ExportAutomationEventList", list, fileName); + } + return (boolean)mh$.invokeExact(list, fileName); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetAutomationEventList { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetAutomationEventList"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetAutomationEventList(AutomationEventList *list) + * } + */ + public static FunctionDescriptor SetAutomationEventList$descriptor() { + return SetAutomationEventList.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetAutomationEventList(AutomationEventList *list) + * } + */ + public static MethodHandle SetAutomationEventList$handle() { + return SetAutomationEventList.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetAutomationEventList(AutomationEventList *list) + * } + */ + public static MemorySegment SetAutomationEventList$address() { + return SetAutomationEventList.ADDR; + } + + /** + * {@snippet lang=c : + * void SetAutomationEventList(AutomationEventList *list) + * } + */ + public static void SetAutomationEventList(MemorySegment list) { + var mh$ = SetAutomationEventList.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetAutomationEventList", list); + } + mh$.invokeExact(list); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetAutomationEventBaseFrame { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetAutomationEventBaseFrame"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetAutomationEventBaseFrame(int frame) + * } + */ + public static FunctionDescriptor SetAutomationEventBaseFrame$descriptor() { + return SetAutomationEventBaseFrame.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetAutomationEventBaseFrame(int frame) + * } + */ + public static MethodHandle SetAutomationEventBaseFrame$handle() { + return SetAutomationEventBaseFrame.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetAutomationEventBaseFrame(int frame) + * } + */ + public static MemorySegment SetAutomationEventBaseFrame$address() { + return SetAutomationEventBaseFrame.ADDR; + } + + /** + * {@snippet lang=c : + * void SetAutomationEventBaseFrame(int frame) + * } + */ + public static void SetAutomationEventBaseFrame(int frame) { + var mh$ = SetAutomationEventBaseFrame.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetAutomationEventBaseFrame", frame); + } + mh$.invokeExact(frame); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class StartAutomationEventRecording { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("StartAutomationEventRecording"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void StartAutomationEventRecording() + * } + */ + public static FunctionDescriptor StartAutomationEventRecording$descriptor() { + return StartAutomationEventRecording.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void StartAutomationEventRecording() + * } + */ + public static MethodHandle StartAutomationEventRecording$handle() { + return StartAutomationEventRecording.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void StartAutomationEventRecording() + * } + */ + public static MemorySegment StartAutomationEventRecording$address() { + return StartAutomationEventRecording.ADDR; + } + + /** + * {@snippet lang=c : + * void StartAutomationEventRecording() + * } + */ + public static void StartAutomationEventRecording() { + var mh$ = StartAutomationEventRecording.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("StartAutomationEventRecording"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class StopAutomationEventRecording { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + + public static final MemorySegment ADDR = raylib.findOrThrow("StopAutomationEventRecording"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void StopAutomationEventRecording() + * } + */ + public static FunctionDescriptor StopAutomationEventRecording$descriptor() { + return StopAutomationEventRecording.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void StopAutomationEventRecording() + * } + */ + public static MethodHandle StopAutomationEventRecording$handle() { + return StopAutomationEventRecording.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void StopAutomationEventRecording() + * } + */ + public static MemorySegment StopAutomationEventRecording$address() { + return StopAutomationEventRecording.ADDR; + } + + /** + * {@snippet lang=c : + * void StopAutomationEventRecording() + * } + */ + public static void StopAutomationEventRecording() { + var mh$ = StopAutomationEventRecording.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("StopAutomationEventRecording"); + } + mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class PlayAutomationEvent { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + AutomationEvent.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("PlayAutomationEvent"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void PlayAutomationEvent(AutomationEvent event) + * } + */ + public static FunctionDescriptor PlayAutomationEvent$descriptor() { + return PlayAutomationEvent.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void PlayAutomationEvent(AutomationEvent event) + * } + */ + public static MethodHandle PlayAutomationEvent$handle() { + return PlayAutomationEvent.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void PlayAutomationEvent(AutomationEvent event) + * } + */ + public static MemorySegment PlayAutomationEvent$address() { + return PlayAutomationEvent.ADDR; + } + + /** + * {@snippet lang=c : + * void PlayAutomationEvent(AutomationEvent event) + * } + */ + public static void PlayAutomationEvent(MemorySegment event) { + var mh$ = PlayAutomationEvent.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("PlayAutomationEvent", event); + } + mh$.invokeExact(event); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsKeyPressed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyPressed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsKeyPressed(int key) + * } + */ + public static FunctionDescriptor IsKeyPressed$descriptor() { + return IsKeyPressed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsKeyPressed(int key) + * } + */ + public static MethodHandle IsKeyPressed$handle() { + return IsKeyPressed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsKeyPressed(int key) + * } + */ + public static MemorySegment IsKeyPressed$address() { + return IsKeyPressed.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsKeyPressed(int key) + * } + */ + public static boolean IsKeyPressed(int key) { + var mh$ = IsKeyPressed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsKeyPressed", key); + } + return (boolean)mh$.invokeExact(key); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsKeyPressedRepeat { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyPressedRepeat"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsKeyPressedRepeat(int key) + * } + */ + public static FunctionDescriptor IsKeyPressedRepeat$descriptor() { + return IsKeyPressedRepeat.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsKeyPressedRepeat(int key) + * } + */ + public static MethodHandle IsKeyPressedRepeat$handle() { + return IsKeyPressedRepeat.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsKeyPressedRepeat(int key) + * } + */ + public static MemorySegment IsKeyPressedRepeat$address() { + return IsKeyPressedRepeat.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsKeyPressedRepeat(int key) + * } + */ + public static boolean IsKeyPressedRepeat(int key) { + var mh$ = IsKeyPressedRepeat.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsKeyPressedRepeat", key); + } + return (boolean)mh$.invokeExact(key); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsKeyDown { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyDown"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsKeyDown(int key) + * } + */ + public static FunctionDescriptor IsKeyDown$descriptor() { + return IsKeyDown.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsKeyDown(int key) + * } + */ + public static MethodHandle IsKeyDown$handle() { + return IsKeyDown.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsKeyDown(int key) + * } + */ + public static MemorySegment IsKeyDown$address() { + return IsKeyDown.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsKeyDown(int key) + * } + */ + public static boolean IsKeyDown(int key) { + var mh$ = IsKeyDown.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsKeyDown", key); + } + return (boolean)mh$.invokeExact(key); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsKeyReleased { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyReleased"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsKeyReleased(int key) + * } + */ + public static FunctionDescriptor IsKeyReleased$descriptor() { + return IsKeyReleased.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsKeyReleased(int key) + * } + */ + public static MethodHandle IsKeyReleased$handle() { + return IsKeyReleased.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsKeyReleased(int key) + * } + */ + public static MemorySegment IsKeyReleased$address() { + return IsKeyReleased.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsKeyReleased(int key) + * } + */ + public static boolean IsKeyReleased(int key) { + var mh$ = IsKeyReleased.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsKeyReleased", key); + } + return (boolean)mh$.invokeExact(key); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsKeyUp { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyUp"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsKeyUp(int key) + * } + */ + public static FunctionDescriptor IsKeyUp$descriptor() { + return IsKeyUp.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsKeyUp(int key) + * } + */ + public static MethodHandle IsKeyUp$handle() { + return IsKeyUp.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsKeyUp(int key) + * } + */ + public static MemorySegment IsKeyUp$address() { + return IsKeyUp.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsKeyUp(int key) + * } + */ + public static boolean IsKeyUp(int key) { + var mh$ = IsKeyUp.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsKeyUp", key); + } + return (boolean)mh$.invokeExact(key); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetKeyPressed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetKeyPressed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetKeyPressed() + * } + */ + public static FunctionDescriptor GetKeyPressed$descriptor() { + return GetKeyPressed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetKeyPressed() + * } + */ + public static MethodHandle GetKeyPressed$handle() { + return GetKeyPressed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetKeyPressed() + * } + */ + public static MemorySegment GetKeyPressed$address() { + return GetKeyPressed.ADDR; + } + + /** + * {@snippet lang=c : + * int GetKeyPressed() + * } + */ + public static int GetKeyPressed() { + var mh$ = GetKeyPressed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetKeyPressed"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetCharPressed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetCharPressed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetCharPressed() + * } + */ + public static FunctionDescriptor GetCharPressed$descriptor() { + return GetCharPressed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetCharPressed() + * } + */ + public static MethodHandle GetCharPressed$handle() { + return GetCharPressed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetCharPressed() + * } + */ + public static MemorySegment GetCharPressed$address() { + return GetCharPressed.ADDR; + } + + /** + * {@snippet lang=c : + * int GetCharPressed() + * } + */ + public static int GetCharPressed() { + var mh$ = GetCharPressed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetCharPressed"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetExitKey { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetExitKey"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetExitKey(int key) + * } + */ + public static FunctionDescriptor SetExitKey$descriptor() { + return SetExitKey.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetExitKey(int key) + * } + */ + public static MethodHandle SetExitKey$handle() { + return SetExitKey.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetExitKey(int key) + * } + */ + public static MemorySegment SetExitKey$address() { + return SetExitKey.ADDR; + } + + /** + * {@snippet lang=c : + * void SetExitKey(int key) + * } + */ + public static void SetExitKey(int key) { + var mh$ = SetExitKey.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetExitKey", key); + } + mh$.invokeExact(key); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsGamepadAvailable { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadAvailable"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsGamepadAvailable(int gamepad) + * } + */ + public static FunctionDescriptor IsGamepadAvailable$descriptor() { + return IsGamepadAvailable.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsGamepadAvailable(int gamepad) + * } + */ + public static MethodHandle IsGamepadAvailable$handle() { + return IsGamepadAvailable.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsGamepadAvailable(int gamepad) + * } + */ + public static MemorySegment IsGamepadAvailable$address() { + return IsGamepadAvailable.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsGamepadAvailable(int gamepad) + * } + */ + public static boolean IsGamepadAvailable(int gamepad) { + var mh$ = IsGamepadAvailable.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsGamepadAvailable", gamepad); + } + return (boolean)mh$.invokeExact(gamepad); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGamepadName { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadName"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * const char *GetGamepadName(int gamepad) + * } + */ + public static FunctionDescriptor GetGamepadName$descriptor() { + return GetGamepadName.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * const char *GetGamepadName(int gamepad) + * } + */ + public static MethodHandle GetGamepadName$handle() { + return GetGamepadName.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * const char *GetGamepadName(int gamepad) + * } + */ + public static MemorySegment GetGamepadName$address() { + return GetGamepadName.ADDR; + } + + /** + * {@snippet lang=c : + * const char *GetGamepadName(int gamepad) + * } + */ + public static MemorySegment GetGamepadName(int gamepad) { + var mh$ = GetGamepadName.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGamepadName", gamepad); + } + return (MemorySegment)mh$.invokeExact(gamepad); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsGamepadButtonPressed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonPressed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsGamepadButtonPressed(int gamepad, int button) + * } + */ + public static FunctionDescriptor IsGamepadButtonPressed$descriptor() { + return IsGamepadButtonPressed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsGamepadButtonPressed(int gamepad, int button) + * } + */ + public static MethodHandle IsGamepadButtonPressed$handle() { + return IsGamepadButtonPressed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsGamepadButtonPressed(int gamepad, int button) + * } + */ + public static MemorySegment IsGamepadButtonPressed$address() { + return IsGamepadButtonPressed.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsGamepadButtonPressed(int gamepad, int button) + * } + */ + public static boolean IsGamepadButtonPressed(int gamepad, int button) { + var mh$ = IsGamepadButtonPressed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsGamepadButtonPressed", gamepad, button); + } + return (boolean)mh$.invokeExact(gamepad, button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsGamepadButtonDown { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonDown"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsGamepadButtonDown(int gamepad, int button) + * } + */ + public static FunctionDescriptor IsGamepadButtonDown$descriptor() { + return IsGamepadButtonDown.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsGamepadButtonDown(int gamepad, int button) + * } + */ + public static MethodHandle IsGamepadButtonDown$handle() { + return IsGamepadButtonDown.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsGamepadButtonDown(int gamepad, int button) + * } + */ + public static MemorySegment IsGamepadButtonDown$address() { + return IsGamepadButtonDown.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsGamepadButtonDown(int gamepad, int button) + * } + */ + public static boolean IsGamepadButtonDown(int gamepad, int button) { + var mh$ = IsGamepadButtonDown.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsGamepadButtonDown", gamepad, button); + } + return (boolean)mh$.invokeExact(gamepad, button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsGamepadButtonReleased { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonReleased"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsGamepadButtonReleased(int gamepad, int button) + * } + */ + public static FunctionDescriptor IsGamepadButtonReleased$descriptor() { + return IsGamepadButtonReleased.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsGamepadButtonReleased(int gamepad, int button) + * } + */ + public static MethodHandle IsGamepadButtonReleased$handle() { + return IsGamepadButtonReleased.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsGamepadButtonReleased(int gamepad, int button) + * } + */ + public static MemorySegment IsGamepadButtonReleased$address() { + return IsGamepadButtonReleased.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsGamepadButtonReleased(int gamepad, int button) + * } + */ + public static boolean IsGamepadButtonReleased(int gamepad, int button) { + var mh$ = IsGamepadButtonReleased.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsGamepadButtonReleased", gamepad, button); + } + return (boolean)mh$.invokeExact(gamepad, button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsGamepadButtonUp { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonUp"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsGamepadButtonUp(int gamepad, int button) + * } + */ + public static FunctionDescriptor IsGamepadButtonUp$descriptor() { + return IsGamepadButtonUp.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsGamepadButtonUp(int gamepad, int button) + * } + */ + public static MethodHandle IsGamepadButtonUp$handle() { + return IsGamepadButtonUp.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsGamepadButtonUp(int gamepad, int button) + * } + */ + public static MemorySegment IsGamepadButtonUp$address() { + return IsGamepadButtonUp.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsGamepadButtonUp(int gamepad, int button) + * } + */ + public static boolean IsGamepadButtonUp(int gamepad, int button) { + var mh$ = IsGamepadButtonUp.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsGamepadButtonUp", gamepad, button); + } + return (boolean)mh$.invokeExact(gamepad, button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGamepadButtonPressed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadButtonPressed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetGamepadButtonPressed() + * } + */ + public static FunctionDescriptor GetGamepadButtonPressed$descriptor() { + return GetGamepadButtonPressed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetGamepadButtonPressed() + * } + */ + public static MethodHandle GetGamepadButtonPressed$handle() { + return GetGamepadButtonPressed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetGamepadButtonPressed() + * } + */ + public static MemorySegment GetGamepadButtonPressed$address() { + return GetGamepadButtonPressed.ADDR; + } + + /** + * {@snippet lang=c : + * int GetGamepadButtonPressed() + * } + */ + public static int GetGamepadButtonPressed() { + var mh$ = GetGamepadButtonPressed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGamepadButtonPressed"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGamepadAxisCount { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadAxisCount"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetGamepadAxisCount(int gamepad) + * } + */ + public static FunctionDescriptor GetGamepadAxisCount$descriptor() { + return GetGamepadAxisCount.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetGamepadAxisCount(int gamepad) + * } + */ + public static MethodHandle GetGamepadAxisCount$handle() { + return GetGamepadAxisCount.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetGamepadAxisCount(int gamepad) + * } + */ + public static MemorySegment GetGamepadAxisCount$address() { + return GetGamepadAxisCount.ADDR; + } + + /** + * {@snippet lang=c : + * int GetGamepadAxisCount(int gamepad) + * } + */ + public static int GetGamepadAxisCount(int gamepad) { + var mh$ = GetGamepadAxisCount.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGamepadAxisCount", gamepad); + } + return (int)mh$.invokeExact(gamepad); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGamepadAxisMovement { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadAxisMovement"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * float GetGamepadAxisMovement(int gamepad, int axis) + * } + */ + public static FunctionDescriptor GetGamepadAxisMovement$descriptor() { + return GetGamepadAxisMovement.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * float GetGamepadAxisMovement(int gamepad, int axis) + * } + */ + public static MethodHandle GetGamepadAxisMovement$handle() { + return GetGamepadAxisMovement.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * float GetGamepadAxisMovement(int gamepad, int axis) + * } + */ + public static MemorySegment GetGamepadAxisMovement$address() { + return GetGamepadAxisMovement.ADDR; + } + + /** + * {@snippet lang=c : + * float GetGamepadAxisMovement(int gamepad, int axis) + * } + */ + public static float GetGamepadAxisMovement(int gamepad, int axis) { + var mh$ = GetGamepadAxisMovement.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGamepadAxisMovement", gamepad, axis); + } + return (float)mh$.invokeExact(gamepad, axis); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetGamepadMappings { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetGamepadMappings"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int SetGamepadMappings(const char *mappings) + * } + */ + public static FunctionDescriptor SetGamepadMappings$descriptor() { + return SetGamepadMappings.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int SetGamepadMappings(const char *mappings) + * } + */ + public static MethodHandle SetGamepadMappings$handle() { + return SetGamepadMappings.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int SetGamepadMappings(const char *mappings) + * } + */ + public static MemorySegment SetGamepadMappings$address() { + return SetGamepadMappings.ADDR; + } + + /** + * {@snippet lang=c : + * int SetGamepadMappings(const char *mappings) + * } + */ + public static int SetGamepadMappings(MemorySegment mappings) { + var mh$ = SetGamepadMappings.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetGamepadMappings", mappings); + } + return (int)mh$.invokeExact(mappings); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetGamepadVibration { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_FLOAT, + raylib.C_FLOAT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetGamepadVibration"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * } + */ + public static FunctionDescriptor SetGamepadVibration$descriptor() { + return SetGamepadVibration.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * } + */ + public static MethodHandle SetGamepadVibration$handle() { + return SetGamepadVibration.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * } + */ + public static MemorySegment SetGamepadVibration$address() { + return SetGamepadVibration.ADDR; + } + + /** + * {@snippet lang=c : + * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * } + */ + public static void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) { + var mh$ = SetGamepadVibration.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetGamepadVibration", gamepad, leftMotor, rightMotor); + } + mh$.invokeExact(gamepad, leftMotor, rightMotor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsMouseButtonPressed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonPressed"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsMouseButtonPressed(int button) + * } + */ + public static FunctionDescriptor IsMouseButtonPressed$descriptor() { + return IsMouseButtonPressed.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsMouseButtonPressed(int button) + * } + */ + public static MethodHandle IsMouseButtonPressed$handle() { + return IsMouseButtonPressed.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsMouseButtonPressed(int button) + * } + */ + public static MemorySegment IsMouseButtonPressed$address() { + return IsMouseButtonPressed.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsMouseButtonPressed(int button) + * } + */ + public static boolean IsMouseButtonPressed(int button) { + var mh$ = IsMouseButtonPressed.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsMouseButtonPressed", button); + } + return (boolean)mh$.invokeExact(button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsMouseButtonDown { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonDown"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsMouseButtonDown(int button) + * } + */ + public static FunctionDescriptor IsMouseButtonDown$descriptor() { + return IsMouseButtonDown.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsMouseButtonDown(int button) + * } + */ + public static MethodHandle IsMouseButtonDown$handle() { + return IsMouseButtonDown.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsMouseButtonDown(int button) + * } + */ + public static MemorySegment IsMouseButtonDown$address() { + return IsMouseButtonDown.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsMouseButtonDown(int button) + * } + */ + public static boolean IsMouseButtonDown(int button) { + var mh$ = IsMouseButtonDown.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsMouseButtonDown", button); + } + return (boolean)mh$.invokeExact(button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsMouseButtonReleased { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonReleased"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsMouseButtonReleased(int button) + * } + */ + public static FunctionDescriptor IsMouseButtonReleased$descriptor() { + return IsMouseButtonReleased.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsMouseButtonReleased(int button) + * } + */ + public static MethodHandle IsMouseButtonReleased$handle() { + return IsMouseButtonReleased.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsMouseButtonReleased(int button) + * } + */ + public static MemorySegment IsMouseButtonReleased$address() { + return IsMouseButtonReleased.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsMouseButtonReleased(int button) + * } + */ + public static boolean IsMouseButtonReleased(int button) { + var mh$ = IsMouseButtonReleased.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsMouseButtonReleased", button); + } + return (boolean)mh$.invokeExact(button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsMouseButtonUp { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonUp"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsMouseButtonUp(int button) + * } + */ + public static FunctionDescriptor IsMouseButtonUp$descriptor() { + return IsMouseButtonUp.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsMouseButtonUp(int button) + * } + */ + public static MethodHandle IsMouseButtonUp$handle() { + return IsMouseButtonUp.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsMouseButtonUp(int button) + * } + */ + public static MemorySegment IsMouseButtonUp$address() { + return IsMouseButtonUp.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsMouseButtonUp(int button) + * } + */ + public static boolean IsMouseButtonUp(int button) { + var mh$ = IsMouseButtonUp.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsMouseButtonUp", button); + } + return (boolean)mh$.invokeExact(button); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMouseX { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseX"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMouseX() + * } + */ + public static FunctionDescriptor GetMouseX$descriptor() { + return GetMouseX.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMouseX() + * } + */ + public static MethodHandle GetMouseX$handle() { + return GetMouseX.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMouseX() + * } + */ + public static MemorySegment GetMouseX$address() { + return GetMouseX.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMouseX() + * } + */ + public static int GetMouseX() { + var mh$ = GetMouseX.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMouseX"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMouseY { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseY"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetMouseY() + * } + */ + public static FunctionDescriptor GetMouseY$descriptor() { + return GetMouseY.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetMouseY() + * } + */ + public static MethodHandle GetMouseY$handle() { + return GetMouseY.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetMouseY() + * } + */ + public static MemorySegment GetMouseY$address() { + return GetMouseY.ADDR; + } + + /** + * {@snippet lang=c : + * int GetMouseY() + * } + */ + public static int GetMouseY() { + var mh$ = GetMouseY.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMouseY"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMousePosition { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMousePosition"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetMousePosition() + * } + */ + public static FunctionDescriptor GetMousePosition$descriptor() { + return GetMousePosition.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetMousePosition() + * } + */ + public static MethodHandle GetMousePosition$handle() { + return GetMousePosition.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetMousePosition() + * } + */ + public static MemorySegment GetMousePosition$address() { + return GetMousePosition.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetMousePosition() + * } + */ + public static MemorySegment GetMousePosition(SegmentAllocator allocator) { + var mh$ = GetMousePosition.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMousePosition", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMouseDelta { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseDelta"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetMouseDelta() + * } + */ + public static FunctionDescriptor GetMouseDelta$descriptor() { + return GetMouseDelta.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetMouseDelta() + * } + */ + public static MethodHandle GetMouseDelta$handle() { + return GetMouseDelta.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetMouseDelta() + * } + */ + public static MemorySegment GetMouseDelta$address() { + return GetMouseDelta.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetMouseDelta() + * } + */ + public static MemorySegment GetMouseDelta(SegmentAllocator allocator) { + var mh$ = GetMouseDelta.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMouseDelta", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetMousePosition { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetMousePosition"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetMousePosition(int x, int y) + * } + */ + public static FunctionDescriptor SetMousePosition$descriptor() { + return SetMousePosition.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetMousePosition(int x, int y) + * } + */ + public static MethodHandle SetMousePosition$handle() { + return SetMousePosition.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetMousePosition(int x, int y) + * } + */ + public static MemorySegment SetMousePosition$address() { + return SetMousePosition.ADDR; + } + + /** + * {@snippet lang=c : + * void SetMousePosition(int x, int y) + * } + */ + public static void SetMousePosition(int x, int y) { + var mh$ = SetMousePosition.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetMousePosition", x, y); + } + mh$.invokeExact(x, y); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetMouseOffset { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetMouseOffset"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetMouseOffset(int offsetX, int offsetY) + * } + */ + public static FunctionDescriptor SetMouseOffset$descriptor() { + return SetMouseOffset.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetMouseOffset(int offsetX, int offsetY) + * } + */ + public static MethodHandle SetMouseOffset$handle() { + return SetMouseOffset.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetMouseOffset(int offsetX, int offsetY) + * } + */ + public static MemorySegment SetMouseOffset$address() { + return SetMouseOffset.ADDR; + } + + /** + * {@snippet lang=c : + * void SetMouseOffset(int offsetX, int offsetY) + * } + */ + public static void SetMouseOffset(int offsetX, int offsetY) { + var mh$ = SetMouseOffset.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetMouseOffset", offsetX, offsetY); + } + mh$.invokeExact(offsetX, offsetY); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetMouseScale { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_FLOAT, + raylib.C_FLOAT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetMouseScale"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetMouseScale(float scaleX, float scaleY) + * } + */ + public static FunctionDescriptor SetMouseScale$descriptor() { + return SetMouseScale.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetMouseScale(float scaleX, float scaleY) + * } + */ + public static MethodHandle SetMouseScale$handle() { + return SetMouseScale.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetMouseScale(float scaleX, float scaleY) + * } + */ + public static MemorySegment SetMouseScale$address() { + return SetMouseScale.ADDR; + } + + /** + * {@snippet lang=c : + * void SetMouseScale(float scaleX, float scaleY) + * } + */ + public static void SetMouseScale(float scaleX, float scaleY) { + var mh$ = SetMouseScale.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetMouseScale", scaleX, scaleY); + } + mh$.invokeExact(scaleX, scaleY); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMouseWheelMove { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseWheelMove"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * float GetMouseWheelMove() + * } + */ + public static FunctionDescriptor GetMouseWheelMove$descriptor() { + return GetMouseWheelMove.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * float GetMouseWheelMove() + * } + */ + public static MethodHandle GetMouseWheelMove$handle() { + return GetMouseWheelMove.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * float GetMouseWheelMove() + * } + */ + public static MemorySegment GetMouseWheelMove$address() { + return GetMouseWheelMove.ADDR; + } + + /** + * {@snippet lang=c : + * float GetMouseWheelMove() + * } + */ + public static float GetMouseWheelMove() { + var mh$ = GetMouseWheelMove.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMouseWheelMove"); + } + return (float)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetMouseWheelMoveV { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseWheelMoveV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetMouseWheelMoveV() + * } + */ + public static FunctionDescriptor GetMouseWheelMoveV$descriptor() { + return GetMouseWheelMoveV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetMouseWheelMoveV() + * } + */ + public static MethodHandle GetMouseWheelMoveV$handle() { + return GetMouseWheelMoveV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetMouseWheelMoveV() + * } + */ + public static MemorySegment GetMouseWheelMoveV$address() { + return GetMouseWheelMoveV.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetMouseWheelMoveV() + * } + */ + public static MemorySegment GetMouseWheelMoveV(SegmentAllocator allocator) { + var mh$ = GetMouseWheelMoveV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetMouseWheelMoveV", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetMouseCursor { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetMouseCursor"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetMouseCursor(int cursor) + * } + */ + public static FunctionDescriptor SetMouseCursor$descriptor() { + return SetMouseCursor.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetMouseCursor(int cursor) + * } + */ + public static MethodHandle SetMouseCursor$handle() { + return SetMouseCursor.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetMouseCursor(int cursor) + * } + */ + public static MemorySegment SetMouseCursor$address() { + return SetMouseCursor.ADDR; + } + + /** + * {@snippet lang=c : + * void SetMouseCursor(int cursor) + * } + */ + public static void SetMouseCursor(int cursor) { + var mh$ = SetMouseCursor.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetMouseCursor", cursor); + } + mh$.invokeExact(cursor); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTouchX { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchX"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetTouchX() + * } + */ + public static FunctionDescriptor GetTouchX$descriptor() { + return GetTouchX.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetTouchX() + * } + */ + public static MethodHandle GetTouchX$handle() { + return GetTouchX.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetTouchX() + * } + */ + public static MemorySegment GetTouchX$address() { + return GetTouchX.ADDR; + } + + /** + * {@snippet lang=c : + * int GetTouchX() + * } + */ + public static int GetTouchX() { + var mh$ = GetTouchX.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTouchX"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTouchY { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchY"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetTouchY() + * } + */ + public static FunctionDescriptor GetTouchY$descriptor() { + return GetTouchY.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetTouchY() + * } + */ + public static MethodHandle GetTouchY$handle() { + return GetTouchY.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetTouchY() + * } + */ + public static MemorySegment GetTouchY$address() { + return GetTouchY.ADDR; + } + + /** + * {@snippet lang=c : + * int GetTouchY() + * } + */ + public static int GetTouchY() { + var mh$ = GetTouchY.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTouchY"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTouchPosition { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchPosition"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetTouchPosition(int index) + * } + */ + public static FunctionDescriptor GetTouchPosition$descriptor() { + return GetTouchPosition.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetTouchPosition(int index) + * } + */ + public static MethodHandle GetTouchPosition$handle() { + return GetTouchPosition.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetTouchPosition(int index) + * } + */ + public static MemorySegment GetTouchPosition$address() { + return GetTouchPosition.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetTouchPosition(int index) + * } + */ + public static MemorySegment GetTouchPosition(SegmentAllocator allocator, int index) { + var mh$ = GetTouchPosition.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTouchPosition", allocator, index); + } + return (MemorySegment)mh$.invokeExact(allocator, index); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTouchPointId { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchPointId"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetTouchPointId(int index) + * } + */ + public static FunctionDescriptor GetTouchPointId$descriptor() { + return GetTouchPointId.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetTouchPointId(int index) + * } + */ + public static MethodHandle GetTouchPointId$handle() { + return GetTouchPointId.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetTouchPointId(int index) + * } + */ + public static MemorySegment GetTouchPointId$address() { + return GetTouchPointId.ADDR; + } + + /** + * {@snippet lang=c : + * int GetTouchPointId(int index) + * } + */ + public static int GetTouchPointId(int index) { + var mh$ = GetTouchPointId.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTouchPointId", index); + } + return (int)mh$.invokeExact(index); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetTouchPointCount { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchPointCount"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetTouchPointCount() + * } + */ + public static FunctionDescriptor GetTouchPointCount$descriptor() { + return GetTouchPointCount.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetTouchPointCount() + * } + */ + public static MethodHandle GetTouchPointCount$handle() { + return GetTouchPointCount.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetTouchPointCount() + * } + */ + public static MemorySegment GetTouchPointCount$address() { + return GetTouchPointCount.ADDR; + } + + /** + * {@snippet lang=c : + * int GetTouchPointCount() + * } + */ + public static int GetTouchPointCount() { + var mh$ = GetTouchPointCount.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetTouchPointCount"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetGesturesEnabled { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetGesturesEnabled"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetGesturesEnabled(unsigned int flags) + * } + */ + public static FunctionDescriptor SetGesturesEnabled$descriptor() { + return SetGesturesEnabled.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetGesturesEnabled(unsigned int flags) + * } + */ + public static MethodHandle SetGesturesEnabled$handle() { + return SetGesturesEnabled.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetGesturesEnabled(unsigned int flags) + * } + */ + public static MemorySegment SetGesturesEnabled$address() { + return SetGesturesEnabled.ADDR; + } + + /** + * {@snippet lang=c : + * void SetGesturesEnabled(unsigned int flags) + * } + */ + public static void SetGesturesEnabled(int flags) { + var mh$ = SetGesturesEnabled.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetGesturesEnabled", flags); + } + mh$.invokeExact(flags); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class IsGestureDetected { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("IsGestureDetected"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * bool IsGestureDetected(unsigned int gesture) + * } + */ + public static FunctionDescriptor IsGestureDetected$descriptor() { + return IsGestureDetected.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * bool IsGestureDetected(unsigned int gesture) + * } + */ + public static MethodHandle IsGestureDetected$handle() { + return IsGestureDetected.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * bool IsGestureDetected(unsigned int gesture) + * } + */ + public static MemorySegment IsGestureDetected$address() { + return IsGestureDetected.ADDR; + } + + /** + * {@snippet lang=c : + * bool IsGestureDetected(unsigned int gesture) + * } + */ + public static boolean IsGestureDetected(int gesture) { + var mh$ = IsGestureDetected.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("IsGestureDetected", gesture); + } + return (boolean)mh$.invokeExact(gesture); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGestureDetected { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureDetected"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * int GetGestureDetected() + * } + */ + public static FunctionDescriptor GetGestureDetected$descriptor() { + return GetGestureDetected.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * int GetGestureDetected() + * } + */ + public static MethodHandle GetGestureDetected$handle() { + return GetGestureDetected.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * int GetGestureDetected() + * } + */ + public static MemorySegment GetGestureDetected$address() { + return GetGestureDetected.ADDR; + } + + /** + * {@snippet lang=c : + * int GetGestureDetected() + * } + */ + public static int GetGestureDetected() { + var mh$ = GetGestureDetected.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGestureDetected"); + } + return (int)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGestureHoldDuration { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureHoldDuration"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * float GetGestureHoldDuration() + * } + */ + public static FunctionDescriptor GetGestureHoldDuration$descriptor() { + return GetGestureHoldDuration.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * float GetGestureHoldDuration() + * } + */ + public static MethodHandle GetGestureHoldDuration$handle() { + return GetGestureHoldDuration.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * float GetGestureHoldDuration() + * } + */ + public static MemorySegment GetGestureHoldDuration$address() { + return GetGestureHoldDuration.ADDR; + } + + /** + * {@snippet lang=c : + * float GetGestureHoldDuration() + * } + */ + public static float GetGestureHoldDuration() { + var mh$ = GetGestureHoldDuration.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGestureHoldDuration"); + } + return (float)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGestureDragVector { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureDragVector"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetGestureDragVector() + * } + */ + public static FunctionDescriptor GetGestureDragVector$descriptor() { + return GetGestureDragVector.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetGestureDragVector() + * } + */ + public static MethodHandle GetGestureDragVector$handle() { + return GetGestureDragVector.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetGestureDragVector() + * } + */ + public static MemorySegment GetGestureDragVector$address() { + return GetGestureDragVector.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetGestureDragVector() + * } + */ + public static MemorySegment GetGestureDragVector(SegmentAllocator allocator) { + var mh$ = GetGestureDragVector.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGestureDragVector", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGestureDragAngle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureDragAngle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * float GetGestureDragAngle() + * } + */ + public static FunctionDescriptor GetGestureDragAngle$descriptor() { + return GetGestureDragAngle.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * float GetGestureDragAngle() + * } + */ + public static MethodHandle GetGestureDragAngle$handle() { + return GetGestureDragAngle.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * float GetGestureDragAngle() + * } + */ + public static MemorySegment GetGestureDragAngle$address() { + return GetGestureDragAngle.ADDR; + } + + /** + * {@snippet lang=c : + * float GetGestureDragAngle() + * } + */ + public static float GetGestureDragAngle() { + var mh$ = GetGestureDragAngle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGestureDragAngle"); + } + return (float)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGesturePinchVector { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGesturePinchVector"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Vector2 GetGesturePinchVector() + * } + */ + public static FunctionDescriptor GetGesturePinchVector$descriptor() { + return GetGesturePinchVector.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Vector2 GetGesturePinchVector() + * } + */ + public static MethodHandle GetGesturePinchVector$handle() { + return GetGesturePinchVector.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Vector2 GetGesturePinchVector() + * } + */ + public static MemorySegment GetGesturePinchVector$address() { + return GetGesturePinchVector.ADDR; + } + + /** + * {@snippet lang=c : + * Vector2 GetGesturePinchVector() + * } + */ + public static MemorySegment GetGesturePinchVector(SegmentAllocator allocator) { + var mh$ = GetGesturePinchVector.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGesturePinchVector", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetGesturePinchAngle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetGesturePinchAngle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * float GetGesturePinchAngle() + * } + */ + public static FunctionDescriptor GetGesturePinchAngle$descriptor() { + return GetGesturePinchAngle.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * float GetGesturePinchAngle() + * } + */ + public static MethodHandle GetGesturePinchAngle$handle() { + return GetGesturePinchAngle.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * float GetGesturePinchAngle() + * } + */ + public static MemorySegment GetGesturePinchAngle$address() { + return GetGesturePinchAngle.ADDR; + } + + /** + * {@snippet lang=c : + * float GetGesturePinchAngle() + * } + */ + public static float GetGesturePinchAngle() { + var mh$ = GetGesturePinchAngle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetGesturePinchAngle"); + } + return (float)mh$.invokeExact(); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UpdateCamera { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateCamera"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UpdateCamera(Camera *camera, int mode) + * } + */ + public static FunctionDescriptor UpdateCamera$descriptor() { + return UpdateCamera.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UpdateCamera(Camera *camera, int mode) + * } + */ + public static MethodHandle UpdateCamera$handle() { + return UpdateCamera.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UpdateCamera(Camera *camera, int mode) + * } + */ + public static MemorySegment UpdateCamera$address() { + return UpdateCamera.ADDR; + } + + /** + * {@snippet lang=c : + * void UpdateCamera(Camera *camera, int mode) + * } + */ + public static void UpdateCamera(MemorySegment camera, int mode) { + var mh$ = UpdateCamera.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UpdateCamera", camera, mode); + } + mh$.invokeExact(camera, mode); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class UpdateCameraPro { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateCameraPro"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * } + */ + public static FunctionDescriptor UpdateCameraPro$descriptor() { + return UpdateCameraPro.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * } + */ + public static MethodHandle UpdateCameraPro$handle() { + return UpdateCameraPro.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * } + */ + public static MemorySegment UpdateCameraPro$address() { + return UpdateCameraPro.ADDR; + } + + /** + * {@snippet lang=c : + * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * } + */ + public static void UpdateCameraPro(MemorySegment camera, MemorySegment movement, MemorySegment rotation, float zoom) { + var mh$ = UpdateCameraPro.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("UpdateCameraPro", camera, movement, rotation, zoom); + } + mh$.invokeExact(camera, movement, rotation, zoom); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class SetShapesTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), + Rectangle.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("SetShapesTexture"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void SetShapesTexture(Texture2D texture, Rectangle source) + * } + */ + public static FunctionDescriptor SetShapesTexture$descriptor() { + return SetShapesTexture.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void SetShapesTexture(Texture2D texture, Rectangle source) + * } + */ + public static MethodHandle SetShapesTexture$handle() { + return SetShapesTexture.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void SetShapesTexture(Texture2D texture, Rectangle source) + * } + */ + public static MemorySegment SetShapesTexture$address() { + return SetShapesTexture.ADDR; + } + + /** + * {@snippet lang=c : + * void SetShapesTexture(Texture2D texture, Rectangle source) + * } + */ + public static void SetShapesTexture(MemorySegment texture, MemorySegment source) { + var mh$ = SetShapesTexture.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("SetShapesTexture", texture, source); + } + mh$.invokeExact(texture, source); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetShapesTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Texture.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetShapesTexture"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Texture2D GetShapesTexture() + * } + */ + public static FunctionDescriptor GetShapesTexture$descriptor() { + return GetShapesTexture.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Texture2D GetShapesTexture() + * } + */ + public static MethodHandle GetShapesTexture$handle() { + return GetShapesTexture.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Texture2D GetShapesTexture() + * } + */ + public static MemorySegment GetShapesTexture$address() { + return GetShapesTexture.ADDR; + } + + /** + * {@snippet lang=c : + * Texture2D GetShapesTexture() + * } + */ + public static MemorySegment GetShapesTexture(SegmentAllocator allocator) { + var mh$ = GetShapesTexture.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetShapesTexture", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class GetShapesTextureRectangle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Rectangle.layout() ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetShapesTextureRectangle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * Rectangle GetShapesTextureRectangle() + * } + */ + public static FunctionDescriptor GetShapesTextureRectangle$descriptor() { + return GetShapesTextureRectangle.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * Rectangle GetShapesTextureRectangle() + * } + */ + public static MethodHandle GetShapesTextureRectangle$handle() { + return GetShapesTextureRectangle.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * Rectangle GetShapesTextureRectangle() + * } + */ + public static MemorySegment GetShapesTextureRectangle$address() { + return GetShapesTextureRectangle.ADDR; + } + + /** + * {@snippet lang=c : + * Rectangle GetShapesTextureRectangle() + * } + */ + public static MemorySegment GetShapesTextureRectangle(SegmentAllocator allocator) { + var mh$ = GetShapesTextureRectangle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetShapesTextureRectangle", allocator); + } + return (MemorySegment)mh$.invokeExact(allocator); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawPixel { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPixel"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawPixel(int posX, int posY, Color color) + * } + */ + public static FunctionDescriptor DrawPixel$descriptor() { + return DrawPixel.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawPixel(int posX, int posY, Color color) + * } + */ + public static MethodHandle DrawPixel$handle() { + return DrawPixel.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawPixel(int posX, int posY, Color color) + * } + */ + public static MemorySegment DrawPixel$address() { + return DrawPixel.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawPixel(int posX, int posY, Color color) + * } + */ + public static void DrawPixel(int posX, int posY, MemorySegment color) { + var mh$ = DrawPixel.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawPixel", posX, posY, color); + } + mh$.invokeExact(posX, posY, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawPixelV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPixelV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawPixelV(Vector2 position, Color color) + * } + */ + public static FunctionDescriptor DrawPixelV$descriptor() { + return DrawPixelV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawPixelV(Vector2 position, Color color) + * } + */ + public static MethodHandle DrawPixelV$handle() { + return DrawPixelV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawPixelV(Vector2 position, Color color) + * } + */ + public static MemorySegment DrawPixelV$address() { + return DrawPixelV.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawPixelV(Vector2 position, Color color) + * } + */ + public static void DrawPixelV(MemorySegment position, MemorySegment color) { + var mh$ = DrawPixelV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawPixelV", position, color); + } + mh$.invokeExact(position, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawLine { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawLine"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * } + */ + public static FunctionDescriptor DrawLine$descriptor() { + return DrawLine.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * } + */ + public static MethodHandle DrawLine$handle() { + return DrawLine.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * } + */ + public static MemorySegment DrawLine$address() { + return DrawLine.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * } + */ + public static void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, MemorySegment color) { + var mh$ = DrawLine.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawLine", startPosX, startPosY, endPosX, endPosY, color); + } + mh$.invokeExact(startPosX, startPosY, endPosX, endPosY, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawLineV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * } + */ + public static FunctionDescriptor DrawLineV$descriptor() { + return DrawLineV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * } + */ + public static MethodHandle DrawLineV$handle() { + return DrawLineV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * } + */ + public static MemorySegment DrawLineV$address() { + return DrawLineV.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * } + */ + public static void DrawLineV(MemorySegment startPos, MemorySegment endPos, MemorySegment color) { + var mh$ = DrawLineV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawLineV", startPos, endPos, color); + } + mh$.invokeExact(startPos, endPos, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawLineEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static FunctionDescriptor DrawLineEx$descriptor() { + return DrawLineEx.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static MethodHandle DrawLineEx$handle() { + return DrawLineEx.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static MemorySegment DrawLineEx$address() { + return DrawLineEx.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static void DrawLineEx(MemorySegment startPos, MemorySegment endPos, float thick, MemorySegment color) { + var mh$ = DrawLineEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawLineEx", startPos, endPos, thick, color); + } + mh$.invokeExact(startPos, endPos, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawLineStrip { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineStrip"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * } + */ + public static FunctionDescriptor DrawLineStrip$descriptor() { + return DrawLineStrip.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * } + */ + public static MethodHandle DrawLineStrip$handle() { + return DrawLineStrip.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * } + */ + public static MemorySegment DrawLineStrip$address() { + return DrawLineStrip.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * } + */ + public static void DrawLineStrip(MemorySegment points, int pointCount, MemorySegment color) { + var mh$ = DrawLineStrip.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawLineStrip", points, pointCount, color); + } + mh$.invokeExact(points, pointCount, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawLineBezier { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineBezier"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static FunctionDescriptor DrawLineBezier$descriptor() { + return DrawLineBezier.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static MethodHandle DrawLineBezier$handle() { + return DrawLineBezier.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static MemorySegment DrawLineBezier$address() { + return DrawLineBezier.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * } + */ + public static void DrawLineBezier(MemorySegment startPos, MemorySegment endPos, float thick, MemorySegment color) { + var mh$ = DrawLineBezier.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawLineBezier", startPos, endPos, thick, color); + } + mh$.invokeExact(startPos, endPos, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircle(int centerX, int centerY, float radius, Color color) + * } + */ + public static FunctionDescriptor DrawCircle$descriptor() { + return DrawCircle.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircle(int centerX, int centerY, float radius, Color color) + * } + */ + public static MethodHandle DrawCircle$handle() { + return DrawCircle.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircle(int centerX, int centerY, float radius, Color color) + * } + */ + public static MemorySegment DrawCircle$address() { + return DrawCircle.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircle(int centerX, int centerY, float radius, Color color) + * } + */ + public static void DrawCircle(int centerX, int centerY, float radius, MemorySegment color) { + var mh$ = DrawCircle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircle", centerX, centerY, radius, color); + } + mh$.invokeExact(centerX, centerY, radius, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircleSector { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleSector"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static FunctionDescriptor DrawCircleSector$descriptor() { + return DrawCircleSector.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static MethodHandle DrawCircleSector$handle() { + return DrawCircleSector.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static MemorySegment DrawCircleSector$address() { + return DrawCircleSector.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static void DrawCircleSector(MemorySegment center, float radius, float startAngle, float endAngle, int segments, MemorySegment color) { + var mh$ = DrawCircleSector.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircleSector", center, radius, startAngle, endAngle, segments, color); + } + mh$.invokeExact(center, radius, startAngle, endAngle, segments, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircleSectorLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleSectorLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static FunctionDescriptor DrawCircleSectorLines$descriptor() { + return DrawCircleSectorLines.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static MethodHandle DrawCircleSectorLines$handle() { + return DrawCircleSectorLines.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static MemorySegment DrawCircleSectorLines$address() { + return DrawCircleSectorLines.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * } + */ + public static void DrawCircleSectorLines(MemorySegment center, float radius, float startAngle, float endAngle, int segments, MemorySegment color) { + var mh$ = DrawCircleSectorLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircleSectorLines", center, radius, startAngle, endAngle, segments, color); + } + mh$.invokeExact(center, radius, startAngle, endAngle, segments, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircleGradient { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleGradient"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * } + */ + public static FunctionDescriptor DrawCircleGradient$descriptor() { + return DrawCircleGradient.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * } + */ + public static MethodHandle DrawCircleGradient$handle() { + return DrawCircleGradient.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * } + */ + public static MemorySegment DrawCircleGradient$address() { + return DrawCircleGradient.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * } + */ + public static void DrawCircleGradient(int centerX, int centerY, float radius, MemorySegment color1, MemorySegment color2) { + var mh$ = DrawCircleGradient.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircleGradient", centerX, centerY, radius, color1, color2); + } + mh$.invokeExact(centerX, centerY, radius, color1, color2); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircleV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircleV(Vector2 center, float radius, Color color) + * } + */ + public static FunctionDescriptor DrawCircleV$descriptor() { + return DrawCircleV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircleV(Vector2 center, float radius, Color color) + * } + */ + public static MethodHandle DrawCircleV$handle() { + return DrawCircleV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircleV(Vector2 center, float radius, Color color) + * } + */ + public static MemorySegment DrawCircleV$address() { + return DrawCircleV.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircleV(Vector2 center, float radius, Color color) + * } + */ + public static void DrawCircleV(MemorySegment center, float radius, MemorySegment color) { + var mh$ = DrawCircleV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircleV", center, radius, color); + } + mh$.invokeExact(center, radius, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircleLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * } + */ + public static FunctionDescriptor DrawCircleLines$descriptor() { + return DrawCircleLines.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * } + */ + public static MethodHandle DrawCircleLines$handle() { + return DrawCircleLines.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * } + */ + public static MemorySegment DrawCircleLines$address() { + return DrawCircleLines.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * } + */ + public static void DrawCircleLines(int centerX, int centerY, float radius, MemorySegment color) { + var mh$ = DrawCircleLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircleLines", centerX, centerY, radius, color); + } + mh$.invokeExact(centerX, centerY, radius, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawCircleLinesV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleLinesV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * } + */ + public static FunctionDescriptor DrawCircleLinesV$descriptor() { + return DrawCircleLinesV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * } + */ + public static MethodHandle DrawCircleLinesV$handle() { + return DrawCircleLinesV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * } + */ + public static MemorySegment DrawCircleLinesV$address() { + return DrawCircleLinesV.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * } + */ + public static void DrawCircleLinesV(MemorySegment center, float radius, MemorySegment color) { + var mh$ = DrawCircleLinesV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawCircleLinesV", center, radius, color); + } + mh$.invokeExact(center, radius, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawEllipse { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawEllipse"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * } + */ + public static FunctionDescriptor DrawEllipse$descriptor() { + return DrawEllipse.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * } + */ + public static MethodHandle DrawEllipse$handle() { + return DrawEllipse.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * } + */ + public static MemorySegment DrawEllipse$address() { + return DrawEllipse.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * } + */ + public static void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, MemorySegment color) { + var mh$ = DrawEllipse.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawEllipse", centerX, centerY, radiusH, radiusV, color); + } + mh$.invokeExact(centerX, centerY, radiusH, radiusV, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawEllipseLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawEllipseLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) + * } + */ + public static FunctionDescriptor DrawEllipseLines$descriptor() { + return DrawEllipseLines.DESC; } - private static final int GAMEPAD_AXIS_LEFT_X = (int)0L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GAMEPAD_AXIS_LEFT_X = 0 + * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) * } */ - public static int GAMEPAD_AXIS_LEFT_X() { - return GAMEPAD_AXIS_LEFT_X; + public static MethodHandle DrawEllipseLines$handle() { + return DrawEllipseLines.HANDLE; } - private static final int GAMEPAD_AXIS_LEFT_Y = (int)1L; + /** + * Address for: * {@snippet lang=c : - * enum .GAMEPAD_AXIS_LEFT_Y = 1 + * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) * } */ - public static int GAMEPAD_AXIS_LEFT_Y() { - return GAMEPAD_AXIS_LEFT_Y; + public static MemorySegment DrawEllipseLines$address() { + return DrawEllipseLines.ADDR; } - private static final int GAMEPAD_AXIS_RIGHT_X = (int)2L; + /** * {@snippet lang=c : - * enum .GAMEPAD_AXIS_RIGHT_X = 2 + * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) * } */ - public static int GAMEPAD_AXIS_RIGHT_X() { - return GAMEPAD_AXIS_RIGHT_X; + public static void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, MemorySegment color) { + var mh$ = DrawEllipseLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawEllipseLines", centerX, centerY, radiusH, radiusV, color); + } + mh$.invokeExact(centerX, centerY, radiusH, radiusV, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GAMEPAD_AXIS_RIGHT_Y = (int)3L; + + private static class DrawRing { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRing"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GAMEPAD_AXIS_RIGHT_Y = 3 + * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int GAMEPAD_AXIS_RIGHT_Y() { - return GAMEPAD_AXIS_RIGHT_Y; + public static FunctionDescriptor DrawRing$descriptor() { + return DrawRing.DESC; } - private static final int GAMEPAD_AXIS_LEFT_TRIGGER = (int)4L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GAMEPAD_AXIS_LEFT_TRIGGER = 4 + * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int GAMEPAD_AXIS_LEFT_TRIGGER() { - return GAMEPAD_AXIS_LEFT_TRIGGER; + public static MethodHandle DrawRing$handle() { + return DrawRing.HANDLE; } - private static final int GAMEPAD_AXIS_RIGHT_TRIGGER = (int)5L; + /** + * Address for: * {@snippet lang=c : - * enum .GAMEPAD_AXIS_RIGHT_TRIGGER = 5 + * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int GAMEPAD_AXIS_RIGHT_TRIGGER() { - return GAMEPAD_AXIS_RIGHT_TRIGGER; + public static MemorySegment DrawRing$address() { + return DrawRing.ADDR; } - private static final int MATERIAL_MAP_ALBEDO = (int)0L; + /** * {@snippet lang=c : - * enum .MATERIAL_MAP_ALBEDO = 0 + * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int MATERIAL_MAP_ALBEDO() { - return MATERIAL_MAP_ALBEDO; + public static void DrawRing(MemorySegment center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, MemorySegment color) { + var mh$ = DrawRing.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRing", center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + } + mh$.invokeExact(center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MATERIAL_MAP_METALNESS = (int)1L; + + private static class DrawRingLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRingLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MATERIAL_MAP_METALNESS = 1 + * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int MATERIAL_MAP_METALNESS() { - return MATERIAL_MAP_METALNESS; + public static FunctionDescriptor DrawRingLines$descriptor() { + return DrawRingLines.DESC; } - private static final int MATERIAL_MAP_NORMAL = (int)2L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .MATERIAL_MAP_NORMAL = 2 + * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int MATERIAL_MAP_NORMAL() { - return MATERIAL_MAP_NORMAL; + public static MethodHandle DrawRingLines$handle() { + return DrawRingLines.HANDLE; } - private static final int MATERIAL_MAP_ROUGHNESS = (int)3L; + /** + * Address for: * {@snippet lang=c : - * enum .MATERIAL_MAP_ROUGHNESS = 3 + * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int MATERIAL_MAP_ROUGHNESS() { - return MATERIAL_MAP_ROUGHNESS; + public static MemorySegment DrawRingLines$address() { + return DrawRingLines.ADDR; } - private static final int MATERIAL_MAP_OCCLUSION = (int)4L; + /** * {@snippet lang=c : - * enum .MATERIAL_MAP_OCCLUSION = 4 + * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) * } */ - public static int MATERIAL_MAP_OCCLUSION() { - return MATERIAL_MAP_OCCLUSION; + public static void DrawRingLines(MemorySegment center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, MemorySegment color) { + var mh$ = DrawRingLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRingLines", center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + } + mh$.invokeExact(center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MATERIAL_MAP_EMISSION = (int)5L; + + private static class DrawRectangle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MATERIAL_MAP_EMISSION = 5 + * void DrawRectangle(int posX, int posY, int width, int height, Color color) * } */ - public static int MATERIAL_MAP_EMISSION() { - return MATERIAL_MAP_EMISSION; + public static FunctionDescriptor DrawRectangle$descriptor() { + return DrawRectangle.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * } + */ + public static MethodHandle DrawRectangle$handle() { + return DrawRectangle.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * } + */ + public static MemorySegment DrawRectangle$address() { + return DrawRectangle.ADDR; + } + + /** + * {@snippet lang=c : + * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * } + */ + public static void DrawRectangle(int posX, int posY, int width, int height, MemorySegment color) { + var mh$ = DrawRectangle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangle", posX, posY, width, height, color); + } + mh$.invokeExact(posX, posY, width, height, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawRectangleV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + + /** + * Function descriptor for: + * {@snippet lang=c : + * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * } + */ + public static FunctionDescriptor DrawRectangleV$descriptor() { + return DrawRectangleV.DESC; + } + + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * } + */ + public static MethodHandle DrawRectangleV$handle() { + return DrawRectangleV.HANDLE; + } + + /** + * Address for: + * {@snippet lang=c : + * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * } + */ + public static MemorySegment DrawRectangleV$address() { + return DrawRectangleV.ADDR; } - private static final int MATERIAL_MAP_HEIGHT = (int)6L; + /** * {@snippet lang=c : - * enum .MATERIAL_MAP_HEIGHT = 6 + * void DrawRectangleV(Vector2 position, Vector2 size, Color color) * } */ - public static int MATERIAL_MAP_HEIGHT() { - return MATERIAL_MAP_HEIGHT; + public static void DrawRectangleV(MemorySegment position, MemorySegment size, MemorySegment color) { + var mh$ = DrawRectangleV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleV", position, size, color); + } + mh$.invokeExact(position, size, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int MATERIAL_MAP_CUBEMAP = (int)7L; + + private static class DrawRectangleRec { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRec"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .MATERIAL_MAP_CUBEMAP = 7 + * void DrawRectangleRec(Rectangle rec, Color color) * } */ - public static int MATERIAL_MAP_CUBEMAP() { - return MATERIAL_MAP_CUBEMAP; + public static FunctionDescriptor DrawRectangleRec$descriptor() { + return DrawRectangleRec.DESC; } - private static final int MATERIAL_MAP_IRRADIANCE = (int)8L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .MATERIAL_MAP_IRRADIANCE = 8 + * void DrawRectangleRec(Rectangle rec, Color color) * } */ - public static int MATERIAL_MAP_IRRADIANCE() { - return MATERIAL_MAP_IRRADIANCE; + public static MethodHandle DrawRectangleRec$handle() { + return DrawRectangleRec.HANDLE; } - private static final int MATERIAL_MAP_PREFILTER = (int)9L; + /** + * Address for: * {@snippet lang=c : - * enum .MATERIAL_MAP_PREFILTER = 9 + * void DrawRectangleRec(Rectangle rec, Color color) * } */ - public static int MATERIAL_MAP_PREFILTER() { - return MATERIAL_MAP_PREFILTER; + public static MemorySegment DrawRectangleRec$address() { + return DrawRectangleRec.ADDR; } - private static final int MATERIAL_MAP_BRDF = (int)10L; + /** * {@snippet lang=c : - * enum .MATERIAL_MAP_BRDF = 10 + * void DrawRectangleRec(Rectangle rec, Color color) * } */ - public static int MATERIAL_MAP_BRDF() { - return MATERIAL_MAP_BRDF; + public static void DrawRectangleRec(MemorySegment rec, MemorySegment color) { + var mh$ = DrawRectangleRec.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleRec", rec, color); + } + mh$.invokeExact(rec, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_LOC_VERTEX_POSITION = (int)0L; + + private static class DrawRectanglePro { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectanglePro"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_LOC_VERTEX_POSITION = 0 + * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) * } */ - public static int SHADER_LOC_VERTEX_POSITION() { - return SHADER_LOC_VERTEX_POSITION; + public static FunctionDescriptor DrawRectanglePro$descriptor() { + return DrawRectanglePro.DESC; } - private static final int SHADER_LOC_VERTEX_TEXCOORD01 = (int)1L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_LOC_VERTEX_TEXCOORD01 = 1 + * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) * } */ - public static int SHADER_LOC_VERTEX_TEXCOORD01() { - return SHADER_LOC_VERTEX_TEXCOORD01; + public static MethodHandle DrawRectanglePro$handle() { + return DrawRectanglePro.HANDLE; } - private static final int SHADER_LOC_VERTEX_TEXCOORD02 = (int)2L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_LOC_VERTEX_TEXCOORD02 = 2 + * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) * } */ - public static int SHADER_LOC_VERTEX_TEXCOORD02() { - return SHADER_LOC_VERTEX_TEXCOORD02; + public static MemorySegment DrawRectanglePro$address() { + return DrawRectanglePro.ADDR; } - private static final int SHADER_LOC_VERTEX_NORMAL = (int)3L; + /** * {@snippet lang=c : - * enum .SHADER_LOC_VERTEX_NORMAL = 3 + * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) * } */ - public static int SHADER_LOC_VERTEX_NORMAL() { - return SHADER_LOC_VERTEX_NORMAL; + public static void DrawRectanglePro(MemorySegment rec, MemorySegment origin, float rotation, MemorySegment color) { + var mh$ = DrawRectanglePro.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectanglePro", rec, origin, rotation, color); + } + mh$.invokeExact(rec, origin, rotation, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_LOC_VERTEX_TANGENT = (int)4L; + + private static class DrawRectangleGradientV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleGradientV"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_LOC_VERTEX_TANGENT = 4 + * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_VERTEX_TANGENT() { - return SHADER_LOC_VERTEX_TANGENT; + public static FunctionDescriptor DrawRectangleGradientV$descriptor() { + return DrawRectangleGradientV.DESC; } - private static final int SHADER_LOC_VERTEX_COLOR = (int)5L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_LOC_VERTEX_COLOR = 5 + * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_VERTEX_COLOR() { - return SHADER_LOC_VERTEX_COLOR; + public static MethodHandle DrawRectangleGradientV$handle() { + return DrawRectangleGradientV.HANDLE; } - private static final int SHADER_LOC_MATRIX_MVP = (int)6L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_LOC_MATRIX_MVP = 6 + * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_MATRIX_MVP() { - return SHADER_LOC_MATRIX_MVP; + public static MemorySegment DrawRectangleGradientV$address() { + return DrawRectangleGradientV.ADDR; } - private static final int SHADER_LOC_MATRIX_VIEW = (int)7L; + /** * {@snippet lang=c : - * enum .SHADER_LOC_MATRIX_VIEW = 7 + * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_MATRIX_VIEW() { - return SHADER_LOC_MATRIX_VIEW; + public static void DrawRectangleGradientV(int posX, int posY, int width, int height, MemorySegment color1, MemorySegment color2) { + var mh$ = DrawRectangleGradientV.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleGradientV", posX, posY, width, height, color1, color2); + } + mh$.invokeExact(posX, posY, width, height, color1, color2); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_LOC_MATRIX_PROJECTION = (int)8L; + + private static class DrawRectangleGradientH { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleGradientH"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_LOC_MATRIX_PROJECTION = 8 + * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_MATRIX_PROJECTION() { - return SHADER_LOC_MATRIX_PROJECTION; + public static FunctionDescriptor DrawRectangleGradientH$descriptor() { + return DrawRectangleGradientH.DESC; } - private static final int SHADER_LOC_MATRIX_MODEL = (int)9L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_LOC_MATRIX_MODEL = 9 + * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_MATRIX_MODEL() { - return SHADER_LOC_MATRIX_MODEL; + public static MethodHandle DrawRectangleGradientH$handle() { + return DrawRectangleGradientH.HANDLE; } - private static final int SHADER_LOC_MATRIX_NORMAL = (int)10L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_LOC_MATRIX_NORMAL = 10 + * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_MATRIX_NORMAL() { - return SHADER_LOC_MATRIX_NORMAL; + public static MemorySegment DrawRectangleGradientH$address() { + return DrawRectangleGradientH.ADDR; } - private static final int SHADER_LOC_VECTOR_VIEW = (int)11L; + /** * {@snippet lang=c : - * enum .SHADER_LOC_VECTOR_VIEW = 11 + * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) * } */ - public static int SHADER_LOC_VECTOR_VIEW() { - return SHADER_LOC_VECTOR_VIEW; + public static void DrawRectangleGradientH(int posX, int posY, int width, int height, MemorySegment color1, MemorySegment color2) { + var mh$ = DrawRectangleGradientH.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleGradientH", posX, posY, width, height, color1, color2); + } + mh$.invokeExact(posX, posY, width, height, color1, color2); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawRectangleGradientEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + Color.layout(), + Color.layout(), + Color.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleGradientEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int SHADER_LOC_COLOR_DIFFUSE = (int)12L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_LOC_COLOR_DIFFUSE = 12 + * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) * } */ - public static int SHADER_LOC_COLOR_DIFFUSE() { - return SHADER_LOC_COLOR_DIFFUSE; + public static FunctionDescriptor DrawRectangleGradientEx$descriptor() { + return DrawRectangleGradientEx.DESC; } - private static final int SHADER_LOC_COLOR_SPECULAR = (int)13L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_LOC_COLOR_SPECULAR = 13 + * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) * } */ - public static int SHADER_LOC_COLOR_SPECULAR() { - return SHADER_LOC_COLOR_SPECULAR; + public static MethodHandle DrawRectangleGradientEx$handle() { + return DrawRectangleGradientEx.HANDLE; } - private static final int SHADER_LOC_COLOR_AMBIENT = (int)14L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_LOC_COLOR_AMBIENT = 14 + * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) * } */ - public static int SHADER_LOC_COLOR_AMBIENT() { - return SHADER_LOC_COLOR_AMBIENT; + public static MemorySegment DrawRectangleGradientEx$address() { + return DrawRectangleGradientEx.ADDR; } - private static final int SHADER_LOC_MAP_ALBEDO = (int)15L; + /** * {@snippet lang=c : - * enum .SHADER_LOC_MAP_ALBEDO = 15 + * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) * } */ - public static int SHADER_LOC_MAP_ALBEDO() { - return SHADER_LOC_MAP_ALBEDO; + public static void DrawRectangleGradientEx(MemorySegment rec, MemorySegment col1, MemorySegment col2, MemorySegment col3, MemorySegment col4) { + var mh$ = DrawRectangleGradientEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleGradientEx", rec, col1, col2, col3, col4); + } + mh$.invokeExact(rec, col1, col2, col3, col4); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_LOC_MAP_METALNESS = (int)16L; - /** - * {@snippet lang=c : - * enum .SHADER_LOC_MAP_METALNESS = 16 - * } - */ - public static int SHADER_LOC_MAP_METALNESS() { - return SHADER_LOC_MAP_METALNESS; + + private static class DrawRectangleLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int SHADER_LOC_MAP_NORMAL = (int)17L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_LOC_MAP_NORMAL = 17 + * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) * } */ - public static int SHADER_LOC_MAP_NORMAL() { - return SHADER_LOC_MAP_NORMAL; + public static FunctionDescriptor DrawRectangleLines$descriptor() { + return DrawRectangleLines.DESC; } - private static final int SHADER_LOC_MAP_ROUGHNESS = (int)18L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_LOC_MAP_ROUGHNESS = 18 + * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) * } */ - public static int SHADER_LOC_MAP_ROUGHNESS() { - return SHADER_LOC_MAP_ROUGHNESS; + public static MethodHandle DrawRectangleLines$handle() { + return DrawRectangleLines.HANDLE; } - private static final int SHADER_LOC_MAP_OCCLUSION = (int)19L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_LOC_MAP_OCCLUSION = 19 + * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) * } */ - public static int SHADER_LOC_MAP_OCCLUSION() { - return SHADER_LOC_MAP_OCCLUSION; + public static MemorySegment DrawRectangleLines$address() { + return DrawRectangleLines.ADDR; } - private static final int SHADER_LOC_MAP_EMISSION = (int)20L; + /** * {@snippet lang=c : - * enum .SHADER_LOC_MAP_EMISSION = 20 + * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) * } */ - public static int SHADER_LOC_MAP_EMISSION() { - return SHADER_LOC_MAP_EMISSION; + public static void DrawRectangleLines(int posX, int posY, int width, int height, MemorySegment color) { + var mh$ = DrawRectangleLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleLines", posX, posY, width, height, color); + } + mh$.invokeExact(posX, posY, width, height, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_LOC_MAP_HEIGHT = (int)21L; - /** - * {@snippet lang=c : - * enum .SHADER_LOC_MAP_HEIGHT = 21 - * } - */ - public static int SHADER_LOC_MAP_HEIGHT() { - return SHADER_LOC_MAP_HEIGHT; + + private static class DrawRectangleLinesEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleLinesEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int SHADER_LOC_MAP_CUBEMAP = (int)22L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_LOC_MAP_CUBEMAP = 22 + * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) * } */ - public static int SHADER_LOC_MAP_CUBEMAP() { - return SHADER_LOC_MAP_CUBEMAP; + public static FunctionDescriptor DrawRectangleLinesEx$descriptor() { + return DrawRectangleLinesEx.DESC; } - private static final int SHADER_LOC_MAP_IRRADIANCE = (int)23L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_LOC_MAP_IRRADIANCE = 23 + * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) * } */ - public static int SHADER_LOC_MAP_IRRADIANCE() { - return SHADER_LOC_MAP_IRRADIANCE; + public static MethodHandle DrawRectangleLinesEx$handle() { + return DrawRectangleLinesEx.HANDLE; } - private static final int SHADER_LOC_MAP_PREFILTER = (int)24L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_LOC_MAP_PREFILTER = 24 + * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) * } */ - public static int SHADER_LOC_MAP_PREFILTER() { - return SHADER_LOC_MAP_PREFILTER; + public static MemorySegment DrawRectangleLinesEx$address() { + return DrawRectangleLinesEx.ADDR; } - private static final int SHADER_LOC_MAP_BRDF = (int)25L; + /** * {@snippet lang=c : - * enum .SHADER_LOC_MAP_BRDF = 25 + * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) * } */ - public static int SHADER_LOC_MAP_BRDF() { - return SHADER_LOC_MAP_BRDF; + public static void DrawRectangleLinesEx(MemorySegment rec, float lineThick, MemorySegment color) { + var mh$ = DrawRectangleLinesEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleLinesEx", rec, lineThick, color); + } + mh$.invokeExact(rec, lineThick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_UNIFORM_FLOAT = (int)0L; + + private static class DrawRectangleRounded { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRounded"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_FLOAT = 0 + * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_FLOAT() { - return SHADER_UNIFORM_FLOAT; + public static FunctionDescriptor DrawRectangleRounded$descriptor() { + return DrawRectangleRounded.DESC; } - private static final int SHADER_UNIFORM_VEC2 = (int)1L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_VEC2 = 1 + * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_VEC2() { - return SHADER_UNIFORM_VEC2; + public static MethodHandle DrawRectangleRounded$handle() { + return DrawRectangleRounded.HANDLE; } - private static final int SHADER_UNIFORM_VEC3 = (int)2L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_VEC3 = 2 + * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_VEC3() { - return SHADER_UNIFORM_VEC3; + public static MemorySegment DrawRectangleRounded$address() { + return DrawRectangleRounded.ADDR; } - private static final int SHADER_UNIFORM_VEC4 = (int)3L; + /** * {@snippet lang=c : - * enum .SHADER_UNIFORM_VEC4 = 3 + * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_VEC4() { - return SHADER_UNIFORM_VEC4; + public static void DrawRectangleRounded(MemorySegment rec, float roundness, int segments, MemorySegment color) { + var mh$ = DrawRectangleRounded.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleRounded", rec, roundness, segments, color); + } + mh$.invokeExact(rec, roundness, segments, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_UNIFORM_INT = (int)4L; + + private static class DrawRectangleRoundedLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRoundedLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_INT = 4 + * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_INT() { - return SHADER_UNIFORM_INT; + public static FunctionDescriptor DrawRectangleRoundedLines$descriptor() { + return DrawRectangleRoundedLines.DESC; } - private static final int SHADER_UNIFORM_IVEC2 = (int)5L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_IVEC2 = 5 + * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_IVEC2() { - return SHADER_UNIFORM_IVEC2; + public static MethodHandle DrawRectangleRoundedLines$handle() { + return DrawRectangleRoundedLines.HANDLE; } - private static final int SHADER_UNIFORM_IVEC3 = (int)6L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_IVEC3 = 6 + * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_IVEC3() { - return SHADER_UNIFORM_IVEC3; + public static MemorySegment DrawRectangleRoundedLines$address() { + return DrawRectangleRoundedLines.ADDR; } - private static final int SHADER_UNIFORM_IVEC4 = (int)7L; + /** * {@snippet lang=c : - * enum .SHADER_UNIFORM_IVEC4 = 7 + * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) * } */ - public static int SHADER_UNIFORM_IVEC4() { - return SHADER_UNIFORM_IVEC4; + public static void DrawRectangleRoundedLines(MemorySegment rec, float roundness, int segments, MemorySegment color) { + var mh$ = DrawRectangleRoundedLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleRoundedLines", rec, roundness, segments, color); + } + mh$.invokeExact(rec, roundness, segments, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_UNIFORM_SAMPLER2D = (int)8L; + + private static class DrawRectangleRoundedLinesEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Rectangle.layout(), + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRoundedLinesEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_UNIFORM_SAMPLER2D = 8 + * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) * } */ - public static int SHADER_UNIFORM_SAMPLER2D() { - return SHADER_UNIFORM_SAMPLER2D; + public static FunctionDescriptor DrawRectangleRoundedLinesEx$descriptor() { + return DrawRectangleRoundedLinesEx.DESC; } - private static final int SHADER_ATTRIB_FLOAT = (int)0L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .SHADER_ATTRIB_FLOAT = 0 + * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) * } */ - public static int SHADER_ATTRIB_FLOAT() { - return SHADER_ATTRIB_FLOAT; + public static MethodHandle DrawRectangleRoundedLinesEx$handle() { + return DrawRectangleRoundedLinesEx.HANDLE; } - private static final int SHADER_ATTRIB_VEC2 = (int)1L; + /** + * Address for: * {@snippet lang=c : - * enum .SHADER_ATTRIB_VEC2 = 1 + * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) * } */ - public static int SHADER_ATTRIB_VEC2() { - return SHADER_ATTRIB_VEC2; + public static MemorySegment DrawRectangleRoundedLinesEx$address() { + return DrawRectangleRoundedLinesEx.ADDR; } - private static final int SHADER_ATTRIB_VEC3 = (int)2L; + /** * {@snippet lang=c : - * enum .SHADER_ATTRIB_VEC3 = 2 + * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) * } */ - public static int SHADER_ATTRIB_VEC3() { - return SHADER_ATTRIB_VEC3; + public static void DrawRectangleRoundedLinesEx(MemorySegment rec, float roundness, int segments, float lineThick, MemorySegment color) { + var mh$ = DrawRectangleRoundedLinesEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawRectangleRoundedLinesEx", rec, roundness, segments, lineThick, color); + } + mh$.invokeExact(rec, roundness, segments, lineThick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int SHADER_ATTRIB_VEC4 = (int)3L; + + private static class DrawTriangle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangle"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .SHADER_ATTRIB_VEC4 = 3 + * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int SHADER_ATTRIB_VEC4() { - return SHADER_ATTRIB_VEC4; + public static FunctionDescriptor DrawTriangle$descriptor() { + return DrawTriangle.DESC; } - private static final int PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = (int)1L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 + * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_GRAYSCALE() { - return PIXELFORMAT_UNCOMPRESSED_GRAYSCALE; + public static MethodHandle DrawTriangle$handle() { + return DrawTriangle.HANDLE; } - private static final int PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = (int)2L; + /** + * Address for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 + * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA() { - return PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA; + public static MemorySegment DrawTriangle$address() { + return DrawTriangle.ADDR; } - private static final int PIXELFORMAT_UNCOMPRESSED_R5G6B5 = (int)3L; + /** * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 + * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R5G6B5() { - return PIXELFORMAT_UNCOMPRESSED_R5G6B5; + public static void DrawTriangle(MemorySegment v1, MemorySegment v2, MemorySegment v3, MemorySegment color) { + var mh$ = DrawTriangle.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawTriangle", v1, v2, v3, color); + } + mh$.invokeExact(v1, v2, v3, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int PIXELFORMAT_UNCOMPRESSED_R8G8B8 = (int)4L; + + private static class DrawTriangleLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 + * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R8G8B8() { - return PIXELFORMAT_UNCOMPRESSED_R8G8B8; + public static FunctionDescriptor DrawTriangleLines$descriptor() { + return DrawTriangleLines.DESC; } - private static final int PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = (int)5L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 + * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R5G5B5A1() { - return PIXELFORMAT_UNCOMPRESSED_R5G5B5A1; + public static MethodHandle DrawTriangleLines$handle() { + return DrawTriangleLines.HANDLE; } - private static final int PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = (int)6L; + /** + * Address for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 + * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R4G4B4A4() { - return PIXELFORMAT_UNCOMPRESSED_R4G4B4A4; + public static MemorySegment DrawTriangleLines$address() { + return DrawTriangleLines.ADDR; } - private static final int PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = (int)7L; + /** * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 + * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R8G8B8A8() { - return PIXELFORMAT_UNCOMPRESSED_R8G8B8A8; + public static void DrawTriangleLines(MemorySegment v1, MemorySegment v2, MemorySegment v3, MemorySegment color) { + var mh$ = DrawTriangleLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawTriangleLines", v1, v2, v3, color); + } + mh$.invokeExact(v1, v2, v3, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int PIXELFORMAT_UNCOMPRESSED_R32 = (int)8L; + + private static class DrawTriangleFan { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleFan"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R32 = 8 + * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R32() { - return PIXELFORMAT_UNCOMPRESSED_R32; + public static FunctionDescriptor DrawTriangleFan$descriptor() { + return DrawTriangleFan.DESC; } - private static final int PIXELFORMAT_UNCOMPRESSED_R32G32B32 = (int)9L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 + * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R32G32B32() { - return PIXELFORMAT_UNCOMPRESSED_R32G32B32; + public static MethodHandle DrawTriangleFan$handle() { + return DrawTriangleFan.HANDLE; } - private static final int PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = (int)10L; + /** + * Address for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 + * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R32G32B32A32() { - return PIXELFORMAT_UNCOMPRESSED_R32G32B32A32; + public static MemorySegment DrawTriangleFan$address() { + return DrawTriangleFan.ADDR; } - private static final int PIXELFORMAT_UNCOMPRESSED_R16 = (int)11L; + /** * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R16 = 11 + * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R16() { - return PIXELFORMAT_UNCOMPRESSED_R16; + public static void DrawTriangleFan(MemorySegment points, int pointCount, MemorySegment color) { + var mh$ = DrawTriangleFan.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawTriangleFan", points, pointCount, color); + } + mh$.invokeExact(points, pointCount, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawTriangleStrip { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleStrip"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int PIXELFORMAT_UNCOMPRESSED_R16G16B16 = (int)12L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 + * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R16G16B16() { - return PIXELFORMAT_UNCOMPRESSED_R16G16B16; + public static FunctionDescriptor DrawTriangleStrip$descriptor() { + return DrawTriangleStrip.DESC; } - private static final int PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = (int)13L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 + * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_UNCOMPRESSED_R16G16B16A16() { - return PIXELFORMAT_UNCOMPRESSED_R16G16B16A16; + public static MethodHandle DrawTriangleStrip$handle() { + return DrawTriangleStrip.HANDLE; } - private static final int PIXELFORMAT_COMPRESSED_DXT1_RGB = (int)14L; + /** + * Address for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 + * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_DXT1_RGB() { - return PIXELFORMAT_COMPRESSED_DXT1_RGB; + public static MemorySegment DrawTriangleStrip$address() { + return DrawTriangleStrip.ADDR; } - private static final int PIXELFORMAT_COMPRESSED_DXT1_RGBA = (int)15L; + /** * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 + * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_DXT1_RGBA() { - return PIXELFORMAT_COMPRESSED_DXT1_RGBA; + public static void DrawTriangleStrip(MemorySegment points, int pointCount, MemorySegment color) { + var mh$ = DrawTriangleStrip.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawTriangleStrip", points, pointCount, color); + } + mh$.invokeExact(points, pointCount, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int PIXELFORMAT_COMPRESSED_DXT3_RGBA = (int)16L; + + private static class DrawPoly { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_INT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPoly"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 + * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_DXT3_RGBA() { - return PIXELFORMAT_COMPRESSED_DXT3_RGBA; + public static FunctionDescriptor DrawPoly$descriptor() { + return DrawPoly.DESC; } - private static final int PIXELFORMAT_COMPRESSED_DXT5_RGBA = (int)17L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 + * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_DXT5_RGBA() { - return PIXELFORMAT_COMPRESSED_DXT5_RGBA; + public static MethodHandle DrawPoly$handle() { + return DrawPoly.HANDLE; } - private static final int PIXELFORMAT_COMPRESSED_ETC1_RGB = (int)18L; + /** + * Address for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 + * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_ETC1_RGB() { - return PIXELFORMAT_COMPRESSED_ETC1_RGB; + public static MemorySegment DrawPoly$address() { + return DrawPoly.ADDR; } - private static final int PIXELFORMAT_COMPRESSED_ETC2_RGB = (int)19L; + /** * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 + * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_ETC2_RGB() { - return PIXELFORMAT_COMPRESSED_ETC2_RGB; + public static void DrawPoly(MemorySegment center, int sides, float radius, float rotation, MemorySegment color) { + var mh$ = DrawPoly.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawPoly", center, sides, radius, rotation, color); + } + mh$.invokeExact(center, sides, radius, rotation, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = (int)20L; + + private static class DrawPolyLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_INT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPolyLines"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 + * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA() { - return PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA; + public static FunctionDescriptor DrawPolyLines$descriptor() { + return DrawPolyLines.DESC; } - private static final int PIXELFORMAT_COMPRESSED_PVRT_RGB = (int)21L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 + * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_PVRT_RGB() { - return PIXELFORMAT_COMPRESSED_PVRT_RGB; + public static MethodHandle DrawPolyLines$handle() { + return DrawPolyLines.HANDLE; } - private static final int PIXELFORMAT_COMPRESSED_PVRT_RGBA = (int)22L; + /** + * Address for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 + * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_PVRT_RGBA() { - return PIXELFORMAT_COMPRESSED_PVRT_RGBA; + public static MemorySegment DrawPolyLines$address() { + return DrawPolyLines.ADDR; } - private static final int PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = (int)23L; + /** * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 + * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA() { - return PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA; + public static void DrawPolyLines(MemorySegment center, int sides, float radius, float rotation, MemorySegment color) { + var mh$ = DrawPolyLines.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawPolyLines", center, sides, radius, rotation, color); + } + mh$.invokeExact(center, sides, radius, rotation, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = (int)24L; + + private static class DrawPolyLinesEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + raylib.C_INT, + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPolyLinesEx"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 + * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) * } */ - public static int PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA() { - return PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA; + public static FunctionDescriptor DrawPolyLinesEx$descriptor() { + return DrawPolyLinesEx.DESC; } - private static final int TEXTURE_FILTER_POINT = (int)0L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .TEXTURE_FILTER_POINT = 0 + * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) * } */ - public static int TEXTURE_FILTER_POINT() { - return TEXTURE_FILTER_POINT; + public static MethodHandle DrawPolyLinesEx$handle() { + return DrawPolyLinesEx.HANDLE; } - private static final int TEXTURE_FILTER_BILINEAR = (int)1L; + /** + * Address for: * {@snippet lang=c : - * enum .TEXTURE_FILTER_BILINEAR = 1 + * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) * } */ - public static int TEXTURE_FILTER_BILINEAR() { - return TEXTURE_FILTER_BILINEAR; + public static MemorySegment DrawPolyLinesEx$address() { + return DrawPolyLinesEx.ADDR; } - private static final int TEXTURE_FILTER_TRILINEAR = (int)2L; + /** * {@snippet lang=c : - * enum .TEXTURE_FILTER_TRILINEAR = 2 + * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) * } */ - public static int TEXTURE_FILTER_TRILINEAR() { - return TEXTURE_FILTER_TRILINEAR; + public static void DrawPolyLinesEx(MemorySegment center, int sides, float radius, float rotation, float lineThick, MemorySegment color) { + var mh$ = DrawPolyLinesEx.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawPolyLinesEx", center, sides, radius, rotation, lineThick, color); + } + mh$.invokeExact(center, sides, radius, rotation, lineThick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int TEXTURE_FILTER_ANISOTROPIC_4X = (int)3L; + + private static class DrawSplineLinear { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineLinear"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .TEXTURE_FILTER_ANISOTROPIC_4X = 3 + * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_FILTER_ANISOTROPIC_4X() { - return TEXTURE_FILTER_ANISOTROPIC_4X; + public static FunctionDescriptor DrawSplineLinear$descriptor() { + return DrawSplineLinear.DESC; } - private static final int TEXTURE_FILTER_ANISOTROPIC_8X = (int)4L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .TEXTURE_FILTER_ANISOTROPIC_8X = 4 + * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_FILTER_ANISOTROPIC_8X() { - return TEXTURE_FILTER_ANISOTROPIC_8X; + public static MethodHandle DrawSplineLinear$handle() { + return DrawSplineLinear.HANDLE; } - private static final int TEXTURE_FILTER_ANISOTROPIC_16X = (int)5L; + /** + * Address for: * {@snippet lang=c : - * enum .TEXTURE_FILTER_ANISOTROPIC_16X = 5 + * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_FILTER_ANISOTROPIC_16X() { - return TEXTURE_FILTER_ANISOTROPIC_16X; + public static MemorySegment DrawSplineLinear$address() { + return DrawSplineLinear.ADDR; } - private static final int TEXTURE_WRAP_REPEAT = (int)0L; + /** * {@snippet lang=c : - * enum .TEXTURE_WRAP_REPEAT = 0 + * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_WRAP_REPEAT() { - return TEXTURE_WRAP_REPEAT; + public static void DrawSplineLinear(MemorySegment points, int pointCount, float thick, MemorySegment color) { + var mh$ = DrawSplineLinear.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineLinear", points, pointCount, thick, color); + } + mh$.invokeExact(points, pointCount, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int TEXTURE_WRAP_CLAMP = (int)1L; + + private static class DrawSplineBasis { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineBasis"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .TEXTURE_WRAP_CLAMP = 1 + * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_WRAP_CLAMP() { - return TEXTURE_WRAP_CLAMP; + public static FunctionDescriptor DrawSplineBasis$descriptor() { + return DrawSplineBasis.DESC; } - private static final int TEXTURE_WRAP_MIRROR_REPEAT = (int)2L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .TEXTURE_WRAP_MIRROR_REPEAT = 2 + * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_WRAP_MIRROR_REPEAT() { - return TEXTURE_WRAP_MIRROR_REPEAT; + public static MethodHandle DrawSplineBasis$handle() { + return DrawSplineBasis.HANDLE; } - private static final int TEXTURE_WRAP_MIRROR_CLAMP = (int)3L; + /** + * Address for: * {@snippet lang=c : - * enum .TEXTURE_WRAP_MIRROR_CLAMP = 3 + * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int TEXTURE_WRAP_MIRROR_CLAMP() { - return TEXTURE_WRAP_MIRROR_CLAMP; + public static MemorySegment DrawSplineBasis$address() { + return DrawSplineBasis.ADDR; } - private static final int CUBEMAP_LAYOUT_AUTO_DETECT = (int)0L; + /** * {@snippet lang=c : - * enum .CUBEMAP_LAYOUT_AUTO_DETECT = 0 + * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int CUBEMAP_LAYOUT_AUTO_DETECT() { - return CUBEMAP_LAYOUT_AUTO_DETECT; + public static void DrawSplineBasis(MemorySegment points, int pointCount, float thick, MemorySegment color) { + var mh$ = DrawSplineBasis.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineBasis", points, pointCount, thick, color); + } + mh$.invokeExact(points, pointCount, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int CUBEMAP_LAYOUT_LINE_VERTICAL = (int)1L; + + private static class DrawSplineCatmullRom { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineCatmullRom"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .CUBEMAP_LAYOUT_LINE_VERTICAL = 1 + * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int CUBEMAP_LAYOUT_LINE_VERTICAL() { - return CUBEMAP_LAYOUT_LINE_VERTICAL; + public static FunctionDescriptor DrawSplineCatmullRom$descriptor() { + return DrawSplineCatmullRom.DESC; } - private static final int CUBEMAP_LAYOUT_LINE_HORIZONTAL = (int)2L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2 + * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int CUBEMAP_LAYOUT_LINE_HORIZONTAL() { - return CUBEMAP_LAYOUT_LINE_HORIZONTAL; + public static MethodHandle DrawSplineCatmullRom$handle() { + return DrawSplineCatmullRom.HANDLE; } - private static final int CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = (int)3L; + /** + * Address for: * {@snippet lang=c : - * enum .CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3 + * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR() { - return CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR; + public static MemorySegment DrawSplineCatmullRom$address() { + return DrawSplineCatmullRom.ADDR; } - private static final int CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = (int)4L; + /** * {@snippet lang=c : - * enum .CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4 + * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE() { - return CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE; + public static void DrawSplineCatmullRom(MemorySegment points, int pointCount, float thick, MemorySegment color) { + var mh$ = DrawSplineCatmullRom.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineCatmullRom", points, pointCount, thick, color); + } + mh$.invokeExact(points, pointCount, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int CUBEMAP_LAYOUT_PANORAMA = (int)5L; + + private static class DrawSplineBezierQuadratic { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineBezierQuadratic"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .CUBEMAP_LAYOUT_PANORAMA = 5 + * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int CUBEMAP_LAYOUT_PANORAMA() { - return CUBEMAP_LAYOUT_PANORAMA; + public static FunctionDescriptor DrawSplineBezierQuadratic$descriptor() { + return DrawSplineBezierQuadratic.DESC; } - private static final int FONT_DEFAULT = (int)0L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .FONT_DEFAULT = 0 + * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int FONT_DEFAULT() { - return FONT_DEFAULT; + public static MethodHandle DrawSplineBezierQuadratic$handle() { + return DrawSplineBezierQuadratic.HANDLE; } - private static final int FONT_BITMAP = (int)1L; + /** + * Address for: * {@snippet lang=c : - * enum .FONT_BITMAP = 1 + * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int FONT_BITMAP() { - return FONT_BITMAP; + public static MemorySegment DrawSplineBezierQuadratic$address() { + return DrawSplineBezierQuadratic.ADDR; } - private static final int FONT_SDF = (int)2L; + /** * {@snippet lang=c : - * enum .FONT_SDF = 2 + * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int FONT_SDF() { - return FONT_SDF; + public static void DrawSplineBezierQuadratic(MemorySegment points, int pointCount, float thick, MemorySegment color) { + var mh$ = DrawSplineBezierQuadratic.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineBezierQuadratic", points, pointCount, thick, color); + } + mh$.invokeExact(points, pointCount, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int BLEND_ALPHA = (int)0L; + + private static class DrawSplineBezierCubic { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineBezierCubic"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .BLEND_ALPHA = 0 + * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int BLEND_ALPHA() { - return BLEND_ALPHA; + public static FunctionDescriptor DrawSplineBezierCubic$descriptor() { + return DrawSplineBezierCubic.DESC; } - private static final int BLEND_ADDITIVE = (int)1L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .BLEND_ADDITIVE = 1 + * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int BLEND_ADDITIVE() { - return BLEND_ADDITIVE; + public static MethodHandle DrawSplineBezierCubic$handle() { + return DrawSplineBezierCubic.HANDLE; } - private static final int BLEND_MULTIPLIED = (int)2L; + /** + * Address for: * {@snippet lang=c : - * enum .BLEND_MULTIPLIED = 2 + * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int BLEND_MULTIPLIED() { - return BLEND_MULTIPLIED; + public static MemorySegment DrawSplineBezierCubic$address() { + return DrawSplineBezierCubic.ADDR; } - private static final int BLEND_ADD_COLORS = (int)3L; + /** * {@snippet lang=c : - * enum .BLEND_ADD_COLORS = 3 + * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) * } */ - public static int BLEND_ADD_COLORS() { - return BLEND_ADD_COLORS; + public static void DrawSplineBezierCubic(MemorySegment points, int pointCount, float thick, MemorySegment color) { + var mh$ = DrawSplineBezierCubic.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineBezierCubic", points, pointCount, thick, color); + } + mh$.invokeExact(points, pointCount, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + + private static class DrawSplineSegmentLinear { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentLinear"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int BLEND_SUBTRACT_COLORS = (int)4L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .BLEND_SUBTRACT_COLORS = 4 + * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) * } */ - public static int BLEND_SUBTRACT_COLORS() { - return BLEND_SUBTRACT_COLORS; + public static FunctionDescriptor DrawSplineSegmentLinear$descriptor() { + return DrawSplineSegmentLinear.DESC; } - private static final int BLEND_ALPHA_PREMULTIPLY = (int)5L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .BLEND_ALPHA_PREMULTIPLY = 5 + * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) * } */ - public static int BLEND_ALPHA_PREMULTIPLY() { - return BLEND_ALPHA_PREMULTIPLY; + public static MethodHandle DrawSplineSegmentLinear$handle() { + return DrawSplineSegmentLinear.HANDLE; } - private static final int BLEND_CUSTOM = (int)6L; + /** + * Address for: * {@snippet lang=c : - * enum .BLEND_CUSTOM = 6 + * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) * } */ - public static int BLEND_CUSTOM() { - return BLEND_CUSTOM; + public static MemorySegment DrawSplineSegmentLinear$address() { + return DrawSplineSegmentLinear.ADDR; } - private static final int BLEND_CUSTOM_SEPARATE = (int)7L; + /** * {@snippet lang=c : - * enum .BLEND_CUSTOM_SEPARATE = 7 + * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) * } */ - public static int BLEND_CUSTOM_SEPARATE() { - return BLEND_CUSTOM_SEPARATE; + public static void DrawSplineSegmentLinear(MemorySegment p1, MemorySegment p2, float thick, MemorySegment color) { + var mh$ = DrawSplineSegmentLinear.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineSegmentLinear", p1, p2, thick, color); + } + mh$.invokeExact(p1, p2, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GESTURE_NONE = (int)0L; - /** - * {@snippet lang=c : - * enum .GESTURE_NONE = 0 - * } - */ - public static int GESTURE_NONE() { - return GESTURE_NONE; + + private static class DrawSplineSegmentBasis { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentBasis"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } - private static final int GESTURE_TAP = (int)1L; + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GESTURE_TAP = 1 + * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_TAP() { - return GESTURE_TAP; + public static FunctionDescriptor DrawSplineSegmentBasis$descriptor() { + return DrawSplineSegmentBasis.DESC; } - private static final int GESTURE_DOUBLETAP = (int)2L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GESTURE_DOUBLETAP = 2 + * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_DOUBLETAP() { - return GESTURE_DOUBLETAP; + public static MethodHandle DrawSplineSegmentBasis$handle() { + return DrawSplineSegmentBasis.HANDLE; } - private static final int GESTURE_HOLD = (int)4L; + /** + * Address for: * {@snippet lang=c : - * enum .GESTURE_HOLD = 4 + * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_HOLD() { - return GESTURE_HOLD; + public static MemorySegment DrawSplineSegmentBasis$address() { + return DrawSplineSegmentBasis.ADDR; } - private static final int GESTURE_DRAG = (int)8L; + /** * {@snippet lang=c : - * enum .GESTURE_DRAG = 8 + * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_DRAG() { - return GESTURE_DRAG; + public static void DrawSplineSegmentBasis(MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float thick, MemorySegment color) { + var mh$ = DrawSplineSegmentBasis.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineSegmentBasis", p1, p2, p3, p4, thick, color); + } + mh$.invokeExact(p1, p2, p3, p4, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GESTURE_SWIPE_RIGHT = (int)16L; + + private static class DrawSplineSegmentCatmullRom { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentCatmullRom"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GESTURE_SWIPE_RIGHT = 16 + * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_SWIPE_RIGHT() { - return GESTURE_SWIPE_RIGHT; + public static FunctionDescriptor DrawSplineSegmentCatmullRom$descriptor() { + return DrawSplineSegmentCatmullRom.DESC; } - private static final int GESTURE_SWIPE_LEFT = (int)32L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GESTURE_SWIPE_LEFT = 32 + * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_SWIPE_LEFT() { - return GESTURE_SWIPE_LEFT; + public static MethodHandle DrawSplineSegmentCatmullRom$handle() { + return DrawSplineSegmentCatmullRom.HANDLE; } - private static final int GESTURE_SWIPE_UP = (int)64L; + /** + * Address for: * {@snippet lang=c : - * enum .GESTURE_SWIPE_UP = 64 + * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_SWIPE_UP() { - return GESTURE_SWIPE_UP; + public static MemorySegment DrawSplineSegmentCatmullRom$address() { + return DrawSplineSegmentCatmullRom.ADDR; } - private static final int GESTURE_SWIPE_DOWN = (int)128L; + /** * {@snippet lang=c : - * enum .GESTURE_SWIPE_DOWN = 128 + * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) * } */ - public static int GESTURE_SWIPE_DOWN() { - return GESTURE_SWIPE_DOWN; + public static void DrawSplineSegmentCatmullRom(MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float thick, MemorySegment color) { + var mh$ = DrawSplineSegmentCatmullRom.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineSegmentCatmullRom", p1, p2, p3, p4, thick, color); + } + mh$.invokeExact(p1, p2, p3, p4, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int GESTURE_PINCH_IN = (int)256L; + + private static class DrawSplineSegmentBezierQuadratic { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentBezierQuadratic"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .GESTURE_PINCH_IN = 256 + * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) * } */ - public static int GESTURE_PINCH_IN() { - return GESTURE_PINCH_IN; + public static FunctionDescriptor DrawSplineSegmentBezierQuadratic$descriptor() { + return DrawSplineSegmentBezierQuadratic.DESC; } - private static final int GESTURE_PINCH_OUT = (int)512L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .GESTURE_PINCH_OUT = 512 + * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) * } */ - public static int GESTURE_PINCH_OUT() { - return GESTURE_PINCH_OUT; + public static MethodHandle DrawSplineSegmentBezierQuadratic$handle() { + return DrawSplineSegmentBezierQuadratic.HANDLE; } - private static final int CAMERA_CUSTOM = (int)0L; + /** + * Address for: * {@snippet lang=c : - * enum .CAMERA_CUSTOM = 0 + * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) * } */ - public static int CAMERA_CUSTOM() { - return CAMERA_CUSTOM; + public static MemorySegment DrawSplineSegmentBezierQuadratic$address() { + return DrawSplineSegmentBezierQuadratic.ADDR; } - private static final int CAMERA_FREE = (int)1L; + /** * {@snippet lang=c : - * enum .CAMERA_FREE = 1 + * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) * } */ - public static int CAMERA_FREE() { - return CAMERA_FREE; + public static void DrawSplineSegmentBezierQuadratic(MemorySegment p1, MemorySegment c2, MemorySegment p3, float thick, MemorySegment color) { + var mh$ = DrawSplineSegmentBezierQuadratic.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineSegmentBezierQuadratic", p1, c2, p3, thick, color); + } + mh$.invokeExact(p1, c2, p3, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int CAMERA_ORBITAL = (int)2L; + + private static class DrawSplineSegmentBezierCubic { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentBezierCubic"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .CAMERA_ORBITAL = 2 + * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) * } */ - public static int CAMERA_ORBITAL() { - return CAMERA_ORBITAL; + public static FunctionDescriptor DrawSplineSegmentBezierCubic$descriptor() { + return DrawSplineSegmentBezierCubic.DESC; } - private static final int CAMERA_FIRST_PERSON = (int)3L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .CAMERA_FIRST_PERSON = 3 + * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) * } */ - public static int CAMERA_FIRST_PERSON() { - return CAMERA_FIRST_PERSON; + public static MethodHandle DrawSplineSegmentBezierCubic$handle() { + return DrawSplineSegmentBezierCubic.HANDLE; } - private static final int CAMERA_THIRD_PERSON = (int)4L; + /** + * Address for: * {@snippet lang=c : - * enum .CAMERA_THIRD_PERSON = 4 + * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) * } */ - public static int CAMERA_THIRD_PERSON() { - return CAMERA_THIRD_PERSON; + public static MemorySegment DrawSplineSegmentBezierCubic$address() { + return DrawSplineSegmentBezierCubic.ADDR; } - private static final int CAMERA_PERSPECTIVE = (int)0L; + /** * {@snippet lang=c : - * enum .CAMERA_PERSPECTIVE = 0 + * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) * } */ - public static int CAMERA_PERSPECTIVE() { - return CAMERA_PERSPECTIVE; + public static void DrawSplineSegmentBezierCubic(MemorySegment p1, MemorySegment c2, MemorySegment c3, MemorySegment p4, float thick, MemorySegment color) { + var mh$ = DrawSplineSegmentBezierCubic.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawSplineSegmentBezierCubic", p1, c2, c3, p4, thick, color); + } + mh$.invokeExact(p1, c2, c3, p4, thick, color); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static final int CAMERA_ORTHOGRAPHIC = (int)1L; + + private static class GetSplinePointLinear { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointLinear"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** + * Function descriptor for: * {@snippet lang=c : - * enum .CAMERA_ORTHOGRAPHIC = 1 + * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) * } */ - public static int CAMERA_ORTHOGRAPHIC() { - return CAMERA_ORTHOGRAPHIC; + public static FunctionDescriptor GetSplinePointLinear$descriptor() { + return GetSplinePointLinear.DESC; } - private static final int NPATCH_NINE_PATCH = (int)0L; + /** + * Downcall method handle for: * {@snippet lang=c : - * enum .NPATCH_NINE_PATCH = 0 + * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) * } */ - public static int NPATCH_NINE_PATCH() { - return NPATCH_NINE_PATCH; + public static MethodHandle GetSplinePointLinear$handle() { + return GetSplinePointLinear.HANDLE; } - private static final int NPATCH_THREE_PATCH_VERTICAL = (int)1L; + /** + * Address for: * {@snippet lang=c : - * enum .NPATCH_THREE_PATCH_VERTICAL = 1 + * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) * } */ - public static int NPATCH_THREE_PATCH_VERTICAL() { - return NPATCH_THREE_PATCH_VERTICAL; + public static MemorySegment GetSplinePointLinear$address() { + return GetSplinePointLinear.ADDR; } - private static final int NPATCH_THREE_PATCH_HORIZONTAL = (int)2L; + /** * {@snippet lang=c : - * enum .NPATCH_THREE_PATCH_HORIZONTAL = 2 + * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) * } */ - public static int NPATCH_THREE_PATCH_HORIZONTAL() { - return NPATCH_THREE_PATCH_HORIZONTAL; + public static MemorySegment GetSplinePointLinear(SegmentAllocator allocator, MemorySegment startPos, MemorySegment endPos, float t) { + var mh$ = GetSplinePointLinear.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("GetSplinePointLinear", allocator, startPos, endPos, t); + } + return (MemorySegment)mh$.invokeExact(allocator, startPos, endPos, t); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } } - private static class InitWindow { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER + private static class GetSplinePointBasis { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("InitWindow"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointBasis"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6200,54 +18529,61 @@ private static class InitWindow { /** * Function descriptor for: * {@snippet lang=c : - * void InitWindow(int width, int height, const char *title) + * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static FunctionDescriptor InitWindow$descriptor() { - return InitWindow.DESC; + public static FunctionDescriptor GetSplinePointBasis$descriptor() { + return GetSplinePointBasis.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void InitWindow(int width, int height, const char *title) + * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static MethodHandle InitWindow$handle() { - return InitWindow.HANDLE; + public static MethodHandle GetSplinePointBasis$handle() { + return GetSplinePointBasis.HANDLE; } /** * Address for: * {@snippet lang=c : - * void InitWindow(int width, int height, const char *title) + * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static MemorySegment InitWindow$address() { - return InitWindow.ADDR; + public static MemorySegment GetSplinePointBasis$address() { + return GetSplinePointBasis.ADDR; } /** * {@snippet lang=c : - * void InitWindow(int width, int height, const char *title) + * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static void InitWindow(int width, int height, MemorySegment title) { - var mh$ = InitWindow.HANDLE; + public static MemorySegment GetSplinePointBasis(SegmentAllocator allocator, MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float t) { + var mh$ = GetSplinePointBasis.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("InitWindow", width, height, title); + traceDowncall("GetSplinePointBasis", allocator, p1, p2, p3, p4, t); } - mh$.invokeExact(width, height, title); + return (MemorySegment)mh$.invokeExact(allocator, p1, p2, p3, p4, t); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CloseWindow { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class GetSplinePointCatmullRom { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("CloseWindow"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointCatmullRom"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6255,55 +18591,60 @@ private static class CloseWindow { /** * Function descriptor for: * {@snippet lang=c : - * void CloseWindow() + * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static FunctionDescriptor CloseWindow$descriptor() { - return CloseWindow.DESC; + public static FunctionDescriptor GetSplinePointCatmullRom$descriptor() { + return GetSplinePointCatmullRom.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void CloseWindow() + * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static MethodHandle CloseWindow$handle() { - return CloseWindow.HANDLE; + public static MethodHandle GetSplinePointCatmullRom$handle() { + return GetSplinePointCatmullRom.HANDLE; } /** * Address for: * {@snippet lang=c : - * void CloseWindow() + * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static MemorySegment CloseWindow$address() { - return CloseWindow.ADDR; + public static MemorySegment GetSplinePointCatmullRom$address() { + return GetSplinePointCatmullRom.ADDR; } /** * {@snippet lang=c : - * void CloseWindow() + * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) * } */ - public static void CloseWindow() { - var mh$ = CloseWindow.HANDLE; + public static MemorySegment GetSplinePointCatmullRom(SegmentAllocator allocator, MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float t) { + var mh$ = GetSplinePointCatmullRom.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CloseWindow"); + traceDowncall("GetSplinePointCatmullRom", allocator, p1, p2, p3, p4, t); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, p1, p2, p3, p4, t); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class WindowShouldClose { + private static class GetSplinePointBezierQuad { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("WindowShouldClose"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointBezierQuad"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6311,55 +18652,61 @@ private static class WindowShouldClose { /** * Function descriptor for: * {@snippet lang=c : - * bool WindowShouldClose() + * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) * } */ - public static FunctionDescriptor WindowShouldClose$descriptor() { - return WindowShouldClose.DESC; + public static FunctionDescriptor GetSplinePointBezierQuad$descriptor() { + return GetSplinePointBezierQuad.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool WindowShouldClose() + * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) * } */ - public static MethodHandle WindowShouldClose$handle() { - return WindowShouldClose.HANDLE; + public static MethodHandle GetSplinePointBezierQuad$handle() { + return GetSplinePointBezierQuad.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool WindowShouldClose() + * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) * } */ - public static MemorySegment WindowShouldClose$address() { - return WindowShouldClose.ADDR; + public static MemorySegment GetSplinePointBezierQuad$address() { + return GetSplinePointBezierQuad.ADDR; } /** * {@snippet lang=c : - * bool WindowShouldClose() + * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) * } */ - public static boolean WindowShouldClose() { - var mh$ = WindowShouldClose.HANDLE; + public static MemorySegment GetSplinePointBezierQuad(SegmentAllocator allocator, MemorySegment p1, MemorySegment c2, MemorySegment p3, float t) { + var mh$ = GetSplinePointBezierQuad.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("WindowShouldClose"); + traceDowncall("GetSplinePointBezierQuad", allocator, p1, c2, p3, t); } - return (boolean)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, p1, c2, p3, t); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowReady { + private static class GetSplinePointBezierCubic { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowReady"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointBezierCubic"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6367,55 +18714,58 @@ private static class IsWindowReady { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowReady() + * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) * } */ - public static FunctionDescriptor IsWindowReady$descriptor() { - return IsWindowReady.DESC; + public static FunctionDescriptor GetSplinePointBezierCubic$descriptor() { + return GetSplinePointBezierCubic.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowReady() + * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) * } */ - public static MethodHandle IsWindowReady$handle() { - return IsWindowReady.HANDLE; + public static MethodHandle GetSplinePointBezierCubic$handle() { + return GetSplinePointBezierCubic.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowReady() + * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) * } */ - public static MemorySegment IsWindowReady$address() { - return IsWindowReady.ADDR; + public static MemorySegment GetSplinePointBezierCubic$address() { + return GetSplinePointBezierCubic.ADDR; } /** * {@snippet lang=c : - * bool IsWindowReady() + * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) * } */ - public static boolean IsWindowReady() { - var mh$ = IsWindowReady.HANDLE; + public static MemorySegment GetSplinePointBezierCubic(SegmentAllocator allocator, MemorySegment p1, MemorySegment c2, MemorySegment c3, MemorySegment p4, float t) { + var mh$ = GetSplinePointBezierCubic.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowReady"); + traceDowncall("GetSplinePointBezierCubic", allocator, p1, c2, c3, p4, t); } - return (boolean)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, p1, c2, c3, p4, t); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowFullscreen { + private static class CheckCollisionRecs { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + raylib.C_BOOL, + Rectangle.layout(), + Rectangle.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowFullscreen"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionRecs"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6423,55 +18773,60 @@ private static class IsWindowFullscreen { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowFullscreen() + * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) * } */ - public static FunctionDescriptor IsWindowFullscreen$descriptor() { - return IsWindowFullscreen.DESC; + public static FunctionDescriptor CheckCollisionRecs$descriptor() { + return CheckCollisionRecs.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowFullscreen() + * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) * } */ - public static MethodHandle IsWindowFullscreen$handle() { - return IsWindowFullscreen.HANDLE; + public static MethodHandle CheckCollisionRecs$handle() { + return CheckCollisionRecs.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowFullscreen() + * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) * } */ - public static MemorySegment IsWindowFullscreen$address() { - return IsWindowFullscreen.ADDR; + public static MemorySegment CheckCollisionRecs$address() { + return CheckCollisionRecs.ADDR; } /** * {@snippet lang=c : - * bool IsWindowFullscreen() + * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) * } */ - public static boolean IsWindowFullscreen() { - var mh$ = IsWindowFullscreen.HANDLE; + public static boolean CheckCollisionRecs(MemorySegment rec1, MemorySegment rec2) { + var mh$ = CheckCollisionRecs.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowFullscreen"); + traceDowncall("CheckCollisionRecs", rec1, rec2); } - return (boolean)mh$.invokeExact(); + return (boolean)mh$.invokeExact(rec1, rec2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowHidden { + private static class CheckCollisionCircles { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + raylib.C_BOOL, + Vector2.layout(), + raylib.C_FLOAT, + Vector2.layout(), + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowHidden"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionCircles"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6479,55 +18834,59 @@ private static class IsWindowHidden { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowHidden() + * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) * } */ - public static FunctionDescriptor IsWindowHidden$descriptor() { - return IsWindowHidden.DESC; + public static FunctionDescriptor CheckCollisionCircles$descriptor() { + return CheckCollisionCircles.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowHidden() + * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) * } */ - public static MethodHandle IsWindowHidden$handle() { - return IsWindowHidden.HANDLE; + public static MethodHandle CheckCollisionCircles$handle() { + return CheckCollisionCircles.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowHidden() + * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) * } */ - public static MemorySegment IsWindowHidden$address() { - return IsWindowHidden.ADDR; + public static MemorySegment CheckCollisionCircles$address() { + return CheckCollisionCircles.ADDR; } /** * {@snippet lang=c : - * bool IsWindowHidden() + * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) * } */ - public static boolean IsWindowHidden() { - var mh$ = IsWindowHidden.HANDLE; + public static boolean CheckCollisionCircles(MemorySegment center1, float radius1, MemorySegment center2, float radius2) { + var mh$ = CheckCollisionCircles.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowHidden"); + traceDowncall("CheckCollisionCircles", center1, radius1, center2, radius2); } - return (boolean)mh$.invokeExact(); + return (boolean)mh$.invokeExact(center1, radius1, center2, radius2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowMinimized { + private static class CheckCollisionCircleRec { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + raylib.C_BOOL, + Vector2.layout(), + raylib.C_FLOAT, + Rectangle.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowMinimized"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionCircleRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6535,55 +18894,58 @@ private static class IsWindowMinimized { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowMinimized() + * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) * } */ - public static FunctionDescriptor IsWindowMinimized$descriptor() { - return IsWindowMinimized.DESC; + public static FunctionDescriptor CheckCollisionCircleRec$descriptor() { + return CheckCollisionCircleRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowMinimized() + * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) * } */ - public static MethodHandle IsWindowMinimized$handle() { - return IsWindowMinimized.HANDLE; + public static MethodHandle CheckCollisionCircleRec$handle() { + return CheckCollisionCircleRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowMinimized() + * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) * } */ - public static MemorySegment IsWindowMinimized$address() { - return IsWindowMinimized.ADDR; + public static MemorySegment CheckCollisionCircleRec$address() { + return CheckCollisionCircleRec.ADDR; } /** * {@snippet lang=c : - * bool IsWindowMinimized() + * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) * } */ - public static boolean IsWindowMinimized() { - var mh$ = IsWindowMinimized.HANDLE; + public static boolean CheckCollisionCircleRec(MemorySegment center, float radius, MemorySegment rec) { + var mh$ = CheckCollisionCircleRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowMinimized"); + traceDowncall("CheckCollisionCircleRec", center, radius, rec); } - return (boolean)mh$.invokeExact(); + return (boolean)mh$.invokeExact(center, radius, rec); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowMaximized { + private static class CheckCollisionPointRec { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + raylib.C_BOOL, + Vector2.layout(), + Rectangle.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowMaximized"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6591,55 +18953,59 @@ private static class IsWindowMaximized { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowMaximized() + * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) * } */ - public static FunctionDescriptor IsWindowMaximized$descriptor() { - return IsWindowMaximized.DESC; + public static FunctionDescriptor CheckCollisionPointRec$descriptor() { + return CheckCollisionPointRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowMaximized() + * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) * } */ - public static MethodHandle IsWindowMaximized$handle() { - return IsWindowMaximized.HANDLE; + public static MethodHandle CheckCollisionPointRec$handle() { + return CheckCollisionPointRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowMaximized() + * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) * } */ - public static MemorySegment IsWindowMaximized$address() { - return IsWindowMaximized.ADDR; + public static MemorySegment CheckCollisionPointRec$address() { + return CheckCollisionPointRec.ADDR; } /** * {@snippet lang=c : - * bool IsWindowMaximized() + * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) * } */ - public static boolean IsWindowMaximized() { - var mh$ = IsWindowMaximized.HANDLE; + public static boolean CheckCollisionPointRec(MemorySegment point, MemorySegment rec) { + var mh$ = CheckCollisionPointRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowMaximized"); + traceDowncall("CheckCollisionPointRec", point, rec); } - return (boolean)mh$.invokeExact(); + return (boolean)mh$.invokeExact(point, rec); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowFocused { + private static class CheckCollisionPointCircle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + raylib.C_BOOL, + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowFocused"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointCircle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6647,55 +19013,60 @@ private static class IsWindowFocused { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowFocused() + * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) * } */ - public static FunctionDescriptor IsWindowFocused$descriptor() { - return IsWindowFocused.DESC; + public static FunctionDescriptor CheckCollisionPointCircle$descriptor() { + return CheckCollisionPointCircle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowFocused() + * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) * } */ - public static MethodHandle IsWindowFocused$handle() { - return IsWindowFocused.HANDLE; + public static MethodHandle CheckCollisionPointCircle$handle() { + return CheckCollisionPointCircle.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowFocused() + * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) * } */ - public static MemorySegment IsWindowFocused$address() { - return IsWindowFocused.ADDR; + public static MemorySegment CheckCollisionPointCircle$address() { + return CheckCollisionPointCircle.ADDR; } /** * {@snippet lang=c : - * bool IsWindowFocused() + * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) * } */ - public static boolean IsWindowFocused() { - var mh$ = IsWindowFocused.HANDLE; + public static boolean CheckCollisionPointCircle(MemorySegment point, MemorySegment center, float radius) { + var mh$ = CheckCollisionPointCircle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowFocused"); + traceDowncall("CheckCollisionPointCircle", point, center, radius); } - return (boolean)mh$.invokeExact(); + return (boolean)mh$.invokeExact(point, center, radius); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowResized { + private static class CheckCollisionPointTriangle { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + raylib.C_BOOL, + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowResized"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointTriangle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6703,57 +19074,59 @@ private static class IsWindowResized { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowResized() + * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) * } */ - public static FunctionDescriptor IsWindowResized$descriptor() { - return IsWindowResized.DESC; + public static FunctionDescriptor CheckCollisionPointTriangle$descriptor() { + return CheckCollisionPointTriangle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowResized() + * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) * } */ - public static MethodHandle IsWindowResized$handle() { - return IsWindowResized.HANDLE; + public static MethodHandle CheckCollisionPointTriangle$handle() { + return CheckCollisionPointTriangle.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowResized() + * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) * } */ - public static MemorySegment IsWindowResized$address() { - return IsWindowResized.ADDR; + public static MemorySegment CheckCollisionPointTriangle$address() { + return CheckCollisionPointTriangle.ADDR; } /** * {@snippet lang=c : - * bool IsWindowResized() + * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) * } */ - public static boolean IsWindowResized() { - var mh$ = IsWindowResized.HANDLE; + public static boolean CheckCollisionPointTriangle(MemorySegment point, MemorySegment p1, MemorySegment p2, MemorySegment p3) { + var mh$ = CheckCollisionPointTriangle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowResized"); + traceDowncall("CheckCollisionPointTriangle", point, p1, p2, p3); } - return (boolean)mh$.invokeExact(); + return (boolean)mh$.invokeExact(point, p1, p2, p3); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsWindowState { + private static class CheckCollisionPointPoly { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_BOOL, + Vector2.layout(), + raylib.C_POINTER, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsWindowState"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointPoly"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6761,56 +19134,61 @@ private static class IsWindowState { /** * Function descriptor for: * {@snippet lang=c : - * bool IsWindowState(unsigned int flag) + * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) * } */ - public static FunctionDescriptor IsWindowState$descriptor() { - return IsWindowState.DESC; + public static FunctionDescriptor CheckCollisionPointPoly$descriptor() { + return CheckCollisionPointPoly.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsWindowState(unsigned int flag) + * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) * } */ - public static MethodHandle IsWindowState$handle() { - return IsWindowState.HANDLE; + public static MethodHandle CheckCollisionPointPoly$handle() { + return CheckCollisionPointPoly.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsWindowState(unsigned int flag) + * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) * } */ - public static MemorySegment IsWindowState$address() { - return IsWindowState.ADDR; + public static MemorySegment CheckCollisionPointPoly$address() { + return CheckCollisionPointPoly.ADDR; } /** * {@snippet lang=c : - * bool IsWindowState(unsigned int flag) + * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) * } */ - public static boolean IsWindowState(int flag) { - var mh$ = IsWindowState.HANDLE; + public static boolean CheckCollisionPointPoly(MemorySegment point, MemorySegment points, int pointCount) { + var mh$ = CheckCollisionPointPoly.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsWindowState", flag); + traceDowncall("CheckCollisionPointPoly", point, points, pointCount); } - return (boolean)mh$.invokeExact(flag); + return (boolean)mh$.invokeExact(point, points, pointCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - - private static class SetWindowState { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + + private static class CheckCollisionLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowState"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionLines"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6818,56 +19196,60 @@ private static class SetWindowState { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowState(unsigned int flags) + * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) * } */ - public static FunctionDescriptor SetWindowState$descriptor() { - return SetWindowState.DESC; + public static FunctionDescriptor CheckCollisionLines$descriptor() { + return CheckCollisionLines.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowState(unsigned int flags) + * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) * } */ - public static MethodHandle SetWindowState$handle() { - return SetWindowState.HANDLE; + public static MethodHandle CheckCollisionLines$handle() { + return CheckCollisionLines.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowState(unsigned int flags) + * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) * } */ - public static MemorySegment SetWindowState$address() { - return SetWindowState.ADDR; + public static MemorySegment CheckCollisionLines$address() { + return CheckCollisionLines.ADDR; } /** * {@snippet lang=c : - * void SetWindowState(unsigned int flags) + * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) * } */ - public static void SetWindowState(int flags) { - var mh$ = SetWindowState.HANDLE; + public static boolean CheckCollisionLines(MemorySegment startPos1, MemorySegment endPos1, MemorySegment startPos2, MemorySegment endPos2, MemorySegment collisionPoint) { + var mh$ = CheckCollisionLines.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowState", flags); + traceDowncall("CheckCollisionLines", startPos1, endPos1, startPos2, endPos2, collisionPoint); } - mh$.invokeExact(flags); + return (boolean)mh$.invokeExact(startPos1, endPos1, startPos2, endPos2, collisionPoint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ClearWindowState { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + private static class CheckCollisionPointLine { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Vector2.layout(), + Vector2.layout(), + Vector2.layout(), raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ClearWindowState"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointLine"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6875,54 +19257,58 @@ private static class ClearWindowState { /** * Function descriptor for: * {@snippet lang=c : - * void ClearWindowState(unsigned int flags) + * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) * } */ - public static FunctionDescriptor ClearWindowState$descriptor() { - return ClearWindowState.DESC; + public static FunctionDescriptor CheckCollisionPointLine$descriptor() { + return CheckCollisionPointLine.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ClearWindowState(unsigned int flags) + * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) * } */ - public static MethodHandle ClearWindowState$handle() { - return ClearWindowState.HANDLE; + public static MethodHandle CheckCollisionPointLine$handle() { + return CheckCollisionPointLine.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ClearWindowState(unsigned int flags) + * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) * } */ - public static MemorySegment ClearWindowState$address() { - return ClearWindowState.ADDR; + public static MemorySegment CheckCollisionPointLine$address() { + return CheckCollisionPointLine.ADDR; } /** * {@snippet lang=c : - * void ClearWindowState(unsigned int flags) + * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) * } */ - public static void ClearWindowState(int flags) { - var mh$ = ClearWindowState.HANDLE; + public static boolean CheckCollisionPointLine(MemorySegment point, MemorySegment p1, MemorySegment p2, int threshold) { + var mh$ = CheckCollisionPointLine.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ClearWindowState", flags); + traceDowncall("CheckCollisionPointLine", point, p1, p2, threshold); } - mh$.invokeExact(flags); + return (boolean)mh$.invokeExact(point, p1, p2, threshold); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ToggleFullscreen { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class GetCollisionRec { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Rectangle.layout(), + Rectangle.layout(), + Rectangle.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("ToggleFullscreen"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetCollisionRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6930,54 +19316,57 @@ private static class ToggleFullscreen { /** * Function descriptor for: * {@snippet lang=c : - * void ToggleFullscreen() + * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) * } */ - public static FunctionDescriptor ToggleFullscreen$descriptor() { - return ToggleFullscreen.DESC; + public static FunctionDescriptor GetCollisionRec$descriptor() { + return GetCollisionRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ToggleFullscreen() + * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) * } */ - public static MethodHandle ToggleFullscreen$handle() { - return ToggleFullscreen.HANDLE; + public static MethodHandle GetCollisionRec$handle() { + return GetCollisionRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ToggleFullscreen() + * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) * } */ - public static MemorySegment ToggleFullscreen$address() { - return ToggleFullscreen.ADDR; + public static MemorySegment GetCollisionRec$address() { + return GetCollisionRec.ADDR; } /** * {@snippet lang=c : - * void ToggleFullscreen() + * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) * } */ - public static void ToggleFullscreen() { - var mh$ = ToggleFullscreen.HANDLE; + public static MemorySegment GetCollisionRec(SegmentAllocator allocator, MemorySegment rec1, MemorySegment rec2) { + var mh$ = GetCollisionRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ToggleFullscreen"); + traceDowncall("GetCollisionRec", allocator, rec1, rec2); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, rec1, rec2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ToggleBorderlessWindowed { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class LoadImage { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("ToggleBorderlessWindowed"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImage"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -6985,54 +19374,61 @@ private static class ToggleBorderlessWindowed { /** * Function descriptor for: * {@snippet lang=c : - * void ToggleBorderlessWindowed() + * Image LoadImage(const char *fileName) * } */ - public static FunctionDescriptor ToggleBorderlessWindowed$descriptor() { - return ToggleBorderlessWindowed.DESC; + public static FunctionDescriptor LoadImage$descriptor() { + return LoadImage.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ToggleBorderlessWindowed() + * Image LoadImage(const char *fileName) * } */ - public static MethodHandle ToggleBorderlessWindowed$handle() { - return ToggleBorderlessWindowed.HANDLE; + public static MethodHandle LoadImage$handle() { + return LoadImage.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ToggleBorderlessWindowed() + * Image LoadImage(const char *fileName) * } */ - public static MemorySegment ToggleBorderlessWindowed$address() { - return ToggleBorderlessWindowed.ADDR; + public static MemorySegment LoadImage$address() { + return LoadImage.ADDR; } /** * {@snippet lang=c : - * void ToggleBorderlessWindowed() + * Image LoadImage(const char *fileName) * } */ - public static void ToggleBorderlessWindowed() { - var mh$ = ToggleBorderlessWindowed.HANDLE; + public static MemorySegment LoadImage(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadImage.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ToggleBorderlessWindowed"); + traceDowncall("LoadImage", allocator, fileName); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MaximizeWindow { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class LoadImageRaw { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("MaximizeWindow"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageRaw"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7040,54 +19436,59 @@ private static class MaximizeWindow { /** * Function descriptor for: * {@snippet lang=c : - * void MaximizeWindow() + * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) * } */ - public static FunctionDescriptor MaximizeWindow$descriptor() { - return MaximizeWindow.DESC; + public static FunctionDescriptor LoadImageRaw$descriptor() { + return LoadImageRaw.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void MaximizeWindow() + * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) * } */ - public static MethodHandle MaximizeWindow$handle() { - return MaximizeWindow.HANDLE; + public static MethodHandle LoadImageRaw$handle() { + return LoadImageRaw.HANDLE; } /** * Address for: * {@snippet lang=c : - * void MaximizeWindow() + * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) * } */ - public static MemorySegment MaximizeWindow$address() { - return MaximizeWindow.ADDR; + public static MemorySegment LoadImageRaw$address() { + return LoadImageRaw.ADDR; } /** * {@snippet lang=c : - * void MaximizeWindow() + * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) * } */ - public static void MaximizeWindow() { - var mh$ = MaximizeWindow.HANDLE; + public static MemorySegment LoadImageRaw(SegmentAllocator allocator, MemorySegment fileName, int width, int height, int format, int headerSize) { + var mh$ = LoadImageRaw.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MaximizeWindow"); + traceDowncall("LoadImageRaw", allocator, fileName, width, height, format, headerSize); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, fileName, width, height, format, headerSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MinimizeWindow { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class LoadImageSvg { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("MinimizeWindow"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageSvg"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7095,54 +19496,58 @@ private static class MinimizeWindow { /** * Function descriptor for: * {@snippet lang=c : - * void MinimizeWindow() + * Image LoadImageSvg(const char *fileNameOrString, int width, int height) * } */ - public static FunctionDescriptor MinimizeWindow$descriptor() { - return MinimizeWindow.DESC; + public static FunctionDescriptor LoadImageSvg$descriptor() { + return LoadImageSvg.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void MinimizeWindow() + * Image LoadImageSvg(const char *fileNameOrString, int width, int height) * } */ - public static MethodHandle MinimizeWindow$handle() { - return MinimizeWindow.HANDLE; + public static MethodHandle LoadImageSvg$handle() { + return LoadImageSvg.HANDLE; } /** * Address for: * {@snippet lang=c : - * void MinimizeWindow() + * Image LoadImageSvg(const char *fileNameOrString, int width, int height) * } */ - public static MemorySegment MinimizeWindow$address() { - return MinimizeWindow.ADDR; + public static MemorySegment LoadImageSvg$address() { + return LoadImageSvg.ADDR; } /** * {@snippet lang=c : - * void MinimizeWindow() + * Image LoadImageSvg(const char *fileNameOrString, int width, int height) * } */ - public static void MinimizeWindow() { - var mh$ = MinimizeWindow.HANDLE; + public static MemorySegment LoadImageSvg(SegmentAllocator allocator, MemorySegment fileNameOrString, int width, int height) { + var mh$ = LoadImageSvg.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MinimizeWindow"); + traceDowncall("LoadImageSvg", allocator, fileNameOrString, width, height); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, fileNameOrString, width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class RestoreWindow { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class LoadImageAnim { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("RestoreWindow"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageAnim"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7150,56 +19555,60 @@ private static class RestoreWindow { /** * Function descriptor for: * {@snippet lang=c : - * void RestoreWindow() + * Image LoadImageAnim(const char *fileName, int *frames) * } */ - public static FunctionDescriptor RestoreWindow$descriptor() { - return RestoreWindow.DESC; + public static FunctionDescriptor LoadImageAnim$descriptor() { + return LoadImageAnim.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void RestoreWindow() + * Image LoadImageAnim(const char *fileName, int *frames) * } */ - public static MethodHandle RestoreWindow$handle() { - return RestoreWindow.HANDLE; + public static MethodHandle LoadImageAnim$handle() { + return LoadImageAnim.HANDLE; } /** * Address for: * {@snippet lang=c : - * void RestoreWindow() + * Image LoadImageAnim(const char *fileName, int *frames) * } */ - public static MemorySegment RestoreWindow$address() { - return RestoreWindow.ADDR; + public static MemorySegment LoadImageAnim$address() { + return LoadImageAnim.ADDR; } /** * {@snippet lang=c : - * void RestoreWindow() + * Image LoadImageAnim(const char *fileName, int *frames) * } */ - public static void RestoreWindow() { - var mh$ = RestoreWindow.HANDLE; + public static MemorySegment LoadImageAnim(SegmentAllocator allocator, MemorySegment fileName, MemorySegment frames) { + var mh$ = LoadImageAnim.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("RestoreWindow"); + traceDowncall("LoadImageAnim", allocator, fileName, frames); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, fileName, frames); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowIcon { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Image.layout() + private static class LoadImageAnimFromMemory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowIcon"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageAnimFromMemory"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7207,57 +19616,59 @@ private static class SetWindowIcon { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowIcon(Image image) + * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) * } */ - public static FunctionDescriptor SetWindowIcon$descriptor() { - return SetWindowIcon.DESC; + public static FunctionDescriptor LoadImageAnimFromMemory$descriptor() { + return LoadImageAnimFromMemory.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowIcon(Image image) + * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) * } */ - public static MethodHandle SetWindowIcon$handle() { - return SetWindowIcon.HANDLE; + public static MethodHandle LoadImageAnimFromMemory$handle() { + return LoadImageAnimFromMemory.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowIcon(Image image) + * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) * } */ - public static MemorySegment SetWindowIcon$address() { - return SetWindowIcon.ADDR; + public static MemorySegment LoadImageAnimFromMemory$address() { + return LoadImageAnimFromMemory.ADDR; } /** * {@snippet lang=c : - * void SetWindowIcon(Image image) + * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) * } */ - public static void SetWindowIcon(MemorySegment image) { - var mh$ = SetWindowIcon.HANDLE; + public static MemorySegment LoadImageAnimFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize, MemorySegment frames) { + var mh$ = LoadImageAnimFromMemory.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowIcon", image); + traceDowncall("LoadImageAnimFromMemory", allocator, fileType, fileData, dataSize, frames); } - mh$.invokeExact(image); + return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize, frames); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowIcons { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + private static class LoadImageFromMemory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER, raylib.C_POINTER, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowIcons"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageFromMemory"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7265,56 +19676,57 @@ private static class SetWindowIcons { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowIcons(Image *images, int count) + * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static FunctionDescriptor SetWindowIcons$descriptor() { - return SetWindowIcons.DESC; + public static FunctionDescriptor LoadImageFromMemory$descriptor() { + return LoadImageFromMemory.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowIcons(Image *images, int count) + * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static MethodHandle SetWindowIcons$handle() { - return SetWindowIcons.HANDLE; + public static MethodHandle LoadImageFromMemory$handle() { + return LoadImageFromMemory.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowIcons(Image *images, int count) + * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static MemorySegment SetWindowIcons$address() { - return SetWindowIcons.ADDR; + public static MemorySegment LoadImageFromMemory$address() { + return LoadImageFromMemory.ADDR; } /** * {@snippet lang=c : - * void SetWindowIcons(Image *images, int count) + * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static void SetWindowIcons(MemorySegment images, int count) { - var mh$ = SetWindowIcons.HANDLE; + public static MemorySegment LoadImageFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize) { + var mh$ = LoadImageFromMemory.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowIcons", images, count); + traceDowncall("LoadImageFromMemory", allocator, fileType, fileData, dataSize); } - mh$.invokeExact(images, count); + return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowTitle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class LoadImageFromTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + Texture.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowTitle"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageFromTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7322,57 +19734,55 @@ private static class SetWindowTitle { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowTitle(const char *title) + * Image LoadImageFromTexture(Texture2D texture) * } */ - public static FunctionDescriptor SetWindowTitle$descriptor() { - return SetWindowTitle.DESC; + public static FunctionDescriptor LoadImageFromTexture$descriptor() { + return LoadImageFromTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowTitle(const char *title) + * Image LoadImageFromTexture(Texture2D texture) * } */ - public static MethodHandle SetWindowTitle$handle() { - return SetWindowTitle.HANDLE; + public static MethodHandle LoadImageFromTexture$handle() { + return LoadImageFromTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowTitle(const char *title) + * Image LoadImageFromTexture(Texture2D texture) * } */ - public static MemorySegment SetWindowTitle$address() { - return SetWindowTitle.ADDR; + public static MemorySegment LoadImageFromTexture$address() { + return LoadImageFromTexture.ADDR; } /** * {@snippet lang=c : - * void SetWindowTitle(const char *title) + * Image LoadImageFromTexture(Texture2D texture) * } */ - public static void SetWindowTitle(MemorySegment title) { - var mh$ = SetWindowTitle.HANDLE; + public static MemorySegment LoadImageFromTexture(SegmentAllocator allocator, MemorySegment texture) { + var mh$ = LoadImageFromTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowTitle", title); + traceDowncall("LoadImageFromTexture", allocator, texture); } - mh$.invokeExact(title); + return (MemorySegment)mh$.invokeExact(allocator, texture); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowPosition { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT - ); + private static class LoadImageFromScreen { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowPosition"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageFromScreen"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7380,56 +19790,57 @@ private static class SetWindowPosition { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowPosition(int x, int y) + * Image LoadImageFromScreen() * } */ - public static FunctionDescriptor SetWindowPosition$descriptor() { - return SetWindowPosition.DESC; + public static FunctionDescriptor LoadImageFromScreen$descriptor() { + return LoadImageFromScreen.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowPosition(int x, int y) + * Image LoadImageFromScreen() * } */ - public static MethodHandle SetWindowPosition$handle() { - return SetWindowPosition.HANDLE; + public static MethodHandle LoadImageFromScreen$handle() { + return LoadImageFromScreen.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowPosition(int x, int y) + * Image LoadImageFromScreen() * } */ - public static MemorySegment SetWindowPosition$address() { - return SetWindowPosition.ADDR; + public static MemorySegment LoadImageFromScreen$address() { + return LoadImageFromScreen.ADDR; } /** * {@snippet lang=c : - * void SetWindowPosition(int x, int y) + * Image LoadImageFromScreen() * } */ - public static void SetWindowPosition(int x, int y) { - var mh$ = SetWindowPosition.HANDLE; + public static MemorySegment LoadImageFromScreen(SegmentAllocator allocator) { + var mh$ = LoadImageFromScreen.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowPosition", x, y); + traceDowncall("LoadImageFromScreen", allocator); } - mh$.invokeExact(x, y); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowMonitor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class IsImageReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Image.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowMonitor"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsImageReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7437,57 +19848,56 @@ private static class SetWindowMonitor { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowMonitor(int monitor) + * bool IsImageReady(Image image) * } */ - public static FunctionDescriptor SetWindowMonitor$descriptor() { - return SetWindowMonitor.DESC; + public static FunctionDescriptor IsImageReady$descriptor() { + return IsImageReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowMonitor(int monitor) + * bool IsImageReady(Image image) * } */ - public static MethodHandle SetWindowMonitor$handle() { - return SetWindowMonitor.HANDLE; + public static MethodHandle IsImageReady$handle() { + return IsImageReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowMonitor(int monitor) + * bool IsImageReady(Image image) * } */ - public static MemorySegment SetWindowMonitor$address() { - return SetWindowMonitor.ADDR; + public static MemorySegment IsImageReady$address() { + return IsImageReady.ADDR; } /** * {@snippet lang=c : - * void SetWindowMonitor(int monitor) + * bool IsImageReady(Image image) * } */ - public static void SetWindowMonitor(int monitor) { - var mh$ = SetWindowMonitor.HANDLE; + public static boolean IsImageReady(MemorySegment image) { + var mh$ = IsImageReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowMonitor", monitor); + traceDowncall("IsImageReady", image); } - mh$.invokeExact(monitor); + return (boolean)mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowMinSize { + private static class UnloadImage { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT + Image.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowMinSize"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadImage"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7495,57 +19905,58 @@ private static class SetWindowMinSize { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowMinSize(int width, int height) + * void UnloadImage(Image image) * } */ - public static FunctionDescriptor SetWindowMinSize$descriptor() { - return SetWindowMinSize.DESC; + public static FunctionDescriptor UnloadImage$descriptor() { + return UnloadImage.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowMinSize(int width, int height) + * void UnloadImage(Image image) * } */ - public static MethodHandle SetWindowMinSize$handle() { - return SetWindowMinSize.HANDLE; + public static MethodHandle UnloadImage$handle() { + return UnloadImage.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowMinSize(int width, int height) + * void UnloadImage(Image image) * } */ - public static MemorySegment SetWindowMinSize$address() { - return SetWindowMinSize.ADDR; + public static MemorySegment UnloadImage$address() { + return UnloadImage.ADDR; } /** * {@snippet lang=c : - * void SetWindowMinSize(int width, int height) + * void UnloadImage(Image image) * } */ - public static void SetWindowMinSize(int width, int height) { - var mh$ = SetWindowMinSize.HANDLE; + public static void UnloadImage(MemorySegment image) { + var mh$ = UnloadImage.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowMinSize", width, height); + traceDowncall("UnloadImage", image); } - mh$.invokeExact(width, height); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowMaxSize { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT + private static class ExportImage { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Image.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowMaxSize"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportImage"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7553,57 +19964,59 @@ private static class SetWindowMaxSize { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowMaxSize(int width, int height) + * bool ExportImage(Image image, const char *fileName) * } */ - public static FunctionDescriptor SetWindowMaxSize$descriptor() { - return SetWindowMaxSize.DESC; + public static FunctionDescriptor ExportImage$descriptor() { + return ExportImage.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowMaxSize(int width, int height) + * bool ExportImage(Image image, const char *fileName) * } */ - public static MethodHandle SetWindowMaxSize$handle() { - return SetWindowMaxSize.HANDLE; + public static MethodHandle ExportImage$handle() { + return ExportImage.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowMaxSize(int width, int height) + * bool ExportImage(Image image, const char *fileName) * } */ - public static MemorySegment SetWindowMaxSize$address() { - return SetWindowMaxSize.ADDR; + public static MemorySegment ExportImage$address() { + return ExportImage.ADDR; } /** * {@snippet lang=c : - * void SetWindowMaxSize(int width, int height) + * bool ExportImage(Image image, const char *fileName) * } */ - public static void SetWindowMaxSize(int width, int height) { - var mh$ = SetWindowMaxSize.HANDLE; + public static boolean ExportImage(MemorySegment image, MemorySegment fileName) { + var mh$ = ExportImage.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowMaxSize", width, height); + traceDowncall("ExportImage", image, fileName); } - mh$.invokeExact(width, height); + return (boolean)mh$.invokeExact(image, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowSize { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT + private static class ExportImageToMemory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + Image.layout(), + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowSize"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportImageToMemory"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7611,56 +20024,58 @@ private static class SetWindowSize { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowSize(int width, int height) + * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) * } */ - public static FunctionDescriptor SetWindowSize$descriptor() { - return SetWindowSize.DESC; + public static FunctionDescriptor ExportImageToMemory$descriptor() { + return ExportImageToMemory.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowSize(int width, int height) + * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) * } */ - public static MethodHandle SetWindowSize$handle() { - return SetWindowSize.HANDLE; + public static MethodHandle ExportImageToMemory$handle() { + return ExportImageToMemory.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowSize(int width, int height) + * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) * } */ - public static MemorySegment SetWindowSize$address() { - return SetWindowSize.ADDR; + public static MemorySegment ExportImageToMemory$address() { + return ExportImageToMemory.ADDR; } /** * {@snippet lang=c : - * void SetWindowSize(int width, int height) + * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) * } */ - public static void SetWindowSize(int width, int height) { - var mh$ = SetWindowSize.HANDLE; + public static MemorySegment ExportImageToMemory(MemorySegment image, MemorySegment fileType, MemorySegment fileSize) { + var mh$ = ExportImageToMemory.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowSize", width, height); + traceDowncall("ExportImageToMemory", image, fileType, fileSize); } - mh$.invokeExact(width, height); + return (MemorySegment)mh$.invokeExact(image, fileType, fileSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowOpacity { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_FLOAT + private static class ExportImageAsCode { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Image.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowOpacity"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportImageAsCode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7668,54 +20083,59 @@ private static class SetWindowOpacity { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowOpacity(float opacity) + * bool ExportImageAsCode(Image image, const char *fileName) * } */ - public static FunctionDescriptor SetWindowOpacity$descriptor() { - return SetWindowOpacity.DESC; + public static FunctionDescriptor ExportImageAsCode$descriptor() { + return ExportImageAsCode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowOpacity(float opacity) + * bool ExportImageAsCode(Image image, const char *fileName) * } */ - public static MethodHandle SetWindowOpacity$handle() { - return SetWindowOpacity.HANDLE; + public static MethodHandle ExportImageAsCode$handle() { + return ExportImageAsCode.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowOpacity(float opacity) + * bool ExportImageAsCode(Image image, const char *fileName) * } */ - public static MemorySegment SetWindowOpacity$address() { - return SetWindowOpacity.ADDR; + public static MemorySegment ExportImageAsCode$address() { + return ExportImageAsCode.ADDR; } /** * {@snippet lang=c : - * void SetWindowOpacity(float opacity) + * bool ExportImageAsCode(Image image, const char *fileName) * } */ - public static void SetWindowOpacity(float opacity) { - var mh$ = SetWindowOpacity.HANDLE; + public static boolean ExportImageAsCode(MemorySegment image, MemorySegment fileName) { + var mh$ = ExportImageAsCode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowOpacity", opacity); + traceDowncall("ExportImageAsCode", image, fileName); } - mh$.invokeExact(opacity); + return (boolean)mh$.invokeExact(image, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetWindowFocused { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class GenImageColor { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetWindowFocused"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageColor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7723,55 +20143,61 @@ private static class SetWindowFocused { /** * Function descriptor for: * {@snippet lang=c : - * void SetWindowFocused() + * Image GenImageColor(int width, int height, Color color) * } */ - public static FunctionDescriptor SetWindowFocused$descriptor() { - return SetWindowFocused.DESC; + public static FunctionDescriptor GenImageColor$descriptor() { + return GenImageColor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetWindowFocused() + * Image GenImageColor(int width, int height, Color color) * } */ - public static MethodHandle SetWindowFocused$handle() { - return SetWindowFocused.HANDLE; + public static MethodHandle GenImageColor$handle() { + return GenImageColor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetWindowFocused() + * Image GenImageColor(int width, int height, Color color) * } */ - public static MemorySegment SetWindowFocused$address() { - return SetWindowFocused.ADDR; + public static MemorySegment GenImageColor$address() { + return GenImageColor.ADDR; } /** * {@snippet lang=c : - * void SetWindowFocused() + * Image GenImageColor(int width, int height, Color color) * } */ - public static void SetWindowFocused() { - var mh$ = SetWindowFocused.HANDLE; + public static MemorySegment GenImageColor(SegmentAllocator allocator, int width, int height, MemorySegment color) { + var mh$ = GenImageColor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetWindowFocused"); + traceDowncall("GenImageColor", allocator, width, height, color); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWindowHandle { + private static class GenImageGradientLinear { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWindowHandle"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageGradientLinear"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7779,55 +20205,61 @@ private static class GetWindowHandle { /** * Function descriptor for: * {@snippet lang=c : - * void *GetWindowHandle() + * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) * } */ - public static FunctionDescriptor GetWindowHandle$descriptor() { - return GetWindowHandle.DESC; + public static FunctionDescriptor GenImageGradientLinear$descriptor() { + return GenImageGradientLinear.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *GetWindowHandle() + * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) * } */ - public static MethodHandle GetWindowHandle$handle() { - return GetWindowHandle.HANDLE; + public static MethodHandle GenImageGradientLinear$handle() { + return GenImageGradientLinear.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *GetWindowHandle() + * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) * } */ - public static MemorySegment GetWindowHandle$address() { - return GetWindowHandle.ADDR; + public static MemorySegment GenImageGradientLinear$address() { + return GenImageGradientLinear.ADDR; } /** * {@snippet lang=c : - * void *GetWindowHandle() + * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) * } */ - public static MemorySegment GetWindowHandle() { - var mh$ = GetWindowHandle.HANDLE; + public static MemorySegment GenImageGradientLinear(SegmentAllocator allocator, int width, int height, int direction, MemorySegment start, MemorySegment end) { + var mh$ = GenImageGradientLinear.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWindowHandle"); + traceDowncall("GenImageGradientLinear", allocator, width, height, direction, start, end); } - return (MemorySegment)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, direction, start, end); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetScreenWidth { + private static class GenImageGradientRadial { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageGradientRadial"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7835,55 +20267,61 @@ private static class GetScreenWidth { /** * Function descriptor for: * {@snippet lang=c : - * int GetScreenWidth() + * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) * } */ - public static FunctionDescriptor GetScreenWidth$descriptor() { - return GetScreenWidth.DESC; + public static FunctionDescriptor GenImageGradientRadial$descriptor() { + return GenImageGradientRadial.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetScreenWidth() + * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) * } */ - public static MethodHandle GetScreenWidth$handle() { - return GetScreenWidth.HANDLE; + public static MethodHandle GenImageGradientRadial$handle() { + return GenImageGradientRadial.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetScreenWidth() + * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) * } */ - public static MemorySegment GetScreenWidth$address() { - return GetScreenWidth.ADDR; + public static MemorySegment GenImageGradientRadial$address() { + return GenImageGradientRadial.ADDR; } /** * {@snippet lang=c : - * int GetScreenWidth() + * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) * } */ - public static int GetScreenWidth() { - var mh$ = GetScreenWidth.HANDLE; + public static MemorySegment GenImageGradientRadial(SegmentAllocator allocator, int width, int height, float density, MemorySegment inner, MemorySegment outer) { + var mh$ = GenImageGradientRadial.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetScreenWidth"); + traceDowncall("GenImageGradientRadial", allocator, width, height, density, inner, outer); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, density, inner, outer); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetScreenHeight { + private static class GenImageGradientSquare { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT, + Color.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenHeight"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageGradientSquare"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7891,55 +20329,62 @@ private static class GetScreenHeight { /** * Function descriptor for: * {@snippet lang=c : - * int GetScreenHeight() + * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) * } */ - public static FunctionDescriptor GetScreenHeight$descriptor() { - return GetScreenHeight.DESC; + public static FunctionDescriptor GenImageGradientSquare$descriptor() { + return GenImageGradientSquare.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetScreenHeight() + * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) * } */ - public static MethodHandle GetScreenHeight$handle() { - return GetScreenHeight.HANDLE; + public static MethodHandle GenImageGradientSquare$handle() { + return GenImageGradientSquare.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetScreenHeight() + * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) * } */ - public static MemorySegment GetScreenHeight$address() { - return GetScreenHeight.ADDR; + public static MemorySegment GenImageGradientSquare$address() { + return GenImageGradientSquare.ADDR; } /** * {@snippet lang=c : - * int GetScreenHeight() + * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) * } */ - public static int GetScreenHeight() { - var mh$ = GetScreenHeight.HANDLE; + public static MemorySegment GenImageGradientSquare(SegmentAllocator allocator, int width, int height, float density, MemorySegment inner, MemorySegment outer) { + var mh$ = GenImageGradientSquare.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetScreenHeight"); + traceDowncall("GenImageGradientSquare", allocator, width, height, density, inner, outer); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, density, inner, outer); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetRenderWidth { + private static class GenImageChecked { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetRenderWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageChecked"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -7947,55 +20392,59 @@ private static class GetRenderWidth { /** * Function descriptor for: * {@snippet lang=c : - * int GetRenderWidth() + * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) * } */ - public static FunctionDescriptor GetRenderWidth$descriptor() { - return GetRenderWidth.DESC; + public static FunctionDescriptor GenImageChecked$descriptor() { + return GenImageChecked.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetRenderWidth() + * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) * } */ - public static MethodHandle GetRenderWidth$handle() { - return GetRenderWidth.HANDLE; + public static MethodHandle GenImageChecked$handle() { + return GenImageChecked.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetRenderWidth() + * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) * } */ - public static MemorySegment GetRenderWidth$address() { - return GetRenderWidth.ADDR; + public static MemorySegment GenImageChecked$address() { + return GenImageChecked.ADDR; } /** * {@snippet lang=c : - * int GetRenderWidth() + * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) * } */ - public static int GetRenderWidth() { - var mh$ = GetRenderWidth.HANDLE; + public static MemorySegment GenImageChecked(SegmentAllocator allocator, int width, int height, int checksX, int checksY, MemorySegment col1, MemorySegment col2) { + var mh$ = GenImageChecked.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetRenderWidth"); + traceDowncall("GenImageChecked", allocator, width, height, checksX, checksY, col1, col2); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, checksX, checksY, col1, col2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetRenderHeight { + private static class GenImageWhiteNoise { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetRenderHeight"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageWhiteNoise"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8003,125 +20452,61 @@ private static class GetRenderHeight { /** * Function descriptor for: * {@snippet lang=c : - * int GetRenderHeight() + * Image GenImageWhiteNoise(int width, int height, float factor) * } */ - public static FunctionDescriptor GetRenderHeight$descriptor() { - return GetRenderHeight.DESC; + public static FunctionDescriptor GenImageWhiteNoise$descriptor() { + return GenImageWhiteNoise.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetRenderHeight() + * Image GenImageWhiteNoise(int width, int height, float factor) * } */ - public static MethodHandle GetRenderHeight$handle() { - return GetRenderHeight.HANDLE; + public static MethodHandle GenImageWhiteNoise$handle() { + return GenImageWhiteNoise.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetRenderHeight() + * Image GenImageWhiteNoise(int width, int height, float factor) * } */ - public static MemorySegment GetRenderHeight$address() { - return GetRenderHeight.ADDR; + public static MemorySegment GenImageWhiteNoise$address() { + return GenImageWhiteNoise.ADDR; } /** * {@snippet lang=c : - * int GetRenderHeight() + * Image GenImageWhiteNoise(int width, int height, float factor) * } */ - public static int GetRenderHeight() { - var mh$ = GetRenderHeight.HANDLE; + public static MemorySegment GenImageWhiteNoise(SegmentAllocator allocator, int width, int height, float factor) { + var mh$ = GenImageWhiteNoise.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetRenderHeight"); + traceDowncall("GenImageWhiteNoise", allocator, width, height, factor); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, factor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - /** - * Variadic invoker class for: - * {@snippet lang=c : - * float GetCurrentAspect() - * } - */ - public static class GetCurrentAspect { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); - private static final MemorySegment ADDR = raylib.findOrThrow("GetCurrentAspect"); - - private final MethodHandle handle; - private final FunctionDescriptor descriptor; - private final MethodHandle spreader; - - private GetCurrentAspect(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; - this.descriptor = descriptor; - this.spreader = spreader; - } - - /** - * Variadic invoker factory for: - * {@snippet lang=c : - * float GetCurrentAspect() - * } - */ - public static GetCurrentAspect makeInvoker(MemoryLayout... layouts) { - FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); - Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); - var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); - var spreader$ = mh$.asSpreader(Object[].class, layouts.length); - return new GetCurrentAspect(mh$, desc$, spreader$); - } - - /** - * {@return the address} - */ - public static MemorySegment address() { - return ADDR; - } - - /** - * {@return the specialized method handle} - */ - public MethodHandle handle() { - return handle; - } - - /** - * {@return the specialized descriptor} - */ - public FunctionDescriptor descriptor() { - return descriptor; - } - - public float apply(Object... x0) { - try { - if (TRACE_DOWNCALLS) { - traceDowncall("GetCurrentAspect", x0); - } - return (float)spreader.invokeExact(x0); - } catch(IllegalArgumentException | ClassCastException ex$) { - throw ex$; // rethrow IAE from passing wrong number/type of args - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); - } - } - } - - private static class GetMonitorCount { + private static class GenImagePerlinNoise { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorCount"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImagePerlinNoise"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8129,55 +20514,59 @@ private static class GetMonitorCount { /** * Function descriptor for: * {@snippet lang=c : - * int GetMonitorCount() + * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) * } */ - public static FunctionDescriptor GetMonitorCount$descriptor() { - return GetMonitorCount.DESC; + public static FunctionDescriptor GenImagePerlinNoise$descriptor() { + return GenImagePerlinNoise.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMonitorCount() + * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) * } */ - public static MethodHandle GetMonitorCount$handle() { - return GetMonitorCount.HANDLE; + public static MethodHandle GenImagePerlinNoise$handle() { + return GenImagePerlinNoise.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMonitorCount() + * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) * } */ - public static MemorySegment GetMonitorCount$address() { - return GetMonitorCount.ADDR; + public static MemorySegment GenImagePerlinNoise$address() { + return GenImagePerlinNoise.ADDR; } /** * {@snippet lang=c : - * int GetMonitorCount() + * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) * } */ - public static int GetMonitorCount() { - var mh$ = GetMonitorCount.HANDLE; + public static MemorySegment GenImagePerlinNoise(SegmentAllocator allocator, int width, int height, int offsetX, int offsetY, float scale) { + var mh$ = GenImagePerlinNoise.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorCount"); + traceDowncall("GenImagePerlinNoise", allocator, width, height, offsetX, offsetY, scale); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, offsetX, offsetY, scale); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetCurrentMonitor { + private static class GenImageCellular { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetCurrentMonitor"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageCellular"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8185,57 +20574,59 @@ private static class GetCurrentMonitor { /** * Function descriptor for: * {@snippet lang=c : - * int GetCurrentMonitor() + * Image GenImageCellular(int width, int height, int tileSize) * } */ - public static FunctionDescriptor GetCurrentMonitor$descriptor() { - return GetCurrentMonitor.DESC; + public static FunctionDescriptor GenImageCellular$descriptor() { + return GenImageCellular.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetCurrentMonitor() + * Image GenImageCellular(int width, int height, int tileSize) * } */ - public static MethodHandle GetCurrentMonitor$handle() { - return GetCurrentMonitor.HANDLE; + public static MethodHandle GenImageCellular$handle() { + return GenImageCellular.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetCurrentMonitor() + * Image GenImageCellular(int width, int height, int tileSize) * } */ - public static MemorySegment GetCurrentMonitor$address() { - return GetCurrentMonitor.ADDR; + public static MemorySegment GenImageCellular$address() { + return GenImageCellular.ADDR; } /** * {@snippet lang=c : - * int GetCurrentMonitor() + * Image GenImageCellular(int width, int height, int tileSize) * } */ - public static int GetCurrentMonitor() { - var mh$ = GetCurrentMonitor.HANDLE; + public static MemorySegment GenImageCellular(SegmentAllocator allocator, int width, int height, int tileSize) { + var mh$ = GenImageCellular.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetCurrentMonitor"); + traceDowncall("GenImageCellular", allocator, width, height, tileSize); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, width, height, tileSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorPosition { + private static class GenImageText { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - raylib.C_INT + Image.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorPosition"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageText"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8243,57 +20634,57 @@ private static class GetMonitorPosition { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetMonitorPosition(int monitor) + * Image GenImageText(int width, int height, const char *text) * } */ - public static FunctionDescriptor GetMonitorPosition$descriptor() { - return GetMonitorPosition.DESC; + public static FunctionDescriptor GenImageText$descriptor() { + return GenImageText.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetMonitorPosition(int monitor) + * Image GenImageText(int width, int height, const char *text) * } */ - public static MethodHandle GetMonitorPosition$handle() { - return GetMonitorPosition.HANDLE; + public static MethodHandle GenImageText$handle() { + return GenImageText.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetMonitorPosition(int monitor) + * Image GenImageText(int width, int height, const char *text) * } */ - public static MemorySegment GetMonitorPosition$address() { - return GetMonitorPosition.ADDR; + public static MemorySegment GenImageText$address() { + return GenImageText.ADDR; } /** * {@snippet lang=c : - * Vector2 GetMonitorPosition(int monitor) + * Image GenImageText(int width, int height, const char *text) * } */ - public static MemorySegment GetMonitorPosition(SegmentAllocator allocator, int monitor) { - var mh$ = GetMonitorPosition.HANDLE; + public static MemorySegment GenImageText(SegmentAllocator allocator, int width, int height, MemorySegment text) { + var mh$ = GenImageText.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorPosition", allocator, monitor); + traceDowncall("GenImageText", allocator, width, height, text); } - return (MemorySegment)mh$.invokeExact(allocator, monitor); + return (MemorySegment)mh$.invokeExact(allocator, width, height, text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorWidth { + private static class ImageCopy { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT + Image.layout(), + Image.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageCopy"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8301,57 +20692,58 @@ private static class GetMonitorWidth { /** * Function descriptor for: * {@snippet lang=c : - * int GetMonitorWidth(int monitor) + * Image ImageCopy(Image image) * } */ - public static FunctionDescriptor GetMonitorWidth$descriptor() { - return GetMonitorWidth.DESC; + public static FunctionDescriptor ImageCopy$descriptor() { + return ImageCopy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMonitorWidth(int monitor) + * Image ImageCopy(Image image) * } */ - public static MethodHandle GetMonitorWidth$handle() { - return GetMonitorWidth.HANDLE; + public static MethodHandle ImageCopy$handle() { + return ImageCopy.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMonitorWidth(int monitor) + * Image ImageCopy(Image image) * } */ - public static MemorySegment GetMonitorWidth$address() { - return GetMonitorWidth.ADDR; + public static MemorySegment ImageCopy$address() { + return ImageCopy.ADDR; } /** * {@snippet lang=c : - * int GetMonitorWidth(int monitor) + * Image ImageCopy(Image image) * } */ - public static int GetMonitorWidth(int monitor) { - var mh$ = GetMonitorWidth.HANDLE; + public static MemorySegment ImageCopy(SegmentAllocator allocator, MemorySegment image) { + var mh$ = ImageCopy.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorWidth", monitor); + traceDowncall("ImageCopy", allocator, image); } - return (int)mh$.invokeExact(monitor); + return (MemorySegment)mh$.invokeExact(allocator, image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorHeight { + private static class ImageFromImage { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT + Image.layout(), + Image.layout(), + Rectangle.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorHeight"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageFromImage"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8359,57 +20751,59 @@ private static class GetMonitorHeight { /** * Function descriptor for: * {@snippet lang=c : - * int GetMonitorHeight(int monitor) + * Image ImageFromImage(Image image, Rectangle rec) * } */ - public static FunctionDescriptor GetMonitorHeight$descriptor() { - return GetMonitorHeight.DESC; + public static FunctionDescriptor ImageFromImage$descriptor() { + return ImageFromImage.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMonitorHeight(int monitor) + * Image ImageFromImage(Image image, Rectangle rec) * } */ - public static MethodHandle GetMonitorHeight$handle() { - return GetMonitorHeight.HANDLE; + public static MethodHandle ImageFromImage$handle() { + return ImageFromImage.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMonitorHeight(int monitor) + * Image ImageFromImage(Image image, Rectangle rec) * } */ - public static MemorySegment GetMonitorHeight$address() { - return GetMonitorHeight.ADDR; + public static MemorySegment ImageFromImage$address() { + return ImageFromImage.ADDR; } /** * {@snippet lang=c : - * int GetMonitorHeight(int monitor) + * Image ImageFromImage(Image image, Rectangle rec) * } */ - public static int GetMonitorHeight(int monitor) { - var mh$ = GetMonitorHeight.HANDLE; + public static MemorySegment ImageFromImage(SegmentAllocator allocator, MemorySegment image, MemorySegment rec) { + var mh$ = ImageFromImage.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorHeight", monitor); + traceDowncall("ImageFromImage", allocator, image, rec); } - return (int)mh$.invokeExact(monitor); + return (MemorySegment)mh$.invokeExact(allocator, image, rec); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorPhysicalWidth { + private static class ImageText { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), + raylib.C_POINTER, raylib.C_INT, - raylib.C_INT + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorPhysicalWidth"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageText"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8417,57 +20811,61 @@ private static class GetMonitorPhysicalWidth { /** * Function descriptor for: * {@snippet lang=c : - * int GetMonitorPhysicalWidth(int monitor) + * Image ImageText(const char *text, int fontSize, Color color) * } */ - public static FunctionDescriptor GetMonitorPhysicalWidth$descriptor() { - return GetMonitorPhysicalWidth.DESC; + public static FunctionDescriptor ImageText$descriptor() { + return ImageText.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMonitorPhysicalWidth(int monitor) + * Image ImageText(const char *text, int fontSize, Color color) * } */ - public static MethodHandle GetMonitorPhysicalWidth$handle() { - return GetMonitorPhysicalWidth.HANDLE; + public static MethodHandle ImageText$handle() { + return ImageText.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMonitorPhysicalWidth(int monitor) + * Image ImageText(const char *text, int fontSize, Color color) * } */ - public static MemorySegment GetMonitorPhysicalWidth$address() { - return GetMonitorPhysicalWidth.ADDR; + public static MemorySegment ImageText$address() { + return ImageText.ADDR; } /** * {@snippet lang=c : - * int GetMonitorPhysicalWidth(int monitor) + * Image ImageText(const char *text, int fontSize, Color color) * } */ - public static int GetMonitorPhysicalWidth(int monitor) { - var mh$ = GetMonitorPhysicalWidth.HANDLE; + public static MemorySegment ImageText(SegmentAllocator allocator, MemorySegment text, int fontSize, MemorySegment color) { + var mh$ = ImageText.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorPhysicalWidth", monitor); + traceDowncall("ImageText", allocator, text, fontSize, color); } - return (int)mh$.invokeExact(monitor); + return (MemorySegment)mh$.invokeExact(allocator, text, fontSize, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorPhysicalHeight { + private static class ImageTextEx { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT + Image.layout(), + Font.layout(), + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorPhysicalHeight"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageTextEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8475,57 +20873,57 @@ private static class GetMonitorPhysicalHeight { /** * Function descriptor for: * {@snippet lang=c : - * int GetMonitorPhysicalHeight(int monitor) + * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) * } */ - public static FunctionDescriptor GetMonitorPhysicalHeight$descriptor() { - return GetMonitorPhysicalHeight.DESC; + public static FunctionDescriptor ImageTextEx$descriptor() { + return ImageTextEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMonitorPhysicalHeight(int monitor) + * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) * } */ - public static MethodHandle GetMonitorPhysicalHeight$handle() { - return GetMonitorPhysicalHeight.HANDLE; + public static MethodHandle ImageTextEx$handle() { + return ImageTextEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMonitorPhysicalHeight(int monitor) + * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment GetMonitorPhysicalHeight$address() { - return GetMonitorPhysicalHeight.ADDR; + public static MemorySegment ImageTextEx$address() { + return ImageTextEx.ADDR; } /** * {@snippet lang=c : - * int GetMonitorPhysicalHeight(int monitor) + * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) * } */ - public static int GetMonitorPhysicalHeight(int monitor) { - var mh$ = GetMonitorPhysicalHeight.HANDLE; + public static MemorySegment ImageTextEx(SegmentAllocator allocator, MemorySegment font, MemorySegment text, float fontSize, float spacing, MemorySegment tint) { + var mh$ = ImageTextEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorPhysicalHeight", monitor); + traceDowncall("ImageTextEx", allocator, font, text, fontSize, spacing, tint); } - return (int)mh$.invokeExact(monitor); + return (MemorySegment)mh$.invokeExact(allocator, font, text, fontSize, spacing, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorRefreshRate { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, + private static class ImageFormat { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorRefreshRate"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageFormat"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8533,55 +20931,57 @@ private static class GetMonitorRefreshRate { /** * Function descriptor for: * {@snippet lang=c : - * int GetMonitorRefreshRate(int monitor) + * void ImageFormat(Image *image, int newFormat) * } */ - public static FunctionDescriptor GetMonitorRefreshRate$descriptor() { - return GetMonitorRefreshRate.DESC; + public static FunctionDescriptor ImageFormat$descriptor() { + return ImageFormat.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMonitorRefreshRate(int monitor) + * void ImageFormat(Image *image, int newFormat) * } */ - public static MethodHandle GetMonitorRefreshRate$handle() { - return GetMonitorRefreshRate.HANDLE; + public static MethodHandle ImageFormat$handle() { + return ImageFormat.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMonitorRefreshRate(int monitor) + * void ImageFormat(Image *image, int newFormat) * } */ - public static MemorySegment GetMonitorRefreshRate$address() { - return GetMonitorRefreshRate.ADDR; + public static MemorySegment ImageFormat$address() { + return ImageFormat.ADDR; } /** * {@snippet lang=c : - * int GetMonitorRefreshRate(int monitor) + * void ImageFormat(Image *image, int newFormat) * } */ - public static int GetMonitorRefreshRate(int monitor) { - var mh$ = GetMonitorRefreshRate.HANDLE; + public static void ImageFormat(MemorySegment image, int newFormat) { + var mh$ = ImageFormat.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorRefreshRate", monitor); + traceDowncall("ImageFormat", image, newFormat); } - return (int)mh$.invokeExact(monitor); + mh$.invokeExact(image, newFormat); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWindowPosition { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class ImageToPOT { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWindowPosition"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageToPOT"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8589,55 +20989,57 @@ private static class GetWindowPosition { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetWindowPosition() + * void ImageToPOT(Image *image, Color fill) * } */ - public static FunctionDescriptor GetWindowPosition$descriptor() { - return GetWindowPosition.DESC; + public static FunctionDescriptor ImageToPOT$descriptor() { + return ImageToPOT.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetWindowPosition() + * void ImageToPOT(Image *image, Color fill) * } */ - public static MethodHandle GetWindowPosition$handle() { - return GetWindowPosition.HANDLE; + public static MethodHandle ImageToPOT$handle() { + return ImageToPOT.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetWindowPosition() + * void ImageToPOT(Image *image, Color fill) * } */ - public static MemorySegment GetWindowPosition$address() { - return GetWindowPosition.ADDR; + public static MemorySegment ImageToPOT$address() { + return ImageToPOT.ADDR; } /** * {@snippet lang=c : - * Vector2 GetWindowPosition() + * void ImageToPOT(Image *image, Color fill) * } */ - public static MemorySegment GetWindowPosition(SegmentAllocator allocator) { - var mh$ = GetWindowPosition.HANDLE; + public static void ImageToPOT(MemorySegment image, MemorySegment fill) { + var mh$ = ImageToPOT.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWindowPosition", allocator); + traceDowncall("ImageToPOT", image, fill); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(image, fill); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWindowScaleDPI { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class ImageCrop { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Rectangle.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWindowScaleDPI"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageCrop"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8645,57 +21047,57 @@ private static class GetWindowScaleDPI { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetWindowScaleDPI() + * void ImageCrop(Image *image, Rectangle crop) * } */ - public static FunctionDescriptor GetWindowScaleDPI$descriptor() { - return GetWindowScaleDPI.DESC; + public static FunctionDescriptor ImageCrop$descriptor() { + return ImageCrop.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetWindowScaleDPI() + * void ImageCrop(Image *image, Rectangle crop) * } */ - public static MethodHandle GetWindowScaleDPI$handle() { - return GetWindowScaleDPI.HANDLE; + public static MethodHandle ImageCrop$handle() { + return ImageCrop.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetWindowScaleDPI() + * void ImageCrop(Image *image, Rectangle crop) * } */ - public static MemorySegment GetWindowScaleDPI$address() { - return GetWindowScaleDPI.ADDR; + public static MemorySegment ImageCrop$address() { + return ImageCrop.ADDR; } /** * {@snippet lang=c : - * Vector2 GetWindowScaleDPI() + * void ImageCrop(Image *image, Rectangle crop) * } */ - public static MemorySegment GetWindowScaleDPI(SegmentAllocator allocator) { - var mh$ = GetWindowScaleDPI.HANDLE; + public static void ImageCrop(MemorySegment image, MemorySegment crop) { + var mh$ = ImageCrop.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWindowScaleDPI", allocator); + traceDowncall("ImageCrop", image, crop); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(image, crop); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMonitorName { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class ImageAlphaCrop { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER, - raylib.C_INT + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMonitorName"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaCrop"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8703,56 +21105,58 @@ private static class GetMonitorName { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetMonitorName(int monitor) + * void ImageAlphaCrop(Image *image, float threshold) * } */ - public static FunctionDescriptor GetMonitorName$descriptor() { - return GetMonitorName.DESC; + public static FunctionDescriptor ImageAlphaCrop$descriptor() { + return ImageAlphaCrop.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetMonitorName(int monitor) + * void ImageAlphaCrop(Image *image, float threshold) * } */ - public static MethodHandle GetMonitorName$handle() { - return GetMonitorName.HANDLE; + public static MethodHandle ImageAlphaCrop$handle() { + return ImageAlphaCrop.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetMonitorName(int monitor) + * void ImageAlphaCrop(Image *image, float threshold) * } */ - public static MemorySegment GetMonitorName$address() { - return GetMonitorName.ADDR; + public static MemorySegment ImageAlphaCrop$address() { + return ImageAlphaCrop.ADDR; } /** * {@snippet lang=c : - * const char *GetMonitorName(int monitor) + * void ImageAlphaCrop(Image *image, float threshold) * } */ - public static MemorySegment GetMonitorName(int monitor) { - var mh$ = GetMonitorName.HANDLE; + public static void ImageAlphaCrop(MemorySegment image, float threshold) { + var mh$ = ImageAlphaCrop.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMonitorName", monitor); + traceDowncall("ImageAlphaCrop", image, threshold); } - return (MemorySegment)mh$.invokeExact(monitor); + mh$.invokeExact(image, threshold); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetClipboardText { + private static class ImageAlphaClear { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + raylib.C_POINTER, + Color.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetClipboardText"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaClear"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8760,55 +21164,57 @@ private static class SetClipboardText { /** * Function descriptor for: * {@snippet lang=c : - * void SetClipboardText(const char *text) + * void ImageAlphaClear(Image *image, Color color, float threshold) * } */ - public static FunctionDescriptor SetClipboardText$descriptor() { - return SetClipboardText.DESC; + public static FunctionDescriptor ImageAlphaClear$descriptor() { + return ImageAlphaClear.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetClipboardText(const char *text) + * void ImageAlphaClear(Image *image, Color color, float threshold) * } */ - public static MethodHandle SetClipboardText$handle() { - return SetClipboardText.HANDLE; + public static MethodHandle ImageAlphaClear$handle() { + return ImageAlphaClear.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetClipboardText(const char *text) + * void ImageAlphaClear(Image *image, Color color, float threshold) * } */ - public static MemorySegment SetClipboardText$address() { - return SetClipboardText.ADDR; + public static MemorySegment ImageAlphaClear$address() { + return ImageAlphaClear.ADDR; } /** * {@snippet lang=c : - * void SetClipboardText(const char *text) + * void ImageAlphaClear(Image *image, Color color, float threshold) * } */ - public static void SetClipboardText(MemorySegment text) { - var mh$ = SetClipboardText.HANDLE; + public static void ImageAlphaClear(MemorySegment image, MemorySegment color, float threshold) { + var mh$ = ImageAlphaClear.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetClipboardText", text); + traceDowncall("ImageAlphaClear", image, color, threshold); } - mh$.invokeExact(text); + mh$.invokeExact(image, color, threshold); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetClipboardText { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER ); + private static class ImageAlphaMask { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Image.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetClipboardText"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaMask"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8816,54 +21222,56 @@ private static class GetClipboardText { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetClipboardText() + * void ImageAlphaMask(Image *image, Image alphaMask) * } */ - public static FunctionDescriptor GetClipboardText$descriptor() { - return GetClipboardText.DESC; + public static FunctionDescriptor ImageAlphaMask$descriptor() { + return ImageAlphaMask.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetClipboardText() + * void ImageAlphaMask(Image *image, Image alphaMask) * } */ - public static MethodHandle GetClipboardText$handle() { - return GetClipboardText.HANDLE; + public static MethodHandle ImageAlphaMask$handle() { + return ImageAlphaMask.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetClipboardText() + * void ImageAlphaMask(Image *image, Image alphaMask) * } */ - public static MemorySegment GetClipboardText$address() { - return GetClipboardText.ADDR; + public static MemorySegment ImageAlphaMask$address() { + return ImageAlphaMask.ADDR; } /** * {@snippet lang=c : - * const char *GetClipboardText() + * void ImageAlphaMask(Image *image, Image alphaMask) * } */ - public static MemorySegment GetClipboardText() { - var mh$ = GetClipboardText.HANDLE; + public static void ImageAlphaMask(MemorySegment image, MemorySegment alphaMask) { + var mh$ = ImageAlphaMask.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetClipboardText"); + traceDowncall("ImageAlphaMask", image, alphaMask); } - return (MemorySegment)mh$.invokeExact(); + mh$.invokeExact(image, alphaMask); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EnableEventWaiting { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageAlphaPremultiply { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EnableEventWaiting"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaPremultiply"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8871,54 +21279,57 @@ private static class EnableEventWaiting { /** * Function descriptor for: * {@snippet lang=c : - * void EnableEventWaiting() + * void ImageAlphaPremultiply(Image *image) * } */ - public static FunctionDescriptor EnableEventWaiting$descriptor() { - return EnableEventWaiting.DESC; + public static FunctionDescriptor ImageAlphaPremultiply$descriptor() { + return ImageAlphaPremultiply.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EnableEventWaiting() + * void ImageAlphaPremultiply(Image *image) * } */ - public static MethodHandle EnableEventWaiting$handle() { - return EnableEventWaiting.HANDLE; + public static MethodHandle ImageAlphaPremultiply$handle() { + return ImageAlphaPremultiply.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EnableEventWaiting() + * void ImageAlphaPremultiply(Image *image) * } */ - public static MemorySegment EnableEventWaiting$address() { - return EnableEventWaiting.ADDR; + public static MemorySegment ImageAlphaPremultiply$address() { + return ImageAlphaPremultiply.ADDR; } /** * {@snippet lang=c : - * void EnableEventWaiting() + * void ImageAlphaPremultiply(Image *image) * } */ - public static void EnableEventWaiting() { - var mh$ = EnableEventWaiting.HANDLE; + public static void ImageAlphaPremultiply(MemorySegment image) { + var mh$ = ImageAlphaPremultiply.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EnableEventWaiting"); + traceDowncall("ImageAlphaPremultiply", image); } - mh$.invokeExact(); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DisableEventWaiting { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageBlurGaussian { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("DisableEventWaiting"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageBlurGaussian"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8926,54 +21337,58 @@ private static class DisableEventWaiting { /** * Function descriptor for: * {@snippet lang=c : - * void DisableEventWaiting() + * void ImageBlurGaussian(Image *image, int blurSize) * } */ - public static FunctionDescriptor DisableEventWaiting$descriptor() { - return DisableEventWaiting.DESC; + public static FunctionDescriptor ImageBlurGaussian$descriptor() { + return ImageBlurGaussian.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DisableEventWaiting() + * void ImageBlurGaussian(Image *image, int blurSize) * } */ - public static MethodHandle DisableEventWaiting$handle() { - return DisableEventWaiting.HANDLE; + public static MethodHandle ImageBlurGaussian$handle() { + return ImageBlurGaussian.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DisableEventWaiting() + * void ImageBlurGaussian(Image *image, int blurSize) * } */ - public static MemorySegment DisableEventWaiting$address() { - return DisableEventWaiting.ADDR; + public static MemorySegment ImageBlurGaussian$address() { + return ImageBlurGaussian.ADDR; } /** * {@snippet lang=c : - * void DisableEventWaiting() + * void ImageBlurGaussian(Image *image, int blurSize) * } */ - public static void DisableEventWaiting() { - var mh$ = DisableEventWaiting.HANDLE; + public static void ImageBlurGaussian(MemorySegment image, int blurSize) { + var mh$ = ImageBlurGaussian.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DisableEventWaiting"); + traceDowncall("ImageBlurGaussian", image, blurSize); } - mh$.invokeExact(); + mh$.invokeExact(image, blurSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ShowCursor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageKernelConvolution { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("ShowCursor"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageKernelConvolution"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -8981,54 +21396,58 @@ private static class ShowCursor { /** * Function descriptor for: * {@snippet lang=c : - * void ShowCursor() + * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) * } */ - public static FunctionDescriptor ShowCursor$descriptor() { - return ShowCursor.DESC; + public static FunctionDescriptor ImageKernelConvolution$descriptor() { + return ImageKernelConvolution.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ShowCursor() + * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) * } */ - public static MethodHandle ShowCursor$handle() { - return ShowCursor.HANDLE; + public static MethodHandle ImageKernelConvolution$handle() { + return ImageKernelConvolution.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ShowCursor() + * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) * } */ - public static MemorySegment ShowCursor$address() { - return ShowCursor.ADDR; + public static MemorySegment ImageKernelConvolution$address() { + return ImageKernelConvolution.ADDR; } /** * {@snippet lang=c : - * void ShowCursor() + * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) * } */ - public static void ShowCursor() { - var mh$ = ShowCursor.HANDLE; + public static void ImageKernelConvolution(MemorySegment image, MemorySegment kernel, int kernelSize) { + var mh$ = ImageKernelConvolution.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ShowCursor"); + traceDowncall("ImageKernelConvolution", image, kernel, kernelSize); } - mh$.invokeExact(); + mh$.invokeExact(image, kernel, kernelSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class HideCursor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageResize { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("HideCursor"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageResize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9036,55 +21455,58 @@ private static class HideCursor { /** * Function descriptor for: * {@snippet lang=c : - * void HideCursor() + * void ImageResize(Image *image, int newWidth, int newHeight) * } */ - public static FunctionDescriptor HideCursor$descriptor() { - return HideCursor.DESC; + public static FunctionDescriptor ImageResize$descriptor() { + return ImageResize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void HideCursor() + * void ImageResize(Image *image, int newWidth, int newHeight) * } */ - public static MethodHandle HideCursor$handle() { - return HideCursor.HANDLE; + public static MethodHandle ImageResize$handle() { + return ImageResize.HANDLE; } /** * Address for: * {@snippet lang=c : - * void HideCursor() + * void ImageResize(Image *image, int newWidth, int newHeight) * } */ - public static MemorySegment HideCursor$address() { - return HideCursor.ADDR; + public static MemorySegment ImageResize$address() { + return ImageResize.ADDR; } /** * {@snippet lang=c : - * void HideCursor() + * void ImageResize(Image *image, int newWidth, int newHeight) * } */ - public static void HideCursor() { - var mh$ = HideCursor.HANDLE; + public static void ImageResize(MemorySegment image, int newWidth, int newHeight) { + var mh$ = ImageResize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("HideCursor"); + traceDowncall("ImageResize", image, newWidth, newHeight); } - mh$.invokeExact(); + mh$.invokeExact(image, newWidth, newHeight); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsCursorHidden { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + private static class ImageResizeNN { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsCursorHidden"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageResizeNN"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9092,54 +21514,61 @@ private static class IsCursorHidden { /** * Function descriptor for: * {@snippet lang=c : - * bool IsCursorHidden() + * void ImageResizeNN(Image *image, int newWidth, int newHeight) * } */ - public static FunctionDescriptor IsCursorHidden$descriptor() { - return IsCursorHidden.DESC; + public static FunctionDescriptor ImageResizeNN$descriptor() { + return ImageResizeNN.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsCursorHidden() + * void ImageResizeNN(Image *image, int newWidth, int newHeight) * } */ - public static MethodHandle IsCursorHidden$handle() { - return IsCursorHidden.HANDLE; + public static MethodHandle ImageResizeNN$handle() { + return ImageResizeNN.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsCursorHidden() + * void ImageResizeNN(Image *image, int newWidth, int newHeight) * } */ - public static MemorySegment IsCursorHidden$address() { - return IsCursorHidden.ADDR; + public static MemorySegment ImageResizeNN$address() { + return ImageResizeNN.ADDR; } /** * {@snippet lang=c : - * bool IsCursorHidden() + * void ImageResizeNN(Image *image, int newWidth, int newHeight) * } */ - public static boolean IsCursorHidden() { - var mh$ = IsCursorHidden.HANDLE; + public static void ImageResizeNN(MemorySegment image, int newWidth, int newHeight) { + var mh$ = ImageResizeNN.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsCursorHidden"); + traceDowncall("ImageResizeNN", image, newWidth, newHeight); } - return (boolean)mh$.invokeExact(); + mh$.invokeExact(image, newWidth, newHeight); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EnableCursor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageResizeCanvas { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EnableCursor"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageResizeCanvas"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9147,54 +21576,56 @@ private static class EnableCursor { /** * Function descriptor for: * {@snippet lang=c : - * void EnableCursor() + * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) * } */ - public static FunctionDescriptor EnableCursor$descriptor() { - return EnableCursor.DESC; + public static FunctionDescriptor ImageResizeCanvas$descriptor() { + return ImageResizeCanvas.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EnableCursor() + * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) * } */ - public static MethodHandle EnableCursor$handle() { - return EnableCursor.HANDLE; + public static MethodHandle ImageResizeCanvas$handle() { + return ImageResizeCanvas.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EnableCursor() + * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) * } */ - public static MemorySegment EnableCursor$address() { - return EnableCursor.ADDR; + public static MemorySegment ImageResizeCanvas$address() { + return ImageResizeCanvas.ADDR; } /** * {@snippet lang=c : - * void EnableCursor() + * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) * } */ - public static void EnableCursor() { - var mh$ = EnableCursor.HANDLE; + public static void ImageResizeCanvas(MemorySegment image, int newWidth, int newHeight, int offsetX, int offsetY, MemorySegment fill) { + var mh$ = ImageResizeCanvas.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EnableCursor"); + traceDowncall("ImageResizeCanvas", image, newWidth, newHeight, offsetX, offsetY, fill); } - mh$.invokeExact(); + mh$.invokeExact(image, newWidth, newHeight, offsetX, offsetY, fill); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DisableCursor { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageMipmaps { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("DisableCursor"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageMipmaps"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9202,55 +21633,60 @@ private static class DisableCursor { /** * Function descriptor for: * {@snippet lang=c : - * void DisableCursor() + * void ImageMipmaps(Image *image) * } */ - public static FunctionDescriptor DisableCursor$descriptor() { - return DisableCursor.DESC; + public static FunctionDescriptor ImageMipmaps$descriptor() { + return ImageMipmaps.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DisableCursor() + * void ImageMipmaps(Image *image) * } */ - public static MethodHandle DisableCursor$handle() { - return DisableCursor.HANDLE; + public static MethodHandle ImageMipmaps$handle() { + return ImageMipmaps.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DisableCursor() + * void ImageMipmaps(Image *image) * } */ - public static MemorySegment DisableCursor$address() { - return DisableCursor.ADDR; + public static MemorySegment ImageMipmaps$address() { + return ImageMipmaps.ADDR; } /** * {@snippet lang=c : - * void DisableCursor() + * void ImageMipmaps(Image *image) * } */ - public static void DisableCursor() { - var mh$ = DisableCursor.HANDLE; + public static void ImageMipmaps(MemorySegment image) { + var mh$ = ImageMipmaps.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DisableCursor"); + traceDowncall("ImageMipmaps", image); } - mh$.invokeExact(); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsCursorOnScreen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + private static class ImageDither { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsCursorOnScreen"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDither"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9258,56 +21694,56 @@ private static class IsCursorOnScreen { /** * Function descriptor for: * {@snippet lang=c : - * bool IsCursorOnScreen() + * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) * } */ - public static FunctionDescriptor IsCursorOnScreen$descriptor() { - return IsCursorOnScreen.DESC; + public static FunctionDescriptor ImageDither$descriptor() { + return ImageDither.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsCursorOnScreen() + * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) * } */ - public static MethodHandle IsCursorOnScreen$handle() { - return IsCursorOnScreen.HANDLE; + public static MethodHandle ImageDither$handle() { + return ImageDither.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsCursorOnScreen() + * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) * } */ - public static MemorySegment IsCursorOnScreen$address() { - return IsCursorOnScreen.ADDR; + public static MemorySegment ImageDither$address() { + return ImageDither.ADDR; } /** * {@snippet lang=c : - * bool IsCursorOnScreen() + * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) * } */ - public static boolean IsCursorOnScreen() { - var mh$ = IsCursorOnScreen.HANDLE; + public static void ImageDither(MemorySegment image, int rBpp, int gBpp, int bBpp, int aBpp) { + var mh$ = ImageDither.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsCursorOnScreen"); + traceDowncall("ImageDither", image, rBpp, gBpp, bBpp, aBpp); } - return (boolean)mh$.invokeExact(); + mh$.invokeExact(image, rBpp, gBpp, bBpp, aBpp); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ClearBackground { + private static class ImageFlipVertical { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Color.layout() + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ClearBackground"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageFlipVertical"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9315,54 +21751,56 @@ private static class ClearBackground { /** * Function descriptor for: * {@snippet lang=c : - * void ClearBackground(Color color) + * void ImageFlipVertical(Image *image) * } */ - public static FunctionDescriptor ClearBackground$descriptor() { - return ClearBackground.DESC; + public static FunctionDescriptor ImageFlipVertical$descriptor() { + return ImageFlipVertical.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ClearBackground(Color color) + * void ImageFlipVertical(Image *image) * } */ - public static MethodHandle ClearBackground$handle() { - return ClearBackground.HANDLE; + public static MethodHandle ImageFlipVertical$handle() { + return ImageFlipVertical.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ClearBackground(Color color) + * void ImageFlipVertical(Image *image) * } */ - public static MemorySegment ClearBackground$address() { - return ClearBackground.ADDR; + public static MemorySegment ImageFlipVertical$address() { + return ImageFlipVertical.ADDR; } /** * {@snippet lang=c : - * void ClearBackground(Color color) + * void ImageFlipVertical(Image *image) * } */ - public static void ClearBackground(MemorySegment color) { - var mh$ = ClearBackground.HANDLE; + public static void ImageFlipVertical(MemorySegment image) { + var mh$ = ImageFlipVertical.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ClearBackground", color); + traceDowncall("ImageFlipVertical", image); } - mh$.invokeExact(color); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginDrawing { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageFlipHorizontal { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginDrawing"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageFlipHorizontal"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9370,54 +21808,57 @@ private static class BeginDrawing { /** * Function descriptor for: * {@snippet lang=c : - * void BeginDrawing() + * void ImageFlipHorizontal(Image *image) * } */ - public static FunctionDescriptor BeginDrawing$descriptor() { - return BeginDrawing.DESC; + public static FunctionDescriptor ImageFlipHorizontal$descriptor() { + return ImageFlipHorizontal.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginDrawing() + * void ImageFlipHorizontal(Image *image) * } */ - public static MethodHandle BeginDrawing$handle() { - return BeginDrawing.HANDLE; + public static MethodHandle ImageFlipHorizontal$handle() { + return ImageFlipHorizontal.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginDrawing() + * void ImageFlipHorizontal(Image *image) * } */ - public static MemorySegment BeginDrawing$address() { - return BeginDrawing.ADDR; + public static MemorySegment ImageFlipHorizontal$address() { + return ImageFlipHorizontal.ADDR; } /** * {@snippet lang=c : - * void BeginDrawing() + * void ImageFlipHorizontal(Image *image) * } */ - public static void BeginDrawing() { - var mh$ = BeginDrawing.HANDLE; + public static void ImageFlipHorizontal(MemorySegment image) { + var mh$ = ImageFlipHorizontal.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginDrawing"); + traceDowncall("ImageFlipHorizontal", image); } - mh$.invokeExact(); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndDrawing { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageRotate { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndDrawing"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageRotate"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9425,56 +21866,56 @@ private static class EndDrawing { /** * Function descriptor for: * {@snippet lang=c : - * void EndDrawing() + * void ImageRotate(Image *image, int degrees) * } */ - public static FunctionDescriptor EndDrawing$descriptor() { - return EndDrawing.DESC; + public static FunctionDescriptor ImageRotate$descriptor() { + return ImageRotate.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndDrawing() + * void ImageRotate(Image *image, int degrees) * } */ - public static MethodHandle EndDrawing$handle() { - return EndDrawing.HANDLE; + public static MethodHandle ImageRotate$handle() { + return ImageRotate.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndDrawing() + * void ImageRotate(Image *image, int degrees) * } */ - public static MemorySegment EndDrawing$address() { - return EndDrawing.ADDR; + public static MemorySegment ImageRotate$address() { + return ImageRotate.ADDR; } /** * {@snippet lang=c : - * void EndDrawing() + * void ImageRotate(Image *image, int degrees) * } */ - public static void EndDrawing() { - var mh$ = EndDrawing.HANDLE; + public static void ImageRotate(MemorySegment image, int degrees) { + var mh$ = ImageRotate.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndDrawing"); + traceDowncall("ImageRotate", image, degrees); } - mh$.invokeExact(); + mh$.invokeExact(image, degrees); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginMode2D { + private static class ImageRotateCW { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Camera2D.layout() + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginMode2D"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageRotateCW"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9482,54 +21923,56 @@ private static class BeginMode2D { /** * Function descriptor for: * {@snippet lang=c : - * void BeginMode2D(Camera2D camera) + * void ImageRotateCW(Image *image) * } */ - public static FunctionDescriptor BeginMode2D$descriptor() { - return BeginMode2D.DESC; + public static FunctionDescriptor ImageRotateCW$descriptor() { + return ImageRotateCW.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginMode2D(Camera2D camera) + * void ImageRotateCW(Image *image) * } */ - public static MethodHandle BeginMode2D$handle() { - return BeginMode2D.HANDLE; + public static MethodHandle ImageRotateCW$handle() { + return ImageRotateCW.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginMode2D(Camera2D camera) + * void ImageRotateCW(Image *image) * } */ - public static MemorySegment BeginMode2D$address() { - return BeginMode2D.ADDR; + public static MemorySegment ImageRotateCW$address() { + return ImageRotateCW.ADDR; } /** * {@snippet lang=c : - * void BeginMode2D(Camera2D camera) + * void ImageRotateCW(Image *image) * } */ - public static void BeginMode2D(MemorySegment camera) { - var mh$ = BeginMode2D.HANDLE; + public static void ImageRotateCW(MemorySegment image) { + var mh$ = ImageRotateCW.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginMode2D", camera); + traceDowncall("ImageRotateCW", image); } - mh$.invokeExact(camera); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndMode2D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageRotateCCW { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndMode2D"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageRotateCCW"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9537,56 +21980,57 @@ private static class EndMode2D { /** * Function descriptor for: * {@snippet lang=c : - * void EndMode2D() + * void ImageRotateCCW(Image *image) * } */ - public static FunctionDescriptor EndMode2D$descriptor() { - return EndMode2D.DESC; + public static FunctionDescriptor ImageRotateCCW$descriptor() { + return ImageRotateCCW.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndMode2D() + * void ImageRotateCCW(Image *image) * } */ - public static MethodHandle EndMode2D$handle() { - return EndMode2D.HANDLE; + public static MethodHandle ImageRotateCCW$handle() { + return ImageRotateCCW.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndMode2D() + * void ImageRotateCCW(Image *image) * } */ - public static MemorySegment EndMode2D$address() { - return EndMode2D.ADDR; + public static MemorySegment ImageRotateCCW$address() { + return ImageRotateCCW.ADDR; } /** * {@snippet lang=c : - * void EndMode2D() + * void ImageRotateCCW(Image *image) * } */ - public static void EndMode2D() { - var mh$ = EndMode2D.HANDLE; + public static void ImageRotateCCW(MemorySegment image) { + var mh$ = ImageRotateCCW.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndMode2D"); + traceDowncall("ImageRotateCCW", image); } - mh$.invokeExact(); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginMode3D { + private static class ImageColorTint { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Camera3D.layout() + raylib.C_POINTER, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginMode3D"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorTint"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9594,54 +22038,56 @@ private static class BeginMode3D { /** * Function descriptor for: * {@snippet lang=c : - * void BeginMode3D(Camera3D camera) + * void ImageColorTint(Image *image, Color color) * } */ - public static FunctionDescriptor BeginMode3D$descriptor() { - return BeginMode3D.DESC; + public static FunctionDescriptor ImageColorTint$descriptor() { + return ImageColorTint.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginMode3D(Camera3D camera) + * void ImageColorTint(Image *image, Color color) * } */ - public static MethodHandle BeginMode3D$handle() { - return BeginMode3D.HANDLE; + public static MethodHandle ImageColorTint$handle() { + return ImageColorTint.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginMode3D(Camera3D camera) + * void ImageColorTint(Image *image, Color color) * } */ - public static MemorySegment BeginMode3D$address() { - return BeginMode3D.ADDR; + public static MemorySegment ImageColorTint$address() { + return ImageColorTint.ADDR; } /** * {@snippet lang=c : - * void BeginMode3D(Camera3D camera) + * void ImageColorTint(Image *image, Color color) * } */ - public static void BeginMode3D(MemorySegment camera) { - var mh$ = BeginMode3D.HANDLE; + public static void ImageColorTint(MemorySegment image, MemorySegment color) { + var mh$ = ImageColorTint.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginMode3D", camera); + traceDowncall("ImageColorTint", image, color); } - mh$.invokeExact(camera); + mh$.invokeExact(image, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndMode3D { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageColorInvert { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndMode3D"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorInvert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9649,56 +22095,56 @@ private static class EndMode3D { /** * Function descriptor for: * {@snippet lang=c : - * void EndMode3D() + * void ImageColorInvert(Image *image) * } */ - public static FunctionDescriptor EndMode3D$descriptor() { - return EndMode3D.DESC; + public static FunctionDescriptor ImageColorInvert$descriptor() { + return ImageColorInvert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndMode3D() + * void ImageColorInvert(Image *image) * } */ - public static MethodHandle EndMode3D$handle() { - return EndMode3D.HANDLE; + public static MethodHandle ImageColorInvert$handle() { + return ImageColorInvert.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndMode3D() + * void ImageColorInvert(Image *image) * } */ - public static MemorySegment EndMode3D$address() { - return EndMode3D.ADDR; + public static MemorySegment ImageColorInvert$address() { + return ImageColorInvert.ADDR; } /** * {@snippet lang=c : - * void EndMode3D() + * void ImageColorInvert(Image *image) * } */ - public static void EndMode3D() { - var mh$ = EndMode3D.HANDLE; + public static void ImageColorInvert(MemorySegment image) { + var mh$ = ImageColorInvert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndMode3D"); + traceDowncall("ImageColorInvert", image); } - mh$.invokeExact(); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginTextureMode { + private static class ImageColorGrayscale { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - RenderTexture.layout() + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginTextureMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorGrayscale"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9706,54 +22152,57 @@ private static class BeginTextureMode { /** * Function descriptor for: * {@snippet lang=c : - * void BeginTextureMode(RenderTexture2D target) + * void ImageColorGrayscale(Image *image) * } */ - public static FunctionDescriptor BeginTextureMode$descriptor() { - return BeginTextureMode.DESC; + public static FunctionDescriptor ImageColorGrayscale$descriptor() { + return ImageColorGrayscale.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginTextureMode(RenderTexture2D target) + * void ImageColorGrayscale(Image *image) * } */ - public static MethodHandle BeginTextureMode$handle() { - return BeginTextureMode.HANDLE; + public static MethodHandle ImageColorGrayscale$handle() { + return ImageColorGrayscale.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginTextureMode(RenderTexture2D target) + * void ImageColorGrayscale(Image *image) * } */ - public static MemorySegment BeginTextureMode$address() { - return BeginTextureMode.ADDR; + public static MemorySegment ImageColorGrayscale$address() { + return ImageColorGrayscale.ADDR; } /** * {@snippet lang=c : - * void BeginTextureMode(RenderTexture2D target) + * void ImageColorGrayscale(Image *image) * } */ - public static void BeginTextureMode(MemorySegment target) { - var mh$ = BeginTextureMode.HANDLE; + public static void ImageColorGrayscale(MemorySegment image) { + var mh$ = ImageColorGrayscale.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginTextureMode", target); + traceDowncall("ImageColorGrayscale", image); } - mh$.invokeExact(target); + mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndTextureMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageColorContrast { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_FLOAT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndTextureMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorContrast"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9761,56 +22210,57 @@ private static class EndTextureMode { /** * Function descriptor for: * {@snippet lang=c : - * void EndTextureMode() + * void ImageColorContrast(Image *image, float contrast) * } */ - public static FunctionDescriptor EndTextureMode$descriptor() { - return EndTextureMode.DESC; + public static FunctionDescriptor ImageColorContrast$descriptor() { + return ImageColorContrast.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndTextureMode() + * void ImageColorContrast(Image *image, float contrast) * } */ - public static MethodHandle EndTextureMode$handle() { - return EndTextureMode.HANDLE; + public static MethodHandle ImageColorContrast$handle() { + return ImageColorContrast.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndTextureMode() + * void ImageColorContrast(Image *image, float contrast) * } */ - public static MemorySegment EndTextureMode$address() { - return EndTextureMode.ADDR; + public static MemorySegment ImageColorContrast$address() { + return ImageColorContrast.ADDR; } /** * {@snippet lang=c : - * void EndTextureMode() + * void ImageColorContrast(Image *image, float contrast) * } */ - public static void EndTextureMode() { - var mh$ = EndTextureMode.HANDLE; + public static void ImageColorContrast(MemorySegment image, float contrast) { + var mh$ = ImageColorContrast.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndTextureMode"); + traceDowncall("ImageColorContrast", image, contrast); } - mh$.invokeExact(); + mh$.invokeExact(image, contrast); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginShaderMode { + private static class ImageColorBrightness { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Shader.layout() + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginShaderMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorBrightness"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9818,54 +22268,58 @@ private static class BeginShaderMode { /** * Function descriptor for: * {@snippet lang=c : - * void BeginShaderMode(Shader shader) + * void ImageColorBrightness(Image *image, int brightness) * } */ - public static FunctionDescriptor BeginShaderMode$descriptor() { - return BeginShaderMode.DESC; + public static FunctionDescriptor ImageColorBrightness$descriptor() { + return ImageColorBrightness.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginShaderMode(Shader shader) + * void ImageColorBrightness(Image *image, int brightness) * } */ - public static MethodHandle BeginShaderMode$handle() { - return BeginShaderMode.HANDLE; + public static MethodHandle ImageColorBrightness$handle() { + return ImageColorBrightness.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginShaderMode(Shader shader) + * void ImageColorBrightness(Image *image, int brightness) * } */ - public static MemorySegment BeginShaderMode$address() { - return BeginShaderMode.ADDR; + public static MemorySegment ImageColorBrightness$address() { + return ImageColorBrightness.ADDR; } /** * {@snippet lang=c : - * void BeginShaderMode(Shader shader) + * void ImageColorBrightness(Image *image, int brightness) * } */ - public static void BeginShaderMode(MemorySegment shader) { - var mh$ = BeginShaderMode.HANDLE; + public static void ImageColorBrightness(MemorySegment image, int brightness) { + var mh$ = ImageColorBrightness.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginShaderMode", shader); + traceDowncall("ImageColorBrightness", image, brightness); } - mh$.invokeExact(shader); + mh$.invokeExact(image, brightness); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndShaderMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class ImageColorReplace { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Color.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndShaderMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorReplace"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9873,56 +22327,57 @@ private static class EndShaderMode { /** * Function descriptor for: * {@snippet lang=c : - * void EndShaderMode() + * void ImageColorReplace(Image *image, Color color, Color replace) * } */ - public static FunctionDescriptor EndShaderMode$descriptor() { - return EndShaderMode.DESC; + public static FunctionDescriptor ImageColorReplace$descriptor() { + return ImageColorReplace.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndShaderMode() + * void ImageColorReplace(Image *image, Color color, Color replace) * } */ - public static MethodHandle EndShaderMode$handle() { - return EndShaderMode.HANDLE; + public static MethodHandle ImageColorReplace$handle() { + return ImageColorReplace.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndShaderMode() + * void ImageColorReplace(Image *image, Color color, Color replace) * } */ - public static MemorySegment EndShaderMode$address() { - return EndShaderMode.ADDR; + public static MemorySegment ImageColorReplace$address() { + return ImageColorReplace.ADDR; } /** * {@snippet lang=c : - * void EndShaderMode() + * void ImageColorReplace(Image *image, Color color, Color replace) * } */ - public static void EndShaderMode() { - var mh$ = EndShaderMode.HANDLE; + public static void ImageColorReplace(MemorySegment image, MemorySegment color, MemorySegment replace) { + var mh$ = ImageColorReplace.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndShaderMode"); + traceDowncall("ImageColorReplace", image, color, replace); } - mh$.invokeExact(); + mh$.invokeExact(image, color, replace); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginBlendMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class LoadImageColors { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + Image.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginBlendMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageColors"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9930,54 +22385,59 @@ private static class BeginBlendMode { /** * Function descriptor for: * {@snippet lang=c : - * void BeginBlendMode(int mode) + * Color *LoadImageColors(Image image) * } */ - public static FunctionDescriptor BeginBlendMode$descriptor() { - return BeginBlendMode.DESC; + public static FunctionDescriptor LoadImageColors$descriptor() { + return LoadImageColors.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginBlendMode(int mode) + * Color *LoadImageColors(Image image) * } */ - public static MethodHandle BeginBlendMode$handle() { - return BeginBlendMode.HANDLE; + public static MethodHandle LoadImageColors$handle() { + return LoadImageColors.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginBlendMode(int mode) + * Color *LoadImageColors(Image image) * } */ - public static MemorySegment BeginBlendMode$address() { - return BeginBlendMode.ADDR; + public static MemorySegment LoadImageColors$address() { + return LoadImageColors.ADDR; } /** * {@snippet lang=c : - * void BeginBlendMode(int mode) + * Color *LoadImageColors(Image image) * } */ - public static void BeginBlendMode(int mode) { - var mh$ = BeginBlendMode.HANDLE; + public static MemorySegment LoadImageColors(MemorySegment image) { + var mh$ = LoadImageColors.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginBlendMode", mode); + traceDowncall("LoadImageColors", image); } - mh$.invokeExact(mode); + return (MemorySegment)mh$.invokeExact(image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndBlendMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class LoadImagePalette { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + Image.layout(), + raylib.C_INT, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndBlendMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadImagePalette"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -9985,59 +22445,56 @@ private static class EndBlendMode { /** * Function descriptor for: * {@snippet lang=c : - * void EndBlendMode() + * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) * } */ - public static FunctionDescriptor EndBlendMode$descriptor() { - return EndBlendMode.DESC; + public static FunctionDescriptor LoadImagePalette$descriptor() { + return LoadImagePalette.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndBlendMode() + * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) * } */ - public static MethodHandle EndBlendMode$handle() { - return EndBlendMode.HANDLE; + public static MethodHandle LoadImagePalette$handle() { + return LoadImagePalette.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndBlendMode() + * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) * } */ - public static MemorySegment EndBlendMode$address() { - return EndBlendMode.ADDR; + public static MemorySegment LoadImagePalette$address() { + return LoadImagePalette.ADDR; } /** * {@snippet lang=c : - * void EndBlendMode() + * Color *LoadImagePalette(Image image, int maxPaletteSize, int *colorCount) * } */ - public static void EndBlendMode() { - var mh$ = EndBlendMode.HANDLE; + public static MemorySegment LoadImagePalette(MemorySegment image, int maxPaletteSize, MemorySegment colorCount) { + var mh$ = LoadImagePalette.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndBlendMode"); + traceDowncall("LoadImagePalette", image, maxPaletteSize, colorCount); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(image, maxPaletteSize, colorCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginScissorMode { + private static class UnloadImageColors { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginScissorMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadImageColors"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10045,54 +22502,56 @@ private static class BeginScissorMode { /** * Function descriptor for: * {@snippet lang=c : - * void BeginScissorMode(int x, int y, int width, int height) + * void UnloadImageColors(Color *colors) * } */ - public static FunctionDescriptor BeginScissorMode$descriptor() { - return BeginScissorMode.DESC; + public static FunctionDescriptor UnloadImageColors$descriptor() { + return UnloadImageColors.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginScissorMode(int x, int y, int width, int height) + * void UnloadImageColors(Color *colors) * } */ - public static MethodHandle BeginScissorMode$handle() { - return BeginScissorMode.HANDLE; + public static MethodHandle UnloadImageColors$handle() { + return UnloadImageColors.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginScissorMode(int x, int y, int width, int height) + * void UnloadImageColors(Color *colors) * } */ - public static MemorySegment BeginScissorMode$address() { - return BeginScissorMode.ADDR; + public static MemorySegment UnloadImageColors$address() { + return UnloadImageColors.ADDR; } /** * {@snippet lang=c : - * void BeginScissorMode(int x, int y, int width, int height) + * void UnloadImageColors(Color *colors) * } */ - public static void BeginScissorMode(int x, int y, int width, int height) { - var mh$ = BeginScissorMode.HANDLE; + public static void UnloadImageColors(MemorySegment colors) { + var mh$ = UnloadImageColors.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginScissorMode", x, y, width, height); + traceDowncall("UnloadImageColors", colors); } - mh$.invokeExact(x, y, width, height); + mh$.invokeExact(colors); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndScissorMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class UnloadImagePalette { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndScissorMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadImagePalette"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10100,56 +22559,58 @@ private static class EndScissorMode { /** * Function descriptor for: * {@snippet lang=c : - * void EndScissorMode() + * void UnloadImagePalette(Color *colors) * } */ - public static FunctionDescriptor EndScissorMode$descriptor() { - return EndScissorMode.DESC; + public static FunctionDescriptor UnloadImagePalette$descriptor() { + return UnloadImagePalette.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndScissorMode() + * void UnloadImagePalette(Color *colors) * } */ - public static MethodHandle EndScissorMode$handle() { - return EndScissorMode.HANDLE; + public static MethodHandle UnloadImagePalette$handle() { + return UnloadImagePalette.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndScissorMode() + * void UnloadImagePalette(Color *colors) * } */ - public static MemorySegment EndScissorMode$address() { - return EndScissorMode.ADDR; + public static MemorySegment UnloadImagePalette$address() { + return UnloadImagePalette.ADDR; } /** * {@snippet lang=c : - * void EndScissorMode() + * void UnloadImagePalette(Color *colors) * } */ - public static void EndScissorMode() { - var mh$ = EndScissorMode.HANDLE; + public static void UnloadImagePalette(MemorySegment colors) { + var mh$ = UnloadImagePalette.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndScissorMode"); + traceDowncall("UnloadImagePalette", colors); } - mh$.invokeExact(); + mh$.invokeExact(colors); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class BeginVrStereoMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - VrStereoConfig.layout() + private static class GetImageAlphaBorder { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Rectangle.layout(), + Image.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("BeginVrStereoMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetImageAlphaBorder"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10157,54 +22618,59 @@ private static class BeginVrStereoMode { /** * Function descriptor for: * {@snippet lang=c : - * void BeginVrStereoMode(VrStereoConfig config) + * Rectangle GetImageAlphaBorder(Image image, float threshold) * } */ - public static FunctionDescriptor BeginVrStereoMode$descriptor() { - return BeginVrStereoMode.DESC; + public static FunctionDescriptor GetImageAlphaBorder$descriptor() { + return GetImageAlphaBorder.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void BeginVrStereoMode(VrStereoConfig config) + * Rectangle GetImageAlphaBorder(Image image, float threshold) * } */ - public static MethodHandle BeginVrStereoMode$handle() { - return BeginVrStereoMode.HANDLE; + public static MethodHandle GetImageAlphaBorder$handle() { + return GetImageAlphaBorder.HANDLE; } /** * Address for: * {@snippet lang=c : - * void BeginVrStereoMode(VrStereoConfig config) + * Rectangle GetImageAlphaBorder(Image image, float threshold) * } */ - public static MemorySegment BeginVrStereoMode$address() { - return BeginVrStereoMode.ADDR; + public static MemorySegment GetImageAlphaBorder$address() { + return GetImageAlphaBorder.ADDR; } /** * {@snippet lang=c : - * void BeginVrStereoMode(VrStereoConfig config) + * Rectangle GetImageAlphaBorder(Image image, float threshold) * } */ - public static void BeginVrStereoMode(MemorySegment config) { - var mh$ = BeginVrStereoMode.HANDLE; + public static MemorySegment GetImageAlphaBorder(SegmentAllocator allocator, MemorySegment image, float threshold) { + var mh$ = GetImageAlphaBorder.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("BeginVrStereoMode", config); + traceDowncall("GetImageAlphaBorder", allocator, image, threshold); } - mh$.invokeExact(config); + return (MemorySegment)mh$.invokeExact(allocator, image, threshold); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EndVrStereoMode { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class GetImageColor { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), + Image.layout(), + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("EndVrStereoMode"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetImageColor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10212,57 +22678,57 @@ private static class EndVrStereoMode { /** * Function descriptor for: * {@snippet lang=c : - * void EndVrStereoMode() + * Color GetImageColor(Image image, int x, int y) * } */ - public static FunctionDescriptor EndVrStereoMode$descriptor() { - return EndVrStereoMode.DESC; + public static FunctionDescriptor GetImageColor$descriptor() { + return GetImageColor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void EndVrStereoMode() + * Color GetImageColor(Image image, int x, int y) * } */ - public static MethodHandle EndVrStereoMode$handle() { - return EndVrStereoMode.HANDLE; + public static MethodHandle GetImageColor$handle() { + return GetImageColor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void EndVrStereoMode() + * Color GetImageColor(Image image, int x, int y) * } */ - public static MemorySegment EndVrStereoMode$address() { - return EndVrStereoMode.ADDR; + public static MemorySegment GetImageColor$address() { + return GetImageColor.ADDR; } /** * {@snippet lang=c : - * void EndVrStereoMode() + * Color GetImageColor(Image image, int x, int y) * } */ - public static void EndVrStereoMode() { - var mh$ = EndVrStereoMode.HANDLE; + public static MemorySegment GetImageColor(SegmentAllocator allocator, MemorySegment image, int x, int y) { + var mh$ = GetImageColor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EndVrStereoMode"); + traceDowncall("GetImageColor", allocator, image, x, y); } - mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, image, x, y); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadVrStereoConfig { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - VrStereoConfig.layout(), - VrDeviceInfo.layout() + private static class ImageClearBackground { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadVrStereoConfig"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageClearBackground"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10270,56 +22736,59 @@ private static class LoadVrStereoConfig { /** * Function descriptor for: * {@snippet lang=c : - * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * void ImageClearBackground(Image *dst, Color color) * } */ - public static FunctionDescriptor LoadVrStereoConfig$descriptor() { - return LoadVrStereoConfig.DESC; + public static FunctionDescriptor ImageClearBackground$descriptor() { + return ImageClearBackground.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * void ImageClearBackground(Image *dst, Color color) * } */ - public static MethodHandle LoadVrStereoConfig$handle() { - return LoadVrStereoConfig.HANDLE; + public static MethodHandle ImageClearBackground$handle() { + return ImageClearBackground.HANDLE; } /** * Address for: * {@snippet lang=c : - * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * void ImageClearBackground(Image *dst, Color color) * } */ - public static MemorySegment LoadVrStereoConfig$address() { - return LoadVrStereoConfig.ADDR; + public static MemorySegment ImageClearBackground$address() { + return ImageClearBackground.ADDR; } /** * {@snippet lang=c : - * VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device) + * void ImageClearBackground(Image *dst, Color color) * } */ - public static MemorySegment LoadVrStereoConfig(SegmentAllocator allocator, MemorySegment device) { - var mh$ = LoadVrStereoConfig.HANDLE; + public static void ImageClearBackground(MemorySegment dst, MemorySegment color) { + var mh$ = ImageClearBackground.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadVrStereoConfig", allocator, device); + traceDowncall("ImageClearBackground", dst, color); } - return (MemorySegment)mh$.invokeExact(allocator, device); + mh$.invokeExact(dst, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadVrStereoConfig { + private static class ImageDrawPixel { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - VrStereoConfig.layout() + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadVrStereoConfig"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawPixel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10327,58 +22796,58 @@ private static class UnloadVrStereoConfig { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadVrStereoConfig(VrStereoConfig config) + * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) * } */ - public static FunctionDescriptor UnloadVrStereoConfig$descriptor() { - return UnloadVrStereoConfig.DESC; + public static FunctionDescriptor ImageDrawPixel$descriptor() { + return ImageDrawPixel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadVrStereoConfig(VrStereoConfig config) + * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) * } */ - public static MethodHandle UnloadVrStereoConfig$handle() { - return UnloadVrStereoConfig.HANDLE; + public static MethodHandle ImageDrawPixel$handle() { + return ImageDrawPixel.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadVrStereoConfig(VrStereoConfig config) + * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) * } */ - public static MemorySegment UnloadVrStereoConfig$address() { - return UnloadVrStereoConfig.ADDR; + public static MemorySegment ImageDrawPixel$address() { + return ImageDrawPixel.ADDR; } /** * {@snippet lang=c : - * void UnloadVrStereoConfig(VrStereoConfig config) + * void ImageDrawPixel(Image *dst, int posX, int posY, Color color) * } */ - public static void UnloadVrStereoConfig(MemorySegment config) { - var mh$ = UnloadVrStereoConfig.HANDLE; + public static void ImageDrawPixel(MemorySegment dst, int posX, int posY, MemorySegment color) { + var mh$ = ImageDrawPixel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadVrStereoConfig", config); + traceDowncall("ImageDrawPixel", dst, posX, posY, color); } - mh$.invokeExact(config); + mh$.invokeExact(dst, posX, posY, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadShader { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Shader.layout(), + private static class ImageDrawPixelV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER, - raylib.C_POINTER + Vector2.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadShader"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawPixelV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10386,58 +22855,61 @@ private static class LoadShader { /** * Function descriptor for: * {@snippet lang=c : - * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) * } - */ - public static FunctionDescriptor LoadShader$descriptor() { - return LoadShader.DESC; + */ + public static FunctionDescriptor ImageDrawPixelV$descriptor() { + return ImageDrawPixelV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) * } */ - public static MethodHandle LoadShader$handle() { - return LoadShader.HANDLE; + public static MethodHandle ImageDrawPixelV$handle() { + return ImageDrawPixelV.HANDLE; } /** * Address for: * {@snippet lang=c : - * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) * } */ - public static MemorySegment LoadShader$address() { - return LoadShader.ADDR; + public static MemorySegment ImageDrawPixelV$address() { + return ImageDrawPixelV.ADDR; } /** * {@snippet lang=c : - * Shader LoadShader(const char *vsFileName, const char *fsFileName) + * void ImageDrawPixelV(Image *dst, Vector2 position, Color color) * } */ - public static MemorySegment LoadShader(SegmentAllocator allocator, MemorySegment vsFileName, MemorySegment fsFileName) { - var mh$ = LoadShader.HANDLE; + public static void ImageDrawPixelV(MemorySegment dst, MemorySegment position, MemorySegment color) { + var mh$ = ImageDrawPixelV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadShader", allocator, vsFileName, fsFileName); + traceDowncall("ImageDrawPixelV", dst, position, color); } - return (MemorySegment)mh$.invokeExact(allocator, vsFileName, fsFileName); + mh$.invokeExact(dst, position, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadShaderFromMemory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Shader.layout(), + private static class ImageDrawLine { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadShaderFromMemory"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawLine"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10445,57 +22917,59 @@ private static class LoadShaderFromMemory { /** * Function descriptor for: * {@snippet lang=c : - * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) * } */ - public static FunctionDescriptor LoadShaderFromMemory$descriptor() { - return LoadShaderFromMemory.DESC; + public static FunctionDescriptor ImageDrawLine$descriptor() { + return ImageDrawLine.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) * } */ - public static MethodHandle LoadShaderFromMemory$handle() { - return LoadShaderFromMemory.HANDLE; + public static MethodHandle ImageDrawLine$handle() { + return ImageDrawLine.HANDLE; } /** * Address for: * {@snippet lang=c : - * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) * } */ - public static MemorySegment LoadShaderFromMemory$address() { - return LoadShaderFromMemory.ADDR; + public static MemorySegment ImageDrawLine$address() { + return ImageDrawLine.ADDR; } /** * {@snippet lang=c : - * Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) + * void ImageDrawLine(Image *dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color) * } */ - public static MemorySegment LoadShaderFromMemory(SegmentAllocator allocator, MemorySegment vsCode, MemorySegment fsCode) { - var mh$ = LoadShaderFromMemory.HANDLE; + public static void ImageDrawLine(MemorySegment dst, int startPosX, int startPosY, int endPosX, int endPosY, MemorySegment color) { + var mh$ = ImageDrawLine.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadShaderFromMemory", allocator, vsCode, fsCode); + traceDowncall("ImageDrawLine", dst, startPosX, startPosY, endPosX, endPosY, color); } - return (MemorySegment)mh$.invokeExact(allocator, vsCode, fsCode); + mh$.invokeExact(dst, startPosX, startPosY, endPosX, endPosY, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsShaderReady { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Shader.layout() + private static class ImageDrawLineV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Vector2.layout(), + Vector2.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsShaderReady"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawLineV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10503,58 +22977,60 @@ private static class IsShaderReady { /** * Function descriptor for: * {@snippet lang=c : - * bool IsShaderReady(Shader shader) + * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) * } */ - public static FunctionDescriptor IsShaderReady$descriptor() { - return IsShaderReady.DESC; + public static FunctionDescriptor ImageDrawLineV$descriptor() { + return ImageDrawLineV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsShaderReady(Shader shader) + * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) * } */ - public static MethodHandle IsShaderReady$handle() { - return IsShaderReady.HANDLE; + public static MethodHandle ImageDrawLineV$handle() { + return ImageDrawLineV.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsShaderReady(Shader shader) + * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) * } */ - public static MemorySegment IsShaderReady$address() { - return IsShaderReady.ADDR; + public static MemorySegment ImageDrawLineV$address() { + return ImageDrawLineV.ADDR; } /** * {@snippet lang=c : - * bool IsShaderReady(Shader shader) + * void ImageDrawLineV(Image *dst, Vector2 start, Vector2 end, Color color) * } */ - public static boolean IsShaderReady(MemorySegment shader) { - var mh$ = IsShaderReady.HANDLE; + public static void ImageDrawLineV(MemorySegment dst, MemorySegment start, MemorySegment end, MemorySegment color) { + var mh$ = ImageDrawLineV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsShaderReady", shader); + traceDowncall("ImageDrawLineV", dst, start, end, color); } - return (boolean)mh$.invokeExact(shader); + mh$.invokeExact(dst, start, end, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetShaderLocation { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class ImageDrawCircle { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, raylib.C_INT, - Shader.layout(), - raylib.C_POINTER + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetShaderLocation"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10562,58 +23038,59 @@ private static class GetShaderLocation { /** * Function descriptor for: * {@snippet lang=c : - * int GetShaderLocation(Shader shader, const char *uniformName) + * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static FunctionDescriptor GetShaderLocation$descriptor() { - return GetShaderLocation.DESC; + public static FunctionDescriptor ImageDrawCircle$descriptor() { + return ImageDrawCircle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetShaderLocation(Shader shader, const char *uniformName) + * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static MethodHandle GetShaderLocation$handle() { - return GetShaderLocation.HANDLE; + public static MethodHandle ImageDrawCircle$handle() { + return ImageDrawCircle.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetShaderLocation(Shader shader, const char *uniformName) + * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static MemorySegment GetShaderLocation$address() { - return GetShaderLocation.ADDR; + public static MemorySegment ImageDrawCircle$address() { + return ImageDrawCircle.ADDR; } /** * {@snippet lang=c : - * int GetShaderLocation(Shader shader, const char *uniformName) + * void ImageDrawCircle(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static int GetShaderLocation(MemorySegment shader, MemorySegment uniformName) { - var mh$ = GetShaderLocation.HANDLE; + public static void ImageDrawCircle(MemorySegment dst, int centerX, int centerY, int radius, MemorySegment color) { + var mh$ = ImageDrawCircle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetShaderLocation", shader, uniformName); + traceDowncall("ImageDrawCircle", dst, centerX, centerY, radius, color); } - return (int)mh$.invokeExact(shader, uniformName); + mh$.invokeExact(dst, centerX, centerY, radius, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetShaderLocationAttrib { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class ImageDrawCircleV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Vector2.layout(), raylib.C_INT, - Shader.layout(), - raylib.C_POINTER + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetShaderLocationAttrib"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircleV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10621,59 +23098,60 @@ private static class GetShaderLocationAttrib { /** * Function descriptor for: * {@snippet lang=c : - * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static FunctionDescriptor GetShaderLocationAttrib$descriptor() { - return GetShaderLocationAttrib.DESC; + public static FunctionDescriptor ImageDrawCircleV$descriptor() { + return ImageDrawCircleV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static MethodHandle GetShaderLocationAttrib$handle() { - return GetShaderLocationAttrib.HANDLE; + public static MethodHandle ImageDrawCircleV$handle() { + return ImageDrawCircleV.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static MemorySegment GetShaderLocationAttrib$address() { - return GetShaderLocationAttrib.ADDR; + public static MemorySegment ImageDrawCircleV$address() { + return ImageDrawCircleV.ADDR; } /** * {@snippet lang=c : - * int GetShaderLocationAttrib(Shader shader, const char *attribName) + * void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static int GetShaderLocationAttrib(MemorySegment shader, MemorySegment attribName) { - var mh$ = GetShaderLocationAttrib.HANDLE; + public static void ImageDrawCircleV(MemorySegment dst, MemorySegment center, int radius, MemorySegment color) { + var mh$ = ImageDrawCircleV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetShaderLocationAttrib", shader, attribName); + traceDowncall("ImageDrawCircleV", dst, center, radius, color); } - return (int)mh$.invokeExact(shader, attribName); + mh$.invokeExact(dst, center, radius, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetShaderValue { + private static class ImageDrawCircleLines { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Shader.layout(), - raylib.C_INT, raylib.C_POINTER, - raylib.C_INT + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircleLines"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10681,60 +23159,59 @@ private static class SetShaderValue { /** * Function descriptor for: * {@snippet lang=c : - * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static FunctionDescriptor SetShaderValue$descriptor() { - return SetShaderValue.DESC; + public static FunctionDescriptor ImageDrawCircleLines$descriptor() { + return ImageDrawCircleLines.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static MethodHandle SetShaderValue$handle() { - return SetShaderValue.HANDLE; + public static MethodHandle ImageDrawCircleLines$handle() { + return ImageDrawCircleLines.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static MemorySegment SetShaderValue$address() { - return SetShaderValue.ADDR; + public static MemorySegment ImageDrawCircleLines$address() { + return ImageDrawCircleLines.ADDR; } /** * {@snippet lang=c : - * void SetShaderValue(Shader shader, int locIndex, const void *value, int uniformType) + * void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color) * } */ - public static void SetShaderValue(MemorySegment shader, int locIndex, MemorySegment value, int uniformType) { - var mh$ = SetShaderValue.HANDLE; + public static void ImageDrawCircleLines(MemorySegment dst, int centerX, int centerY, int radius, MemorySegment color) { + var mh$ = ImageDrawCircleLines.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetShaderValue", shader, locIndex, value, uniformType); + traceDowncall("ImageDrawCircleLines", dst, centerX, centerY, radius, color); } - mh$.invokeExact(shader, locIndex, value, uniformType); + mh$.invokeExact(dst, centerX, centerY, radius, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetShaderValueV { + private static class ImageDrawCircleLinesV { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Shader.layout(), - raylib.C_INT, raylib.C_POINTER, + Vector2.layout(), raylib.C_INT, - raylib.C_INT + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValueV"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawCircleLinesV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10742,58 +23219,61 @@ private static class SetShaderValueV { /** * Function descriptor for: * {@snippet lang=c : - * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static FunctionDescriptor SetShaderValueV$descriptor() { - return SetShaderValueV.DESC; + public static FunctionDescriptor ImageDrawCircleLinesV$descriptor() { + return ImageDrawCircleLinesV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static MethodHandle SetShaderValueV$handle() { - return SetShaderValueV.HANDLE; + public static MethodHandle ImageDrawCircleLinesV$handle() { + return ImageDrawCircleLinesV.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static MemorySegment SetShaderValueV$address() { - return SetShaderValueV.ADDR; + public static MemorySegment ImageDrawCircleLinesV$address() { + return ImageDrawCircleLinesV.ADDR; } /** * {@snippet lang=c : - * void SetShaderValueV(Shader shader, int locIndex, const void *value, int uniformType, int count) + * void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) * } */ - public static void SetShaderValueV(MemorySegment shader, int locIndex, MemorySegment value, int uniformType, int count) { - var mh$ = SetShaderValueV.HANDLE; + public static void ImageDrawCircleLinesV(MemorySegment dst, MemorySegment center, int radius, MemorySegment color) { + var mh$ = ImageDrawCircleLinesV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetShaderValueV", shader, locIndex, value, uniformType, count); + traceDowncall("ImageDrawCircleLinesV", dst, center, radius, color); } - mh$.invokeExact(shader, locIndex, value, uniformType, count); + mh$.invokeExact(dst, center, radius, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetShaderValueMatrix { + private static class ImageDrawRectangle { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Shader.layout(), + raylib.C_POINTER, raylib.C_INT, - Matrix.layout() + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValueMatrix"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10801,58 +23281,59 @@ private static class SetShaderValueMatrix { /** * Function descriptor for: * {@snippet lang=c : - * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) * } */ - public static FunctionDescriptor SetShaderValueMatrix$descriptor() { - return SetShaderValueMatrix.DESC; + public static FunctionDescriptor ImageDrawRectangle$descriptor() { + return ImageDrawRectangle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) * } */ - public static MethodHandle SetShaderValueMatrix$handle() { - return SetShaderValueMatrix.HANDLE; + public static MethodHandle ImageDrawRectangle$handle() { + return ImageDrawRectangle.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) * } */ - public static MemorySegment SetShaderValueMatrix$address() { - return SetShaderValueMatrix.ADDR; + public static MemorySegment ImageDrawRectangle$address() { + return ImageDrawRectangle.ADDR; } /** * {@snippet lang=c : - * void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat) + * void ImageDrawRectangle(Image *dst, int posX, int posY, int width, int height, Color color) * } */ - public static void SetShaderValueMatrix(MemorySegment shader, int locIndex, MemorySegment mat) { - var mh$ = SetShaderValueMatrix.HANDLE; + public static void ImageDrawRectangle(MemorySegment dst, int posX, int posY, int width, int height, MemorySegment color) { + var mh$ = ImageDrawRectangle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetShaderValueMatrix", shader, locIndex, mat); + traceDowncall("ImageDrawRectangle", dst, posX, posY, width, height, color); } - mh$.invokeExact(shader, locIndex, mat); + mh$.invokeExact(dst, posX, posY, width, height, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetShaderValueTexture { + private static class ImageDrawRectangleV { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Shader.layout(), - raylib.C_INT, - Texture.layout() + raylib.C_POINTER, + Vector2.layout(), + Vector2.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetShaderValueTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangleV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10860,56 +23341,58 @@ private static class SetShaderValueTexture { /** * Function descriptor for: * {@snippet lang=c : - * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) * } */ - public static FunctionDescriptor SetShaderValueTexture$descriptor() { - return SetShaderValueTexture.DESC; + public static FunctionDescriptor ImageDrawRectangleV$descriptor() { + return ImageDrawRectangleV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) * } */ - public static MethodHandle SetShaderValueTexture$handle() { - return SetShaderValueTexture.HANDLE; + public static MethodHandle ImageDrawRectangleV$handle() { + return ImageDrawRectangleV.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) * } */ - public static MemorySegment SetShaderValueTexture$address() { - return SetShaderValueTexture.ADDR; + public static MemorySegment ImageDrawRectangleV$address() { + return ImageDrawRectangleV.ADDR; } /** * {@snippet lang=c : - * void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture) + * void ImageDrawRectangleV(Image *dst, Vector2 position, Vector2 size, Color color) * } */ - public static void SetShaderValueTexture(MemorySegment shader, int locIndex, MemorySegment texture) { - var mh$ = SetShaderValueTexture.HANDLE; + public static void ImageDrawRectangleV(MemorySegment dst, MemorySegment position, MemorySegment size, MemorySegment color) { + var mh$ = ImageDrawRectangleV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetShaderValueTexture", shader, locIndex, texture); + traceDowncall("ImageDrawRectangleV", dst, position, size, color); } - mh$.invokeExact(shader, locIndex, texture); + mh$.invokeExact(dst, position, size, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadShader { + private static class ImageDrawRectangleRec { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Shader.layout() + raylib.C_POINTER, + Rectangle.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadShader"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangleRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10917,58 +23400,59 @@ private static class UnloadShader { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadShader(Shader shader) + * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) * } */ - public static FunctionDescriptor UnloadShader$descriptor() { - return UnloadShader.DESC; + public static FunctionDescriptor ImageDrawRectangleRec$descriptor() { + return ImageDrawRectangleRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadShader(Shader shader) + * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) * } */ - public static MethodHandle UnloadShader$handle() { - return UnloadShader.HANDLE; + public static MethodHandle ImageDrawRectangleRec$handle() { + return ImageDrawRectangleRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadShader(Shader shader) + * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) * } */ - public static MemorySegment UnloadShader$address() { - return UnloadShader.ADDR; + public static MemorySegment ImageDrawRectangleRec$address() { + return ImageDrawRectangleRec.ADDR; } /** * {@snippet lang=c : - * void UnloadShader(Shader shader) + * void ImageDrawRectangleRec(Image *dst, Rectangle rec, Color color) * } */ - public static void UnloadShader(MemorySegment shader) { - var mh$ = UnloadShader.HANDLE; + public static void ImageDrawRectangleRec(MemorySegment dst, MemorySegment rec, MemorySegment color) { + var mh$ = ImageDrawRectangleRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadShader", shader); + traceDowncall("ImageDrawRectangleRec", dst, rec, color); } - mh$.invokeExact(shader); + mh$.invokeExact(dst, rec, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetScreenToWorldRay { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Ray.layout(), - Vector2.layout(), - Camera3D.layout() + private static class ImageDrawRectangleLines { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Rectangle.layout(), + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenToWorldRay"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawRectangleLines"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -10976,60 +23460,60 @@ private static class GetScreenToWorldRay { /** * Function descriptor for: * {@snippet lang=c : - * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) * } */ - public static FunctionDescriptor GetScreenToWorldRay$descriptor() { - return GetScreenToWorldRay.DESC; + public static FunctionDescriptor ImageDrawRectangleLines$descriptor() { + return ImageDrawRectangleLines.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) * } */ - public static MethodHandle GetScreenToWorldRay$handle() { - return GetScreenToWorldRay.HANDLE; + public static MethodHandle ImageDrawRectangleLines$handle() { + return ImageDrawRectangleLines.HANDLE; } /** * Address for: * {@snippet lang=c : - * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) * } */ - public static MemorySegment GetScreenToWorldRay$address() { - return GetScreenToWorldRay.ADDR; + public static MemorySegment ImageDrawRectangleLines$address() { + return ImageDrawRectangleLines.ADDR; } /** * {@snippet lang=c : - * Ray GetScreenToWorldRay(Vector2 position, Camera camera) + * void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color) * } */ - public static MemorySegment GetScreenToWorldRay(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { - var mh$ = GetScreenToWorldRay.HANDLE; + public static void ImageDrawRectangleLines(MemorySegment dst, MemorySegment rec, int thick, MemorySegment color) { + var mh$ = ImageDrawRectangleLines.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetScreenToWorldRay", allocator, position, camera); + traceDowncall("ImageDrawRectangleLines", dst, rec, thick, color); } - return (MemorySegment)mh$.invokeExact(allocator, position, camera); + mh$.invokeExact(dst, rec, thick, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetScreenToWorldRayEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Ray.layout(), - Vector2.layout(), - Camera3D.layout(), - raylib.C_INT, - raylib.C_INT + private static class ImageDraw { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Image.layout(), + Rectangle.layout(), + Rectangle.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenToWorldRayEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDraw"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11037,58 +23521,61 @@ private static class GetScreenToWorldRayEx { /** * Function descriptor for: * {@snippet lang=c : - * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) * } */ - public static FunctionDescriptor GetScreenToWorldRayEx$descriptor() { - return GetScreenToWorldRayEx.DESC; + public static FunctionDescriptor ImageDraw$descriptor() { + return ImageDraw.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) * } */ - public static MethodHandle GetScreenToWorldRayEx$handle() { - return GetScreenToWorldRayEx.HANDLE; + public static MethodHandle ImageDraw$handle() { + return ImageDraw.HANDLE; } /** * Address for: * {@snippet lang=c : - * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) * } */ - public static MemorySegment GetScreenToWorldRayEx$address() { - return GetScreenToWorldRayEx.ADDR; + public static MemorySegment ImageDraw$address() { + return ImageDraw.ADDR; } /** * {@snippet lang=c : - * Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height) + * void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) * } */ - public static MemorySegment GetScreenToWorldRayEx(SegmentAllocator allocator, MemorySegment position, MemorySegment camera, int width, int height) { - var mh$ = GetScreenToWorldRayEx.HANDLE; + public static void ImageDraw(MemorySegment dst, MemorySegment src, MemorySegment srcRec, MemorySegment dstRec, MemorySegment tint) { + var mh$ = ImageDraw.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetScreenToWorldRayEx", allocator, position, camera, width, height); + traceDowncall("ImageDraw", dst, src, srcRec, dstRec, tint); } - return (MemorySegment)mh$.invokeExact(allocator, position, camera, width, height); + mh$.invokeExact(dst, src, srcRec, dstRec, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWorldToScreen { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector3.layout(), - Camera3D.layout() + private static class ImageDrawText { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWorldToScreen"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawText"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11096,60 +23583,62 @@ private static class GetWorldToScreen { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static FunctionDescriptor GetWorldToScreen$descriptor() { - return GetWorldToScreen.DESC; + public static FunctionDescriptor ImageDrawText$descriptor() { + return ImageDrawText.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static MethodHandle GetWorldToScreen$handle() { - return GetWorldToScreen.HANDLE; + public static MethodHandle ImageDrawText$handle() { + return ImageDrawText.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static MemorySegment GetWorldToScreen$address() { - return GetWorldToScreen.ADDR; + public static MemorySegment ImageDrawText$address() { + return ImageDrawText.ADDR; } /** * {@snippet lang=c : - * Vector2 GetWorldToScreen(Vector3 position, Camera camera) + * void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static MemorySegment GetWorldToScreen(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { - var mh$ = GetWorldToScreen.HANDLE; + public static void ImageDrawText(MemorySegment dst, MemorySegment text, int posX, int posY, int fontSize, MemorySegment color) { + var mh$ = ImageDrawText.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWorldToScreen", allocator, position, camera); + traceDowncall("ImageDrawText", dst, text, posX, posY, fontSize, color); } - return (MemorySegment)mh$.invokeExact(allocator, position, camera); + mh$.invokeExact(dst, text, posX, posY, fontSize, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWorldToScreenEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class ImageDrawTextEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + Font.layout(), + raylib.C_POINTER, Vector2.layout(), - Vector3.layout(), - Camera3D.layout(), - raylib.C_INT, - raylib.C_INT + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWorldToScreenEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("ImageDrawTextEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11157,58 +23646,57 @@ private static class GetWorldToScreenEx { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static FunctionDescriptor GetWorldToScreenEx$descriptor() { - return GetWorldToScreenEx.DESC; + public static FunctionDescriptor ImageDrawTextEx$descriptor() { + return ImageDrawTextEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MethodHandle GetWorldToScreenEx$handle() { - return GetWorldToScreenEx.HANDLE; + public static MethodHandle ImageDrawTextEx$handle() { + return ImageDrawTextEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment GetWorldToScreenEx$address() { - return GetWorldToScreenEx.ADDR; + public static MemorySegment ImageDrawTextEx$address() { + return ImageDrawTextEx.ADDR; } /** * {@snippet lang=c : - * Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height) + * void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment GetWorldToScreenEx(SegmentAllocator allocator, MemorySegment position, MemorySegment camera, int width, int height) { - var mh$ = GetWorldToScreenEx.HANDLE; + public static void ImageDrawTextEx(MemorySegment dst, MemorySegment font, MemorySegment text, MemorySegment position, float fontSize, float spacing, MemorySegment tint) { + var mh$ = ImageDrawTextEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWorldToScreenEx", allocator, position, camera, width, height); + traceDowncall("ImageDrawTextEx", dst, font, text, position, fontSize, spacing, tint); } - return (MemorySegment)mh$.invokeExact(allocator, position, camera, width, height); + mh$.invokeExact(dst, font, text, position, fontSize, spacing, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWorldToScreen2D { + private static class LoadTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Camera2D.layout() + Texture.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWorldToScreen2D"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11216,58 +23704,57 @@ private static class GetWorldToScreen2D { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * Texture2D LoadTexture(const char *fileName) * } */ - public static FunctionDescriptor GetWorldToScreen2D$descriptor() { - return GetWorldToScreen2D.DESC; + public static FunctionDescriptor LoadTexture$descriptor() { + return LoadTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * Texture2D LoadTexture(const char *fileName) * } */ - public static MethodHandle GetWorldToScreen2D$handle() { - return GetWorldToScreen2D.HANDLE; + public static MethodHandle LoadTexture$handle() { + return LoadTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * Texture2D LoadTexture(const char *fileName) * } */ - public static MemorySegment GetWorldToScreen2D$address() { - return GetWorldToScreen2D.ADDR; + public static MemorySegment LoadTexture$address() { + return LoadTexture.ADDR; } /** * {@snippet lang=c : - * Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera) + * Texture2D LoadTexture(const char *fileName) * } */ - public static MemorySegment GetWorldToScreen2D(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { - var mh$ = GetWorldToScreen2D.HANDLE; + public static MemorySegment LoadTexture(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWorldToScreen2D", allocator, position, camera); + traceDowncall("LoadTexture", allocator, fileName); } - return (MemorySegment)mh$.invokeExact(allocator, position, camera); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetScreenToWorld2D { + private static class LoadTextureFromImage { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Camera2D.layout() + Texture.layout(), + Image.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetScreenToWorld2D"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadTextureFromImage"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11275,57 +23762,58 @@ private static class GetScreenToWorld2D { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * Texture2D LoadTextureFromImage(Image image) * } */ - public static FunctionDescriptor GetScreenToWorld2D$descriptor() { - return GetScreenToWorld2D.DESC; + public static FunctionDescriptor LoadTextureFromImage$descriptor() { + return LoadTextureFromImage.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * Texture2D LoadTextureFromImage(Image image) * } */ - public static MethodHandle GetScreenToWorld2D$handle() { - return GetScreenToWorld2D.HANDLE; + public static MethodHandle LoadTextureFromImage$handle() { + return LoadTextureFromImage.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * Texture2D LoadTextureFromImage(Image image) * } */ - public static MemorySegment GetScreenToWorld2D$address() { - return GetScreenToWorld2D.ADDR; + public static MemorySegment LoadTextureFromImage$address() { + return LoadTextureFromImage.ADDR; } /** * {@snippet lang=c : - * Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera) + * Texture2D LoadTextureFromImage(Image image) * } */ - public static MemorySegment GetScreenToWorld2D(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { - var mh$ = GetScreenToWorld2D.HANDLE; + public static MemorySegment LoadTextureFromImage(SegmentAllocator allocator, MemorySegment image) { + var mh$ = LoadTextureFromImage.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetScreenToWorld2D", allocator, position, camera); + traceDowncall("LoadTextureFromImage", allocator, image); } - return (MemorySegment)mh$.invokeExact(allocator, position, camera); + return (MemorySegment)mh$.invokeExact(allocator, image); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetCameraMatrix { + private static class LoadTextureCubemap { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Camera3D.layout() + Texture.layout(), + Image.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetCameraMatrix"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadTextureCubemap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11333,57 +23821,58 @@ private static class GetCameraMatrix { /** * Function descriptor for: * {@snippet lang=c : - * Matrix GetCameraMatrix(Camera camera) + * TextureCubemap LoadTextureCubemap(Image image, int layout) * } */ - public static FunctionDescriptor GetCameraMatrix$descriptor() { - return GetCameraMatrix.DESC; + public static FunctionDescriptor LoadTextureCubemap$descriptor() { + return LoadTextureCubemap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix GetCameraMatrix(Camera camera) + * TextureCubemap LoadTextureCubemap(Image image, int layout) * } */ - public static MethodHandle GetCameraMatrix$handle() { - return GetCameraMatrix.HANDLE; + public static MethodHandle LoadTextureCubemap$handle() { + return LoadTextureCubemap.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix GetCameraMatrix(Camera camera) + * TextureCubemap LoadTextureCubemap(Image image, int layout) * } */ - public static MemorySegment GetCameraMatrix$address() { - return GetCameraMatrix.ADDR; + public static MemorySegment LoadTextureCubemap$address() { + return LoadTextureCubemap.ADDR; } /** * {@snippet lang=c : - * Matrix GetCameraMatrix(Camera camera) + * TextureCubemap LoadTextureCubemap(Image image, int layout) * } */ - public static MemorySegment GetCameraMatrix(SegmentAllocator allocator, MemorySegment camera) { - var mh$ = GetCameraMatrix.HANDLE; + public static MemorySegment LoadTextureCubemap(SegmentAllocator allocator, MemorySegment image, int layout) { + var mh$ = LoadTextureCubemap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetCameraMatrix", allocator, camera); + traceDowncall("LoadTextureCubemap", allocator, image, layout); } - return (MemorySegment)mh$.invokeExact(allocator, camera); + return (MemorySegment)mh$.invokeExact(allocator, image, layout); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetCameraMatrix2D { + private static class LoadRenderTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Matrix.layout(), - Camera2D.layout() + RenderTexture.layout(), + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetCameraMatrix2D"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadRenderTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11391,56 +23880,57 @@ private static class GetCameraMatrix2D { /** * Function descriptor for: * {@snippet lang=c : - * Matrix GetCameraMatrix2D(Camera2D camera) + * RenderTexture2D LoadRenderTexture(int width, int height) * } */ - public static FunctionDescriptor GetCameraMatrix2D$descriptor() { - return GetCameraMatrix2D.DESC; + public static FunctionDescriptor LoadRenderTexture$descriptor() { + return LoadRenderTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Matrix GetCameraMatrix2D(Camera2D camera) + * RenderTexture2D LoadRenderTexture(int width, int height) * } */ - public static MethodHandle GetCameraMatrix2D$handle() { - return GetCameraMatrix2D.HANDLE; + public static MethodHandle LoadRenderTexture$handle() { + return LoadRenderTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * Matrix GetCameraMatrix2D(Camera2D camera) + * RenderTexture2D LoadRenderTexture(int width, int height) * } */ - public static MemorySegment GetCameraMatrix2D$address() { - return GetCameraMatrix2D.ADDR; + public static MemorySegment LoadRenderTexture$address() { + return LoadRenderTexture.ADDR; } /** * {@snippet lang=c : - * Matrix GetCameraMatrix2D(Camera2D camera) + * RenderTexture2D LoadRenderTexture(int width, int height) * } */ - public static MemorySegment GetCameraMatrix2D(SegmentAllocator allocator, MemorySegment camera) { - var mh$ = GetCameraMatrix2D.HANDLE; + public static MemorySegment LoadRenderTexture(SegmentAllocator allocator, int width, int height) { + var mh$ = LoadRenderTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetCameraMatrix2D", allocator, camera); + traceDowncall("LoadRenderTexture", allocator, width, height); } - return (MemorySegment)mh$.invokeExact(allocator, camera); + return (MemorySegment)mh$.invokeExact(allocator, width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetTargetFPS { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class IsTextureReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Texture.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetTargetFPS"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsTextureReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11448,55 +23938,56 @@ private static class SetTargetFPS { /** * Function descriptor for: * {@snippet lang=c : - * void SetTargetFPS(int fps) + * bool IsTextureReady(Texture2D texture) * } */ - public static FunctionDescriptor SetTargetFPS$descriptor() { - return SetTargetFPS.DESC; + public static FunctionDescriptor IsTextureReady$descriptor() { + return IsTextureReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetTargetFPS(int fps) + * bool IsTextureReady(Texture2D texture) * } */ - public static MethodHandle SetTargetFPS$handle() { - return SetTargetFPS.HANDLE; + public static MethodHandle IsTextureReady$handle() { + return IsTextureReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetTargetFPS(int fps) + * bool IsTextureReady(Texture2D texture) * } */ - public static MemorySegment SetTargetFPS$address() { - return SetTargetFPS.ADDR; + public static MemorySegment IsTextureReady$address() { + return IsTextureReady.ADDR; } /** * {@snippet lang=c : - * void SetTargetFPS(int fps) + * bool IsTextureReady(Texture2D texture) * } */ - public static void SetTargetFPS(int fps) { - var mh$ = SetTargetFPS.HANDLE; + public static boolean IsTextureReady(MemorySegment texture) { + var mh$ = IsTextureReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetTargetFPS", fps); + traceDowncall("IsTextureReady", texture); } - mh$.invokeExact(fps); + return (boolean)mh$.invokeExact(texture); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFrameTime { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); + private static class UnloadTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFrameTime"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11504,55 +23995,57 @@ private static class GetFrameTime { /** * Function descriptor for: * {@snippet lang=c : - * float GetFrameTime() + * void UnloadTexture(Texture2D texture) * } */ - public static FunctionDescriptor GetFrameTime$descriptor() { - return GetFrameTime.DESC; + public static FunctionDescriptor UnloadTexture$descriptor() { + return UnloadTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float GetFrameTime() + * void UnloadTexture(Texture2D texture) * } */ - public static MethodHandle GetFrameTime$handle() { - return GetFrameTime.HANDLE; + public static MethodHandle UnloadTexture$handle() { + return UnloadTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * float GetFrameTime() + * void UnloadTexture(Texture2D texture) * } */ - public static MemorySegment GetFrameTime$address() { - return GetFrameTime.ADDR; + public static MemorySegment UnloadTexture$address() { + return UnloadTexture.ADDR; } /** * {@snippet lang=c : - * float GetFrameTime() + * void UnloadTexture(Texture2D texture) * } */ - public static float GetFrameTime() { - var mh$ = GetFrameTime.HANDLE; + public static void UnloadTexture(MemorySegment texture) { + var mh$ = UnloadTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFrameTime"); + traceDowncall("UnloadTexture", texture); } - return (float)mh$.invokeExact(); + mh$.invokeExact(texture); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetTime { + private static class IsRenderTextureReady { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_DOUBLE ); + raylib.C_BOOL, + RenderTexture.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetTime"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsRenderTextureReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11560,55 +24053,56 @@ private static class GetTime { /** * Function descriptor for: * {@snippet lang=c : - * double GetTime() + * bool IsRenderTextureReady(RenderTexture2D target) * } */ - public static FunctionDescriptor GetTime$descriptor() { - return GetTime.DESC; + public static FunctionDescriptor IsRenderTextureReady$descriptor() { + return IsRenderTextureReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * double GetTime() + * bool IsRenderTextureReady(RenderTexture2D target) * } */ - public static MethodHandle GetTime$handle() { - return GetTime.HANDLE; + public static MethodHandle IsRenderTextureReady$handle() { + return IsRenderTextureReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * double GetTime() + * bool IsRenderTextureReady(RenderTexture2D target) * } */ - public static MemorySegment GetTime$address() { - return GetTime.ADDR; + public static MemorySegment IsRenderTextureReady$address() { + return IsRenderTextureReady.ADDR; } /** * {@snippet lang=c : - * double GetTime() + * bool IsRenderTextureReady(RenderTexture2D target) * } */ - public static double GetTime() { - var mh$ = GetTime.HANDLE; + public static boolean IsRenderTextureReady(MemorySegment target) { + var mh$ = IsRenderTextureReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetTime"); + traceDowncall("IsRenderTextureReady", target); } - return (double)mh$.invokeExact(); + return (boolean)mh$.invokeExact(target); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFPS { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class UnloadRenderTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + RenderTexture.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFPS"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadRenderTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11616,54 +24110,57 @@ private static class GetFPS { /** * Function descriptor for: * {@snippet lang=c : - * int GetFPS() + * void UnloadRenderTexture(RenderTexture2D target) * } */ - public static FunctionDescriptor GetFPS$descriptor() { - return GetFPS.DESC; + public static FunctionDescriptor UnloadRenderTexture$descriptor() { + return UnloadRenderTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetFPS() + * void UnloadRenderTexture(RenderTexture2D target) * } */ - public static MethodHandle GetFPS$handle() { - return GetFPS.HANDLE; + public static MethodHandle UnloadRenderTexture$handle() { + return UnloadRenderTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetFPS() + * void UnloadRenderTexture(RenderTexture2D target) * } */ - public static MemorySegment GetFPS$address() { - return GetFPS.ADDR; + public static MemorySegment UnloadRenderTexture$address() { + return UnloadRenderTexture.ADDR; } /** * {@snippet lang=c : - * int GetFPS() + * void UnloadRenderTexture(RenderTexture2D target) * } */ - public static int GetFPS() { - var mh$ = GetFPS.HANDLE; + public static void UnloadRenderTexture(MemorySegment target) { + var mh$ = UnloadRenderTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFPS"); + traceDowncall("UnloadRenderTexture", target); } - return (int)mh$.invokeExact(); + mh$.invokeExact(target); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SwapScreenBuffer { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class UpdateTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("SwapScreenBuffer"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11671,54 +24168,58 @@ private static class SwapScreenBuffer { /** * Function descriptor for: * {@snippet lang=c : - * void SwapScreenBuffer() + * void UpdateTexture(Texture2D texture, const void *pixels) * } */ - public static FunctionDescriptor SwapScreenBuffer$descriptor() { - return SwapScreenBuffer.DESC; + public static FunctionDescriptor UpdateTexture$descriptor() { + return UpdateTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SwapScreenBuffer() + * void UpdateTexture(Texture2D texture, const void *pixels) * } */ - public static MethodHandle SwapScreenBuffer$handle() { - return SwapScreenBuffer.HANDLE; + public static MethodHandle UpdateTexture$handle() { + return UpdateTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SwapScreenBuffer() + * void UpdateTexture(Texture2D texture, const void *pixels) * } - */ - public static MemorySegment SwapScreenBuffer$address() { - return SwapScreenBuffer.ADDR; + */ + public static MemorySegment UpdateTexture$address() { + return UpdateTexture.ADDR; } /** * {@snippet lang=c : - * void SwapScreenBuffer() + * void UpdateTexture(Texture2D texture, const void *pixels) * } */ - public static void SwapScreenBuffer() { - var mh$ = SwapScreenBuffer.HANDLE; + public static void UpdateTexture(MemorySegment texture, MemorySegment pixels) { + var mh$ = UpdateTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SwapScreenBuffer"); + traceDowncall("UpdateTexture", texture, pixels); } - mh$.invokeExact(); + mh$.invokeExact(texture, pixels); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class PollInputEvents { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class UpdateTextureRec { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), + Rectangle.layout(), + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("PollInputEvents"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateTextureRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11726,56 +24227,56 @@ private static class PollInputEvents { /** * Function descriptor for: * {@snippet lang=c : - * void PollInputEvents() + * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) * } */ - public static FunctionDescriptor PollInputEvents$descriptor() { - return PollInputEvents.DESC; + public static FunctionDescriptor UpdateTextureRec$descriptor() { + return UpdateTextureRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void PollInputEvents() + * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) * } */ - public static MethodHandle PollInputEvents$handle() { - return PollInputEvents.HANDLE; + public static MethodHandle UpdateTextureRec$handle() { + return UpdateTextureRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * void PollInputEvents() + * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) * } */ - public static MemorySegment PollInputEvents$address() { - return PollInputEvents.ADDR; + public static MemorySegment UpdateTextureRec$address() { + return UpdateTextureRec.ADDR; } /** * {@snippet lang=c : - * void PollInputEvents() + * void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels) * } */ - public static void PollInputEvents() { - var mh$ = PollInputEvents.HANDLE; + public static void UpdateTextureRec(MemorySegment texture, MemorySegment rec, MemorySegment pixels) { + var mh$ = UpdateTextureRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("PollInputEvents"); + traceDowncall("UpdateTextureRec", texture, rec, pixels); } - mh$.invokeExact(); + mh$.invokeExact(texture, rec, pixels); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class WaitTime { + private static class GenTextureMipmaps { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_DOUBLE + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("WaitTime"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenTextureMipmaps"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11783,56 +24284,57 @@ private static class WaitTime { /** * Function descriptor for: * {@snippet lang=c : - * void WaitTime(double seconds) + * void GenTextureMipmaps(Texture2D *texture) * } */ - public static FunctionDescriptor WaitTime$descriptor() { - return WaitTime.DESC; + public static FunctionDescriptor GenTextureMipmaps$descriptor() { + return GenTextureMipmaps.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void WaitTime(double seconds) + * void GenTextureMipmaps(Texture2D *texture) * } */ - public static MethodHandle WaitTime$handle() { - return WaitTime.HANDLE; + public static MethodHandle GenTextureMipmaps$handle() { + return GenTextureMipmaps.HANDLE; } /** * Address for: * {@snippet lang=c : - * void WaitTime(double seconds) + * void GenTextureMipmaps(Texture2D *texture) * } */ - public static MemorySegment WaitTime$address() { - return WaitTime.ADDR; + public static MemorySegment GenTextureMipmaps$address() { + return GenTextureMipmaps.ADDR; } /** * {@snippet lang=c : - * void WaitTime(double seconds) + * void GenTextureMipmaps(Texture2D *texture) * } */ - public static void WaitTime(double seconds) { - var mh$ = WaitTime.HANDLE; + public static void GenTextureMipmaps(MemorySegment texture) { + var mh$ = GenTextureMipmaps.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("WaitTime", seconds); + traceDowncall("GenTextureMipmaps", texture); } - mh$.invokeExact(seconds); + mh$.invokeExact(texture); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetRandomSeed { + private static class SetTextureFilter { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetRandomSeed"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetTextureFilter"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11840,58 +24342,57 @@ private static class SetRandomSeed { /** * Function descriptor for: * {@snippet lang=c : - * void SetRandomSeed(unsigned int seed) + * void SetTextureFilter(Texture2D texture, int filter) * } */ - public static FunctionDescriptor SetRandomSeed$descriptor() { - return SetRandomSeed.DESC; + public static FunctionDescriptor SetTextureFilter$descriptor() { + return SetTextureFilter.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetRandomSeed(unsigned int seed) + * void SetTextureFilter(Texture2D texture, int filter) * } */ - public static MethodHandle SetRandomSeed$handle() { - return SetRandomSeed.HANDLE; + public static MethodHandle SetTextureFilter$handle() { + return SetTextureFilter.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetRandomSeed(unsigned int seed) + * void SetTextureFilter(Texture2D texture, int filter) * } */ - public static MemorySegment SetRandomSeed$address() { - return SetRandomSeed.ADDR; + public static MemorySegment SetTextureFilter$address() { + return SetTextureFilter.ADDR; } /** * {@snippet lang=c : - * void SetRandomSeed(unsigned int seed) + * void SetTextureFilter(Texture2D texture, int filter) * } */ - public static void SetRandomSeed(int seed) { - var mh$ = SetRandomSeed.HANDLE; + public static void SetTextureFilter(MemorySegment texture, int filter) { + var mh$ = SetTextureFilter.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetRandomSeed", seed); + traceDowncall("SetTextureFilter", texture, filter); } - mh$.invokeExact(seed); + mh$.invokeExact(texture, filter); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetRandomValue { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT, + private static class SetTextureWrap { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetRandomValue"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetTextureWrap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11899,59 +24400,59 @@ private static class GetRandomValue { /** * Function descriptor for: * {@snippet lang=c : - * int GetRandomValue(int min, int max) + * void SetTextureWrap(Texture2D texture, int wrap) * } */ - public static FunctionDescriptor GetRandomValue$descriptor() { - return GetRandomValue.DESC; + public static FunctionDescriptor SetTextureWrap$descriptor() { + return SetTextureWrap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetRandomValue(int min, int max) + * void SetTextureWrap(Texture2D texture, int wrap) * } */ - public static MethodHandle GetRandomValue$handle() { - return GetRandomValue.HANDLE; + public static MethodHandle SetTextureWrap$handle() { + return SetTextureWrap.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetRandomValue(int min, int max) + * void SetTextureWrap(Texture2D texture, int wrap) * } */ - public static MemorySegment GetRandomValue$address() { - return GetRandomValue.ADDR; + public static MemorySegment SetTextureWrap$address() { + return SetTextureWrap.ADDR; } /** * {@snippet lang=c : - * int GetRandomValue(int min, int max) + * void SetTextureWrap(Texture2D texture, int wrap) * } */ - public static int GetRandomValue(int min, int max) { - var mh$ = GetRandomValue.HANDLE; + public static void SetTextureWrap(MemorySegment texture, int wrap) { + var mh$ = SetTextureWrap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetRandomValue", min, max); + traceDowncall("SetTextureWrap", texture, wrap); } - return (int)mh$.invokeExact(min, max); + mh$.invokeExact(texture, wrap); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadRandomSequence { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, + private static class DrawTexture { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), raylib.C_INT, raylib.C_INT, - raylib.C_INT + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadRandomSequence"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -11959,56 +24460,58 @@ private static class LoadRandomSequence { /** * Function descriptor for: * {@snippet lang=c : - * int *LoadRandomSequence(unsigned int count, int min, int max) + * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) * } */ - public static FunctionDescriptor LoadRandomSequence$descriptor() { - return LoadRandomSequence.DESC; + public static FunctionDescriptor DrawTexture$descriptor() { + return DrawTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int *LoadRandomSequence(unsigned int count, int min, int max) + * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) * } */ - public static MethodHandle LoadRandomSequence$handle() { - return LoadRandomSequence.HANDLE; + public static MethodHandle DrawTexture$handle() { + return DrawTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * int *LoadRandomSequence(unsigned int count, int min, int max) + * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) * } */ - public static MemorySegment LoadRandomSequence$address() { - return LoadRandomSequence.ADDR; + public static MemorySegment DrawTexture$address() { + return DrawTexture.ADDR; } /** * {@snippet lang=c : - * int *LoadRandomSequence(unsigned int count, int min, int max) + * void DrawTexture(Texture2D texture, int posX, int posY, Color tint) * } */ - public static MemorySegment LoadRandomSequence(int count, int min, int max) { - var mh$ = LoadRandomSequence.HANDLE; + public static void DrawTexture(MemorySegment texture, int posX, int posY, MemorySegment tint) { + var mh$ = DrawTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadRandomSequence", count, min, max); + traceDowncall("DrawTexture", texture, posX, posY, tint); } - return (MemorySegment)mh$.invokeExact(count, min, max); + mh$.invokeExact(texture, posX, posY, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadRandomSequence { + private static class DrawTextureV { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + Texture.layout(), + Vector2.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadRandomSequence"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12016,56 +24519,60 @@ private static class UnloadRandomSequence { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadRandomSequence(int *sequence) + * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) * } */ - public static FunctionDescriptor UnloadRandomSequence$descriptor() { - return UnloadRandomSequence.DESC; + public static FunctionDescriptor DrawTextureV$descriptor() { + return DrawTextureV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadRandomSequence(int *sequence) + * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) * } */ - public static MethodHandle UnloadRandomSequence$handle() { - return UnloadRandomSequence.HANDLE; + public static MethodHandle DrawTextureV$handle() { + return DrawTextureV.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadRandomSequence(int *sequence) + * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) * } */ - public static MemorySegment UnloadRandomSequence$address() { - return UnloadRandomSequence.ADDR; + public static MemorySegment DrawTextureV$address() { + return DrawTextureV.ADDR; } /** * {@snippet lang=c : - * void UnloadRandomSequence(int *sequence) + * void DrawTextureV(Texture2D texture, Vector2 position, Color tint) * } */ - public static void UnloadRandomSequence(MemorySegment sequence) { - var mh$ = UnloadRandomSequence.HANDLE; + public static void DrawTextureV(MemorySegment texture, MemorySegment position, MemorySegment tint) { + var mh$ = DrawTextureV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadRandomSequence", sequence); + traceDowncall("DrawTextureV", texture, position, tint); } - mh$.invokeExact(sequence); + mh$.invokeExact(texture, position, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class TakeScreenshot { + private static class DrawTextureEx { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + Texture.layout(), + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("TakeScreenshot"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12073,56 +24580,59 @@ private static class TakeScreenshot { /** * Function descriptor for: * {@snippet lang=c : - * void TakeScreenshot(const char *fileName) + * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) * } */ - public static FunctionDescriptor TakeScreenshot$descriptor() { - return TakeScreenshot.DESC; + public static FunctionDescriptor DrawTextureEx$descriptor() { + return DrawTextureEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void TakeScreenshot(const char *fileName) + * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) * } */ - public static MethodHandle TakeScreenshot$handle() { - return TakeScreenshot.HANDLE; + public static MethodHandle DrawTextureEx$handle() { + return DrawTextureEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * void TakeScreenshot(const char *fileName) + * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) * } */ - public static MemorySegment TakeScreenshot$address() { - return TakeScreenshot.ADDR; + public static MemorySegment DrawTextureEx$address() { + return DrawTextureEx.ADDR; } /** * {@snippet lang=c : - * void TakeScreenshot(const char *fileName) + * void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint) * } */ - public static void TakeScreenshot(MemorySegment fileName) { - var mh$ = TakeScreenshot.HANDLE; + public static void DrawTextureEx(MemorySegment texture, MemorySegment position, float rotation, float scale, MemorySegment tint) { + var mh$ = DrawTextureEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("TakeScreenshot", fileName); + traceDowncall("DrawTextureEx", texture, position, rotation, scale, tint); } - mh$.invokeExact(fileName); + mh$.invokeExact(texture, position, rotation, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetConfigFlags { + private static class DrawTextureRec { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + Texture.layout(), + Rectangle.layout(), + Vector2.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetConfigFlags"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12130,56 +24640,61 @@ private static class SetConfigFlags { /** * Function descriptor for: * {@snippet lang=c : - * void SetConfigFlags(unsigned int flags) + * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) * } */ - public static FunctionDescriptor SetConfigFlags$descriptor() { - return SetConfigFlags.DESC; + public static FunctionDescriptor DrawTextureRec$descriptor() { + return DrawTextureRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetConfigFlags(unsigned int flags) + * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) * } */ - public static MethodHandle SetConfigFlags$handle() { - return SetConfigFlags.HANDLE; + public static MethodHandle DrawTextureRec$handle() { + return DrawTextureRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetConfigFlags(unsigned int flags) + * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) * } */ - public static MemorySegment SetConfigFlags$address() { - return SetConfigFlags.ADDR; + public static MemorySegment DrawTextureRec$address() { + return DrawTextureRec.ADDR; } /** * {@snippet lang=c : - * void SetConfigFlags(unsigned int flags) + * void DrawTextureRec(Texture2D texture, Rectangle source, Vector2 position, Color tint) * } */ - public static void SetConfigFlags(int flags) { - var mh$ = SetConfigFlags.HANDLE; + public static void DrawTextureRec(MemorySegment texture, MemorySegment source, MemorySegment position, MemorySegment tint) { + var mh$ = DrawTextureRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetConfigFlags", flags); + traceDowncall("DrawTextureRec", texture, source, position, tint); } - mh$.invokeExact(flags); + mh$.invokeExact(texture, source, position, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class OpenURL { + private static class DrawTexturePro { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + Texture.layout(), + Rectangle.layout(), + Rectangle.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("OpenURL"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTexturePro"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12187,128 +24702,120 @@ private static class OpenURL { /** * Function descriptor for: * {@snippet lang=c : - * void OpenURL(const char *url) + * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) * } */ - public static FunctionDescriptor OpenURL$descriptor() { - return OpenURL.DESC; + public static FunctionDescriptor DrawTexturePro$descriptor() { + return DrawTexturePro.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void OpenURL(const char *url) + * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) * } */ - public static MethodHandle OpenURL$handle() { - return OpenURL.HANDLE; + public static MethodHandle DrawTexturePro$handle() { + return DrawTexturePro.HANDLE; } /** * Address for: * {@snippet lang=c : - * void OpenURL(const char *url) + * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) * } */ - public static MemorySegment OpenURL$address() { - return OpenURL.ADDR; + public static MemorySegment DrawTexturePro$address() { + return DrawTexturePro.ADDR; } /** * {@snippet lang=c : - * void OpenURL(const char *url) + * void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint) * } */ - public static void OpenURL(MemorySegment url) { - var mh$ = OpenURL.HANDLE; + public static void DrawTexturePro(MemorySegment texture, MemorySegment source, MemorySegment dest, MemorySegment origin, float rotation, MemorySegment tint) { + var mh$ = DrawTexturePro.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("OpenURL", url); + traceDowncall("DrawTexturePro", texture, source, dest, origin, rotation, tint); } - mh$.invokeExact(url); + mh$.invokeExact(texture, source, dest, origin, rotation, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } + private static class DrawTextureNPatch { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Texture.layout(), + NPatchInfo.layout(), + Rectangle.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() + ); + + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextureNPatch"); + + public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); + } + /** - * Variadic invoker class for: + * Function descriptor for: * {@snippet lang=c : - * void TraceLog(int logLevel, const char *text, ...) + * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) * } */ - public static class TraceLog { - private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_POINTER - ); - private static final MemorySegment ADDR = raylib.findOrThrow("TraceLog"); - - private final MethodHandle handle; - private final FunctionDescriptor descriptor; - private final MethodHandle spreader; - - private TraceLog(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { - this.handle = handle; - this.descriptor = descriptor; - this.spreader = spreader; - } - - /** - * Variadic invoker factory for: - * {@snippet lang=c : - * void TraceLog(int logLevel, const char *text, ...) - * } - */ - public static TraceLog makeInvoker(MemoryLayout... layouts) { - FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); - Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); - var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); - var spreader$ = mh$.asSpreader(Object[].class, layouts.length); - return new TraceLog(mh$, desc$, spreader$); - } - - /** - * {@return the address} - */ - public static MemorySegment address() { - return ADDR; - } + public static FunctionDescriptor DrawTextureNPatch$descriptor() { + return DrawTextureNPatch.DESC; + } - /** - * {@return the specialized method handle} - */ - public MethodHandle handle() { - return handle; - } + /** + * Downcall method handle for: + * {@snippet lang=c : + * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) + * } + */ + public static MethodHandle DrawTextureNPatch$handle() { + return DrawTextureNPatch.HANDLE; + } - /** - * {@return the specialized descriptor} - */ - public FunctionDescriptor descriptor() { - return descriptor; - } + /** + * Address for: + * {@snippet lang=c : + * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) + * } + */ + public static MemorySegment DrawTextureNPatch$address() { + return DrawTextureNPatch.ADDR; + } - public void apply(int logLevel, MemorySegment text, Object... x2) { - try { - if (TRACE_DOWNCALLS) { - traceDowncall("TraceLog", logLevel, text, x2); - } - spreader.invokeExact(logLevel, text, x2); - } catch(IllegalArgumentException | ClassCastException ex$) { - throw ex$; // rethrow IAE from passing wrong number/type of args - } catch (Throwable ex$) { - throw new AssertionError("should not reach here", ex$); + /** + * {@snippet lang=c : + * void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dest, Vector2 origin, float rotation, Color tint) + * } + */ + public static void DrawTextureNPatch(MemorySegment texture, MemorySegment nPatchInfo, MemorySegment dest, MemorySegment origin, float rotation, MemorySegment tint) { + var mh$ = DrawTextureNPatch.HANDLE; + try { + if (TRACE_DOWNCALLS) { + traceDowncall("DrawTextureNPatch", texture, nPatchInfo, dest, origin, rotation, tint); } + mh$.invokeExact(texture, nPatchInfo, dest, origin, rotation, tint); + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); } } - private static class SetTraceLogLevel { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class ColorIsEqual { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Color.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetTraceLogLevel"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorIsEqual"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12316,57 +24823,58 @@ private static class SetTraceLogLevel { /** * Function descriptor for: * {@snippet lang=c : - * void SetTraceLogLevel(int logLevel) + * bool ColorIsEqual(Color col1, Color col2) * } */ - public static FunctionDescriptor SetTraceLogLevel$descriptor() { - return SetTraceLogLevel.DESC; + public static FunctionDescriptor ColorIsEqual$descriptor() { + return ColorIsEqual.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetTraceLogLevel(int logLevel) + * bool ColorIsEqual(Color col1, Color col2) * } */ - public static MethodHandle SetTraceLogLevel$handle() { - return SetTraceLogLevel.HANDLE; + public static MethodHandle ColorIsEqual$handle() { + return ColorIsEqual.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetTraceLogLevel(int logLevel) + * bool ColorIsEqual(Color col1, Color col2) * } */ - public static MemorySegment SetTraceLogLevel$address() { - return SetTraceLogLevel.ADDR; + public static MemorySegment ColorIsEqual$address() { + return ColorIsEqual.ADDR; } /** * {@snippet lang=c : - * void SetTraceLogLevel(int logLevel) + * bool ColorIsEqual(Color col1, Color col2) * } */ - public static void SetTraceLogLevel(int logLevel) { - var mh$ = SetTraceLogLevel.HANDLE; + public static boolean ColorIsEqual(MemorySegment col1, MemorySegment col2) { + var mh$ = ColorIsEqual.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetTraceLogLevel", logLevel); + traceDowncall("ColorIsEqual", col1, col2); } - mh$.invokeExact(logLevel); + return (boolean)mh$.invokeExact(col1, col2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MemAlloc { + private static class Fade { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_INT + Color.layout(), + Color.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("MemAlloc"); + public static final MemorySegment ADDR = raylib.findOrThrow("Fade"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12374,58 +24882,57 @@ private static class MemAlloc { /** * Function descriptor for: * {@snippet lang=c : - * void *MemAlloc(unsigned int size) + * Color Fade(Color color, float alpha) * } */ - public static FunctionDescriptor MemAlloc$descriptor() { - return MemAlloc.DESC; + public static FunctionDescriptor Fade$descriptor() { + return Fade.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *MemAlloc(unsigned int size) + * Color Fade(Color color, float alpha) * } */ - public static MethodHandle MemAlloc$handle() { - return MemAlloc.HANDLE; + public static MethodHandle Fade$handle() { + return Fade.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *MemAlloc(unsigned int size) + * Color Fade(Color color, float alpha) * } */ - public static MemorySegment MemAlloc$address() { - return MemAlloc.ADDR; + public static MemorySegment Fade$address() { + return Fade.ADDR; } /** * {@snippet lang=c : - * void *MemAlloc(unsigned int size) + * Color Fade(Color color, float alpha) * } */ - public static MemorySegment MemAlloc(int size) { - var mh$ = MemAlloc.HANDLE; + public static MemorySegment Fade(SegmentAllocator allocator, MemorySegment color, float alpha) { + var mh$ = Fade.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MemAlloc", size); + traceDowncall("Fade", allocator, color, alpha); } - return (MemorySegment)mh$.invokeExact(size); + return (MemorySegment)mh$.invokeExact(allocator, color, alpha); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MemRealloc { + private static class ColorToInt { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("MemRealloc"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorToInt"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12433,56 +24940,57 @@ private static class MemRealloc { /** * Function descriptor for: * {@snippet lang=c : - * void *MemRealloc(void *ptr, unsigned int size) + * int ColorToInt(Color color) * } */ - public static FunctionDescriptor MemRealloc$descriptor() { - return MemRealloc.DESC; + public static FunctionDescriptor ColorToInt$descriptor() { + return ColorToInt.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void *MemRealloc(void *ptr, unsigned int size) + * int ColorToInt(Color color) * } */ - public static MethodHandle MemRealloc$handle() { - return MemRealloc.HANDLE; + public static MethodHandle ColorToInt$handle() { + return ColorToInt.HANDLE; } /** * Address for: * {@snippet lang=c : - * void *MemRealloc(void *ptr, unsigned int size) + * int ColorToInt(Color color) * } */ - public static MemorySegment MemRealloc$address() { - return MemRealloc.ADDR; + public static MemorySegment ColorToInt$address() { + return ColorToInt.ADDR; } /** * {@snippet lang=c : - * void *MemRealloc(void *ptr, unsigned int size) + * int ColorToInt(Color color) * } */ - public static MemorySegment MemRealloc(MemorySegment ptr, int size) { - var mh$ = MemRealloc.HANDLE; + public static int ColorToInt(MemorySegment color) { + var mh$ = ColorToInt.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MemRealloc", ptr, size); + traceDowncall("ColorToInt", color); } - return (MemorySegment)mh$.invokeExact(ptr, size); + return (int)mh$.invokeExact(color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class MemFree { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorNormalize { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector4.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("MemFree"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorNormalize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12490,56 +24998,57 @@ private static class MemFree { /** * Function descriptor for: * {@snippet lang=c : - * void MemFree(void *ptr) + * Vector4 ColorNormalize(Color color) * } */ - public static FunctionDescriptor MemFree$descriptor() { - return MemFree.DESC; + public static FunctionDescriptor ColorNormalize$descriptor() { + return ColorNormalize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void MemFree(void *ptr) + * Vector4 ColorNormalize(Color color) * } */ - public static MethodHandle MemFree$handle() { - return MemFree.HANDLE; + public static MethodHandle ColorNormalize$handle() { + return ColorNormalize.HANDLE; } /** * Address for: * {@snippet lang=c : - * void MemFree(void *ptr) + * Vector4 ColorNormalize(Color color) * } */ - public static MemorySegment MemFree$address() { - return MemFree.ADDR; + public static MemorySegment ColorNormalize$address() { + return ColorNormalize.ADDR; } /** * {@snippet lang=c : - * void MemFree(void *ptr) + * Vector4 ColorNormalize(Color color) * } */ - public static void MemFree(MemorySegment ptr) { - var mh$ = MemFree.HANDLE; + public static MemorySegment ColorNormalize(SegmentAllocator allocator, MemorySegment color) { + var mh$ = ColorNormalize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("MemFree", ptr); + traceDowncall("ColorNormalize", allocator, color); } - mh$.invokeExact(ptr); + return (MemorySegment)mh$.invokeExact(allocator, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetTraceLogCallback { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorFromNormalized { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetTraceLogCallback"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorFromNormalized"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12547,56 +25056,57 @@ private static class SetTraceLogCallback { /** * Function descriptor for: * {@snippet lang=c : - * void SetTraceLogCallback(TraceLogCallback callback) + * Color ColorFromNormalized(Vector4 normalized) * } */ - public static FunctionDescriptor SetTraceLogCallback$descriptor() { - return SetTraceLogCallback.DESC; + public static FunctionDescriptor ColorFromNormalized$descriptor() { + return ColorFromNormalized.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetTraceLogCallback(TraceLogCallback callback) + * Color ColorFromNormalized(Vector4 normalized) * } */ - public static MethodHandle SetTraceLogCallback$handle() { - return SetTraceLogCallback.HANDLE; + public static MethodHandle ColorFromNormalized$handle() { + return ColorFromNormalized.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetTraceLogCallback(TraceLogCallback callback) + * Color ColorFromNormalized(Vector4 normalized) * } */ - public static MemorySegment SetTraceLogCallback$address() { - return SetTraceLogCallback.ADDR; + public static MemorySegment ColorFromNormalized$address() { + return ColorFromNormalized.ADDR; } /** * {@snippet lang=c : - * void SetTraceLogCallback(TraceLogCallback callback) + * Color ColorFromNormalized(Vector4 normalized) * } */ - public static void SetTraceLogCallback(MemorySegment callback) { - var mh$ = SetTraceLogCallback.HANDLE; + public static MemorySegment ColorFromNormalized(SegmentAllocator allocator, MemorySegment normalized) { + var mh$ = ColorFromNormalized.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetTraceLogCallback", callback); + traceDowncall("ColorFromNormalized", allocator, normalized); } - mh$.invokeExact(callback); + return (MemorySegment)mh$.invokeExact(allocator, normalized); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetLoadFileDataCallback { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorToHSV { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetLoadFileDataCallback"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorToHSV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12604,56 +25114,59 @@ private static class SetLoadFileDataCallback { /** * Function descriptor for: * {@snippet lang=c : - * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * Vector3 ColorToHSV(Color color) * } */ - public static FunctionDescriptor SetLoadFileDataCallback$descriptor() { - return SetLoadFileDataCallback.DESC; + public static FunctionDescriptor ColorToHSV$descriptor() { + return ColorToHSV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * Vector3 ColorToHSV(Color color) * } */ - public static MethodHandle SetLoadFileDataCallback$handle() { - return SetLoadFileDataCallback.HANDLE; + public static MethodHandle ColorToHSV$handle() { + return ColorToHSV.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * Vector3 ColorToHSV(Color color) * } */ - public static MemorySegment SetLoadFileDataCallback$address() { - return SetLoadFileDataCallback.ADDR; + public static MemorySegment ColorToHSV$address() { + return ColorToHSV.ADDR; } /** * {@snippet lang=c : - * void SetLoadFileDataCallback(LoadFileDataCallback callback) + * Vector3 ColorToHSV(Color color) * } */ - public static void SetLoadFileDataCallback(MemorySegment callback) { - var mh$ = SetLoadFileDataCallback.HANDLE; + public static MemorySegment ColorToHSV(SegmentAllocator allocator, MemorySegment color) { + var mh$ = ColorToHSV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetLoadFileDataCallback", callback); + traceDowncall("ColorToHSV", allocator, color); } - mh$.invokeExact(callback); + return (MemorySegment)mh$.invokeExact(allocator, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetSaveFileDataCallback { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorFromHSV { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetSaveFileDataCallback"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorFromHSV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12661,56 +25174,58 @@ private static class SetSaveFileDataCallback { /** * Function descriptor for: * {@snippet lang=c : - * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * Color ColorFromHSV(float hue, float saturation, float value) * } */ - public static FunctionDescriptor SetSaveFileDataCallback$descriptor() { - return SetSaveFileDataCallback.DESC; + public static FunctionDescriptor ColorFromHSV$descriptor() { + return ColorFromHSV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * Color ColorFromHSV(float hue, float saturation, float value) * } */ - public static MethodHandle SetSaveFileDataCallback$handle() { - return SetSaveFileDataCallback.HANDLE; + public static MethodHandle ColorFromHSV$handle() { + return ColorFromHSV.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * Color ColorFromHSV(float hue, float saturation, float value) * } */ - public static MemorySegment SetSaveFileDataCallback$address() { - return SetSaveFileDataCallback.ADDR; + public static MemorySegment ColorFromHSV$address() { + return ColorFromHSV.ADDR; } /** * {@snippet lang=c : - * void SetSaveFileDataCallback(SaveFileDataCallback callback) + * Color ColorFromHSV(float hue, float saturation, float value) * } */ - public static void SetSaveFileDataCallback(MemorySegment callback) { - var mh$ = SetSaveFileDataCallback.HANDLE; + public static MemorySegment ColorFromHSV(SegmentAllocator allocator, float hue, float saturation, float value) { + var mh$ = ColorFromHSV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetSaveFileDataCallback", callback); + traceDowncall("ColorFromHSV", allocator, hue, saturation, value); } - mh$.invokeExact(callback); + return (MemorySegment)mh$.invokeExact(allocator, hue, saturation, value); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetLoadFileTextCallback { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorTint { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), + Color.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetLoadFileTextCallback"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorTint"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12718,56 +25233,58 @@ private static class SetLoadFileTextCallback { /** * Function descriptor for: * {@snippet lang=c : - * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * Color ColorTint(Color color, Color tint) * } */ - public static FunctionDescriptor SetLoadFileTextCallback$descriptor() { - return SetLoadFileTextCallback.DESC; + public static FunctionDescriptor ColorTint$descriptor() { + return ColorTint.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * Color ColorTint(Color color, Color tint) * } */ - public static MethodHandle SetLoadFileTextCallback$handle() { - return SetLoadFileTextCallback.HANDLE; + public static MethodHandle ColorTint$handle() { + return ColorTint.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * Color ColorTint(Color color, Color tint) * } */ - public static MemorySegment SetLoadFileTextCallback$address() { - return SetLoadFileTextCallback.ADDR; + public static MemorySegment ColorTint$address() { + return ColorTint.ADDR; } /** * {@snippet lang=c : - * void SetLoadFileTextCallback(LoadFileTextCallback callback) + * Color ColorTint(Color color, Color tint) * } */ - public static void SetLoadFileTextCallback(MemorySegment callback) { - var mh$ = SetLoadFileTextCallback.HANDLE; + public static MemorySegment ColorTint(SegmentAllocator allocator, MemorySegment color, MemorySegment tint) { + var mh$ = ColorTint.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetLoadFileTextCallback", callback); + traceDowncall("ColorTint", allocator, color, tint); } - mh$.invokeExact(callback); + return (MemorySegment)mh$.invokeExact(allocator, color, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetSaveFileTextCallback { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorBrightness { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), + Color.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetSaveFileTextCallback"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorBrightness"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12775,58 +25292,58 @@ private static class SetSaveFileTextCallback { /** * Function descriptor for: * {@snippet lang=c : - * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * Color ColorBrightness(Color color, float factor) * } */ - public static FunctionDescriptor SetSaveFileTextCallback$descriptor() { - return SetSaveFileTextCallback.DESC; + public static FunctionDescriptor ColorBrightness$descriptor() { + return ColorBrightness.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * Color ColorBrightness(Color color, float factor) * } */ - public static MethodHandle SetSaveFileTextCallback$handle() { - return SetSaveFileTextCallback.HANDLE; + public static MethodHandle ColorBrightness$handle() { + return ColorBrightness.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * Color ColorBrightness(Color color, float factor) * } */ - public static MemorySegment SetSaveFileTextCallback$address() { - return SetSaveFileTextCallback.ADDR; + public static MemorySegment ColorBrightness$address() { + return ColorBrightness.ADDR; } /** * {@snippet lang=c : - * void SetSaveFileTextCallback(SaveFileTextCallback callback) + * Color ColorBrightness(Color color, float factor) * } */ - public static void SetSaveFileTextCallback(MemorySegment callback) { - var mh$ = SetSaveFileTextCallback.HANDLE; + public static MemorySegment ColorBrightness(SegmentAllocator allocator, MemorySegment color, float factor) { + var mh$ = ColorBrightness.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetSaveFileTextCallback", callback); + traceDowncall("ColorBrightness", allocator, color, factor); } - mh$.invokeExact(callback); + return (MemorySegment)mh$.invokeExact(allocator, color, factor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadFileData { + private static class ColorContrast { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_POINTER + Color.layout(), + Color.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFileData"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorContrast"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12834,56 +25351,58 @@ private static class LoadFileData { /** * Function descriptor for: * {@snippet lang=c : - * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * Color ColorContrast(Color color, float contrast) * } */ - public static FunctionDescriptor LoadFileData$descriptor() { - return LoadFileData.DESC; + public static FunctionDescriptor ColorContrast$descriptor() { + return ColorContrast.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * Color ColorContrast(Color color, float contrast) * } */ - public static MethodHandle LoadFileData$handle() { - return LoadFileData.HANDLE; + public static MethodHandle ColorContrast$handle() { + return ColorContrast.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * Color ColorContrast(Color color, float contrast) * } */ - public static MemorySegment LoadFileData$address() { - return LoadFileData.ADDR; + public static MemorySegment ColorContrast$address() { + return ColorContrast.ADDR; } /** * {@snippet lang=c : - * unsigned char *LoadFileData(const char *fileName, int *dataSize) + * Color ColorContrast(Color color, float contrast) * } */ - public static MemorySegment LoadFileData(MemorySegment fileName, MemorySegment dataSize) { - var mh$ = LoadFileData.HANDLE; + public static MemorySegment ColorContrast(SegmentAllocator allocator, MemorySegment color, float contrast) { + var mh$ = ColorContrast.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadFileData", fileName, dataSize); + traceDowncall("ColorContrast", allocator, color, contrast); } - return (MemorySegment)mh$.invokeExact(fileName, dataSize); + return (MemorySegment)mh$.invokeExact(allocator, color, contrast); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadFileData { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class ColorAlpha { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), + Color.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFileData"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorAlpha"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12891,59 +25410,59 @@ private static class UnloadFileData { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadFileData(unsigned char *data) + * Color ColorAlpha(Color color, float alpha) * } */ - public static FunctionDescriptor UnloadFileData$descriptor() { - return UnloadFileData.DESC; + public static FunctionDescriptor ColorAlpha$descriptor() { + return ColorAlpha.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadFileData(unsigned char *data) + * Color ColorAlpha(Color color, float alpha) * } */ - public static MethodHandle UnloadFileData$handle() { - return UnloadFileData.HANDLE; + public static MethodHandle ColorAlpha$handle() { + return ColorAlpha.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadFileData(unsigned char *data) + * Color ColorAlpha(Color color, float alpha) * } */ - public static MemorySegment UnloadFileData$address() { - return UnloadFileData.ADDR; + public static MemorySegment ColorAlpha$address() { + return ColorAlpha.ADDR; } /** * {@snippet lang=c : - * void UnloadFileData(unsigned char *data) + * Color ColorAlpha(Color color, float alpha) * } */ - public static void UnloadFileData(MemorySegment data) { - var mh$ = UnloadFileData.HANDLE; + public static MemorySegment ColorAlpha(SegmentAllocator allocator, MemorySegment color, float alpha) { + var mh$ = ColorAlpha.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadFileData", data); + traceDowncall("ColorAlpha", allocator, color, alpha); } - mh$.invokeExact(data); + return (MemorySegment)mh$.invokeExact(allocator, color, alpha); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SaveFileData { + private static class ColorAlphaBlend { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT + Color.layout(), + Color.layout(), + Color.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SaveFileData"); + public static final MemorySegment ADDR = raylib.findOrThrow("ColorAlphaBlend"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -12951,59 +25470,57 @@ private static class SaveFileData { /** * Function descriptor for: * {@snippet lang=c : - * bool SaveFileData(const char *fileName, void *data, int dataSize) + * Color ColorAlphaBlend(Color dst, Color src, Color tint) * } */ - public static FunctionDescriptor SaveFileData$descriptor() { - return SaveFileData.DESC; + public static FunctionDescriptor ColorAlphaBlend$descriptor() { + return ColorAlphaBlend.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool SaveFileData(const char *fileName, void *data, int dataSize) + * Color ColorAlphaBlend(Color dst, Color src, Color tint) * } */ - public static MethodHandle SaveFileData$handle() { - return SaveFileData.HANDLE; + public static MethodHandle ColorAlphaBlend$handle() { + return ColorAlphaBlend.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool SaveFileData(const char *fileName, void *data, int dataSize) + * Color ColorAlphaBlend(Color dst, Color src, Color tint) * } */ - public static MemorySegment SaveFileData$address() { - return SaveFileData.ADDR; + public static MemorySegment ColorAlphaBlend$address() { + return ColorAlphaBlend.ADDR; } /** * {@snippet lang=c : - * bool SaveFileData(const char *fileName, void *data, int dataSize) + * Color ColorAlphaBlend(Color dst, Color src, Color tint) * } */ - public static boolean SaveFileData(MemorySegment fileName, MemorySegment data, int dataSize) { - var mh$ = SaveFileData.HANDLE; + public static MemorySegment ColorAlphaBlend(SegmentAllocator allocator, MemorySegment dst, MemorySegment src, MemorySegment tint) { + var mh$ = ColorAlphaBlend.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SaveFileData", fileName, data, dataSize); + traceDowncall("ColorAlphaBlend", allocator, dst, src, tint); } - return (boolean)mh$.invokeExact(fileName, data, dataSize); + return (MemorySegment)mh$.invokeExact(allocator, dst, src, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ExportDataAsCode { + private static class GetColor { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER + Color.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ExportDataAsCode"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetColor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13011,57 +25528,58 @@ private static class ExportDataAsCode { /** * Function descriptor for: * {@snippet lang=c : - * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * Color GetColor(unsigned int hexValue) * } */ - public static FunctionDescriptor ExportDataAsCode$descriptor() { - return ExportDataAsCode.DESC; + public static FunctionDescriptor GetColor$descriptor() { + return GetColor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * Color GetColor(unsigned int hexValue) * } */ - public static MethodHandle ExportDataAsCode$handle() { - return ExportDataAsCode.HANDLE; + public static MethodHandle GetColor$handle() { + return GetColor.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * Color GetColor(unsigned int hexValue) * } */ - public static MemorySegment ExportDataAsCode$address() { - return ExportDataAsCode.ADDR; + public static MemorySegment GetColor$address() { + return GetColor.ADDR; } /** * {@snippet lang=c : - * bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName) + * Color GetColor(unsigned int hexValue) * } */ - public static boolean ExportDataAsCode(MemorySegment data, int dataSize, MemorySegment fileName) { - var mh$ = ExportDataAsCode.HANDLE; + public static MemorySegment GetColor(SegmentAllocator allocator, int hexValue) { + var mh$ = GetColor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ExportDataAsCode", data, dataSize, fileName); + traceDowncall("GetColor", allocator, hexValue); } - return (boolean)mh$.invokeExact(data, dataSize, fileName); + return (MemorySegment)mh$.invokeExact(allocator, hexValue); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadFileText { + private static class GetPixelColor { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Color.layout(), raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadFileText"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetPixelColor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13069,56 +25587,58 @@ private static class LoadFileText { /** * Function descriptor for: * {@snippet lang=c : - * char *LoadFileText(const char *fileName) + * Color GetPixelColor(void *srcPtr, int format) * } */ - public static FunctionDescriptor LoadFileText$descriptor() { - return LoadFileText.DESC; + public static FunctionDescriptor GetPixelColor$descriptor() { + return GetPixelColor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * char *LoadFileText(const char *fileName) + * Color GetPixelColor(void *srcPtr, int format) * } */ - public static MethodHandle LoadFileText$handle() { - return LoadFileText.HANDLE; + public static MethodHandle GetPixelColor$handle() { + return GetPixelColor.HANDLE; } /** * Address for: * {@snippet lang=c : - * char *LoadFileText(const char *fileName) + * Color GetPixelColor(void *srcPtr, int format) * } */ - public static MemorySegment LoadFileText$address() { - return LoadFileText.ADDR; + public static MemorySegment GetPixelColor$address() { + return GetPixelColor.ADDR; } /** * {@snippet lang=c : - * char *LoadFileText(const char *fileName) + * Color GetPixelColor(void *srcPtr, int format) * } */ - public static MemorySegment LoadFileText(MemorySegment fileName) { - var mh$ = LoadFileText.HANDLE; + public static MemorySegment GetPixelColor(SegmentAllocator allocator, MemorySegment srcPtr, int format) { + var mh$ = GetPixelColor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadFileText", fileName); + traceDowncall("GetPixelColor", allocator, srcPtr, format); } - return (MemorySegment)mh$.invokeExact(fileName); + return (MemorySegment)mh$.invokeExact(allocator, srcPtr, format); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadFileText { + private static class SetPixelColor { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + raylib.C_POINTER, + Color.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFileText"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetPixelColor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13126,58 +25646,59 @@ private static class UnloadFileText { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadFileText(char *text) + * void SetPixelColor(void *dstPtr, Color color, int format) * } */ - public static FunctionDescriptor UnloadFileText$descriptor() { - return UnloadFileText.DESC; + public static FunctionDescriptor SetPixelColor$descriptor() { + return SetPixelColor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadFileText(char *text) + * void SetPixelColor(void *dstPtr, Color color, int format) * } */ - public static MethodHandle UnloadFileText$handle() { - return UnloadFileText.HANDLE; + public static MethodHandle SetPixelColor$handle() { + return SetPixelColor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadFileText(char *text) + * void SetPixelColor(void *dstPtr, Color color, int format) * } */ - public static MemorySegment UnloadFileText$address() { - return UnloadFileText.ADDR; + public static MemorySegment SetPixelColor$address() { + return SetPixelColor.ADDR; } /** * {@snippet lang=c : - * void UnloadFileText(char *text) + * void SetPixelColor(void *dstPtr, Color color, int format) * } */ - public static void UnloadFileText(MemorySegment text) { - var mh$ = UnloadFileText.HANDLE; + public static void SetPixelColor(MemorySegment dstPtr, MemorySegment color, int format) { + var mh$ = SetPixelColor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadFileText", text); + traceDowncall("SetPixelColor", dstPtr, color, format); } - mh$.invokeExact(text); + mh$.invokeExact(dstPtr, color, format); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SaveFileText { + private static class GetPixelDataSize { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("SaveFileText"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetPixelDataSize"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13185,57 +25706,55 @@ private static class SaveFileText { /** * Function descriptor for: * {@snippet lang=c : - * bool SaveFileText(const char *fileName, char *text) + * int GetPixelDataSize(int width, int height, int format) * } */ - public static FunctionDescriptor SaveFileText$descriptor() { - return SaveFileText.DESC; + public static FunctionDescriptor GetPixelDataSize$descriptor() { + return GetPixelDataSize.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool SaveFileText(const char *fileName, char *text) + * int GetPixelDataSize(int width, int height, int format) * } */ - public static MethodHandle SaveFileText$handle() { - return SaveFileText.HANDLE; + public static MethodHandle GetPixelDataSize$handle() { + return GetPixelDataSize.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool SaveFileText(const char *fileName, char *text) + * int GetPixelDataSize(int width, int height, int format) * } */ - public static MemorySegment SaveFileText$address() { - return SaveFileText.ADDR; + public static MemorySegment GetPixelDataSize$address() { + return GetPixelDataSize.ADDR; } /** * {@snippet lang=c : - * bool SaveFileText(const char *fileName, char *text) + * int GetPixelDataSize(int width, int height, int format) * } */ - public static boolean SaveFileText(MemorySegment fileName, MemorySegment text) { - var mh$ = SaveFileText.HANDLE; + public static int GetPixelDataSize(int width, int height, int format) { + var mh$ = GetPixelDataSize.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SaveFileText", fileName, text); + traceDowncall("GetPixelDataSize", width, height, format); } - return (boolean)mh$.invokeExact(fileName, text); + return (int)mh$.invokeExact(width, height, format); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class FileExists { + private static class GetFontDefault { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER - ); + Font.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("FileExists"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetFontDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13243,57 +25762,57 @@ private static class FileExists { /** * Function descriptor for: * {@snippet lang=c : - * bool FileExists(const char *fileName) + * Font GetFontDefault() * } */ - public static FunctionDescriptor FileExists$descriptor() { - return FileExists.DESC; + public static FunctionDescriptor GetFontDefault$descriptor() { + return GetFontDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool FileExists(const char *fileName) + * Font GetFontDefault() * } */ - public static MethodHandle FileExists$handle() { - return FileExists.HANDLE; + public static MethodHandle GetFontDefault$handle() { + return GetFontDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool FileExists(const char *fileName) + * Font GetFontDefault() * } */ - public static MemorySegment FileExists$address() { - return FileExists.ADDR; + public static MemorySegment GetFontDefault$address() { + return GetFontDefault.ADDR; } /** * {@snippet lang=c : - * bool FileExists(const char *fileName) + * Font GetFontDefault() * } */ - public static boolean FileExists(MemorySegment fileName) { - var mh$ = FileExists.HANDLE; + public static MemorySegment GetFontDefault(SegmentAllocator allocator) { + var mh$ = GetFontDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("FileExists", fileName); + traceDowncall("GetFontDefault", allocator); } - return (boolean)mh$.invokeExact(fileName); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DirectoryExists { + private static class LoadFont { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, + Font.layout(), raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DirectoryExists"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFont"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13301,58 +25820,60 @@ private static class DirectoryExists { /** * Function descriptor for: * {@snippet lang=c : - * bool DirectoryExists(const char *dirPath) + * Font LoadFont(const char *fileName) * } */ - public static FunctionDescriptor DirectoryExists$descriptor() { - return DirectoryExists.DESC; + public static FunctionDescriptor LoadFont$descriptor() { + return LoadFont.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool DirectoryExists(const char *dirPath) + * Font LoadFont(const char *fileName) * } */ - public static MethodHandle DirectoryExists$handle() { - return DirectoryExists.HANDLE; + public static MethodHandle LoadFont$handle() { + return LoadFont.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool DirectoryExists(const char *dirPath) + * Font LoadFont(const char *fileName) * } */ - public static MemorySegment DirectoryExists$address() { - return DirectoryExists.ADDR; + public static MemorySegment LoadFont$address() { + return LoadFont.ADDR; } /** * {@snippet lang=c : - * bool DirectoryExists(const char *dirPath) + * Font LoadFont(const char *fileName) * } */ - public static boolean DirectoryExists(MemorySegment dirPath) { - var mh$ = DirectoryExists.HANDLE; + public static MemorySegment LoadFont(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadFont.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DirectoryExists", dirPath); + traceDowncall("LoadFont", allocator, fileName); } - return (boolean)mh$.invokeExact(dirPath); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsFileExtension { + private static class LoadFontEx { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, + Font.layout(), raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsFileExtension"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13360,57 +25881,59 @@ private static class IsFileExtension { /** * Function descriptor for: * {@snippet lang=c : - * bool IsFileExtension(const char *fileName, const char *ext) + * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) * } */ - public static FunctionDescriptor IsFileExtension$descriptor() { - return IsFileExtension.DESC; + public static FunctionDescriptor LoadFontEx$descriptor() { + return LoadFontEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsFileExtension(const char *fileName, const char *ext) + * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) * } */ - public static MethodHandle IsFileExtension$handle() { - return IsFileExtension.HANDLE; + public static MethodHandle LoadFontEx$handle() { + return LoadFontEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsFileExtension(const char *fileName, const char *ext) + * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) * } */ - public static MemorySegment IsFileExtension$address() { - return IsFileExtension.ADDR; + public static MemorySegment LoadFontEx$address() { + return LoadFontEx.ADDR; } /** * {@snippet lang=c : - * bool IsFileExtension(const char *fileName, const char *ext) + * Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount) * } */ - public static boolean IsFileExtension(MemorySegment fileName, MemorySegment ext) { - var mh$ = IsFileExtension.HANDLE; + public static MemorySegment LoadFontEx(SegmentAllocator allocator, MemorySegment fileName, int fontSize, MemorySegment codepoints, int codepointCount) { + var mh$ = LoadFontEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsFileExtension", fileName, ext); + traceDowncall("LoadFontEx", allocator, fileName, fontSize, codepoints, codepointCount); } - return (boolean)mh$.invokeExact(fileName, ext); + return (MemorySegment)mh$.invokeExact(allocator, fileName, fontSize, codepoints, codepointCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFileLength { + private static class LoadFontFromImage { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER + Font.layout(), + Image.layout(), + Color.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFileLength"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontFromImage"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13418,57 +25941,62 @@ private static class GetFileLength { /** * Function descriptor for: * {@snippet lang=c : - * int GetFileLength(const char *fileName) + * Font LoadFontFromImage(Image image, Color key, int firstChar) * } */ - public static FunctionDescriptor GetFileLength$descriptor() { - return GetFileLength.DESC; + public static FunctionDescriptor LoadFontFromImage$descriptor() { + return LoadFontFromImage.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetFileLength(const char *fileName) + * Font LoadFontFromImage(Image image, Color key, int firstChar) * } */ - public static MethodHandle GetFileLength$handle() { - return GetFileLength.HANDLE; + public static MethodHandle LoadFontFromImage$handle() { + return LoadFontFromImage.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetFileLength(const char *fileName) + * Font LoadFontFromImage(Image image, Color key, int firstChar) * } */ - public static MemorySegment GetFileLength$address() { - return GetFileLength.ADDR; + public static MemorySegment LoadFontFromImage$address() { + return LoadFontFromImage.ADDR; } /** * {@snippet lang=c : - * int GetFileLength(const char *fileName) + * Font LoadFontFromImage(Image image, Color key, int firstChar) * } */ - public static int GetFileLength(MemorySegment fileName) { - var mh$ = GetFileLength.HANDLE; + public static MemorySegment LoadFontFromImage(SegmentAllocator allocator, MemorySegment image, MemorySegment key, int firstChar) { + var mh$ = LoadFontFromImage.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFileLength", fileName); + traceDowncall("LoadFontFromImage", allocator, image, key, firstChar); } - return (int)mh$.invokeExact(fileName); + return (MemorySegment)mh$.invokeExact(allocator, image, key, firstChar); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFileExtension { + private static class LoadFontFromMemory { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Font.layout(), raylib.C_POINTER, - raylib.C_POINTER + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFileExtension"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontFromMemory"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13476,57 +26004,57 @@ private static class GetFileExtension { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetFileExtension(const char *fileName) + * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) * } */ - public static FunctionDescriptor GetFileExtension$descriptor() { - return GetFileExtension.DESC; + public static FunctionDescriptor LoadFontFromMemory$descriptor() { + return LoadFontFromMemory.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetFileExtension(const char *fileName) + * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) * } */ - public static MethodHandle GetFileExtension$handle() { - return GetFileExtension.HANDLE; + public static MethodHandle LoadFontFromMemory$handle() { + return LoadFontFromMemory.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetFileExtension(const char *fileName) + * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) * } */ - public static MemorySegment GetFileExtension$address() { - return GetFileExtension.ADDR; + public static MemorySegment LoadFontFromMemory$address() { + return LoadFontFromMemory.ADDR; } /** * {@snippet lang=c : - * const char *GetFileExtension(const char *fileName) + * Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount) * } */ - public static MemorySegment GetFileExtension(MemorySegment fileName) { - var mh$ = GetFileExtension.HANDLE; + public static MemorySegment LoadFontFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize, int fontSize, MemorySegment codepoints, int codepointCount) { + var mh$ = LoadFontFromMemory.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFileExtension", fileName); + traceDowncall("LoadFontFromMemory", allocator, fileType, fileData, dataSize, fontSize, codepoints, codepointCount); } - return (MemorySegment)mh$.invokeExact(fileName); + return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize, fontSize, codepoints, codepointCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFileName { + private static class IsFontReady { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER + raylib.C_BOOL, + Font.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFileName"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsFontReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13534,57 +26062,62 @@ private static class GetFileName { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetFileName(const char *filePath) + * bool IsFontReady(Font font) * } */ - public static FunctionDescriptor GetFileName$descriptor() { - return GetFileName.DESC; + public static FunctionDescriptor IsFontReady$descriptor() { + return IsFontReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetFileName(const char *filePath) + * bool IsFontReady(Font font) * } */ - public static MethodHandle GetFileName$handle() { - return GetFileName.HANDLE; + public static MethodHandle IsFontReady$handle() { + return IsFontReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetFileName(const char *filePath) + * bool IsFontReady(Font font) * } */ - public static MemorySegment GetFileName$address() { - return GetFileName.ADDR; + public static MemorySegment IsFontReady$address() { + return IsFontReady.ADDR; } /** * {@snippet lang=c : - * const char *GetFileName(const char *filePath) + * bool IsFontReady(Font font) * } */ - public static MemorySegment GetFileName(MemorySegment filePath) { - var mh$ = GetFileName.HANDLE; + public static boolean IsFontReady(MemorySegment font) { + var mh$ = IsFontReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFileName", filePath); + traceDowncall("IsFontReady", font); } - return (MemorySegment)mh$.invokeExact(filePath); + return (boolean)mh$.invokeExact(font); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFileNameWithoutExt { + private static class LoadFontData { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_POINTER, - raylib.C_POINTER + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFileNameWithoutExt"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadFontData"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13592,57 +26125,62 @@ private static class GetFileNameWithoutExt { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetFileNameWithoutExt(const char *filePath) + * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) * } */ - public static FunctionDescriptor GetFileNameWithoutExt$descriptor() { - return GetFileNameWithoutExt.DESC; + public static FunctionDescriptor LoadFontData$descriptor() { + return LoadFontData.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetFileNameWithoutExt(const char *filePath) + * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) * } */ - public static MethodHandle GetFileNameWithoutExt$handle() { - return GetFileNameWithoutExt.HANDLE; + public static MethodHandle LoadFontData$handle() { + return LoadFontData.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetFileNameWithoutExt(const char *filePath) + * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) * } */ - public static MemorySegment GetFileNameWithoutExt$address() { - return GetFileNameWithoutExt.ADDR; + public static MemorySegment LoadFontData$address() { + return LoadFontData.ADDR; } /** * {@snippet lang=c : - * const char *GetFileNameWithoutExt(const char *filePath) + * GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type) * } */ - public static MemorySegment GetFileNameWithoutExt(MemorySegment filePath) { - var mh$ = GetFileNameWithoutExt.HANDLE; + public static MemorySegment LoadFontData(MemorySegment fileData, int dataSize, int fontSize, MemorySegment codepoints, int codepointCount, int type) { + var mh$ = LoadFontData.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFileNameWithoutExt", filePath); + traceDowncall("LoadFontData", fileData, dataSize, fontSize, codepoints, codepointCount, type); } - return (MemorySegment)mh$.invokeExact(filePath); + return (MemorySegment)mh$.invokeExact(fileData, dataSize, fontSize, codepoints, codepointCount, type); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetDirectoryPath { + private static class GenImageFontAtlas { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Image.layout(), raylib.C_POINTER, - raylib.C_POINTER + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetDirectoryPath"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenImageFontAtlas"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13650,57 +26188,57 @@ private static class GetDirectoryPath { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetDirectoryPath(const char *filePath) + * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) * } */ - public static FunctionDescriptor GetDirectoryPath$descriptor() { - return GetDirectoryPath.DESC; + public static FunctionDescriptor GenImageFontAtlas$descriptor() { + return GenImageFontAtlas.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetDirectoryPath(const char *filePath) + * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) * } */ - public static MethodHandle GetDirectoryPath$handle() { - return GetDirectoryPath.HANDLE; + public static MethodHandle GenImageFontAtlas$handle() { + return GenImageFontAtlas.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetDirectoryPath(const char *filePath) + * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) * } */ - public static MemorySegment GetDirectoryPath$address() { - return GetDirectoryPath.ADDR; + public static MemorySegment GenImageFontAtlas$address() { + return GenImageFontAtlas.ADDR; } /** * {@snippet lang=c : - * const char *GetDirectoryPath(const char *filePath) + * Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) * } */ - public static MemorySegment GetDirectoryPath(MemorySegment filePath) { - var mh$ = GetDirectoryPath.HANDLE; + public static MemorySegment GenImageFontAtlas(SegmentAllocator allocator, MemorySegment glyphs, MemorySegment glyphRecs, int glyphCount, int fontSize, int padding, int packMethod) { + var mh$ = GenImageFontAtlas.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetDirectoryPath", filePath); + traceDowncall("GenImageFontAtlas", allocator, glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod); } - return (MemorySegment)mh$.invokeExact(filePath); + return (MemorySegment)mh$.invokeExact(allocator, glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetPrevDirectoryPath { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( + private static class UnloadFontData { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetPrevDirectoryPath"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFontData"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13708,55 +26246,56 @@ private static class GetPrevDirectoryPath { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetPrevDirectoryPath(const char *dirPath) + * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) * } */ - public static FunctionDescriptor GetPrevDirectoryPath$descriptor() { - return GetPrevDirectoryPath.DESC; + public static FunctionDescriptor UnloadFontData$descriptor() { + return UnloadFontData.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetPrevDirectoryPath(const char *dirPath) + * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) * } */ - public static MethodHandle GetPrevDirectoryPath$handle() { - return GetPrevDirectoryPath.HANDLE; + public static MethodHandle UnloadFontData$handle() { + return UnloadFontData.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetPrevDirectoryPath(const char *dirPath) + * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) * } */ - public static MemorySegment GetPrevDirectoryPath$address() { - return GetPrevDirectoryPath.ADDR; + public static MemorySegment UnloadFontData$address() { + return UnloadFontData.ADDR; } /** * {@snippet lang=c : - * const char *GetPrevDirectoryPath(const char *dirPath) + * void UnloadFontData(GlyphInfo *glyphs, int glyphCount) * } */ - public static MemorySegment GetPrevDirectoryPath(MemorySegment dirPath) { - var mh$ = GetPrevDirectoryPath.HANDLE; + public static void UnloadFontData(MemorySegment glyphs, int glyphCount) { + var mh$ = UnloadFontData.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetPrevDirectoryPath", dirPath); + traceDowncall("UnloadFontData", glyphs, glyphCount); } - return (MemorySegment)mh$.invokeExact(dirPath); + mh$.invokeExact(glyphs, glyphCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetWorkingDirectory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER ); + private static class UnloadFont { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Font.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetWorkingDirectory"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadFont"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13764,55 +26303,58 @@ private static class GetWorkingDirectory { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetWorkingDirectory() + * void UnloadFont(Font font) * } */ - public static FunctionDescriptor GetWorkingDirectory$descriptor() { - return GetWorkingDirectory.DESC; + public static FunctionDescriptor UnloadFont$descriptor() { + return UnloadFont.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetWorkingDirectory() + * void UnloadFont(Font font) * } */ - public static MethodHandle GetWorkingDirectory$handle() { - return GetWorkingDirectory.HANDLE; + public static MethodHandle UnloadFont$handle() { + return UnloadFont.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetWorkingDirectory() + * void UnloadFont(Font font) * } */ - public static MemorySegment GetWorkingDirectory$address() { - return GetWorkingDirectory.ADDR; + public static MemorySegment UnloadFont$address() { + return UnloadFont.ADDR; } /** * {@snippet lang=c : - * const char *GetWorkingDirectory() + * void UnloadFont(Font font) * } */ - public static MemorySegment GetWorkingDirectory() { - var mh$ = GetWorkingDirectory.HANDLE; + public static void UnloadFont(MemorySegment font) { + var mh$ = UnloadFont.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetWorkingDirectory"); + traceDowncall("UnloadFont", font); } - return (MemorySegment)mh$.invokeExact(); + mh$.invokeExact(font); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetApplicationDirectory { + private static class ExportFontAsCode { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER ); + raylib.C_BOOL, + Font.layout(), + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetApplicationDirectory"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportFontAsCode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13820,57 +26362,57 @@ private static class GetApplicationDirectory { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetApplicationDirectory() + * bool ExportFontAsCode(Font font, const char *fileName) * } */ - public static FunctionDescriptor GetApplicationDirectory$descriptor() { - return GetApplicationDirectory.DESC; + public static FunctionDescriptor ExportFontAsCode$descriptor() { + return ExportFontAsCode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetApplicationDirectory() + * bool ExportFontAsCode(Font font, const char *fileName) * } */ - public static MethodHandle GetApplicationDirectory$handle() { - return GetApplicationDirectory.HANDLE; + public static MethodHandle ExportFontAsCode$handle() { + return ExportFontAsCode.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetApplicationDirectory() + * bool ExportFontAsCode(Font font, const char *fileName) * } */ - public static MemorySegment GetApplicationDirectory$address() { - return GetApplicationDirectory.ADDR; + public static MemorySegment ExportFontAsCode$address() { + return ExportFontAsCode.ADDR; } /** * {@snippet lang=c : - * const char *GetApplicationDirectory() + * bool ExportFontAsCode(Font font, const char *fileName) * } */ - public static MemorySegment GetApplicationDirectory() { - var mh$ = GetApplicationDirectory.HANDLE; + public static boolean ExportFontAsCode(MemorySegment font, MemorySegment fileName) { + var mh$ = ExportFontAsCode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetApplicationDirectory"); + traceDowncall("ExportFontAsCode", font, fileName); } - return (MemorySegment)mh$.invokeExact(); + return (boolean)mh$.invokeExact(font, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ChangeDirectory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER + private static class DrawFPS { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ChangeDirectory"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawFPS"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13878,57 +26420,60 @@ private static class ChangeDirectory { /** * Function descriptor for: * {@snippet lang=c : - * bool ChangeDirectory(const char *dir) + * void DrawFPS(int posX, int posY) * } */ - public static FunctionDescriptor ChangeDirectory$descriptor() { - return ChangeDirectory.DESC; + public static FunctionDescriptor DrawFPS$descriptor() { + return DrawFPS.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool ChangeDirectory(const char *dir) + * void DrawFPS(int posX, int posY) * } */ - public static MethodHandle ChangeDirectory$handle() { - return ChangeDirectory.HANDLE; + public static MethodHandle DrawFPS$handle() { + return DrawFPS.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool ChangeDirectory(const char *dir) + * void DrawFPS(int posX, int posY) * } */ - public static MemorySegment ChangeDirectory$address() { - return ChangeDirectory.ADDR; + public static MemorySegment DrawFPS$address() { + return DrawFPS.ADDR; } /** * {@snippet lang=c : - * bool ChangeDirectory(const char *dir) + * void DrawFPS(int posX, int posY) * } */ - public static boolean ChangeDirectory(MemorySegment dir) { - var mh$ = ChangeDirectory.HANDLE; + public static void DrawFPS(int posX, int posY) { + var mh$ = DrawFPS.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ChangeDirectory", dir); + traceDowncall("DrawFPS", posX, posY); } - return (boolean)mh$.invokeExact(dir); + mh$.invokeExact(posX, posY); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsPathFile { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_POINTER + private static class DrawText { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsPathFile"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawText"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13936,57 +26481,61 @@ private static class IsPathFile { /** * Function descriptor for: * {@snippet lang=c : - * bool IsPathFile(const char *path) + * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static FunctionDescriptor IsPathFile$descriptor() { - return IsPathFile.DESC; + public static FunctionDescriptor DrawText$descriptor() { + return DrawText.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsPathFile(const char *path) + * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static MethodHandle IsPathFile$handle() { - return IsPathFile.HANDLE; + public static MethodHandle DrawText$handle() { + return DrawText.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsPathFile(const char *path) + * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static MemorySegment IsPathFile$address() { - return IsPathFile.ADDR; + public static MemorySegment DrawText$address() { + return DrawText.ADDR; } /** * {@snippet lang=c : - * bool IsPathFile(const char *path) + * void DrawText(const char *text, int posX, int posY, int fontSize, Color color) * } */ - public static boolean IsPathFile(MemorySegment path) { - var mh$ = IsPathFile.HANDLE; + public static void DrawText(MemorySegment text, int posX, int posY, int fontSize, MemorySegment color) { + var mh$ = DrawText.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsPathFile", path); + traceDowncall("DrawText", text, posX, posY, fontSize, color); } - return (boolean)mh$.invokeExact(path); + mh$.invokeExact(text, posX, posY, fontSize, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadDirectoryFiles { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - FilePathList.layout(), - raylib.C_POINTER + private static class DrawTextEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Font.layout(), + raylib.C_POINTER, + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadDirectoryFiles"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -13994,59 +26543,63 @@ private static class LoadDirectoryFiles { /** * Function descriptor for: * {@snippet lang=c : - * FilePathList LoadDirectoryFiles(const char *dirPath) + * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static FunctionDescriptor LoadDirectoryFiles$descriptor() { - return LoadDirectoryFiles.DESC; + public static FunctionDescriptor DrawTextEx$descriptor() { + return DrawTextEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * FilePathList LoadDirectoryFiles(const char *dirPath) + * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MethodHandle LoadDirectoryFiles$handle() { - return LoadDirectoryFiles.HANDLE; + public static MethodHandle DrawTextEx$handle() { + return DrawTextEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * FilePathList LoadDirectoryFiles(const char *dirPath) + * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment LoadDirectoryFiles$address() { - return LoadDirectoryFiles.ADDR; + public static MemorySegment DrawTextEx$address() { + return DrawTextEx.ADDR; } /** * {@snippet lang=c : - * FilePathList LoadDirectoryFiles(const char *dirPath) + * void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment LoadDirectoryFiles(SegmentAllocator allocator, MemorySegment dirPath) { - var mh$ = LoadDirectoryFiles.HANDLE; + public static void DrawTextEx(MemorySegment font, MemorySegment text, MemorySegment position, float fontSize, float spacing, MemorySegment tint) { + var mh$ = DrawTextEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadDirectoryFiles", allocator, dirPath); + traceDowncall("DrawTextEx", font, text, position, fontSize, spacing, tint); } - return (MemorySegment)mh$.invokeExact(allocator, dirPath); + mh$.invokeExact(font, text, position, fontSize, spacing, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadDirectoryFilesEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - FilePathList.layout(), - raylib.C_POINTER, + private static class DrawTextPro { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Font.layout(), raylib.C_POINTER, - raylib.C_BOOL + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadDirectoryFilesEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextPro"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14054,56 +26607,60 @@ private static class LoadDirectoryFilesEx { /** * Function descriptor for: * {@snippet lang=c : - * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) * } */ - public static FunctionDescriptor LoadDirectoryFilesEx$descriptor() { - return LoadDirectoryFilesEx.DESC; + public static FunctionDescriptor DrawTextPro$descriptor() { + return DrawTextPro.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) * } */ - public static MethodHandle LoadDirectoryFilesEx$handle() { - return LoadDirectoryFilesEx.HANDLE; + public static MethodHandle DrawTextPro$handle() { + return DrawTextPro.HANDLE; } /** * Address for: * {@snippet lang=c : - * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment LoadDirectoryFilesEx$address() { - return LoadDirectoryFilesEx.ADDR; + public static MemorySegment DrawTextPro$address() { + return DrawTextPro.ADDR; } /** * {@snippet lang=c : - * FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool scanSubdirs) + * void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment LoadDirectoryFilesEx(SegmentAllocator allocator, MemorySegment basePath, MemorySegment filter, boolean scanSubdirs) { - var mh$ = LoadDirectoryFilesEx.HANDLE; + public static void DrawTextPro(MemorySegment font, MemorySegment text, MemorySegment position, MemorySegment origin, float rotation, float fontSize, float spacing, MemorySegment tint) { + var mh$ = DrawTextPro.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadDirectoryFilesEx", allocator, basePath, filter, scanSubdirs); + traceDowncall("DrawTextPro", font, text, position, origin, rotation, fontSize, spacing, tint); } - return (MemorySegment)mh$.invokeExact(allocator, basePath, filter, scanSubdirs); + mh$.invokeExact(font, text, position, origin, rotation, fontSize, spacing, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadDirectoryFiles { + private static class DrawTextCodepoint { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - FilePathList.layout() + Font.layout(), + raylib.C_INT, + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadDirectoryFiles"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextCodepoint"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14111,55 +26668,62 @@ private static class UnloadDirectoryFiles { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadDirectoryFiles(FilePathList files) + * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) * } */ - public static FunctionDescriptor UnloadDirectoryFiles$descriptor() { - return UnloadDirectoryFiles.DESC; + public static FunctionDescriptor DrawTextCodepoint$descriptor() { + return DrawTextCodepoint.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadDirectoryFiles(FilePathList files) + * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) * } */ - public static MethodHandle UnloadDirectoryFiles$handle() { - return UnloadDirectoryFiles.HANDLE; + public static MethodHandle DrawTextCodepoint$handle() { + return DrawTextCodepoint.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadDirectoryFiles(FilePathList files) + * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) * } */ - public static MemorySegment UnloadDirectoryFiles$address() { - return UnloadDirectoryFiles.ADDR; + public static MemorySegment DrawTextCodepoint$address() { + return DrawTextCodepoint.ADDR; } /** * {@snippet lang=c : - * void UnloadDirectoryFiles(FilePathList files) + * void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) * } */ - public static void UnloadDirectoryFiles(MemorySegment files) { - var mh$ = UnloadDirectoryFiles.HANDLE; + public static void DrawTextCodepoint(MemorySegment font, int codepoint, MemorySegment position, float fontSize, MemorySegment tint) { + var mh$ = DrawTextCodepoint.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadDirectoryFiles", files); + traceDowncall("DrawTextCodepoint", font, codepoint, position, fontSize, tint); } - mh$.invokeExact(files); + mh$.invokeExact(font, codepoint, position, fontSize, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsFileDropped { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL ); + private static class DrawTextCodepoints { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Font.layout(), + raylib.C_POINTER, + raylib.C_INT, + Vector2.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsFileDropped"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTextCodepoints"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14167,55 +26731,56 @@ private static class IsFileDropped { /** * Function descriptor for: * {@snippet lang=c : - * bool IsFileDropped() + * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static FunctionDescriptor IsFileDropped$descriptor() { - return IsFileDropped.DESC; + public static FunctionDescriptor DrawTextCodepoints$descriptor() { + return DrawTextCodepoints.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsFileDropped() + * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MethodHandle IsFileDropped$handle() { - return IsFileDropped.HANDLE; + public static MethodHandle DrawTextCodepoints$handle() { + return DrawTextCodepoints.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsFileDropped() + * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static MemorySegment IsFileDropped$address() { - return IsFileDropped.ADDR; + public static MemorySegment DrawTextCodepoints$address() { + return DrawTextCodepoints.ADDR; } /** * {@snippet lang=c : - * bool IsFileDropped() + * void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) * } */ - public static boolean IsFileDropped() { - var mh$ = IsFileDropped.HANDLE; + public static void DrawTextCodepoints(MemorySegment font, MemorySegment codepoints, int codepointCount, MemorySegment position, float fontSize, float spacing, MemorySegment tint) { + var mh$ = DrawTextCodepoints.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsFileDropped"); + traceDowncall("DrawTextCodepoints", font, codepoints, codepointCount, position, fontSize, spacing, tint); } - return (boolean)mh$.invokeExact(); + mh$.invokeExact(font, codepoints, codepointCount, position, fontSize, spacing, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadDroppedFiles { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - FilePathList.layout() ); + private static class SetTextLineSpacing { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadDroppedFiles"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetTextLineSpacing"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14223,56 +26788,58 @@ private static class LoadDroppedFiles { /** * Function descriptor for: * {@snippet lang=c : - * FilePathList LoadDroppedFiles() + * void SetTextLineSpacing(int spacing) * } - */ - public static FunctionDescriptor LoadDroppedFiles$descriptor() { - return LoadDroppedFiles.DESC; + */ + public static FunctionDescriptor SetTextLineSpacing$descriptor() { + return SetTextLineSpacing.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * FilePathList LoadDroppedFiles() + * void SetTextLineSpacing(int spacing) * } */ - public static MethodHandle LoadDroppedFiles$handle() { - return LoadDroppedFiles.HANDLE; + public static MethodHandle SetTextLineSpacing$handle() { + return SetTextLineSpacing.HANDLE; } /** * Address for: * {@snippet lang=c : - * FilePathList LoadDroppedFiles() + * void SetTextLineSpacing(int spacing) * } */ - public static MemorySegment LoadDroppedFiles$address() { - return LoadDroppedFiles.ADDR; + public static MemorySegment SetTextLineSpacing$address() { + return SetTextLineSpacing.ADDR; } /** * {@snippet lang=c : - * FilePathList LoadDroppedFiles() + * void SetTextLineSpacing(int spacing) * } */ - public static MemorySegment LoadDroppedFiles(SegmentAllocator allocator) { - var mh$ = LoadDroppedFiles.HANDLE; + public static void SetTextLineSpacing(int spacing) { + var mh$ = SetTextLineSpacing.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadDroppedFiles", allocator); + traceDowncall("SetTextLineSpacing", spacing); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(spacing); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadDroppedFiles { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - FilePathList.layout() + private static class MeasureText { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadDroppedFiles"); + public static final MemorySegment ADDR = raylib.findOrThrow("MeasureText"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14280,57 +26847,60 @@ private static class UnloadDroppedFiles { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadDroppedFiles(FilePathList files) + * int MeasureText(const char *text, int fontSize) * } */ - public static FunctionDescriptor UnloadDroppedFiles$descriptor() { - return UnloadDroppedFiles.DESC; + public static FunctionDescriptor MeasureText$descriptor() { + return MeasureText.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadDroppedFiles(FilePathList files) + * int MeasureText(const char *text, int fontSize) * } */ - public static MethodHandle UnloadDroppedFiles$handle() { - return UnloadDroppedFiles.HANDLE; + public static MethodHandle MeasureText$handle() { + return MeasureText.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadDroppedFiles(FilePathList files) + * int MeasureText(const char *text, int fontSize) * } */ - public static MemorySegment UnloadDroppedFiles$address() { - return UnloadDroppedFiles.ADDR; + public static MemorySegment MeasureText$address() { + return MeasureText.ADDR; } /** * {@snippet lang=c : - * void UnloadDroppedFiles(FilePathList files) + * int MeasureText(const char *text, int fontSize) * } */ - public static void UnloadDroppedFiles(MemorySegment files) { - var mh$ = UnloadDroppedFiles.HANDLE; + public static int MeasureText(MemorySegment text, int fontSize) { + var mh$ = MeasureText.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadDroppedFiles", files); + traceDowncall("MeasureText", text, fontSize); } - mh$.invokeExact(files); + return (int)mh$.invokeExact(text, fontSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetFileModTime { + private static class MeasureTextEx { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_LONG, - raylib.C_POINTER + Vector2.layout(), + Font.layout(), + raylib.C_POINTER, + raylib.C_FLOAT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetFileModTime"); + public static final MemorySegment ADDR = raylib.findOrThrow("MeasureTextEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14338,59 +26908,58 @@ private static class GetFileModTime { /** * Function descriptor for: * {@snippet lang=c : - * long GetFileModTime(const char *fileName) + * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) * } */ - public static FunctionDescriptor GetFileModTime$descriptor() { - return GetFileModTime.DESC; + public static FunctionDescriptor MeasureTextEx$descriptor() { + return MeasureTextEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * long GetFileModTime(const char *fileName) + * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) * } */ - public static MethodHandle GetFileModTime$handle() { - return GetFileModTime.HANDLE; + public static MethodHandle MeasureTextEx$handle() { + return MeasureTextEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * long GetFileModTime(const char *fileName) + * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) * } */ - public static MemorySegment GetFileModTime$address() { - return GetFileModTime.ADDR; + public static MemorySegment MeasureTextEx$address() { + return MeasureTextEx.ADDR; } /** * {@snippet lang=c : - * long GetFileModTime(const char *fileName) + * Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing) * } */ - public static long GetFileModTime(MemorySegment fileName) { - var mh$ = GetFileModTime.HANDLE; + public static MemorySegment MeasureTextEx(SegmentAllocator allocator, MemorySegment font, MemorySegment text, float fontSize, float spacing) { + var mh$ = MeasureTextEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetFileModTime", fileName); + traceDowncall("MeasureTextEx", allocator, font, text, fontSize, spacing); } - return (long)mh$.invokeExact(fileName); + return (MemorySegment)mh$.invokeExact(allocator, font, text, fontSize, spacing); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CompressData { + private static class GetGlyphIndex { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, raylib.C_INT, - raylib.C_POINTER + Font.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("CompressData"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetGlyphIndex"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14398,59 +26967,58 @@ private static class CompressData { /** * Function descriptor for: * {@snippet lang=c : - * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * int GetGlyphIndex(Font font, int codepoint) * } */ - public static FunctionDescriptor CompressData$descriptor() { - return CompressData.DESC; + public static FunctionDescriptor GetGlyphIndex$descriptor() { + return GetGlyphIndex.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * int GetGlyphIndex(Font font, int codepoint) * } */ - public static MethodHandle CompressData$handle() { - return CompressData.HANDLE; + public static MethodHandle GetGlyphIndex$handle() { + return GetGlyphIndex.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * int GetGlyphIndex(Font font, int codepoint) * } */ - public static MemorySegment CompressData$address() { - return CompressData.ADDR; + public static MemorySegment GetGlyphIndex$address() { + return GetGlyphIndex.ADDR; } /** * {@snippet lang=c : - * unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDataSize) + * int GetGlyphIndex(Font font, int codepoint) * } */ - public static MemorySegment CompressData(MemorySegment data, int dataSize, MemorySegment compDataSize) { - var mh$ = CompressData.HANDLE; + public static int GetGlyphIndex(MemorySegment font, int codepoint) { + var mh$ = GetGlyphIndex.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CompressData", data, dataSize, compDataSize); + traceDowncall("GetGlyphIndex", font, codepoint); } - return (MemorySegment)mh$.invokeExact(data, dataSize, compDataSize); + return (int)mh$.invokeExact(font, codepoint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DecompressData { + private static class GetGlyphInfo { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER + GlyphInfo.layout(), + Font.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DecompressData"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetGlyphInfo"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14458,59 +27026,58 @@ private static class DecompressData { /** * Function descriptor for: * {@snippet lang=c : - * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * GlyphInfo GetGlyphInfo(Font font, int codepoint) * } */ - public static FunctionDescriptor DecompressData$descriptor() { - return DecompressData.DESC; + public static FunctionDescriptor GetGlyphInfo$descriptor() { + return GetGlyphInfo.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * GlyphInfo GetGlyphInfo(Font font, int codepoint) * } */ - public static MethodHandle DecompressData$handle() { - return DecompressData.HANDLE; + public static MethodHandle GetGlyphInfo$handle() { + return GetGlyphInfo.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * GlyphInfo GetGlyphInfo(Font font, int codepoint) * } */ - public static MemorySegment DecompressData$address() { - return DecompressData.ADDR; + public static MemorySegment GetGlyphInfo$address() { + return GetGlyphInfo.ADDR; } /** * {@snippet lang=c : - * unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize) + * GlyphInfo GetGlyphInfo(Font font, int codepoint) * } */ - public static MemorySegment DecompressData(MemorySegment compData, int compDataSize, MemorySegment dataSize) { - var mh$ = DecompressData.HANDLE; + public static MemorySegment GetGlyphInfo(SegmentAllocator allocator, MemorySegment font, int codepoint) { + var mh$ = GetGlyphInfo.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DecompressData", compData, compDataSize, dataSize); + traceDowncall("GetGlyphInfo", allocator, font, codepoint); } - return (MemorySegment)mh$.invokeExact(compData, compDataSize, dataSize); + return (MemorySegment)mh$.invokeExact(allocator, font, codepoint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class EncodeDataBase64 { + private static class GetGlyphAtlasRec { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER + Rectangle.layout(), + Font.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("EncodeDataBase64"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetGlyphAtlasRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14518,58 +27085,58 @@ private static class EncodeDataBase64 { /** * Function descriptor for: * {@snippet lang=c : - * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * Rectangle GetGlyphAtlasRec(Font font, int codepoint) * } */ - public static FunctionDescriptor EncodeDataBase64$descriptor() { - return EncodeDataBase64.DESC; + public static FunctionDescriptor GetGlyphAtlasRec$descriptor() { + return GetGlyphAtlasRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * Rectangle GetGlyphAtlasRec(Font font, int codepoint) * } */ - public static MethodHandle EncodeDataBase64$handle() { - return EncodeDataBase64.HANDLE; + public static MethodHandle GetGlyphAtlasRec$handle() { + return GetGlyphAtlasRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * Rectangle GetGlyphAtlasRec(Font font, int codepoint) * } */ - public static MemorySegment EncodeDataBase64$address() { - return EncodeDataBase64.ADDR; + public static MemorySegment GetGlyphAtlasRec$address() { + return GetGlyphAtlasRec.ADDR; } /** * {@snippet lang=c : - * char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize) + * Rectangle GetGlyphAtlasRec(Font font, int codepoint) * } */ - public static MemorySegment EncodeDataBase64(MemorySegment data, int dataSize, MemorySegment outputSize) { - var mh$ = EncodeDataBase64.HANDLE; + public static MemorySegment GetGlyphAtlasRec(SegmentAllocator allocator, MemorySegment font, int codepoint) { + var mh$ = GetGlyphAtlasRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("EncodeDataBase64", data, dataSize, outputSize); + traceDowncall("GetGlyphAtlasRec", allocator, font, codepoint); } - return (MemorySegment)mh$.invokeExact(data, dataSize, outputSize); + return (MemorySegment)mh$.invokeExact(allocator, font, codepoint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DecodeDataBase64 { + private static class LoadUTF8 { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_POINTER, raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DecodeDataBase64"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadUTF8"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14577,57 +27144,56 @@ private static class DecodeDataBase64 { /** * Function descriptor for: * {@snippet lang=c : - * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * char *LoadUTF8(const int *codepoints, int length) * } */ - public static FunctionDescriptor DecodeDataBase64$descriptor() { - return DecodeDataBase64.DESC; + public static FunctionDescriptor LoadUTF8$descriptor() { + return LoadUTF8.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * char *LoadUTF8(const int *codepoints, int length) * } */ - public static MethodHandle DecodeDataBase64$handle() { - return DecodeDataBase64.HANDLE; + public static MethodHandle LoadUTF8$handle() { + return LoadUTF8.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * char *LoadUTF8(const int *codepoints, int length) * } */ - public static MemorySegment DecodeDataBase64$address() { - return DecodeDataBase64.ADDR; + public static MemorySegment LoadUTF8$address() { + return LoadUTF8.ADDR; } /** * {@snippet lang=c : - * unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize) + * char *LoadUTF8(const int *codepoints, int length) * } */ - public static MemorySegment DecodeDataBase64(MemorySegment data, MemorySegment outputSize) { - var mh$ = DecodeDataBase64.HANDLE; + public static MemorySegment LoadUTF8(MemorySegment codepoints, int length) { + var mh$ = LoadUTF8.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DecodeDataBase64", data, outputSize); + traceDowncall("LoadUTF8", codepoints, length); } - return (MemorySegment)mh$.invokeExact(data, outputSize); + return (MemorySegment)mh$.invokeExact(codepoints, length); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadAutomationEventList { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - AutomationEventList.layout(), + private static class UnloadUTF8 { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadAutomationEventList"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadUTF8"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14635,56 +27201,58 @@ private static class LoadAutomationEventList { /** * Function descriptor for: * {@snippet lang=c : - * AutomationEventList LoadAutomationEventList(const char *fileName) + * void UnloadUTF8(char *text) * } */ - public static FunctionDescriptor LoadAutomationEventList$descriptor() { - return LoadAutomationEventList.DESC; + public static FunctionDescriptor UnloadUTF8$descriptor() { + return UnloadUTF8.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * AutomationEventList LoadAutomationEventList(const char *fileName) + * void UnloadUTF8(char *text) * } */ - public static MethodHandle LoadAutomationEventList$handle() { - return LoadAutomationEventList.HANDLE; + public static MethodHandle UnloadUTF8$handle() { + return UnloadUTF8.HANDLE; } /** * Address for: * {@snippet lang=c : - * AutomationEventList LoadAutomationEventList(const char *fileName) + * void UnloadUTF8(char *text) * } */ - public static MemorySegment LoadAutomationEventList$address() { - return LoadAutomationEventList.ADDR; + public static MemorySegment UnloadUTF8$address() { + return UnloadUTF8.ADDR; } /** * {@snippet lang=c : - * AutomationEventList LoadAutomationEventList(const char *fileName) + * void UnloadUTF8(char *text) * } */ - public static MemorySegment LoadAutomationEventList(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadAutomationEventList.HANDLE; + public static void UnloadUTF8(MemorySegment text) { + var mh$ = UnloadUTF8.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadAutomationEventList", allocator, fileName); + traceDowncall("UnloadUTF8", text); } - return (MemorySegment)mh$.invokeExact(allocator, fileName); + mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadAutomationEventList { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AutomationEventList.layout() + private static class LoadCodepoints { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadAutomationEventList"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadCodepoints"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14692,58 +27260,56 @@ private static class UnloadAutomationEventList { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadAutomationEventList(AutomationEventList list) + * int *LoadCodepoints(const char *text, int *count) * } */ - public static FunctionDescriptor UnloadAutomationEventList$descriptor() { - return UnloadAutomationEventList.DESC; + public static FunctionDescriptor LoadCodepoints$descriptor() { + return LoadCodepoints.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadAutomationEventList(AutomationEventList list) + * int *LoadCodepoints(const char *text, int *count) * } */ - public static MethodHandle UnloadAutomationEventList$handle() { - return UnloadAutomationEventList.HANDLE; + public static MethodHandle LoadCodepoints$handle() { + return LoadCodepoints.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadAutomationEventList(AutomationEventList list) + * int *LoadCodepoints(const char *text, int *count) * } */ - public static MemorySegment UnloadAutomationEventList$address() { - return UnloadAutomationEventList.ADDR; + public static MemorySegment LoadCodepoints$address() { + return LoadCodepoints.ADDR; } /** * {@snippet lang=c : - * void UnloadAutomationEventList(AutomationEventList list) + * int *LoadCodepoints(const char *text, int *count) * } */ - public static void UnloadAutomationEventList(MemorySegment list) { - var mh$ = UnloadAutomationEventList.HANDLE; + public static MemorySegment LoadCodepoints(MemorySegment text, MemorySegment count) { + var mh$ = LoadCodepoints.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadAutomationEventList", list); + traceDowncall("LoadCodepoints", text, count); } - mh$.invokeExact(list); + return (MemorySegment)mh$.invokeExact(text, count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ExportAutomationEventList { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - AutomationEventList.layout(), + private static class UnloadCodepoints { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ExportAutomationEventList"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadCodepoints"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14751,56 +27317,57 @@ private static class ExportAutomationEventList { /** * Function descriptor for: * {@snippet lang=c : - * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * void UnloadCodepoints(int *codepoints) * } */ - public static FunctionDescriptor ExportAutomationEventList$descriptor() { - return ExportAutomationEventList.DESC; + public static FunctionDescriptor UnloadCodepoints$descriptor() { + return UnloadCodepoints.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * void UnloadCodepoints(int *codepoints) * } */ - public static MethodHandle ExportAutomationEventList$handle() { - return ExportAutomationEventList.HANDLE; + public static MethodHandle UnloadCodepoints$handle() { + return UnloadCodepoints.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * void UnloadCodepoints(int *codepoints) * } */ - public static MemorySegment ExportAutomationEventList$address() { - return ExportAutomationEventList.ADDR; + public static MemorySegment UnloadCodepoints$address() { + return UnloadCodepoints.ADDR; } /** * {@snippet lang=c : - * bool ExportAutomationEventList(AutomationEventList list, const char *fileName) + * void UnloadCodepoints(int *codepoints) * } */ - public static boolean ExportAutomationEventList(MemorySegment list, MemorySegment fileName) { - var mh$ = ExportAutomationEventList.HANDLE; + public static void UnloadCodepoints(MemorySegment codepoints) { + var mh$ = UnloadCodepoints.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ExportAutomationEventList", list, fileName); + traceDowncall("UnloadCodepoints", codepoints); } - return (boolean)mh$.invokeExact(list, fileName); + mh$.invokeExact(codepoints); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetAutomationEventList { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + private static class GetCodepointCount { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetAutomationEventList"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepointCount"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14808,56 +27375,58 @@ private static class SetAutomationEventList { /** * Function descriptor for: * {@snippet lang=c : - * void SetAutomationEventList(AutomationEventList *list) + * int GetCodepointCount(const char *text) * } */ - public static FunctionDescriptor SetAutomationEventList$descriptor() { - return SetAutomationEventList.DESC; + public static FunctionDescriptor GetCodepointCount$descriptor() { + return GetCodepointCount.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetAutomationEventList(AutomationEventList *list) + * int GetCodepointCount(const char *text) * } */ - public static MethodHandle SetAutomationEventList$handle() { - return SetAutomationEventList.HANDLE; + public static MethodHandle GetCodepointCount$handle() { + return GetCodepointCount.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetAutomationEventList(AutomationEventList *list) + * int GetCodepointCount(const char *text) * } */ - public static MemorySegment SetAutomationEventList$address() { - return SetAutomationEventList.ADDR; + public static MemorySegment GetCodepointCount$address() { + return GetCodepointCount.ADDR; } /** * {@snippet lang=c : - * void SetAutomationEventList(AutomationEventList *list) + * int GetCodepointCount(const char *text) * } */ - public static void SetAutomationEventList(MemorySegment list) { - var mh$ = SetAutomationEventList.HANDLE; + public static int GetCodepointCount(MemorySegment text) { + var mh$ = GetCodepointCount.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetAutomationEventList", list); + traceDowncall("GetCodepointCount", text); } - mh$.invokeExact(list); + return (int)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetAutomationEventBaseFrame { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class GetCodepoint { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetAutomationEventBaseFrame"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepoint"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14865,54 +27434,58 @@ private static class SetAutomationEventBaseFrame { /** * Function descriptor for: * {@snippet lang=c : - * void SetAutomationEventBaseFrame(int frame) + * int GetCodepoint(const char *text, int *codepointSize) * } */ - public static FunctionDescriptor SetAutomationEventBaseFrame$descriptor() { - return SetAutomationEventBaseFrame.DESC; + public static FunctionDescriptor GetCodepoint$descriptor() { + return GetCodepoint.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetAutomationEventBaseFrame(int frame) + * int GetCodepoint(const char *text, int *codepointSize) * } */ - public static MethodHandle SetAutomationEventBaseFrame$handle() { - return SetAutomationEventBaseFrame.HANDLE; + public static MethodHandle GetCodepoint$handle() { + return GetCodepoint.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetAutomationEventBaseFrame(int frame) + * int GetCodepoint(const char *text, int *codepointSize) * } */ - public static MemorySegment SetAutomationEventBaseFrame$address() { - return SetAutomationEventBaseFrame.ADDR; + public static MemorySegment GetCodepoint$address() { + return GetCodepoint.ADDR; } /** * {@snippet lang=c : - * void SetAutomationEventBaseFrame(int frame) + * int GetCodepoint(const char *text, int *codepointSize) * } */ - public static void SetAutomationEventBaseFrame(int frame) { - var mh$ = SetAutomationEventBaseFrame.HANDLE; + public static int GetCodepoint(MemorySegment text, MemorySegment codepointSize) { + var mh$ = GetCodepoint.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetAutomationEventBaseFrame", frame); + traceDowncall("GetCodepoint", text, codepointSize); } - mh$.invokeExact(frame); + return (int)mh$.invokeExact(text, codepointSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class StartAutomationEventRecording { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class GetCodepointNext { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("StartAutomationEventRecording"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepointNext"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14920,54 +27493,58 @@ private static class StartAutomationEventRecording { /** * Function descriptor for: * {@snippet lang=c : - * void StartAutomationEventRecording() + * int GetCodepointNext(const char *text, int *codepointSize) * } - */ - public static FunctionDescriptor StartAutomationEventRecording$descriptor() { - return StartAutomationEventRecording.DESC; + */ + public static FunctionDescriptor GetCodepointNext$descriptor() { + return GetCodepointNext.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void StartAutomationEventRecording() + * int GetCodepointNext(const char *text, int *codepointSize) * } */ - public static MethodHandle StartAutomationEventRecording$handle() { - return StartAutomationEventRecording.HANDLE; + public static MethodHandle GetCodepointNext$handle() { + return GetCodepointNext.HANDLE; } /** * Address for: * {@snippet lang=c : - * void StartAutomationEventRecording() + * int GetCodepointNext(const char *text, int *codepointSize) * } */ - public static MemorySegment StartAutomationEventRecording$address() { - return StartAutomationEventRecording.ADDR; + public static MemorySegment GetCodepointNext$address() { + return GetCodepointNext.ADDR; } /** * {@snippet lang=c : - * void StartAutomationEventRecording() + * int GetCodepointNext(const char *text, int *codepointSize) * } */ - public static void StartAutomationEventRecording() { - var mh$ = StartAutomationEventRecording.HANDLE; + public static int GetCodepointNext(MemorySegment text, MemorySegment codepointSize) { + var mh$ = GetCodepointNext.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("StartAutomationEventRecording"); + traceDowncall("GetCodepointNext", text, codepointSize); } - mh$.invokeExact(); + return (int)mh$.invokeExact(text, codepointSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class StopAutomationEventRecording { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); + private static class GetCodepointPrevious { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_POINTER, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("StopAutomationEventRecording"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetCodepointPrevious"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -14975,56 +27552,58 @@ private static class StopAutomationEventRecording { /** * Function descriptor for: * {@snippet lang=c : - * void StopAutomationEventRecording() + * int GetCodepointPrevious(const char *text, int *codepointSize) * } */ - public static FunctionDescriptor StopAutomationEventRecording$descriptor() { - return StopAutomationEventRecording.DESC; + public static FunctionDescriptor GetCodepointPrevious$descriptor() { + return GetCodepointPrevious.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void StopAutomationEventRecording() + * int GetCodepointPrevious(const char *text, int *codepointSize) * } */ - public static MethodHandle StopAutomationEventRecording$handle() { - return StopAutomationEventRecording.HANDLE; + public static MethodHandle GetCodepointPrevious$handle() { + return GetCodepointPrevious.HANDLE; } /** * Address for: * {@snippet lang=c : - * void StopAutomationEventRecording() + * int GetCodepointPrevious(const char *text, int *codepointSize) * } */ - public static MemorySegment StopAutomationEventRecording$address() { - return StopAutomationEventRecording.ADDR; + public static MemorySegment GetCodepointPrevious$address() { + return GetCodepointPrevious.ADDR; } /** * {@snippet lang=c : - * void StopAutomationEventRecording() + * int GetCodepointPrevious(const char *text, int *codepointSize) * } */ - public static void StopAutomationEventRecording() { - var mh$ = StopAutomationEventRecording.HANDLE; + public static int GetCodepointPrevious(MemorySegment text, MemorySegment codepointSize) { + var mh$ = GetCodepointPrevious.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("StopAutomationEventRecording"); + traceDowncall("GetCodepointPrevious", text, codepointSize); } - mh$.invokeExact(); + return (int)mh$.invokeExact(text, codepointSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class PlayAutomationEvent { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - AutomationEvent.layout() + private static class CodepointToUTF8 { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("PlayAutomationEvent"); + public static final MemorySegment ADDR = raylib.findOrThrow("CodepointToUTF8"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15032,57 +27611,58 @@ private static class PlayAutomationEvent { /** * Function descriptor for: * {@snippet lang=c : - * void PlayAutomationEvent(AutomationEvent event) + * const char *CodepointToUTF8(int codepoint, int *utf8Size) * } */ - public static FunctionDescriptor PlayAutomationEvent$descriptor() { - return PlayAutomationEvent.DESC; + public static FunctionDescriptor CodepointToUTF8$descriptor() { + return CodepointToUTF8.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void PlayAutomationEvent(AutomationEvent event) + * const char *CodepointToUTF8(int codepoint, int *utf8Size) * } */ - public static MethodHandle PlayAutomationEvent$handle() { - return PlayAutomationEvent.HANDLE; + public static MethodHandle CodepointToUTF8$handle() { + return CodepointToUTF8.HANDLE; } /** * Address for: * {@snippet lang=c : - * void PlayAutomationEvent(AutomationEvent event) + * const char *CodepointToUTF8(int codepoint, int *utf8Size) * } */ - public static MemorySegment PlayAutomationEvent$address() { - return PlayAutomationEvent.ADDR; + public static MemorySegment CodepointToUTF8$address() { + return CodepointToUTF8.ADDR; } /** * {@snippet lang=c : - * void PlayAutomationEvent(AutomationEvent event) + * const char *CodepointToUTF8(int codepoint, int *utf8Size) * } */ - public static void PlayAutomationEvent(MemorySegment event) { - var mh$ = PlayAutomationEvent.HANDLE; + public static MemorySegment CodepointToUTF8(int codepoint, MemorySegment utf8Size) { + var mh$ = CodepointToUTF8.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("PlayAutomationEvent", event); + traceDowncall("CodepointToUTF8", codepoint, utf8Size); } - mh$.invokeExact(event); + return (MemorySegment)mh$.invokeExact(codepoint, utf8Size); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsKeyPressed { + private static class TextCopy { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + raylib.C_INT, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyPressed"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextCopy"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15090,57 +27670,58 @@ private static class IsKeyPressed { /** * Function descriptor for: * {@snippet lang=c : - * bool IsKeyPressed(int key) + * int TextCopy(char *dst, const char *src) * } */ - public static FunctionDescriptor IsKeyPressed$descriptor() { - return IsKeyPressed.DESC; + public static FunctionDescriptor TextCopy$descriptor() { + return TextCopy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsKeyPressed(int key) + * int TextCopy(char *dst, const char *src) * } */ - public static MethodHandle IsKeyPressed$handle() { - return IsKeyPressed.HANDLE; + public static MethodHandle TextCopy$handle() { + return TextCopy.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsKeyPressed(int key) + * int TextCopy(char *dst, const char *src) * } */ - public static MemorySegment IsKeyPressed$address() { - return IsKeyPressed.ADDR; + public static MemorySegment TextCopy$address() { + return TextCopy.ADDR; } /** * {@snippet lang=c : - * bool IsKeyPressed(int key) + * int TextCopy(char *dst, const char *src) * } */ - public static boolean IsKeyPressed(int key) { - var mh$ = IsKeyPressed.HANDLE; + public static int TextCopy(MemorySegment dst, MemorySegment src) { + var mh$ = TextCopy.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsKeyPressed", key); + traceDowncall("TextCopy", dst, src); } - return (boolean)mh$.invokeExact(key); + return (int)mh$.invokeExact(dst, src); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsKeyPressedRepeat { + private static class TextIsEqual { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_BOOL, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyPressedRepeat"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextIsEqual"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15148,57 +27729,57 @@ private static class IsKeyPressedRepeat { /** * Function descriptor for: * {@snippet lang=c : - * bool IsKeyPressedRepeat(int key) + * bool TextIsEqual(const char *text1, const char *text2) * } */ - public static FunctionDescriptor IsKeyPressedRepeat$descriptor() { - return IsKeyPressedRepeat.DESC; + public static FunctionDescriptor TextIsEqual$descriptor() { + return TextIsEqual.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsKeyPressedRepeat(int key) + * bool TextIsEqual(const char *text1, const char *text2) * } */ - public static MethodHandle IsKeyPressedRepeat$handle() { - return IsKeyPressedRepeat.HANDLE; + public static MethodHandle TextIsEqual$handle() { + return TextIsEqual.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsKeyPressedRepeat(int key) + * bool TextIsEqual(const char *text1, const char *text2) * } */ - public static MemorySegment IsKeyPressedRepeat$address() { - return IsKeyPressedRepeat.ADDR; + public static MemorySegment TextIsEqual$address() { + return TextIsEqual.ADDR; } /** * {@snippet lang=c : - * bool IsKeyPressedRepeat(int key) + * bool TextIsEqual(const char *text1, const char *text2) * } */ - public static boolean IsKeyPressedRepeat(int key) { - var mh$ = IsKeyPressedRepeat.HANDLE; + public static boolean TextIsEqual(MemorySegment text1, MemorySegment text2) { + var mh$ = TextIsEqual.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsKeyPressedRepeat", key); + traceDowncall("TextIsEqual", text1, text2); } - return (boolean)mh$.invokeExact(key); + return (boolean)mh$.invokeExact(text1, text2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsKeyDown { + private static class TextLength { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + raylib.C_INT, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyDown"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextLength"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15206,57 +27787,131 @@ private static class IsKeyDown { /** * Function descriptor for: * {@snippet lang=c : - * bool IsKeyDown(int key) + * unsigned int TextLength(const char *text) * } */ - public static FunctionDescriptor IsKeyDown$descriptor() { - return IsKeyDown.DESC; + public static FunctionDescriptor TextLength$descriptor() { + return TextLength.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsKeyDown(int key) + * unsigned int TextLength(const char *text) * } */ - public static MethodHandle IsKeyDown$handle() { - return IsKeyDown.HANDLE; + public static MethodHandle TextLength$handle() { + return TextLength.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsKeyDown(int key) + * unsigned int TextLength(const char *text) * } */ - public static MemorySegment IsKeyDown$address() { - return IsKeyDown.ADDR; + public static MemorySegment TextLength$address() { + return TextLength.ADDR; } /** * {@snippet lang=c : - * bool IsKeyDown(int key) + * unsigned int TextLength(const char *text) * } */ - public static boolean IsKeyDown(int key) { - var mh$ = IsKeyDown.HANDLE; + public static int TextLength(MemorySegment text) { + var mh$ = TextLength.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsKeyDown", key); + traceDowncall("TextLength", text); } - return (boolean)mh$.invokeExact(key); + return (int)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsKeyReleased { + /** + * Variadic invoker class for: + * {@snippet lang=c : + * const char *TextFormat(const char *text, ...) + * } + */ + public static class TextFormat { + private static final FunctionDescriptor BASE_DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER + ); + private static final MemorySegment ADDR = raylib.findOrThrow("TextFormat"); + + private final MethodHandle handle; + private final FunctionDescriptor descriptor; + private final MethodHandle spreader; + + private TextFormat(MethodHandle handle, FunctionDescriptor descriptor, MethodHandle spreader) { + this.handle = handle; + this.descriptor = descriptor; + this.spreader = spreader; + } + + /** + * Variadic invoker factory for: + * {@snippet lang=c : + * const char *TextFormat(const char *text, ...) + * } + */ + public static TextFormat makeInvoker(MemoryLayout... layouts) { + FunctionDescriptor desc$ = BASE_DESC.appendArgumentLayouts(layouts); + Linker.Option fva$ = Linker.Option.firstVariadicArg(BASE_DESC.argumentLayouts().size()); + var mh$ = Linker.nativeLinker().downcallHandle(ADDR, desc$, fva$); + var spreader$ = mh$.asSpreader(Object[].class, layouts.length); + return new TextFormat(mh$, desc$, spreader$); + } + + /** + * {@return the address} + */ + public static MemorySegment address() { + return ADDR; + } + + /** + * {@return the specialized method handle} + */ + public MethodHandle handle() { + return handle; + } + + /** + * {@return the specialized descriptor} + */ + public FunctionDescriptor descriptor() { + return descriptor; + } + + public MemorySegment apply(MemorySegment text, Object... x1) { + try { + if (TRACE_DOWNCALLS) { + traceDowncall("TextFormat", text, x1); + } + return (MemorySegment)spreader.invokeExact(text, x1); + } catch(IllegalArgumentException | ClassCastException ex$) { + throw ex$; // rethrow IAE from passing wrong number/type of args + } catch (Throwable ex$) { + throw new AssertionError("should not reach here", ex$); + } + } + } + + private static class TextSubtext { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyReleased"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextSubtext"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15264,57 +27919,59 @@ private static class IsKeyReleased { /** * Function descriptor for: * {@snippet lang=c : - * bool IsKeyReleased(int key) + * const char *TextSubtext(const char *text, int position, int length) * } */ - public static FunctionDescriptor IsKeyReleased$descriptor() { - return IsKeyReleased.DESC; + public static FunctionDescriptor TextSubtext$descriptor() { + return TextSubtext.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsKeyReleased(int key) + * const char *TextSubtext(const char *text, int position, int length) * } */ - public static MethodHandle IsKeyReleased$handle() { - return IsKeyReleased.HANDLE; + public static MethodHandle TextSubtext$handle() { + return TextSubtext.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsKeyReleased(int key) + * const char *TextSubtext(const char *text, int position, int length) * } */ - public static MemorySegment IsKeyReleased$address() { - return IsKeyReleased.ADDR; + public static MemorySegment TextSubtext$address() { + return TextSubtext.ADDR; } /** * {@snippet lang=c : - * bool IsKeyReleased(int key) + * const char *TextSubtext(const char *text, int position, int length) * } */ - public static boolean IsKeyReleased(int key) { - var mh$ = IsKeyReleased.HANDLE; + public static MemorySegment TextSubtext(MemorySegment text, int position, int length) { + var mh$ = TextSubtext.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsKeyReleased", key); + traceDowncall("TextSubtext", text, position, length); } - return (boolean)mh$.invokeExact(key); + return (MemorySegment)mh$.invokeExact(text, position, length); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsKeyUp { + private static class TextReplace { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsKeyUp"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextReplace"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15322,55 +27979,59 @@ private static class IsKeyUp { /** * Function descriptor for: * {@snippet lang=c : - * bool IsKeyUp(int key) + * char *TextReplace(const char *text, const char *replace, const char *by) * } */ - public static FunctionDescriptor IsKeyUp$descriptor() { - return IsKeyUp.DESC; + public static FunctionDescriptor TextReplace$descriptor() { + return TextReplace.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsKeyUp(int key) + * char *TextReplace(const char *text, const char *replace, const char *by) * } */ - public static MethodHandle IsKeyUp$handle() { - return IsKeyUp.HANDLE; + public static MethodHandle TextReplace$handle() { + return TextReplace.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsKeyUp(int key) + * char *TextReplace(const char *text, const char *replace, const char *by) * } */ - public static MemorySegment IsKeyUp$address() { - return IsKeyUp.ADDR; + public static MemorySegment TextReplace$address() { + return TextReplace.ADDR; } /** * {@snippet lang=c : - * bool IsKeyUp(int key) + * char *TextReplace(const char *text, const char *replace, const char *by) * } */ - public static boolean IsKeyUp(int key) { - var mh$ = IsKeyUp.HANDLE; + public static MemorySegment TextReplace(MemorySegment text, MemorySegment replace, MemorySegment by) { + var mh$ = TextReplace.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsKeyUp", key); + traceDowncall("TextReplace", text, replace, by); } - return (boolean)mh$.invokeExact(key); + return (MemorySegment)mh$.invokeExact(text, replace, by); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetKeyPressed { + private static class TextInsert { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetKeyPressed"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextInsert"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15378,55 +28039,59 @@ private static class GetKeyPressed { /** * Function descriptor for: * {@snippet lang=c : - * int GetKeyPressed() + * char *TextInsert(const char *text, const char *insert, int position) * } */ - public static FunctionDescriptor GetKeyPressed$descriptor() { - return GetKeyPressed.DESC; + public static FunctionDescriptor TextInsert$descriptor() { + return TextInsert.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetKeyPressed() + * char *TextInsert(const char *text, const char *insert, int position) * } */ - public static MethodHandle GetKeyPressed$handle() { - return GetKeyPressed.HANDLE; + public static MethodHandle TextInsert$handle() { + return TextInsert.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetKeyPressed() + * char *TextInsert(const char *text, const char *insert, int position) * } */ - public static MemorySegment GetKeyPressed$address() { - return GetKeyPressed.ADDR; + public static MemorySegment TextInsert$address() { + return TextInsert.ADDR; } /** * {@snippet lang=c : - * int GetKeyPressed() + * char *TextInsert(const char *text, const char *insert, int position) * } */ - public static int GetKeyPressed() { - var mh$ = GetKeyPressed.HANDLE; + public static MemorySegment TextInsert(MemorySegment text, MemorySegment insert, int position) { + var mh$ = TextInsert.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetKeyPressed"); + traceDowncall("TextInsert", text, insert, position); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(text, insert, position); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetCharPressed { + private static class TextJoin { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetCharPressed"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextJoin"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15434,56 +28099,59 @@ private static class GetCharPressed { /** * Function descriptor for: * {@snippet lang=c : - * int GetCharPressed() + * const char *TextJoin(const char **textList, int count, const char *delimiter) * } */ - public static FunctionDescriptor GetCharPressed$descriptor() { - return GetCharPressed.DESC; + public static FunctionDescriptor TextJoin$descriptor() { + return TextJoin.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetCharPressed() + * const char *TextJoin(const char **textList, int count, const char *delimiter) * } */ - public static MethodHandle GetCharPressed$handle() { - return GetCharPressed.HANDLE; + public static MethodHandle TextJoin$handle() { + return TextJoin.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetCharPressed() + * const char *TextJoin(const char **textList, int count, const char *delimiter) * } */ - public static MemorySegment GetCharPressed$address() { - return GetCharPressed.ADDR; + public static MemorySegment TextJoin$address() { + return TextJoin.ADDR; } /** * {@snippet lang=c : - * int GetCharPressed() + * const char *TextJoin(const char **textList, int count, const char *delimiter) * } */ - public static int GetCharPressed() { - var mh$ = GetCharPressed.HANDLE; + public static MemorySegment TextJoin(MemorySegment textList, int count, MemorySegment delimiter) { + var mh$ = TextJoin.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetCharPressed"); + traceDowncall("TextJoin", textList, count, delimiter); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(textList, count, delimiter); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetExitKey { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class TextSplit { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_CHAR, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetExitKey"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextSplit"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15491,57 +28159,58 @@ private static class SetExitKey { /** * Function descriptor for: * {@snippet lang=c : - * void SetExitKey(int key) + * const char **TextSplit(const char *text, char delimiter, int *count) * } */ - public static FunctionDescriptor SetExitKey$descriptor() { - return SetExitKey.DESC; + public static FunctionDescriptor TextSplit$descriptor() { + return TextSplit.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetExitKey(int key) + * const char **TextSplit(const char *text, char delimiter, int *count) * } */ - public static MethodHandle SetExitKey$handle() { - return SetExitKey.HANDLE; + public static MethodHandle TextSplit$handle() { + return TextSplit.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetExitKey(int key) + * const char **TextSplit(const char *text, char delimiter, int *count) * } */ - public static MemorySegment SetExitKey$address() { - return SetExitKey.ADDR; + public static MemorySegment TextSplit$address() { + return TextSplit.ADDR; } /** * {@snippet lang=c : - * void SetExitKey(int key) + * const char **TextSplit(const char *text, char delimiter, int *count) * } */ - public static void SetExitKey(int key) { - var mh$ = SetExitKey.HANDLE; + public static MemorySegment TextSplit(MemorySegment text, byte delimiter, MemorySegment count) { + var mh$ = TextSplit.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetExitKey", key); + traceDowncall("TextSplit", text, delimiter, count); } - mh$.invokeExact(key); + return (MemorySegment)mh$.invokeExact(text, delimiter, count); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsGamepadAvailable { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class TextAppend { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadAvailable"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextAppend"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15549,57 +28218,58 @@ private static class IsGamepadAvailable { /** * Function descriptor for: * {@snippet lang=c : - * bool IsGamepadAvailable(int gamepad) + * void TextAppend(char *text, const char *append, int *position) * } */ - public static FunctionDescriptor IsGamepadAvailable$descriptor() { - return IsGamepadAvailable.DESC; + public static FunctionDescriptor TextAppend$descriptor() { + return TextAppend.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsGamepadAvailable(int gamepad) + * void TextAppend(char *text, const char *append, int *position) * } */ - public static MethodHandle IsGamepadAvailable$handle() { - return IsGamepadAvailable.HANDLE; + public static MethodHandle TextAppend$handle() { + return TextAppend.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsGamepadAvailable(int gamepad) + * void TextAppend(char *text, const char *append, int *position) * } */ - public static MemorySegment IsGamepadAvailable$address() { - return IsGamepadAvailable.ADDR; + public static MemorySegment TextAppend$address() { + return TextAppend.ADDR; } /** * {@snippet lang=c : - * bool IsGamepadAvailable(int gamepad) + * void TextAppend(char *text, const char *append, int *position) * } */ - public static boolean IsGamepadAvailable(int gamepad) { - var mh$ = IsGamepadAvailable.HANDLE; + public static void TextAppend(MemorySegment text, MemorySegment append, MemorySegment position) { + var mh$ = TextAppend.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsGamepadAvailable", gamepad); + traceDowncall("TextAppend", text, append, position); } - return (boolean)mh$.invokeExact(gamepad); + mh$.invokeExact(text, append, position); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGamepadName { + private static class TextFindIndex { public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, raylib.C_POINTER, - raylib.C_INT + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadName"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextFindIndex"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15607,58 +28277,57 @@ private static class GetGamepadName { /** * Function descriptor for: * {@snippet lang=c : - * const char *GetGamepadName(int gamepad) + * int TextFindIndex(const char *text, const char *find) * } */ - public static FunctionDescriptor GetGamepadName$descriptor() { - return GetGamepadName.DESC; + public static FunctionDescriptor TextFindIndex$descriptor() { + return TextFindIndex.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * const char *GetGamepadName(int gamepad) + * int TextFindIndex(const char *text, const char *find) * } */ - public static MethodHandle GetGamepadName$handle() { - return GetGamepadName.HANDLE; + public static MethodHandle TextFindIndex$handle() { + return TextFindIndex.HANDLE; } /** * Address for: * {@snippet lang=c : - * const char *GetGamepadName(int gamepad) + * int TextFindIndex(const char *text, const char *find) * } */ - public static MemorySegment GetGamepadName$address() { - return GetGamepadName.ADDR; + public static MemorySegment TextFindIndex$address() { + return TextFindIndex.ADDR; } /** * {@snippet lang=c : - * const char *GetGamepadName(int gamepad) + * int TextFindIndex(const char *text, const char *find) * } */ - public static MemorySegment GetGamepadName(int gamepad) { - var mh$ = GetGamepadName.HANDLE; + public static int TextFindIndex(MemorySegment text, MemorySegment find) { + var mh$ = TextFindIndex.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGamepadName", gamepad); + traceDowncall("TextFindIndex", text, find); } - return (MemorySegment)mh$.invokeExact(gamepad); + return (int)mh$.invokeExact(text, find); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsGamepadButtonPressed { + private static class TextToUpper { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonPressed"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextToUpper"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15666,58 +28335,57 @@ private static class IsGamepadButtonPressed { /** * Function descriptor for: * {@snippet lang=c : - * bool IsGamepadButtonPressed(int gamepad, int button) + * const char *TextToUpper(const char *text) * } */ - public static FunctionDescriptor IsGamepadButtonPressed$descriptor() { - return IsGamepadButtonPressed.DESC; + public static FunctionDescriptor TextToUpper$descriptor() { + return TextToUpper.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsGamepadButtonPressed(int gamepad, int button) + * const char *TextToUpper(const char *text) * } */ - public static MethodHandle IsGamepadButtonPressed$handle() { - return IsGamepadButtonPressed.HANDLE; + public static MethodHandle TextToUpper$handle() { + return TextToUpper.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsGamepadButtonPressed(int gamepad, int button) + * const char *TextToUpper(const char *text) * } */ - public static MemorySegment IsGamepadButtonPressed$address() { - return IsGamepadButtonPressed.ADDR; + public static MemorySegment TextToUpper$address() { + return TextToUpper.ADDR; } /** * {@snippet lang=c : - * bool IsGamepadButtonPressed(int gamepad, int button) + * const char *TextToUpper(const char *text) * } */ - public static boolean IsGamepadButtonPressed(int gamepad, int button) { - var mh$ = IsGamepadButtonPressed.HANDLE; + public static MemorySegment TextToUpper(MemorySegment text) { + var mh$ = TextToUpper.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsGamepadButtonPressed", gamepad, button); + traceDowncall("TextToUpper", text); } - return (boolean)mh$.invokeExact(gamepad, button); + return (MemorySegment)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsGamepadButtonDown { + private static class TextToLower { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonDown"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextToLower"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15725,58 +28393,57 @@ private static class IsGamepadButtonDown { /** * Function descriptor for: * {@snippet lang=c : - * bool IsGamepadButtonDown(int gamepad, int button) + * const char *TextToLower(const char *text) * } */ - public static FunctionDescriptor IsGamepadButtonDown$descriptor() { - return IsGamepadButtonDown.DESC; + public static FunctionDescriptor TextToLower$descriptor() { + return TextToLower.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsGamepadButtonDown(int gamepad, int button) + * const char *TextToLower(const char *text) * } */ - public static MethodHandle IsGamepadButtonDown$handle() { - return IsGamepadButtonDown.HANDLE; + public static MethodHandle TextToLower$handle() { + return TextToLower.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsGamepadButtonDown(int gamepad, int button) + * const char *TextToLower(const char *text) * } */ - public static MemorySegment IsGamepadButtonDown$address() { - return IsGamepadButtonDown.ADDR; + public static MemorySegment TextToLower$address() { + return TextToLower.ADDR; } /** * {@snippet lang=c : - * bool IsGamepadButtonDown(int gamepad, int button) + * const char *TextToLower(const char *text) * } */ - public static boolean IsGamepadButtonDown(int gamepad, int button) { - var mh$ = IsGamepadButtonDown.HANDLE; + public static MemorySegment TextToLower(MemorySegment text) { + var mh$ = TextToLower.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsGamepadButtonDown", gamepad, button); + traceDowncall("TextToLower", text); } - return (boolean)mh$.invokeExact(gamepad, button); + return (MemorySegment)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsGamepadButtonReleased { + private static class TextToPascal { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT, - raylib.C_INT + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonReleased"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextToPascal"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15784,58 +28451,57 @@ private static class IsGamepadButtonReleased { /** * Function descriptor for: * {@snippet lang=c : - * bool IsGamepadButtonReleased(int gamepad, int button) + * const char *TextToPascal(const char *text) * } */ - public static FunctionDescriptor IsGamepadButtonReleased$descriptor() { - return IsGamepadButtonReleased.DESC; + public static FunctionDescriptor TextToPascal$descriptor() { + return TextToPascal.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsGamepadButtonReleased(int gamepad, int button) + * const char *TextToPascal(const char *text) * } */ - public static MethodHandle IsGamepadButtonReleased$handle() { - return IsGamepadButtonReleased.HANDLE; + public static MethodHandle TextToPascal$handle() { + return TextToPascal.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsGamepadButtonReleased(int gamepad, int button) + * const char *TextToPascal(const char *text) * } */ - public static MemorySegment IsGamepadButtonReleased$address() { - return IsGamepadButtonReleased.ADDR; + public static MemorySegment TextToPascal$address() { + return TextToPascal.ADDR; } /** * {@snippet lang=c : - * bool IsGamepadButtonReleased(int gamepad, int button) + * const char *TextToPascal(const char *text) * } */ - public static boolean IsGamepadButtonReleased(int gamepad, int button) { - var mh$ = IsGamepadButtonReleased.HANDLE; + public static MemorySegment TextToPascal(MemorySegment text) { + var mh$ = TextToPascal.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsGamepadButtonReleased", gamepad, button); + traceDowncall("TextToPascal", text); } - return (boolean)mh$.invokeExact(gamepad, button); + return (MemorySegment)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsGamepadButtonUp { + private static class TextToInteger { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, raylib.C_INT, - raylib.C_INT + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsGamepadButtonUp"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextToInteger"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15843,55 +28509,57 @@ private static class IsGamepadButtonUp { /** * Function descriptor for: * {@snippet lang=c : - * bool IsGamepadButtonUp(int gamepad, int button) + * int TextToInteger(const char *text) * } */ - public static FunctionDescriptor IsGamepadButtonUp$descriptor() { - return IsGamepadButtonUp.DESC; + public static FunctionDescriptor TextToInteger$descriptor() { + return TextToInteger.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsGamepadButtonUp(int gamepad, int button) + * int TextToInteger(const char *text) * } */ - public static MethodHandle IsGamepadButtonUp$handle() { - return IsGamepadButtonUp.HANDLE; + public static MethodHandle TextToInteger$handle() { + return TextToInteger.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsGamepadButtonUp(int gamepad, int button) + * int TextToInteger(const char *text) * } */ - public static MemorySegment IsGamepadButtonUp$address() { - return IsGamepadButtonUp.ADDR; + public static MemorySegment TextToInteger$address() { + return TextToInteger.ADDR; } /** * {@snippet lang=c : - * bool IsGamepadButtonUp(int gamepad, int button) + * int TextToInteger(const char *text) * } */ - public static boolean IsGamepadButtonUp(int gamepad, int button) { - var mh$ = IsGamepadButtonUp.HANDLE; + public static int TextToInteger(MemorySegment text) { + var mh$ = TextToInteger.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsGamepadButtonUp", gamepad, button); + traceDowncall("TextToInteger", text); } - return (boolean)mh$.invokeExact(gamepad, button); + return (int)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGamepadButtonPressed { + private static class TextToFloat { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + raylib.C_FLOAT, + raylib.C_POINTER + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadButtonPressed"); + public static final MemorySegment ADDR = raylib.findOrThrow("TextToFloat"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15899,57 +28567,58 @@ private static class GetGamepadButtonPressed { /** * Function descriptor for: * {@snippet lang=c : - * int GetGamepadButtonPressed() + * float TextToFloat(const char *text) * } */ - public static FunctionDescriptor GetGamepadButtonPressed$descriptor() { - return GetGamepadButtonPressed.DESC; + public static FunctionDescriptor TextToFloat$descriptor() { + return TextToFloat.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetGamepadButtonPressed() + * float TextToFloat(const char *text) * } */ - public static MethodHandle GetGamepadButtonPressed$handle() { - return GetGamepadButtonPressed.HANDLE; + public static MethodHandle TextToFloat$handle() { + return TextToFloat.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetGamepadButtonPressed() + * float TextToFloat(const char *text) * } */ - public static MemorySegment GetGamepadButtonPressed$address() { - return GetGamepadButtonPressed.ADDR; + public static MemorySegment TextToFloat$address() { + return TextToFloat.ADDR; } /** * {@snippet lang=c : - * int GetGamepadButtonPressed() + * float TextToFloat(const char *text) * } */ - public static int GetGamepadButtonPressed() { - var mh$ = GetGamepadButtonPressed.HANDLE; + public static float TextToFloat(MemorySegment text) { + var mh$ = TextToFloat.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGamepadButtonPressed"); + traceDowncall("TextToFloat", text); } - return (int)mh$.invokeExact(); + return (float)mh$.invokeExact(text); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGamepadAxisCount { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT + private static class DrawLine3D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadAxisCount"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawLine3D"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -15957,58 +28626,57 @@ private static class GetGamepadAxisCount { /** * Function descriptor for: * {@snippet lang=c : - * int GetGamepadAxisCount(int gamepad) + * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) * } */ - public static FunctionDescriptor GetGamepadAxisCount$descriptor() { - return GetGamepadAxisCount.DESC; + public static FunctionDescriptor DrawLine3D$descriptor() { + return DrawLine3D.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetGamepadAxisCount(int gamepad) + * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) * } */ - public static MethodHandle GetGamepadAxisCount$handle() { - return GetGamepadAxisCount.HANDLE; + public static MethodHandle DrawLine3D$handle() { + return DrawLine3D.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetGamepadAxisCount(int gamepad) + * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) * } */ - public static MemorySegment GetGamepadAxisCount$address() { - return GetGamepadAxisCount.ADDR; + public static MemorySegment DrawLine3D$address() { + return DrawLine3D.ADDR; } /** * {@snippet lang=c : - * int GetGamepadAxisCount(int gamepad) + * void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color) * } */ - public static int GetGamepadAxisCount(int gamepad) { - var mh$ = GetGamepadAxisCount.HANDLE; + public static void DrawLine3D(MemorySegment startPos, MemorySegment endPos, MemorySegment color) { + var mh$ = DrawLine3D.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGamepadAxisCount", gamepad); + traceDowncall("DrawLine3D", startPos, endPos, color); } - return (int)mh$.invokeExact(gamepad); + mh$.invokeExact(startPos, endPos, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGamepadAxisMovement { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT, - raylib.C_INT, - raylib.C_INT + private static class DrawPoint3D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGamepadAxisMovement"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPoint3D"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16016,57 +28684,60 @@ private static class GetGamepadAxisMovement { /** * Function descriptor for: * {@snippet lang=c : - * float GetGamepadAxisMovement(int gamepad, int axis) + * void DrawPoint3D(Vector3 position, Color color) * } */ - public static FunctionDescriptor GetGamepadAxisMovement$descriptor() { - return GetGamepadAxisMovement.DESC; + public static FunctionDescriptor DrawPoint3D$descriptor() { + return DrawPoint3D.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float GetGamepadAxisMovement(int gamepad, int axis) + * void DrawPoint3D(Vector3 position, Color color) * } */ - public static MethodHandle GetGamepadAxisMovement$handle() { - return GetGamepadAxisMovement.HANDLE; + public static MethodHandle DrawPoint3D$handle() { + return DrawPoint3D.HANDLE; } /** * Address for: * {@snippet lang=c : - * float GetGamepadAxisMovement(int gamepad, int axis) + * void DrawPoint3D(Vector3 position, Color color) * } */ - public static MemorySegment GetGamepadAxisMovement$address() { - return GetGamepadAxisMovement.ADDR; + public static MemorySegment DrawPoint3D$address() { + return DrawPoint3D.ADDR; } /** * {@snippet lang=c : - * float GetGamepadAxisMovement(int gamepad, int axis) + * void DrawPoint3D(Vector3 position, Color color) * } */ - public static float GetGamepadAxisMovement(int gamepad, int axis) { - var mh$ = GetGamepadAxisMovement.HANDLE; + public static void DrawPoint3D(MemorySegment position, MemorySegment color) { + var mh$ = DrawPoint3D.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGamepadAxisMovement", gamepad, axis); + traceDowncall("DrawPoint3D", position, color); } - return (float)mh$.invokeExact(gamepad, axis); + mh$.invokeExact(position, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetGamepadMappings { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_POINTER + private static class DrawCircle3D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + Vector3.layout(), + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetGamepadMappings"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircle3D"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16074,58 +28745,59 @@ private static class SetGamepadMappings { /** * Function descriptor for: * {@snippet lang=c : - * int SetGamepadMappings(const char *mappings) + * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) * } */ - public static FunctionDescriptor SetGamepadMappings$descriptor() { - return SetGamepadMappings.DESC; + public static FunctionDescriptor DrawCircle3D$descriptor() { + return DrawCircle3D.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int SetGamepadMappings(const char *mappings) + * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) * } */ - public static MethodHandle SetGamepadMappings$handle() { - return SetGamepadMappings.HANDLE; + public static MethodHandle DrawCircle3D$handle() { + return DrawCircle3D.HANDLE; } /** * Address for: * {@snippet lang=c : - * int SetGamepadMappings(const char *mappings) + * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) * } */ - public static MemorySegment SetGamepadMappings$address() { - return SetGamepadMappings.ADDR; + public static MemorySegment DrawCircle3D$address() { + return DrawCircle3D.ADDR; } /** * {@snippet lang=c : - * int SetGamepadMappings(const char *mappings) + * void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color) * } */ - public static int SetGamepadMappings(MemorySegment mappings) { - var mh$ = SetGamepadMappings.HANDLE; + public static void DrawCircle3D(MemorySegment center, float radius, MemorySegment rotationAxis, float rotationAngle, MemorySegment color) { + var mh$ = DrawCircle3D.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetGamepadMappings", mappings); + traceDowncall("DrawCircle3D", center, radius, rotationAxis, rotationAngle, color); } - return (int)mh$.invokeExact(mappings); + mh$.invokeExact(center, radius, rotationAxis, rotationAngle, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetGamepadVibration { + private static class DrawTriangle3D { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_FLOAT, - raylib.C_FLOAT + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetGamepadVibration"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangle3D"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16133,57 +28805,58 @@ private static class SetGamepadVibration { /** * Function descriptor for: * {@snippet lang=c : - * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) * } */ - public static FunctionDescriptor SetGamepadVibration$descriptor() { - return SetGamepadVibration.DESC; + public static FunctionDescriptor DrawTriangle3D$descriptor() { + return DrawTriangle3D.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) * } */ - public static MethodHandle SetGamepadVibration$handle() { - return SetGamepadVibration.HANDLE; + public static MethodHandle DrawTriangle3D$handle() { + return DrawTriangle3D.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) * } */ - public static MemorySegment SetGamepadVibration$address() { - return SetGamepadVibration.ADDR; + public static MemorySegment DrawTriangle3D$address() { + return DrawTriangle3D.ADDR; } /** * {@snippet lang=c : - * void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) + * void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) * } */ - public static void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor) { - var mh$ = SetGamepadVibration.HANDLE; + public static void DrawTriangle3D(MemorySegment v1, MemorySegment v2, MemorySegment v3, MemorySegment color) { + var mh$ = DrawTriangle3D.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetGamepadVibration", gamepad, leftMotor, rightMotor); + traceDowncall("DrawTriangle3D", v1, v2, v3, color); } - mh$.invokeExact(gamepad, leftMotor, rightMotor); + mh$.invokeExact(v1, v2, v3, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsMouseButtonPressed { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class DrawTriangleStrip3D { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonPressed"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleStrip3D"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16191,57 +28864,60 @@ private static class IsMouseButtonPressed { /** * Function descriptor for: * {@snippet lang=c : - * bool IsMouseButtonPressed(int button) + * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) * } */ - public static FunctionDescriptor IsMouseButtonPressed$descriptor() { - return IsMouseButtonPressed.DESC; + public static FunctionDescriptor DrawTriangleStrip3D$descriptor() { + return DrawTriangleStrip3D.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsMouseButtonPressed(int button) + * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) * } */ - public static MethodHandle IsMouseButtonPressed$handle() { - return IsMouseButtonPressed.HANDLE; + public static MethodHandle DrawTriangleStrip3D$handle() { + return DrawTriangleStrip3D.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsMouseButtonPressed(int button) + * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) * } */ - public static MemorySegment IsMouseButtonPressed$address() { - return IsMouseButtonPressed.ADDR; + public static MemorySegment DrawTriangleStrip3D$address() { + return DrawTriangleStrip3D.ADDR; } /** * {@snippet lang=c : - * bool IsMouseButtonPressed(int button) + * void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) * } */ - public static boolean IsMouseButtonPressed(int button) { - var mh$ = IsMouseButtonPressed.HANDLE; + public static void DrawTriangleStrip3D(MemorySegment points, int pointCount, MemorySegment color) { + var mh$ = DrawTriangleStrip3D.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsMouseButtonPressed", button); + traceDowncall("DrawTriangleStrip3D", points, pointCount, color); } - return (boolean)mh$.invokeExact(button); + mh$.invokeExact(points, pointCount, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsMouseButtonDown { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class DrawCube { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonDown"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCube"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16249,57 +28925,58 @@ private static class IsMouseButtonDown { /** * Function descriptor for: * {@snippet lang=c : - * bool IsMouseButtonDown(int button) + * void DrawCube(Vector3 position, float width, float height, float length, Color color) * } */ - public static FunctionDescriptor IsMouseButtonDown$descriptor() { - return IsMouseButtonDown.DESC; + public static FunctionDescriptor DrawCube$descriptor() { + return DrawCube.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsMouseButtonDown(int button) + * void DrawCube(Vector3 position, float width, float height, float length, Color color) * } */ - public static MethodHandle IsMouseButtonDown$handle() { - return IsMouseButtonDown.HANDLE; + public static MethodHandle DrawCube$handle() { + return DrawCube.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsMouseButtonDown(int button) + * void DrawCube(Vector3 position, float width, float height, float length, Color color) * } */ - public static MemorySegment IsMouseButtonDown$address() { - return IsMouseButtonDown.ADDR; + public static MemorySegment DrawCube$address() { + return DrawCube.ADDR; } /** * {@snippet lang=c : - * bool IsMouseButtonDown(int button) + * void DrawCube(Vector3 position, float width, float height, float length, Color color) * } */ - public static boolean IsMouseButtonDown(int button) { - var mh$ = IsMouseButtonDown.HANDLE; + public static void DrawCube(MemorySegment position, float width, float height, float length, MemorySegment color) { + var mh$ = DrawCube.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsMouseButtonDown", button); + traceDowncall("DrawCube", position, width, height, length, color); } - return (boolean)mh$.invokeExact(button); + mh$.invokeExact(position, width, height, length, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsMouseButtonReleased { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class DrawCubeV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonReleased"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCubeV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16307,57 +28984,60 @@ private static class IsMouseButtonReleased { /** * Function descriptor for: * {@snippet lang=c : - * bool IsMouseButtonReleased(int button) + * void DrawCubeV(Vector3 position, Vector3 size, Color color) * } */ - public static FunctionDescriptor IsMouseButtonReleased$descriptor() { - return IsMouseButtonReleased.DESC; + public static FunctionDescriptor DrawCubeV$descriptor() { + return DrawCubeV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsMouseButtonReleased(int button) + * void DrawCubeV(Vector3 position, Vector3 size, Color color) * } */ - public static MethodHandle IsMouseButtonReleased$handle() { - return IsMouseButtonReleased.HANDLE; + public static MethodHandle DrawCubeV$handle() { + return DrawCubeV.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsMouseButtonReleased(int button) + * void DrawCubeV(Vector3 position, Vector3 size, Color color) * } */ - public static MemorySegment IsMouseButtonReleased$address() { - return IsMouseButtonReleased.ADDR; + public static MemorySegment DrawCubeV$address() { + return DrawCubeV.ADDR; } /** * {@snippet lang=c : - * bool IsMouseButtonReleased(int button) + * void DrawCubeV(Vector3 position, Vector3 size, Color color) * } */ - public static boolean IsMouseButtonReleased(int button) { - var mh$ = IsMouseButtonReleased.HANDLE; + public static void DrawCubeV(MemorySegment position, MemorySegment size, MemorySegment color) { + var mh$ = DrawCubeV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsMouseButtonReleased", button); + traceDowncall("DrawCubeV", position, size, color); } - return (boolean)mh$.invokeExact(button); + mh$.invokeExact(position, size, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsMouseButtonUp { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class DrawCubeWires { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsMouseButtonUp"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCubeWires"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16365,55 +29045,58 @@ private static class IsMouseButtonUp { /** * Function descriptor for: * {@snippet lang=c : - * bool IsMouseButtonUp(int button) + * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) * } */ - public static FunctionDescriptor IsMouseButtonUp$descriptor() { - return IsMouseButtonUp.DESC; + public static FunctionDescriptor DrawCubeWires$descriptor() { + return DrawCubeWires.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsMouseButtonUp(int button) + * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) * } */ - public static MethodHandle IsMouseButtonUp$handle() { - return IsMouseButtonUp.HANDLE; + public static MethodHandle DrawCubeWires$handle() { + return DrawCubeWires.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsMouseButtonUp(int button) + * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) * } */ - public static MemorySegment IsMouseButtonUp$address() { - return IsMouseButtonUp.ADDR; + public static MemorySegment DrawCubeWires$address() { + return DrawCubeWires.ADDR; } /** * {@snippet lang=c : - * bool IsMouseButtonUp(int button) + * void DrawCubeWires(Vector3 position, float width, float height, float length, Color color) * } */ - public static boolean IsMouseButtonUp(int button) { - var mh$ = IsMouseButtonUp.HANDLE; + public static void DrawCubeWires(MemorySegment position, float width, float height, float length, MemorySegment color) { + var mh$ = DrawCubeWires.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsMouseButtonUp", button); + traceDowncall("DrawCubeWires", position, width, height, length, color); } - return (boolean)mh$.invokeExact(button); + mh$.invokeExact(position, width, height, length, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMouseX { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class DrawCubeWiresV { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector3.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseX"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCubeWiresV"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16421,55 +29104,58 @@ private static class GetMouseX { /** * Function descriptor for: * {@snippet lang=c : - * int GetMouseX() + * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) * } */ - public static FunctionDescriptor GetMouseX$descriptor() { - return GetMouseX.DESC; + public static FunctionDescriptor DrawCubeWiresV$descriptor() { + return DrawCubeWiresV.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMouseX() + * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) * } */ - public static MethodHandle GetMouseX$handle() { - return GetMouseX.HANDLE; + public static MethodHandle DrawCubeWiresV$handle() { + return DrawCubeWiresV.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMouseX() + * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) * } */ - public static MemorySegment GetMouseX$address() { - return GetMouseX.ADDR; + public static MemorySegment DrawCubeWiresV$address() { + return DrawCubeWiresV.ADDR; } /** * {@snippet lang=c : - * int GetMouseX() + * void DrawCubeWiresV(Vector3 position, Vector3 size, Color color) * } */ - public static int GetMouseX() { - var mh$ = GetMouseX.HANDLE; + public static void DrawCubeWiresV(MemorySegment position, MemorySegment size, MemorySegment color) { + var mh$ = DrawCubeWiresV.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMouseX"); + traceDowncall("DrawCubeWiresV", position, size, color); } - return (int)mh$.invokeExact(); + mh$.invokeExact(position, size, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMouseY { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class DrawSphere { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseY"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSphere"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16477,55 +29163,60 @@ private static class GetMouseY { /** * Function descriptor for: * {@snippet lang=c : - * int GetMouseY() + * void DrawSphere(Vector3 centerPos, float radius, Color color) * } */ - public static FunctionDescriptor GetMouseY$descriptor() { - return GetMouseY.DESC; + public static FunctionDescriptor DrawSphere$descriptor() { + return DrawSphere.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetMouseY() + * void DrawSphere(Vector3 centerPos, float radius, Color color) * } */ - public static MethodHandle GetMouseY$handle() { - return GetMouseY.HANDLE; + public static MethodHandle DrawSphere$handle() { + return DrawSphere.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetMouseY() + * void DrawSphere(Vector3 centerPos, float radius, Color color) * } */ - public static MemorySegment GetMouseY$address() { - return GetMouseY.ADDR; + public static MemorySegment DrawSphere$address() { + return DrawSphere.ADDR; } /** * {@snippet lang=c : - * int GetMouseY() + * void DrawSphere(Vector3 centerPos, float radius, Color color) * } */ - public static int GetMouseY() { - var mh$ = GetMouseY.HANDLE; + public static void DrawSphere(MemorySegment centerPos, float radius, MemorySegment color) { + var mh$ = DrawSphere.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMouseY"); + traceDowncall("DrawSphere", centerPos, radius, color); } - return (int)mh$.invokeExact(); + mh$.invokeExact(centerPos, radius, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMousePosition { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class DrawSphereEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMousePosition"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSphereEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16533,55 +29224,60 @@ private static class GetMousePosition { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetMousePosition() + * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static FunctionDescriptor GetMousePosition$descriptor() { - return GetMousePosition.DESC; + public static FunctionDescriptor DrawSphereEx$descriptor() { + return DrawSphereEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetMousePosition() + * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static MethodHandle GetMousePosition$handle() { - return GetMousePosition.HANDLE; + public static MethodHandle DrawSphereEx$handle() { + return DrawSphereEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetMousePosition() + * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static MemorySegment GetMousePosition$address() { - return GetMousePosition.ADDR; + public static MemorySegment DrawSphereEx$address() { + return DrawSphereEx.ADDR; } /** * {@snippet lang=c : - * Vector2 GetMousePosition() + * void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static MemorySegment GetMousePosition(SegmentAllocator allocator) { - var mh$ = GetMousePosition.HANDLE; + public static void DrawSphereEx(MemorySegment centerPos, float radius, int rings, int slices, MemorySegment color) { + var mh$ = DrawSphereEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMousePosition", allocator); + traceDowncall("DrawSphereEx", centerPos, radius, rings, slices, color); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(centerPos, radius, rings, slices, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMouseDelta { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class DrawSphereWires { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseDelta"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawSphereWires"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16589,57 +29285,61 @@ private static class GetMouseDelta { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetMouseDelta() + * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static FunctionDescriptor GetMouseDelta$descriptor() { - return GetMouseDelta.DESC; + public static FunctionDescriptor DrawSphereWires$descriptor() { + return DrawSphereWires.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetMouseDelta() + * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static MethodHandle GetMouseDelta$handle() { - return GetMouseDelta.HANDLE; + public static MethodHandle DrawSphereWires$handle() { + return DrawSphereWires.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetMouseDelta() + * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static MemorySegment GetMouseDelta$address() { - return GetMouseDelta.ADDR; + public static MemorySegment DrawSphereWires$address() { + return DrawSphereWires.ADDR; } /** * {@snippet lang=c : - * Vector2 GetMouseDelta() + * void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color) * } */ - public static MemorySegment GetMouseDelta(SegmentAllocator allocator) { - var mh$ = GetMouseDelta.HANDLE; + public static void DrawSphereWires(MemorySegment centerPos, float radius, int rings, int slices, MemorySegment color) { + var mh$ = DrawSphereWires.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMouseDelta", allocator); + traceDowncall("DrawSphereWires", centerPos, radius, rings, slices, color); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(centerPos, radius, rings, slices, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetMousePosition { + private static class DrawCylinder { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_FLOAT, raylib.C_INT, - raylib.C_INT + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetMousePosition"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinder"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16647,57 +29347,61 @@ private static class SetMousePosition { /** * Function descriptor for: * {@snippet lang=c : - * void SetMousePosition(int x, int y) + * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static FunctionDescriptor SetMousePosition$descriptor() { - return SetMousePosition.DESC; + public static FunctionDescriptor DrawCylinder$descriptor() { + return DrawCylinder.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetMousePosition(int x, int y) + * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static MethodHandle SetMousePosition$handle() { - return SetMousePosition.HANDLE; + public static MethodHandle DrawCylinder$handle() { + return DrawCylinder.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetMousePosition(int x, int y) + * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static MemorySegment SetMousePosition$address() { - return SetMousePosition.ADDR; + public static MemorySegment DrawCylinder$address() { + return DrawCylinder.ADDR; } /** * {@snippet lang=c : - * void SetMousePosition(int x, int y) + * void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static void SetMousePosition(int x, int y) { - var mh$ = SetMousePosition.HANDLE; + public static void DrawCylinder(MemorySegment position, float radiusTop, float radiusBottom, float height, int slices, MemorySegment color) { + var mh$ = DrawCylinder.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetMousePosition", x, y); + traceDowncall("DrawCylinder", position, radiusTop, radiusBottom, height, slices, color); } - mh$.invokeExact(x, y); + mh$.invokeExact(position, radiusTop, radiusBottom, height, slices, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetMouseOffset { + private static class DrawCylinderEx { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, raylib.C_INT, - raylib.C_INT + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetMouseOffset"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinderEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16705,57 +29409,61 @@ private static class SetMouseOffset { /** * Function descriptor for: * {@snippet lang=c : - * void SetMouseOffset(int offsetX, int offsetY) + * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static FunctionDescriptor SetMouseOffset$descriptor() { - return SetMouseOffset.DESC; + public static FunctionDescriptor DrawCylinderEx$descriptor() { + return DrawCylinderEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetMouseOffset(int offsetX, int offsetY) + * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static MethodHandle SetMouseOffset$handle() { - return SetMouseOffset.HANDLE; + public static MethodHandle DrawCylinderEx$handle() { + return DrawCylinderEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetMouseOffset(int offsetX, int offsetY) + * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static MemorySegment SetMouseOffset$address() { - return SetMouseOffset.ADDR; + public static MemorySegment DrawCylinderEx$address() { + return DrawCylinderEx.ADDR; } /** * {@snippet lang=c : - * void SetMouseOffset(int offsetX, int offsetY) + * void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static void SetMouseOffset(int offsetX, int offsetY) { - var mh$ = SetMouseOffset.HANDLE; + public static void DrawCylinderEx(MemorySegment startPos, MemorySegment endPos, float startRadius, float endRadius, int sides, MemorySegment color) { + var mh$ = DrawCylinderEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetMouseOffset", offsetX, offsetY); + traceDowncall("DrawCylinderEx", startPos, endPos, startRadius, endRadius, sides, color); } - mh$.invokeExact(offsetX, offsetY); + mh$.invokeExact(startPos, endPos, startRadius, endRadius, sides, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetMouseScale { + private static class DrawCylinderWires { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + raylib.C_FLOAT, raylib.C_FLOAT, - raylib.C_FLOAT + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetMouseScale"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinderWires"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16763,55 +29471,61 @@ private static class SetMouseScale { /** * Function descriptor for: * {@snippet lang=c : - * void SetMouseScale(float scaleX, float scaleY) + * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static FunctionDescriptor SetMouseScale$descriptor() { - return SetMouseScale.DESC; + public static FunctionDescriptor DrawCylinderWires$descriptor() { + return DrawCylinderWires.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetMouseScale(float scaleX, float scaleY) + * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static MethodHandle SetMouseScale$handle() { - return SetMouseScale.HANDLE; + public static MethodHandle DrawCylinderWires$handle() { + return DrawCylinderWires.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetMouseScale(float scaleX, float scaleY) + * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static MemorySegment SetMouseScale$address() { - return SetMouseScale.ADDR; + public static MemorySegment DrawCylinderWires$address() { + return DrawCylinderWires.ADDR; } /** * {@snippet lang=c : - * void SetMouseScale(float scaleX, float scaleY) + * void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int slices, Color color) * } */ - public static void SetMouseScale(float scaleX, float scaleY) { - var mh$ = SetMouseScale.HANDLE; + public static void DrawCylinderWires(MemorySegment position, float radiusTop, float radiusBottom, float height, int slices, MemorySegment color) { + var mh$ = DrawCylinderWires.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetMouseScale", scaleX, scaleY); + traceDowncall("DrawCylinderWires", position, radiusTop, radiusBottom, height, slices, color); } - mh$.invokeExact(scaleX, scaleY); + mh$.invokeExact(position, radiusTop, radiusBottom, height, slices, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMouseWheelMove { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); + private static class DrawCylinderWiresEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_FLOAT, + raylib.C_INT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseWheelMove"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCylinderWiresEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16819,55 +29533,61 @@ private static class GetMouseWheelMove { /** * Function descriptor for: * {@snippet lang=c : - * float GetMouseWheelMove() + * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static FunctionDescriptor GetMouseWheelMove$descriptor() { - return GetMouseWheelMove.DESC; + public static FunctionDescriptor DrawCylinderWiresEx$descriptor() { + return DrawCylinderWiresEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float GetMouseWheelMove() + * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static MethodHandle GetMouseWheelMove$handle() { - return GetMouseWheelMove.HANDLE; + public static MethodHandle DrawCylinderWiresEx$handle() { + return DrawCylinderWiresEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * float GetMouseWheelMove() + * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static MemorySegment GetMouseWheelMove$address() { - return GetMouseWheelMove.ADDR; + public static MemorySegment DrawCylinderWiresEx$address() { + return DrawCylinderWiresEx.ADDR; } /** * {@snippet lang=c : - * float GetMouseWheelMove() + * void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color) * } */ - public static float GetMouseWheelMove() { - var mh$ = GetMouseWheelMove.HANDLE; + public static void DrawCylinderWiresEx(MemorySegment startPos, MemorySegment endPos, float startRadius, float endRadius, int sides, MemorySegment color) { + var mh$ = DrawCylinderWiresEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMouseWheelMove"); + traceDowncall("DrawCylinderWiresEx", startPos, endPos, startRadius, endRadius, sides, color); } - return (float)mh$.invokeExact(); + mh$.invokeExact(startPos, endPos, startRadius, endRadius, sides, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetMouseWheelMoveV { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class DrawCapsule { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_INT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetMouseWheelMoveV"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCapsule"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16875,56 +29595,61 @@ private static class GetMouseWheelMoveV { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetMouseWheelMoveV() + * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static FunctionDescriptor GetMouseWheelMoveV$descriptor() { - return GetMouseWheelMoveV.DESC; + public static FunctionDescriptor DrawCapsule$descriptor() { + return DrawCapsule.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetMouseWheelMoveV() + * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static MethodHandle GetMouseWheelMoveV$handle() { - return GetMouseWheelMoveV.HANDLE; + public static MethodHandle DrawCapsule$handle() { + return DrawCapsule.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetMouseWheelMoveV() + * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static MemorySegment GetMouseWheelMoveV$address() { - return GetMouseWheelMoveV.ADDR; + public static MemorySegment DrawCapsule$address() { + return DrawCapsule.ADDR; } /** * {@snippet lang=c : - * Vector2 GetMouseWheelMoveV() + * void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static MemorySegment GetMouseWheelMoveV(SegmentAllocator allocator) { - var mh$ = GetMouseWheelMoveV.HANDLE; + public static void DrawCapsule(MemorySegment startPos, MemorySegment endPos, float radius, int slices, int rings, MemorySegment color) { + var mh$ = DrawCapsule.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetMouseWheelMoveV", allocator); + traceDowncall("DrawCapsule", startPos, endPos, radius, slices, rings, color); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(startPos, endPos, radius, slices, rings, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetMouseCursor { + private static class DrawCapsuleWires { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + raylib.C_INT, + raylib.C_INT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetMouseCursor"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawCapsuleWires"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16932,55 +29657,58 @@ private static class SetMouseCursor { /** * Function descriptor for: * {@snippet lang=c : - * void SetMouseCursor(int cursor) + * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static FunctionDescriptor SetMouseCursor$descriptor() { - return SetMouseCursor.DESC; + public static FunctionDescriptor DrawCapsuleWires$descriptor() { + return DrawCapsuleWires.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetMouseCursor(int cursor) + * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static MethodHandle SetMouseCursor$handle() { - return SetMouseCursor.HANDLE; + public static MethodHandle DrawCapsuleWires$handle() { + return DrawCapsuleWires.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetMouseCursor(int cursor) + * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static MemorySegment SetMouseCursor$address() { - return SetMouseCursor.ADDR; + public static MemorySegment DrawCapsuleWires$address() { + return DrawCapsuleWires.ADDR; } /** * {@snippet lang=c : - * void SetMouseCursor(int cursor) + * void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int slices, int rings, Color color) * } */ - public static void SetMouseCursor(int cursor) { - var mh$ = SetMouseCursor.HANDLE; + public static void DrawCapsuleWires(MemorySegment startPos, MemorySegment endPos, float radius, int slices, int rings, MemorySegment color) { + var mh$ = DrawCapsuleWires.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetMouseCursor", cursor); + traceDowncall("DrawCapsuleWires", startPos, endPos, radius, slices, rings, color); } - mh$.invokeExact(cursor); + mh$.invokeExact(startPos, endPos, radius, slices, rings, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetTouchX { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class DrawPlane { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Vector3.layout(), + Vector2.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchX"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawPlane"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -16988,55 +29716,57 @@ private static class GetTouchX { /** * Function descriptor for: * {@snippet lang=c : - * int GetTouchX() + * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) * } */ - public static FunctionDescriptor GetTouchX$descriptor() { - return GetTouchX.DESC; + public static FunctionDescriptor DrawPlane$descriptor() { + return DrawPlane.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetTouchX() + * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) * } */ - public static MethodHandle GetTouchX$handle() { - return GetTouchX.HANDLE; + public static MethodHandle DrawPlane$handle() { + return DrawPlane.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetTouchX() + * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) * } */ - public static MemorySegment GetTouchX$address() { - return GetTouchX.ADDR; + public static MemorySegment DrawPlane$address() { + return DrawPlane.ADDR; } /** * {@snippet lang=c : - * int GetTouchX() + * void DrawPlane(Vector3 centerPos, Vector2 size, Color color) * } */ - public static int GetTouchX() { - var mh$ = GetTouchX.HANDLE; + public static void DrawPlane(MemorySegment centerPos, MemorySegment size, MemorySegment color) { + var mh$ = DrawPlane.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetTouchX"); + traceDowncall("DrawPlane", centerPos, size, color); } - return (int)mh$.invokeExact(); + mh$.invokeExact(centerPos, size, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetTouchY { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + private static class DrawRay { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Ray.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchY"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawRay"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17044,57 +29774,57 @@ private static class GetTouchY { /** * Function descriptor for: * {@snippet lang=c : - * int GetTouchY() + * void DrawRay(Ray ray, Color color) * } */ - public static FunctionDescriptor GetTouchY$descriptor() { - return GetTouchY.DESC; + public static FunctionDescriptor DrawRay$descriptor() { + return DrawRay.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetTouchY() + * void DrawRay(Ray ray, Color color) * } */ - public static MethodHandle GetTouchY$handle() { - return GetTouchY.HANDLE; + public static MethodHandle DrawRay$handle() { + return DrawRay.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetTouchY() + * void DrawRay(Ray ray, Color color) * } */ - public static MemorySegment GetTouchY$address() { - return GetTouchY.ADDR; + public static MemorySegment DrawRay$address() { + return DrawRay.ADDR; } /** * {@snippet lang=c : - * int GetTouchY() + * void DrawRay(Ray ray, Color color) * } */ - public static int GetTouchY() { - var mh$ = GetTouchY.HANDLE; + public static void DrawRay(MemorySegment ray, MemorySegment color) { + var mh$ = DrawRay.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetTouchY"); + traceDowncall("DrawRay", ray, color); } - return (int)mh$.invokeExact(); + mh$.invokeExact(ray, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetTouchPosition { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - raylib.C_INT + private static class DrawGrid { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_INT, + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchPosition"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawGrid"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17102,57 +29832,57 @@ private static class GetTouchPosition { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetTouchPosition(int index) + * void DrawGrid(int slices, float spacing) * } */ - public static FunctionDescriptor GetTouchPosition$descriptor() { - return GetTouchPosition.DESC; + public static FunctionDescriptor DrawGrid$descriptor() { + return DrawGrid.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetTouchPosition(int index) + * void DrawGrid(int slices, float spacing) * } */ - public static MethodHandle GetTouchPosition$handle() { - return GetTouchPosition.HANDLE; + public static MethodHandle DrawGrid$handle() { + return DrawGrid.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetTouchPosition(int index) + * void DrawGrid(int slices, float spacing) * } */ - public static MemorySegment GetTouchPosition$address() { - return GetTouchPosition.ADDR; + public static MemorySegment DrawGrid$address() { + return DrawGrid.ADDR; } /** * {@snippet lang=c : - * Vector2 GetTouchPosition(int index) + * void DrawGrid(int slices, float spacing) * } */ - public static MemorySegment GetTouchPosition(SegmentAllocator allocator, int index) { - var mh$ = GetTouchPosition.HANDLE; + public static void DrawGrid(int slices, float spacing) { + var mh$ = DrawGrid.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetTouchPosition", allocator, index); + traceDowncall("DrawGrid", slices, spacing); } - return (MemorySegment)mh$.invokeExact(allocator, index); + mh$.invokeExact(slices, spacing); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetTouchPointId { + private static class LoadModel { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT, - raylib.C_INT + Model.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchPointId"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadModel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17160,55 +29890,57 @@ private static class GetTouchPointId { /** * Function descriptor for: * {@snippet lang=c : - * int GetTouchPointId(int index) + * Model LoadModel(const char *fileName) * } */ - public static FunctionDescriptor GetTouchPointId$descriptor() { - return GetTouchPointId.DESC; + public static FunctionDescriptor LoadModel$descriptor() { + return LoadModel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetTouchPointId(int index) + * Model LoadModel(const char *fileName) * } */ - public static MethodHandle GetTouchPointId$handle() { - return GetTouchPointId.HANDLE; + public static MethodHandle LoadModel$handle() { + return LoadModel.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetTouchPointId(int index) + * Model LoadModel(const char *fileName) * } */ - public static MemorySegment GetTouchPointId$address() { - return GetTouchPointId.ADDR; + public static MemorySegment LoadModel$address() { + return LoadModel.ADDR; } /** * {@snippet lang=c : - * int GetTouchPointId(int index) + * Model LoadModel(const char *fileName) * } */ - public static int GetTouchPointId(int index) { - var mh$ = GetTouchPointId.HANDLE; + public static MemorySegment LoadModel(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadModel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetTouchPointId", index); + traceDowncall("LoadModel", allocator, fileName); } - return (int)mh$.invokeExact(index); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetTouchPointCount { + private static class LoadModelFromMesh { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + Model.layout(), + Mesh.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetTouchPointCount"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadModelFromMesh"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17216,56 +29948,57 @@ private static class GetTouchPointCount { /** * Function descriptor for: * {@snippet lang=c : - * int GetTouchPointCount() + * Model LoadModelFromMesh(Mesh mesh) * } */ - public static FunctionDescriptor GetTouchPointCount$descriptor() { - return GetTouchPointCount.DESC; + public static FunctionDescriptor LoadModelFromMesh$descriptor() { + return LoadModelFromMesh.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetTouchPointCount() + * Model LoadModelFromMesh(Mesh mesh) * } */ - public static MethodHandle GetTouchPointCount$handle() { - return GetTouchPointCount.HANDLE; + public static MethodHandle LoadModelFromMesh$handle() { + return LoadModelFromMesh.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetTouchPointCount() + * Model LoadModelFromMesh(Mesh mesh) * } */ - public static MemorySegment GetTouchPointCount$address() { - return GetTouchPointCount.ADDR; + public static MemorySegment LoadModelFromMesh$address() { + return LoadModelFromMesh.ADDR; } /** * {@snippet lang=c : - * int GetTouchPointCount() + * Model LoadModelFromMesh(Mesh mesh) * } */ - public static int GetTouchPointCount() { - var mh$ = GetTouchPointCount.HANDLE; + public static MemorySegment LoadModelFromMesh(SegmentAllocator allocator, MemorySegment mesh) { + var mh$ = LoadModelFromMesh.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetTouchPointCount"); + traceDowncall("LoadModelFromMesh", allocator, mesh); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, mesh); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetGesturesEnabled { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT + private static class IsModelReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Model.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetGesturesEnabled"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsModelReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17273,57 +30006,56 @@ private static class SetGesturesEnabled { /** * Function descriptor for: * {@snippet lang=c : - * void SetGesturesEnabled(unsigned int flags) + * bool IsModelReady(Model model) * } */ - public static FunctionDescriptor SetGesturesEnabled$descriptor() { - return SetGesturesEnabled.DESC; + public static FunctionDescriptor IsModelReady$descriptor() { + return IsModelReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetGesturesEnabled(unsigned int flags) + * bool IsModelReady(Model model) * } */ - public static MethodHandle SetGesturesEnabled$handle() { - return SetGesturesEnabled.HANDLE; + public static MethodHandle IsModelReady$handle() { + return IsModelReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetGesturesEnabled(unsigned int flags) + * bool IsModelReady(Model model) * } */ - public static MemorySegment SetGesturesEnabled$address() { - return SetGesturesEnabled.ADDR; + public static MemorySegment IsModelReady$address() { + return IsModelReady.ADDR; } /** * {@snippet lang=c : - * void SetGesturesEnabled(unsigned int flags) + * bool IsModelReady(Model model) * } */ - public static void SetGesturesEnabled(int flags) { - var mh$ = SetGesturesEnabled.HANDLE; + public static boolean IsModelReady(MemorySegment model) { + var mh$ = IsModelReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetGesturesEnabled", flags); + traceDowncall("IsModelReady", model); } - mh$.invokeExact(flags); + return (boolean)mh$.invokeExact(model); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsGestureDetected { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - raylib.C_INT + private static class UnloadModel { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Model.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsGestureDetected"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadModel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17331,55 +30063,57 @@ private static class IsGestureDetected { /** * Function descriptor for: * {@snippet lang=c : - * bool IsGestureDetected(unsigned int gesture) + * void UnloadModel(Model model) * } */ - public static FunctionDescriptor IsGestureDetected$descriptor() { - return IsGestureDetected.DESC; + public static FunctionDescriptor UnloadModel$descriptor() { + return UnloadModel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsGestureDetected(unsigned int gesture) + * void UnloadModel(Model model) * } */ - public static MethodHandle IsGestureDetected$handle() { - return IsGestureDetected.HANDLE; + public static MethodHandle UnloadModel$handle() { + return UnloadModel.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsGestureDetected(unsigned int gesture) + * void UnloadModel(Model model) * } */ - public static MemorySegment IsGestureDetected$address() { - return IsGestureDetected.ADDR; + public static MemorySegment UnloadModel$address() { + return UnloadModel.ADDR; } /** * {@snippet lang=c : - * bool IsGestureDetected(unsigned int gesture) + * void UnloadModel(Model model) * } */ - public static boolean IsGestureDetected(int gesture) { - var mh$ = IsGestureDetected.HANDLE; + public static void UnloadModel(MemorySegment model) { + var mh$ = UnloadModel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsGestureDetected", gesture); + traceDowncall("UnloadModel", model); } - return (boolean)mh$.invokeExact(gesture); + mh$.invokeExact(model); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGestureDetected { + private static class GetModelBoundingBox { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_INT ); + BoundingBox.layout(), + Model.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureDetected"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetModelBoundingBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17387,55 +30121,59 @@ private static class GetGestureDetected { /** * Function descriptor for: * {@snippet lang=c : - * int GetGestureDetected() + * BoundingBox GetModelBoundingBox(Model model) * } */ - public static FunctionDescriptor GetGestureDetected$descriptor() { - return GetGestureDetected.DESC; + public static FunctionDescriptor GetModelBoundingBox$descriptor() { + return GetModelBoundingBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * int GetGestureDetected() + * BoundingBox GetModelBoundingBox(Model model) * } */ - public static MethodHandle GetGestureDetected$handle() { - return GetGestureDetected.HANDLE; + public static MethodHandle GetModelBoundingBox$handle() { + return GetModelBoundingBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * int GetGestureDetected() + * BoundingBox GetModelBoundingBox(Model model) * } */ - public static MemorySegment GetGestureDetected$address() { - return GetGestureDetected.ADDR; + public static MemorySegment GetModelBoundingBox$address() { + return GetModelBoundingBox.ADDR; } /** * {@snippet lang=c : - * int GetGestureDetected() + * BoundingBox GetModelBoundingBox(Model model) * } - */ - public static int GetGestureDetected() { - var mh$ = GetGestureDetected.HANDLE; + */ + public static MemorySegment GetModelBoundingBox(SegmentAllocator allocator, MemorySegment model) { + var mh$ = GetModelBoundingBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGestureDetected"); + traceDowncall("GetModelBoundingBox", allocator, model); } - return (int)mh$.invokeExact(); + return (MemorySegment)mh$.invokeExact(allocator, model); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGestureHoldDuration { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); + private static class DrawModel { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Model.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureHoldDuration"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawModel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17443,55 +30181,61 @@ private static class GetGestureHoldDuration { /** * Function descriptor for: * {@snippet lang=c : - * float GetGestureHoldDuration() + * void DrawModel(Model model, Vector3 position, float scale, Color tint) * } */ - public static FunctionDescriptor GetGestureHoldDuration$descriptor() { - return GetGestureHoldDuration.DESC; + public static FunctionDescriptor DrawModel$descriptor() { + return DrawModel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float GetGestureHoldDuration() + * void DrawModel(Model model, Vector3 position, float scale, Color tint) * } */ - public static MethodHandle GetGestureHoldDuration$handle() { - return GetGestureHoldDuration.HANDLE; + public static MethodHandle DrawModel$handle() { + return DrawModel.HANDLE; } /** * Address for: * {@snippet lang=c : - * float GetGestureHoldDuration() + * void DrawModel(Model model, Vector3 position, float scale, Color tint) * } */ - public static MemorySegment GetGestureHoldDuration$address() { - return GetGestureHoldDuration.ADDR; + public static MemorySegment DrawModel$address() { + return DrawModel.ADDR; } /** * {@snippet lang=c : - * float GetGestureHoldDuration() + * void DrawModel(Model model, Vector3 position, float scale, Color tint) * } */ - public static float GetGestureHoldDuration() { - var mh$ = GetGestureHoldDuration.HANDLE; + public static void DrawModel(MemorySegment model, MemorySegment position, float scale, MemorySegment tint) { + var mh$ = DrawModel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGestureHoldDuration"); + traceDowncall("DrawModel", model, position, scale, tint); } - return (float)mh$.invokeExact(); + mh$.invokeExact(model, position, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGestureDragVector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class DrawModelEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Model.layout(), + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Vector3.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureDragVector"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawModelEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17499,55 +30243,59 @@ private static class GetGestureDragVector { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetGestureDragVector() + * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static FunctionDescriptor GetGestureDragVector$descriptor() { - return GetGestureDragVector.DESC; + public static FunctionDescriptor DrawModelEx$descriptor() { + return DrawModelEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetGestureDragVector() + * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MethodHandle GetGestureDragVector$handle() { - return GetGestureDragVector.HANDLE; + public static MethodHandle DrawModelEx$handle() { + return DrawModelEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetGestureDragVector() + * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MemorySegment GetGestureDragVector$address() { - return GetGestureDragVector.ADDR; + public static MemorySegment DrawModelEx$address() { + return DrawModelEx.ADDR; } /** * {@snippet lang=c : - * Vector2 GetGestureDragVector() + * void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MemorySegment GetGestureDragVector(SegmentAllocator allocator) { - var mh$ = GetGestureDragVector.HANDLE; + public static void DrawModelEx(MemorySegment model, MemorySegment position, MemorySegment rotationAxis, float rotationAngle, MemorySegment scale, MemorySegment tint) { + var mh$ = DrawModelEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGestureDragVector", allocator); + traceDowncall("DrawModelEx", model, position, rotationAxis, rotationAngle, scale, tint); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(model, position, rotationAxis, rotationAngle, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGestureDragAngle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); + private static class DrawModelWires { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Model.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGestureDragAngle"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawModelWires"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17555,55 +30303,61 @@ private static class GetGestureDragAngle { /** * Function descriptor for: * {@snippet lang=c : - * float GetGestureDragAngle() + * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) * } */ - public static FunctionDescriptor GetGestureDragAngle$descriptor() { - return GetGestureDragAngle.DESC; + public static FunctionDescriptor DrawModelWires$descriptor() { + return DrawModelWires.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float GetGestureDragAngle() + * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) * } */ - public static MethodHandle GetGestureDragAngle$handle() { - return GetGestureDragAngle.HANDLE; + public static MethodHandle DrawModelWires$handle() { + return DrawModelWires.HANDLE; } /** * Address for: * {@snippet lang=c : - * float GetGestureDragAngle() + * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) * } */ - public static MemorySegment GetGestureDragAngle$address() { - return GetGestureDragAngle.ADDR; + public static MemorySegment DrawModelWires$address() { + return DrawModelWires.ADDR; } /** * {@snippet lang=c : - * float GetGestureDragAngle() + * void DrawModelWires(Model model, Vector3 position, float scale, Color tint) * } */ - public static float GetGestureDragAngle() { - var mh$ = GetGestureDragAngle.HANDLE; + public static void DrawModelWires(MemorySegment model, MemorySegment position, float scale, MemorySegment tint) { + var mh$ = DrawModelWires.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGestureDragAngle"); + traceDowncall("DrawModelWires", model, position, scale, tint); } - return (float)mh$.invokeExact(); + mh$.invokeExact(model, position, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGesturePinchVector { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout() ); + private static class DrawModelWiresEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Model.layout(), + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Vector3.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGesturePinchVector"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawModelWiresEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17611,55 +30365,57 @@ private static class GetGesturePinchVector { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetGesturePinchVector() + * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static FunctionDescriptor GetGesturePinchVector$descriptor() { - return GetGesturePinchVector.DESC; + public static FunctionDescriptor DrawModelWiresEx$descriptor() { + return DrawModelWiresEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetGesturePinchVector() + * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MethodHandle GetGesturePinchVector$handle() { - return GetGesturePinchVector.HANDLE; + public static MethodHandle DrawModelWiresEx$handle() { + return DrawModelWiresEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetGesturePinchVector() + * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MemorySegment GetGesturePinchVector$address() { - return GetGesturePinchVector.ADDR; + public static MemorySegment DrawModelWiresEx$address() { + return DrawModelWiresEx.ADDR; } /** * {@snippet lang=c : - * Vector2 GetGesturePinchVector() + * void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MemorySegment GetGesturePinchVector(SegmentAllocator allocator) { - var mh$ = GetGesturePinchVector.HANDLE; + public static void DrawModelWiresEx(MemorySegment model, MemorySegment position, MemorySegment rotationAxis, float rotationAngle, MemorySegment scale, MemorySegment tint) { + var mh$ = DrawModelWiresEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGesturePinchVector", allocator); + traceDowncall("DrawModelWiresEx", model, position, rotationAxis, rotationAngle, scale, tint); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(model, position, rotationAxis, rotationAngle, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetGesturePinchAngle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_FLOAT ); + private static class DrawBoundingBox { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + BoundingBox.layout(), + Color.layout() + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetGesturePinchAngle"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawBoundingBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17667,57 +30423,60 @@ private static class GetGesturePinchAngle { /** * Function descriptor for: * {@snippet lang=c : - * float GetGesturePinchAngle() + * void DrawBoundingBox(BoundingBox box, Color color) * } */ - public static FunctionDescriptor GetGesturePinchAngle$descriptor() { - return GetGesturePinchAngle.DESC; + public static FunctionDescriptor DrawBoundingBox$descriptor() { + return DrawBoundingBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * float GetGesturePinchAngle() + * void DrawBoundingBox(BoundingBox box, Color color) * } */ - public static MethodHandle GetGesturePinchAngle$handle() { - return GetGesturePinchAngle.HANDLE; + public static MethodHandle DrawBoundingBox$handle() { + return DrawBoundingBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * float GetGesturePinchAngle() + * void DrawBoundingBox(BoundingBox box, Color color) * } */ - public static MemorySegment GetGesturePinchAngle$address() { - return GetGesturePinchAngle.ADDR; + public static MemorySegment DrawBoundingBox$address() { + return DrawBoundingBox.ADDR; } /** * {@snippet lang=c : - * float GetGesturePinchAngle() + * void DrawBoundingBox(BoundingBox box, Color color) * } */ - public static float GetGesturePinchAngle() { - var mh$ = GetGesturePinchAngle.HANDLE; + public static void DrawBoundingBox(MemorySegment box, MemorySegment color) { + var mh$ = DrawBoundingBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetGesturePinchAngle"); + traceDowncall("DrawBoundingBox", box, color); } - return (float)mh$.invokeExact(); + mh$.invokeExact(box, color); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UpdateCamera { + private static class DrawBillboard { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT + Camera3D.layout(), + Texture.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateCamera"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawBillboard"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17725,59 +30484,61 @@ private static class UpdateCamera { /** * Function descriptor for: * {@snippet lang=c : - * void UpdateCamera(Camera *camera, int mode) + * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) * } */ - public static FunctionDescriptor UpdateCamera$descriptor() { - return UpdateCamera.DESC; + public static FunctionDescriptor DrawBillboard$descriptor() { + return DrawBillboard.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UpdateCamera(Camera *camera, int mode) + * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) * } */ - public static MethodHandle UpdateCamera$handle() { - return UpdateCamera.HANDLE; + public static MethodHandle DrawBillboard$handle() { + return DrawBillboard.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UpdateCamera(Camera *camera, int mode) + * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) * } */ - public static MemorySegment UpdateCamera$address() { - return UpdateCamera.ADDR; + public static MemorySegment DrawBillboard$address() { + return DrawBillboard.ADDR; } /** * {@snippet lang=c : - * void UpdateCamera(Camera *camera, int mode) + * void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float size, Color tint) * } */ - public static void UpdateCamera(MemorySegment camera, int mode) { - var mh$ = UpdateCamera.HANDLE; + public static void DrawBillboard(MemorySegment camera, MemorySegment texture, MemorySegment position, float size, MemorySegment tint) { + var mh$ = DrawBillboard.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UpdateCamera", camera, mode); + traceDowncall("DrawBillboard", camera, texture, position, size, tint); } - mh$.invokeExact(camera, mode); + mh$.invokeExact(camera, texture, position, size, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UpdateCameraPro { + private static class DrawBillboardRec { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Vector3.layout(), + Camera3D.layout(), + Texture.layout(), + Rectangle.layout(), Vector3.layout(), - raylib.C_FLOAT + Vector2.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UpdateCameraPro"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawBillboardRec"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17785,57 +30546,64 @@ private static class UpdateCameraPro { /** * Function descriptor for: * {@snippet lang=c : - * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) * } */ - public static FunctionDescriptor UpdateCameraPro$descriptor() { - return UpdateCameraPro.DESC; + public static FunctionDescriptor DrawBillboardRec$descriptor() { + return DrawBillboardRec.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) * } */ - public static MethodHandle UpdateCameraPro$handle() { - return UpdateCameraPro.HANDLE; + public static MethodHandle DrawBillboardRec$handle() { + return DrawBillboardRec.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) * } */ - public static MemorySegment UpdateCameraPro$address() { - return UpdateCameraPro.ADDR; + public static MemorySegment DrawBillboardRec$address() { + return DrawBillboardRec.ADDR; } /** * {@snippet lang=c : - * void UpdateCameraPro(Camera *camera, Vector3 movement, Vector3 rotation, float zoom) + * void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector2 size, Color tint) * } */ - public static void UpdateCameraPro(MemorySegment camera, MemorySegment movement, MemorySegment rotation, float zoom) { - var mh$ = UpdateCameraPro.HANDLE; + public static void DrawBillboardRec(MemorySegment camera, MemorySegment texture, MemorySegment source, MemorySegment position, MemorySegment size, MemorySegment tint) { + var mh$ = DrawBillboardRec.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UpdateCameraPro", camera, movement, rotation, zoom); + traceDowncall("DrawBillboardRec", camera, texture, source, position, size, tint); } - mh$.invokeExact(camera, movement, rotation, zoom); + mh$.invokeExact(camera, texture, source, position, size, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class SetShapesTexture { + private static class DrawBillboardPro { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Camera3D.layout(), Texture.layout(), - Rectangle.layout() + Rectangle.layout(), + Vector3.layout(), + Vector3.layout(), + Vector2.layout(), + Vector2.layout(), + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("SetShapesTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawBillboardPro"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17843,55 +30611,57 @@ private static class SetShapesTexture { /** * Function descriptor for: * {@snippet lang=c : - * void SetShapesTexture(Texture2D texture, Rectangle source) + * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) * } */ - public static FunctionDescriptor SetShapesTexture$descriptor() { - return SetShapesTexture.DESC; + public static FunctionDescriptor DrawBillboardPro$descriptor() { + return DrawBillboardPro.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void SetShapesTexture(Texture2D texture, Rectangle source) + * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) * } */ - public static MethodHandle SetShapesTexture$handle() { - return SetShapesTexture.HANDLE; + public static MethodHandle DrawBillboardPro$handle() { + return DrawBillboardPro.HANDLE; } /** * Address for: * {@snippet lang=c : - * void SetShapesTexture(Texture2D texture, Rectangle source) + * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) * } */ - public static MemorySegment SetShapesTexture$address() { - return SetShapesTexture.ADDR; + public static MemorySegment DrawBillboardPro$address() { + return DrawBillboardPro.ADDR; } /** * {@snippet lang=c : - * void SetShapesTexture(Texture2D texture, Rectangle source) + * void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle source, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint) * } */ - public static void SetShapesTexture(MemorySegment texture, MemorySegment source) { - var mh$ = SetShapesTexture.HANDLE; + public static void DrawBillboardPro(MemorySegment camera, MemorySegment texture, MemorySegment source, MemorySegment position, MemorySegment up, MemorySegment size, MemorySegment origin, float rotation, MemorySegment tint) { + var mh$ = DrawBillboardPro.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("SetShapesTexture", texture, source); + traceDowncall("DrawBillboardPro", camera, texture, source, position, up, size, origin, rotation, tint); } - mh$.invokeExact(texture, source); + mh$.invokeExact(camera, texture, source, position, up, size, origin, rotation, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetShapesTexture { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Texture.layout() ); + private static class UploadMesh { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, + raylib.C_BOOL + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetShapesTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("UploadMesh"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17899,55 +30669,60 @@ private static class GetShapesTexture { /** * Function descriptor for: * {@snippet lang=c : - * Texture2D GetShapesTexture() + * void UploadMesh(Mesh *mesh, bool dynamic) * } */ - public static FunctionDescriptor GetShapesTexture$descriptor() { - return GetShapesTexture.DESC; + public static FunctionDescriptor UploadMesh$descriptor() { + return UploadMesh.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Texture2D GetShapesTexture() + * void UploadMesh(Mesh *mesh, bool dynamic) * } */ - public static MethodHandle GetShapesTexture$handle() { - return GetShapesTexture.HANDLE; + public static MethodHandle UploadMesh$handle() { + return UploadMesh.HANDLE; } /** * Address for: * {@snippet lang=c : - * Texture2D GetShapesTexture() + * void UploadMesh(Mesh *mesh, bool dynamic) * } */ - public static MemorySegment GetShapesTexture$address() { - return GetShapesTexture.ADDR; + public static MemorySegment UploadMesh$address() { + return UploadMesh.ADDR; } /** * {@snippet lang=c : - * Texture2D GetShapesTexture() + * void UploadMesh(Mesh *mesh, bool dynamic) * } */ - public static MemorySegment GetShapesTexture(SegmentAllocator allocator) { - var mh$ = GetShapesTexture.HANDLE; + public static void UploadMesh(MemorySegment mesh, boolean dynamic) { + var mh$ = UploadMesh.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetShapesTexture", allocator); + traceDowncall("UploadMesh", mesh, dynamic); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(mesh, dynamic); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetShapesTextureRectangle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Rectangle.layout() ); + private static class UpdateMeshBuffer { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Mesh.layout(), + raylib.C_INT, + raylib.C_POINTER, + raylib.C_INT, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetShapesTextureRectangle"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateMeshBuffer"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -17955,58 +30730,56 @@ private static class GetShapesTextureRectangle { /** * Function descriptor for: * {@snippet lang=c : - * Rectangle GetShapesTextureRectangle() + * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) * } */ - public static FunctionDescriptor GetShapesTextureRectangle$descriptor() { - return GetShapesTextureRectangle.DESC; + public static FunctionDescriptor UpdateMeshBuffer$descriptor() { + return UpdateMeshBuffer.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Rectangle GetShapesTextureRectangle() + * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) * } */ - public static MethodHandle GetShapesTextureRectangle$handle() { - return GetShapesTextureRectangle.HANDLE; + public static MethodHandle UpdateMeshBuffer$handle() { + return UpdateMeshBuffer.HANDLE; } /** * Address for: * {@snippet lang=c : - * Rectangle GetShapesTextureRectangle() + * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) * } */ - public static MemorySegment GetShapesTextureRectangle$address() { - return GetShapesTextureRectangle.ADDR; + public static MemorySegment UpdateMeshBuffer$address() { + return UpdateMeshBuffer.ADDR; } /** * {@snippet lang=c : - * Rectangle GetShapesTextureRectangle() + * void UpdateMeshBuffer(Mesh mesh, int index, const void *data, int dataSize, int offset) * } */ - public static MemorySegment GetShapesTextureRectangle(SegmentAllocator allocator) { - var mh$ = GetShapesTextureRectangle.HANDLE; + public static void UpdateMeshBuffer(MemorySegment mesh, int index, MemorySegment data, int dataSize, int offset) { + var mh$ = UpdateMeshBuffer.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetShapesTextureRectangle", allocator); + traceDowncall("UpdateMeshBuffer", mesh, index, data, dataSize, offset); } - return (MemorySegment)mh$.invokeExact(allocator); + mh$.invokeExact(mesh, index, data, dataSize, offset); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawPixel { + private static class UnloadMesh { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - Color.layout() + Mesh.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPixel"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadMesh"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18014,57 +30787,58 @@ private static class DrawPixel { /** * Function descriptor for: * {@snippet lang=c : - * void DrawPixel(int posX, int posY, Color color) + * void UnloadMesh(Mesh mesh) * } */ - public static FunctionDescriptor DrawPixel$descriptor() { - return DrawPixel.DESC; + public static FunctionDescriptor UnloadMesh$descriptor() { + return UnloadMesh.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawPixel(int posX, int posY, Color color) + * void UnloadMesh(Mesh mesh) * } */ - public static MethodHandle DrawPixel$handle() { - return DrawPixel.HANDLE; + public static MethodHandle UnloadMesh$handle() { + return UnloadMesh.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawPixel(int posX, int posY, Color color) + * void UnloadMesh(Mesh mesh) * } */ - public static MemorySegment DrawPixel$address() { - return DrawPixel.ADDR; + public static MemorySegment UnloadMesh$address() { + return UnloadMesh.ADDR; } /** * {@snippet lang=c : - * void DrawPixel(int posX, int posY, Color color) + * void UnloadMesh(Mesh mesh) * } - */ - public static void DrawPixel(int posX, int posY, MemorySegment color) { - var mh$ = DrawPixel.HANDLE; + */ + public static void UnloadMesh(MemorySegment mesh) { + var mh$ = UnloadMesh.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawPixel", posX, posY, color); + traceDowncall("UnloadMesh", mesh); } - mh$.invokeExact(posX, posY, color); + mh$.invokeExact(mesh); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawPixelV { + private static class DrawMesh { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Color.layout() + Mesh.layout(), + Material.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPixelV"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawMesh"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18072,60 +30846,59 @@ private static class DrawPixelV { /** * Function descriptor for: * {@snippet lang=c : - * void DrawPixelV(Vector2 position, Color color) + * void DrawMesh(Mesh mesh, Material material, Matrix transform) * } */ - public static FunctionDescriptor DrawPixelV$descriptor() { - return DrawPixelV.DESC; + public static FunctionDescriptor DrawMesh$descriptor() { + return DrawMesh.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawPixelV(Vector2 position, Color color) + * void DrawMesh(Mesh mesh, Material material, Matrix transform) * } */ - public static MethodHandle DrawPixelV$handle() { - return DrawPixelV.HANDLE; + public static MethodHandle DrawMesh$handle() { + return DrawMesh.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawPixelV(Vector2 position, Color color) + * void DrawMesh(Mesh mesh, Material material, Matrix transform) * } */ - public static MemorySegment DrawPixelV$address() { - return DrawPixelV.ADDR; + public static MemorySegment DrawMesh$address() { + return DrawMesh.ADDR; } /** * {@snippet lang=c : - * void DrawPixelV(Vector2 position, Color color) + * void DrawMesh(Mesh mesh, Material material, Matrix transform) * } */ - public static void DrawPixelV(MemorySegment position, MemorySegment color) { - var mh$ = DrawPixelV.HANDLE; + public static void DrawMesh(MemorySegment mesh, MemorySegment material, MemorySegment transform) { + var mh$ = DrawMesh.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawPixelV", position, color); + traceDowncall("DrawMesh", mesh, material, transform); } - mh$.invokeExact(position, color); + mh$.invokeExact(mesh, material, transform); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawLine { + private static class DrawMeshInstanced { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() + Mesh.layout(), + Material.layout(), + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawLine"); + public static final MemorySegment ADDR = raylib.findOrThrow("DrawMeshInstanced"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18133,58 +30906,57 @@ private static class DrawLine { /** * Function descriptor for: * {@snippet lang=c : - * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) * } */ - public static FunctionDescriptor DrawLine$descriptor() { - return DrawLine.DESC; + public static FunctionDescriptor DrawMeshInstanced$descriptor() { + return DrawMeshInstanced.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) * } */ - public static MethodHandle DrawLine$handle() { - return DrawLine.HANDLE; + public static MethodHandle DrawMeshInstanced$handle() { + return DrawMeshInstanced.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) * } */ - public static MemorySegment DrawLine$address() { - return DrawLine.ADDR; + public static MemorySegment DrawMeshInstanced$address() { + return DrawMeshInstanced.ADDR; } /** * {@snippet lang=c : - * void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color) + * void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, int instances) * } */ - public static void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, MemorySegment color) { - var mh$ = DrawLine.HANDLE; + public static void DrawMeshInstanced(MemorySegment mesh, MemorySegment material, MemorySegment transforms, int instances) { + var mh$ = DrawMeshInstanced.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawLine", startPosX, startPosY, endPosX, endPosY, color); + traceDowncall("DrawMeshInstanced", mesh, material, transforms, instances); } - mh$.invokeExact(startPosX, startPosY, endPosX, endPosY, color); + mh$.invokeExact(mesh, material, transforms, instances); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawLineV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Color.layout() + private static class GetMeshBoundingBox { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + BoundingBox.layout(), + Mesh.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineV"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetMeshBoundingBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18192,59 +30964,56 @@ private static class DrawLineV { /** * Function descriptor for: * {@snippet lang=c : - * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * BoundingBox GetMeshBoundingBox(Mesh mesh) * } */ - public static FunctionDescriptor DrawLineV$descriptor() { - return DrawLineV.DESC; + public static FunctionDescriptor GetMeshBoundingBox$descriptor() { + return GetMeshBoundingBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * BoundingBox GetMeshBoundingBox(Mesh mesh) * } */ - public static MethodHandle DrawLineV$handle() { - return DrawLineV.HANDLE; + public static MethodHandle GetMeshBoundingBox$handle() { + return GetMeshBoundingBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * BoundingBox GetMeshBoundingBox(Mesh mesh) * } */ - public static MemorySegment DrawLineV$address() { - return DrawLineV.ADDR; + public static MemorySegment GetMeshBoundingBox$address() { + return GetMeshBoundingBox.ADDR; } /** * {@snippet lang=c : - * void DrawLineV(Vector2 startPos, Vector2 endPos, Color color) + * BoundingBox GetMeshBoundingBox(Mesh mesh) * } */ - public static void DrawLineV(MemorySegment startPos, MemorySegment endPos, MemorySegment color) { - var mh$ = DrawLineV.HANDLE; + public static MemorySegment GetMeshBoundingBox(SegmentAllocator allocator, MemorySegment mesh) { + var mh$ = GetMeshBoundingBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawLineV", startPos, endPos, color); + traceDowncall("GetMeshBoundingBox", allocator, mesh); } - mh$.invokeExact(startPos, endPos, color); + return (MemorySegment)mh$.invokeExact(allocator, mesh); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawLineEx { + private static class GenMeshTangents { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshTangents"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18252,58 +31021,58 @@ private static class DrawLineEx { /** * Function descriptor for: * {@snippet lang=c : - * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * void GenMeshTangents(Mesh *mesh) * } */ - public static FunctionDescriptor DrawLineEx$descriptor() { - return DrawLineEx.DESC; + public static FunctionDescriptor GenMeshTangents$descriptor() { + return GenMeshTangents.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * void GenMeshTangents(Mesh *mesh) * } */ - public static MethodHandle DrawLineEx$handle() { - return DrawLineEx.HANDLE; + public static MethodHandle GenMeshTangents$handle() { + return GenMeshTangents.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * void GenMeshTangents(Mesh *mesh) * } */ - public static MemorySegment DrawLineEx$address() { - return DrawLineEx.ADDR; + public static MemorySegment GenMeshTangents$address() { + return GenMeshTangents.ADDR; } /** * {@snippet lang=c : - * void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color) + * void GenMeshTangents(Mesh *mesh) * } */ - public static void DrawLineEx(MemorySegment startPos, MemorySegment endPos, float thick, MemorySegment color) { - var mh$ = DrawLineEx.HANDLE; + public static void GenMeshTangents(MemorySegment mesh) { + var mh$ = GenMeshTangents.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawLineEx", startPos, endPos, thick, color); + traceDowncall("GenMeshTangents", mesh); } - mh$.invokeExact(startPos, endPos, thick, color); + mh$.invokeExact(mesh); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawLineStrip { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - Color.layout() + private static class ExportMesh { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Mesh.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineStrip"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportMesh"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18311,59 +31080,58 @@ private static class DrawLineStrip { /** * Function descriptor for: * {@snippet lang=c : - * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * bool ExportMesh(Mesh mesh, const char *fileName) * } */ - public static FunctionDescriptor DrawLineStrip$descriptor() { - return DrawLineStrip.DESC; + public static FunctionDescriptor ExportMesh$descriptor() { + return ExportMesh.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * bool ExportMesh(Mesh mesh, const char *fileName) * } */ - public static MethodHandle DrawLineStrip$handle() { - return DrawLineStrip.HANDLE; + public static MethodHandle ExportMesh$handle() { + return ExportMesh.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * bool ExportMesh(Mesh mesh, const char *fileName) * } */ - public static MemorySegment DrawLineStrip$address() { - return DrawLineStrip.ADDR; + public static MemorySegment ExportMesh$address() { + return ExportMesh.ADDR; } /** * {@snippet lang=c : - * void DrawLineStrip(Vector2 *points, int pointCount, Color color) + * bool ExportMesh(Mesh mesh, const char *fileName) * } */ - public static void DrawLineStrip(MemorySegment points, int pointCount, MemorySegment color) { - var mh$ = DrawLineStrip.HANDLE; + public static boolean ExportMesh(MemorySegment mesh, MemorySegment fileName) { + var mh$ = ExportMesh.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawLineStrip", points, pointCount, color); + traceDowncall("ExportMesh", mesh, fileName); } - mh$.invokeExact(points, pointCount, color); + return (boolean)mh$.invokeExact(mesh, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawLineBezier { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + private static class ExportMeshAsCode { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Mesh.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawLineBezier"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportMeshAsCode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18371,59 +31139,58 @@ private static class DrawLineBezier { /** * Function descriptor for: * {@snippet lang=c : - * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * bool ExportMeshAsCode(Mesh mesh, const char *fileName) * } */ - public static FunctionDescriptor DrawLineBezier$descriptor() { - return DrawLineBezier.DESC; + public static FunctionDescriptor ExportMeshAsCode$descriptor() { + return ExportMeshAsCode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * bool ExportMeshAsCode(Mesh mesh, const char *fileName) * } */ - public static MethodHandle DrawLineBezier$handle() { - return DrawLineBezier.HANDLE; + public static MethodHandle ExportMeshAsCode$handle() { + return ExportMeshAsCode.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * bool ExportMeshAsCode(Mesh mesh, const char *fileName) * } */ - public static MemorySegment DrawLineBezier$address() { - return DrawLineBezier.ADDR; + public static MemorySegment ExportMeshAsCode$address() { + return ExportMeshAsCode.ADDR; } /** * {@snippet lang=c : - * void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color) + * bool ExportMeshAsCode(Mesh mesh, const char *fileName) * } */ - public static void DrawLineBezier(MemorySegment startPos, MemorySegment endPos, float thick, MemorySegment color) { - var mh$ = DrawLineBezier.HANDLE; + public static boolean ExportMeshAsCode(MemorySegment mesh, MemorySegment fileName) { + var mh$ = ExportMeshAsCode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawLineBezier", startPos, endPos, thick, color); + traceDowncall("ExportMeshAsCode", mesh, fileName); } - mh$.invokeExact(startPos, endPos, thick, color); + return (boolean)mh$.invokeExact(mesh, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, + private static class GenMeshPoly { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_INT, - raylib.C_FLOAT, - Color.layout() + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircle"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshPoly"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18431,61 +31198,60 @@ private static class DrawCircle { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircle(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshPoly(int sides, float radius) * } */ - public static FunctionDescriptor DrawCircle$descriptor() { - return DrawCircle.DESC; + public static FunctionDescriptor GenMeshPoly$descriptor() { + return GenMeshPoly.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircle(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshPoly(int sides, float radius) * } */ - public static MethodHandle DrawCircle$handle() { - return DrawCircle.HANDLE; + public static MethodHandle GenMeshPoly$handle() { + return GenMeshPoly.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircle(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshPoly(int sides, float radius) * } */ - public static MemorySegment DrawCircle$address() { - return DrawCircle.ADDR; + public static MemorySegment GenMeshPoly$address() { + return GenMeshPoly.ADDR; } /** * {@snippet lang=c : - * void DrawCircle(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshPoly(int sides, float radius) * } */ - public static void DrawCircle(int centerX, int centerY, float radius, MemorySegment color) { - var mh$ = DrawCircle.HANDLE; + public static MemorySegment GenMeshPoly(SegmentAllocator allocator, int sides, float radius) { + var mh$ = GenMeshPoly.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircle", centerX, centerY, radius, color); + traceDowncall("GenMeshPoly", allocator, sides, radius); } - mh$.invokeExact(centerX, centerY, radius, color); + return (MemorySegment)mh$.invokeExact(allocator, sides, radius); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircleSector { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_FLOAT, + private static class GenMeshPlane { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, raylib.C_FLOAT, raylib.C_INT, - Color.layout() + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleSector"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshPlane"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18493,61 +31259,59 @@ private static class DrawCircleSector { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshPlane(float width, float length, int resX, int resZ) * } */ - public static FunctionDescriptor DrawCircleSector$descriptor() { - return DrawCircleSector.DESC; + public static FunctionDescriptor GenMeshPlane$descriptor() { + return GenMeshPlane.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshPlane(float width, float length, int resX, int resZ) * } */ - public static MethodHandle DrawCircleSector$handle() { - return DrawCircleSector.HANDLE; + public static MethodHandle GenMeshPlane$handle() { + return GenMeshPlane.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshPlane(float width, float length, int resX, int resZ) * } */ - public static MemorySegment DrawCircleSector$address() { - return DrawCircleSector.ADDR; + public static MemorySegment GenMeshPlane$address() { + return GenMeshPlane.ADDR; } /** * {@snippet lang=c : - * void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshPlane(float width, float length, int resX, int resZ) * } */ - public static void DrawCircleSector(MemorySegment center, float radius, float startAngle, float endAngle, int segments, MemorySegment color) { - var mh$ = DrawCircleSector.HANDLE; + public static MemorySegment GenMeshPlane(SegmentAllocator allocator, float width, float length, int resX, int resZ) { + var mh$ = GenMeshPlane.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircleSector", center, radius, startAngle, endAngle, segments, color); + traceDowncall("GenMeshPlane", allocator, width, length, resX, resZ); } - mh$.invokeExact(center, radius, startAngle, endAngle, segments, color); + return (MemorySegment)mh$.invokeExact(allocator, width, length, resX, resZ); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircleSectorLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_FLOAT, + private static class GenMeshCube { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, raylib.C_FLOAT, - raylib.C_INT, - Color.layout() + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleSectorLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCube"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18555,60 +31319,59 @@ private static class DrawCircleSectorLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCube(float width, float height, float length) * } */ - public static FunctionDescriptor DrawCircleSectorLines$descriptor() { - return DrawCircleSectorLines.DESC; + public static FunctionDescriptor GenMeshCube$descriptor() { + return GenMeshCube.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCube(float width, float height, float length) * } */ - public static MethodHandle DrawCircleSectorLines$handle() { - return DrawCircleSectorLines.HANDLE; + public static MethodHandle GenMeshCube$handle() { + return GenMeshCube.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCube(float width, float height, float length) * } */ - public static MemorySegment DrawCircleSectorLines$address() { - return DrawCircleSectorLines.ADDR; + public static MemorySegment GenMeshCube$address() { + return GenMeshCube.ADDR; } /** * {@snippet lang=c : - * void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCube(float width, float height, float length) * } */ - public static void DrawCircleSectorLines(MemorySegment center, float radius, float startAngle, float endAngle, int segments, MemorySegment color) { - var mh$ = DrawCircleSectorLines.HANDLE; + public static MemorySegment GenMeshCube(SegmentAllocator allocator, float width, float height, float length) { + var mh$ = GenMeshCube.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircleSectorLines", center, radius, startAngle, endAngle, segments, color); + traceDowncall("GenMeshCube", allocator, width, height, length); } - mh$.invokeExact(center, radius, startAngle, endAngle, segments, color); + return (MemorySegment)mh$.invokeExact(allocator, width, height, length); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircleGradient { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, + private static class GenMeshSphere { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, - Color.layout(), - Color.layout() + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleGradient"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshSphere"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18616,58 +31379,59 @@ private static class DrawCircleGradient { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * Mesh GenMeshSphere(float radius, int rings, int slices) * } */ - public static FunctionDescriptor DrawCircleGradient$descriptor() { - return DrawCircleGradient.DESC; + public static FunctionDescriptor GenMeshSphere$descriptor() { + return GenMeshSphere.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * Mesh GenMeshSphere(float radius, int rings, int slices) * } */ - public static MethodHandle DrawCircleGradient$handle() { - return DrawCircleGradient.HANDLE; + public static MethodHandle GenMeshSphere$handle() { + return GenMeshSphere.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * Mesh GenMeshSphere(float radius, int rings, int slices) * } */ - public static MemorySegment DrawCircleGradient$address() { - return DrawCircleGradient.ADDR; + public static MemorySegment GenMeshSphere$address() { + return GenMeshSphere.ADDR; } /** * {@snippet lang=c : - * void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2) + * Mesh GenMeshSphere(float radius, int rings, int slices) * } */ - public static void DrawCircleGradient(int centerX, int centerY, float radius, MemorySegment color1, MemorySegment color2) { - var mh$ = DrawCircleGradient.HANDLE; + public static MemorySegment GenMeshSphere(SegmentAllocator allocator, float radius, int rings, int slices) { + var mh$ = GenMeshSphere.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircleGradient", centerX, centerY, radius, color1, color2); + traceDowncall("GenMeshSphere", allocator, radius, rings, slices); } - mh$.invokeExact(centerX, centerY, radius, color1, color2); + return (MemorySegment)mh$.invokeExact(allocator, radius, rings, slices); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircleV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), + private static class GenMeshHemiSphere { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, - Color.layout() + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleV"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshHemiSphere"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18675,59 +31439,59 @@ private static class DrawCircleV { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircleV(Vector2 center, float radius, Color color) + * Mesh GenMeshHemiSphere(float radius, int rings, int slices) * } */ - public static FunctionDescriptor DrawCircleV$descriptor() { - return DrawCircleV.DESC; + public static FunctionDescriptor GenMeshHemiSphere$descriptor() { + return GenMeshHemiSphere.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircleV(Vector2 center, float radius, Color color) + * Mesh GenMeshHemiSphere(float radius, int rings, int slices) * } */ - public static MethodHandle DrawCircleV$handle() { - return DrawCircleV.HANDLE; + public static MethodHandle GenMeshHemiSphere$handle() { + return GenMeshHemiSphere.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircleV(Vector2 center, float radius, Color color) + * Mesh GenMeshHemiSphere(float radius, int rings, int slices) * } */ - public static MemorySegment DrawCircleV$address() { - return DrawCircleV.ADDR; + public static MemorySegment GenMeshHemiSphere$address() { + return GenMeshHemiSphere.ADDR; } /** * {@snippet lang=c : - * void DrawCircleV(Vector2 center, float radius, Color color) + * Mesh GenMeshHemiSphere(float radius, int rings, int slices) * } */ - public static void DrawCircleV(MemorySegment center, float radius, MemorySegment color) { - var mh$ = DrawCircleV.HANDLE; + public static MemorySegment GenMeshHemiSphere(SegmentAllocator allocator, float radius, int rings, int slices) { + var mh$ = GenMeshHemiSphere.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircleV", center, radius, color); + traceDowncall("GenMeshHemiSphere", allocator, radius, rings, slices); } - mh$.invokeExact(center, radius, color); + return (MemorySegment)mh$.invokeExact(allocator, radius, rings, slices); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircleLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, + private static class GenMeshCylinder { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, - Color.layout() + raylib.C_FLOAT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCylinder"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18735,58 +31499,59 @@ private static class DrawCircleLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshCylinder(float radius, float height, int slices) * } */ - public static FunctionDescriptor DrawCircleLines$descriptor() { - return DrawCircleLines.DESC; + public static FunctionDescriptor GenMeshCylinder$descriptor() { + return GenMeshCylinder.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshCylinder(float radius, float height, int slices) * } */ - public static MethodHandle DrawCircleLines$handle() { - return DrawCircleLines.HANDLE; + public static MethodHandle GenMeshCylinder$handle() { + return GenMeshCylinder.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshCylinder(float radius, float height, int slices) * } */ - public static MemorySegment DrawCircleLines$address() { - return DrawCircleLines.ADDR; + public static MemorySegment GenMeshCylinder$address() { + return GenMeshCylinder.ADDR; } /** * {@snippet lang=c : - * void DrawCircleLines(int centerX, int centerY, float radius, Color color) + * Mesh GenMeshCylinder(float radius, float height, int slices) * } */ - public static void DrawCircleLines(int centerX, int centerY, float radius, MemorySegment color) { - var mh$ = DrawCircleLines.HANDLE; + public static MemorySegment GenMeshCylinder(SegmentAllocator allocator, float radius, float height, int slices) { + var mh$ = GenMeshCylinder.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircleLines", centerX, centerY, radius, color); + traceDowncall("GenMeshCylinder", allocator, radius, height, slices); } - mh$.invokeExact(centerX, centerY, radius, color); + return (MemorySegment)mh$.invokeExact(allocator, radius, height, slices); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawCircleLinesV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), + private static class GenMeshCone { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, - Color.layout() + raylib.C_FLOAT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawCircleLinesV"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCone"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18794,60 +31559,60 @@ private static class DrawCircleLinesV { /** * Function descriptor for: * {@snippet lang=c : - * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * Mesh GenMeshCone(float radius, float height, int slices) * } */ - public static FunctionDescriptor DrawCircleLinesV$descriptor() { - return DrawCircleLinesV.DESC; + public static FunctionDescriptor GenMeshCone$descriptor() { + return GenMeshCone.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * Mesh GenMeshCone(float radius, float height, int slices) * } */ - public static MethodHandle DrawCircleLinesV$handle() { - return DrawCircleLinesV.HANDLE; + public static MethodHandle GenMeshCone$handle() { + return GenMeshCone.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * Mesh GenMeshCone(float radius, float height, int slices) * } */ - public static MemorySegment DrawCircleLinesV$address() { - return DrawCircleLinesV.ADDR; + public static MemorySegment GenMeshCone$address() { + return GenMeshCone.ADDR; } /** * {@snippet lang=c : - * void DrawCircleLinesV(Vector2 center, float radius, Color color) + * Mesh GenMeshCone(float radius, float height, int slices) * } */ - public static void DrawCircleLinesV(MemorySegment center, float radius, MemorySegment color) { - var mh$ = DrawCircleLinesV.HANDLE; + public static MemorySegment GenMeshCone(SegmentAllocator allocator, float radius, float height, int slices) { + var mh$ = GenMeshCone.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawCircleLinesV", center, radius, color); + traceDowncall("GenMeshCone", allocator, radius, height, slices); } - mh$.invokeExact(center, radius, color); + return (MemorySegment)mh$.invokeExact(allocator, radius, height, slices); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawEllipse { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, + private static class GenMeshTorus { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, raylib.C_FLOAT, - Color.layout() + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawEllipse"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshTorus"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18855,60 +31620,60 @@ private static class DrawEllipse { /** * Function descriptor for: * {@snippet lang=c : - * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) * } */ - public static FunctionDescriptor DrawEllipse$descriptor() { - return DrawEllipse.DESC; + public static FunctionDescriptor GenMeshTorus$descriptor() { + return GenMeshTorus.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) * } */ - public static MethodHandle DrawEllipse$handle() { - return DrawEllipse.HANDLE; + public static MethodHandle GenMeshTorus$handle() { + return GenMeshTorus.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) * } */ - public static MemorySegment DrawEllipse$address() { - return DrawEllipse.ADDR; + public static MemorySegment GenMeshTorus$address() { + return GenMeshTorus.ADDR; } /** * {@snippet lang=c : - * void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshTorus(float radius, float size, int radSeg, int sides) * } */ - public static void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, MemorySegment color) { - var mh$ = DrawEllipse.HANDLE; + public static MemorySegment GenMeshTorus(SegmentAllocator allocator, float radius, float size, int radSeg, int sides) { + var mh$ = GenMeshTorus.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawEllipse", centerX, centerY, radiusH, radiusV, color); + traceDowncall("GenMeshTorus", allocator, radius, size, radSeg, sides); } - mh$.invokeExact(centerX, centerY, radiusH, radiusV, color); + return (MemorySegment)mh$.invokeExact(allocator, radius, size, radSeg, sides); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawEllipseLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, + private static class GenMeshKnot { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), raylib.C_FLOAT, raylib.C_FLOAT, - Color.layout() + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawEllipseLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshKnot"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18916,62 +31681,58 @@ private static class DrawEllipseLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) * } */ - public static FunctionDescriptor DrawEllipseLines$descriptor() { - return DrawEllipseLines.DESC; + public static FunctionDescriptor GenMeshKnot$descriptor() { + return GenMeshKnot.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) * } */ - public static MethodHandle DrawEllipseLines$handle() { - return DrawEllipseLines.HANDLE; + public static MethodHandle GenMeshKnot$handle() { + return GenMeshKnot.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) * } */ - public static MemorySegment DrawEllipseLines$address() { - return DrawEllipseLines.ADDR; + public static MemorySegment GenMeshKnot$address() { + return GenMeshKnot.ADDR; } /** * {@snippet lang=c : - * void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color) + * Mesh GenMeshKnot(float radius, float size, int radSeg, int sides) * } */ - public static void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, MemorySegment color) { - var mh$ = DrawEllipseLines.HANDLE; + public static MemorySegment GenMeshKnot(SegmentAllocator allocator, float radius, float size, int radSeg, int sides) { + var mh$ = GenMeshKnot.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawEllipseLines", centerX, centerY, radiusH, radiusV, color); + traceDowncall("GenMeshKnot", allocator, radius, size, radSeg, sides); } - mh$.invokeExact(centerX, centerY, radiusH, radiusV, color); + return (MemorySegment)mh$.invokeExact(allocator, radius, size, radSeg, sides); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRing { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() + private static class GenMeshHeightmap { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), + Image.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRing"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshHeightmap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -18979,62 +31740,58 @@ private static class DrawRing { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) * } */ - public static FunctionDescriptor DrawRing$descriptor() { - return DrawRing.DESC; + public static FunctionDescriptor GenMeshHeightmap$descriptor() { + return GenMeshHeightmap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) * } */ - public static MethodHandle DrawRing$handle() { - return DrawRing.HANDLE; + public static MethodHandle GenMeshHeightmap$handle() { + return GenMeshHeightmap.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) * } */ - public static MemorySegment DrawRing$address() { - return DrawRing.ADDR; + public static MemorySegment GenMeshHeightmap$address() { + return GenMeshHeightmap.ADDR; } /** * {@snippet lang=c : - * void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshHeightmap(Image heightmap, Vector3 size) * } */ - public static void DrawRing(MemorySegment center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, MemorySegment color) { - var mh$ = DrawRing.HANDLE; + public static MemorySegment GenMeshHeightmap(SegmentAllocator allocator, MemorySegment heightmap, MemorySegment size) { + var mh$ = GenMeshHeightmap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRing", center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + traceDowncall("GenMeshHeightmap", allocator, heightmap, size); } - mh$.invokeExact(center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + return (MemorySegment)mh$.invokeExact(allocator, heightmap, size); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRingLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() + private static class GenMeshCubicmap { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Mesh.layout(), + Image.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRingLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("GenMeshCubicmap"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19042,60 +31799,58 @@ private static class DrawRingLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) * } */ - public static FunctionDescriptor DrawRingLines$descriptor() { - return DrawRingLines.DESC; + public static FunctionDescriptor GenMeshCubicmap$descriptor() { + return GenMeshCubicmap.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) * } */ - public static MethodHandle DrawRingLines$handle() { - return DrawRingLines.HANDLE; + public static MethodHandle GenMeshCubicmap$handle() { + return GenMeshCubicmap.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) * } */ - public static MemorySegment DrawRingLines$address() { - return DrawRingLines.ADDR; + public static MemorySegment GenMeshCubicmap$address() { + return GenMeshCubicmap.ADDR; } /** * {@snippet lang=c : - * void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color) + * Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize) * } */ - public static void DrawRingLines(MemorySegment center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, MemorySegment color) { - var mh$ = DrawRingLines.HANDLE; + public static MemorySegment GenMeshCubicmap(SegmentAllocator allocator, MemorySegment cubicmap, MemorySegment cubeSize) { + var mh$ = GenMeshCubicmap.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRingLines", center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + traceDowncall("GenMeshCubicmap", allocator, cubicmap, cubeSize); } - mh$.invokeExact(center, innerRadius, outerRadius, startAngle, endAngle, segments, color); + return (MemorySegment)mh$.invokeExact(allocator, cubicmap, cubeSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() + private static class LoadMaterials { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangle"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadMaterials"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19103,58 +31858,55 @@ private static class DrawRectangle { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * Material *LoadMaterials(const char *fileName, int *materialCount) * } */ - public static FunctionDescriptor DrawRectangle$descriptor() { - return DrawRectangle.DESC; + public static FunctionDescriptor LoadMaterials$descriptor() { + return LoadMaterials.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * Material *LoadMaterials(const char *fileName, int *materialCount) * } */ - public static MethodHandle DrawRectangle$handle() { - return DrawRectangle.HANDLE; + public static MethodHandle LoadMaterials$handle() { + return LoadMaterials.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * Material *LoadMaterials(const char *fileName, int *materialCount) * } */ - public static MemorySegment DrawRectangle$address() { - return DrawRectangle.ADDR; + public static MemorySegment LoadMaterials$address() { + return LoadMaterials.ADDR; } /** * {@snippet lang=c : - * void DrawRectangle(int posX, int posY, int width, int height, Color color) + * Material *LoadMaterials(const char *fileName, int *materialCount) * } */ - public static void DrawRectangle(int posX, int posY, int width, int height, MemorySegment color) { - var mh$ = DrawRectangle.HANDLE; + public static MemorySegment LoadMaterials(MemorySegment fileName, MemorySegment materialCount) { + var mh$ = LoadMaterials.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangle", posX, posY, width, height, color); + traceDowncall("LoadMaterials", fileName, materialCount); } - mh$.invokeExact(posX, posY, width, height, color); + return (MemorySegment)mh$.invokeExact(fileName, materialCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleV { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Color.layout() - ); + private static class LoadMaterialDefault { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Material.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleV"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadMaterialDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19162,57 +31914,57 @@ private static class DrawRectangleV { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * Material LoadMaterialDefault() * } */ - public static FunctionDescriptor DrawRectangleV$descriptor() { - return DrawRectangleV.DESC; + public static FunctionDescriptor LoadMaterialDefault$descriptor() { + return LoadMaterialDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * Material LoadMaterialDefault() * } */ - public static MethodHandle DrawRectangleV$handle() { - return DrawRectangleV.HANDLE; + public static MethodHandle LoadMaterialDefault$handle() { + return LoadMaterialDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * Material LoadMaterialDefault() * } */ - public static MemorySegment DrawRectangleV$address() { - return DrawRectangleV.ADDR; + public static MemorySegment LoadMaterialDefault$address() { + return LoadMaterialDefault.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleV(Vector2 position, Vector2 size, Color color) + * Material LoadMaterialDefault() * } */ - public static void DrawRectangleV(MemorySegment position, MemorySegment size, MemorySegment color) { - var mh$ = DrawRectangleV.HANDLE; + public static MemorySegment LoadMaterialDefault(SegmentAllocator allocator) { + var mh$ = LoadMaterialDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleV", position, size, color); + traceDowncall("LoadMaterialDefault", allocator); } - mh$.invokeExact(position, size, color); + return (MemorySegment)mh$.invokeExact(allocator); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - Color.layout() + private static class IsMaterialReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Material.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRec"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsMaterialReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19220,59 +31972,56 @@ private static class DrawRectangleRec { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleRec(Rectangle rec, Color color) + * bool IsMaterialReady(Material material) * } */ - public static FunctionDescriptor DrawRectangleRec$descriptor() { - return DrawRectangleRec.DESC; + public static FunctionDescriptor IsMaterialReady$descriptor() { + return IsMaterialReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleRec(Rectangle rec, Color color) + * bool IsMaterialReady(Material material) * } */ - public static MethodHandle DrawRectangleRec$handle() { - return DrawRectangleRec.HANDLE; + public static MethodHandle IsMaterialReady$handle() { + return IsMaterialReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleRec(Rectangle rec, Color color) + * bool IsMaterialReady(Material material) * } */ - public static MemorySegment DrawRectangleRec$address() { - return DrawRectangleRec.ADDR; + public static MemorySegment IsMaterialReady$address() { + return IsMaterialReady.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleRec(Rectangle rec, Color color) + * bool IsMaterialReady(Material material) * } */ - public static void DrawRectangleRec(MemorySegment rec, MemorySegment color) { - var mh$ = DrawRectangleRec.HANDLE; + public static boolean IsMaterialReady(MemorySegment material) { + var mh$ = IsMaterialReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleRec", rec, color); + traceDowncall("IsMaterialReady", material); } - mh$.invokeExact(rec, color); + return (boolean)mh$.invokeExact(material); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectanglePro { + private static class UnloadMaterial { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + Material.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectanglePro"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadMaterial"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19280,61 +32029,58 @@ private static class DrawRectanglePro { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) + * void UnloadMaterial(Material material) * } */ - public static FunctionDescriptor DrawRectanglePro$descriptor() { - return DrawRectanglePro.DESC; + public static FunctionDescriptor UnloadMaterial$descriptor() { + return UnloadMaterial.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) + * void UnloadMaterial(Material material) * } */ - public static MethodHandle DrawRectanglePro$handle() { - return DrawRectanglePro.HANDLE; + public static MethodHandle UnloadMaterial$handle() { + return UnloadMaterial.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) + * void UnloadMaterial(Material material) * } */ - public static MemorySegment DrawRectanglePro$address() { - return DrawRectanglePro.ADDR; + public static MemorySegment UnloadMaterial$address() { + return UnloadMaterial.ADDR; } /** * {@snippet lang=c : - * void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color) + * void UnloadMaterial(Material material) * } */ - public static void DrawRectanglePro(MemorySegment rec, MemorySegment origin, float rotation, MemorySegment color) { - var mh$ = DrawRectanglePro.HANDLE; + public static void UnloadMaterial(MemorySegment material) { + var mh$ = UnloadMaterial.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectanglePro", rec, origin, rotation, color); + traceDowncall("UnloadMaterial", material); } - mh$.invokeExact(rec, origin, rotation, color); + mh$.invokeExact(material); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleGradientV { + private static class SetMaterialTexture { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout(), - Color.layout() + Texture.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleGradientV"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetMaterialTexture"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19342,61 +32088,58 @@ private static class DrawRectangleGradientV { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) * } */ - public static FunctionDescriptor DrawRectangleGradientV$descriptor() { - return DrawRectangleGradientV.DESC; + public static FunctionDescriptor SetMaterialTexture$descriptor() { + return SetMaterialTexture.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) * } */ - public static MethodHandle DrawRectangleGradientV$handle() { - return DrawRectangleGradientV.HANDLE; + public static MethodHandle SetMaterialTexture$handle() { + return SetMaterialTexture.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) * } */ - public static MemorySegment DrawRectangleGradientV$address() { - return DrawRectangleGradientV.ADDR; + public static MemorySegment SetMaterialTexture$address() { + return SetMaterialTexture.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetMaterialTexture(Material *material, int mapType, Texture2D texture) * } */ - public static void DrawRectangleGradientV(int posX, int posY, int width, int height, MemorySegment color1, MemorySegment color2) { - var mh$ = DrawRectangleGradientV.HANDLE; + public static void SetMaterialTexture(MemorySegment material, int mapType, MemorySegment texture) { + var mh$ = SetMaterialTexture.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleGradientV", posX, posY, width, height, color1, color2); + traceDowncall("SetMaterialTexture", material, mapType, texture); } - mh$.invokeExact(posX, posY, width, height, color1, color2); + mh$.invokeExact(material, mapType, texture); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleGradientH { + private static class SetModelMeshMaterial { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER, raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout(), - Color.layout() + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleGradientH"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetModelMeshMaterial"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19404,60 +32147,58 @@ private static class DrawRectangleGradientH { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetModelMeshMaterial(Model *model, int meshId, int materialId) * } */ - public static FunctionDescriptor DrawRectangleGradientH$descriptor() { - return DrawRectangleGradientH.DESC; + public static FunctionDescriptor SetModelMeshMaterial$descriptor() { + return SetModelMeshMaterial.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetModelMeshMaterial(Model *model, int meshId, int materialId) * } */ - public static MethodHandle DrawRectangleGradientH$handle() { - return DrawRectangleGradientH.HANDLE; + public static MethodHandle SetModelMeshMaterial$handle() { + return SetModelMeshMaterial.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetModelMeshMaterial(Model *model, int meshId, int materialId) * } */ - public static MemorySegment DrawRectangleGradientH$address() { - return DrawRectangleGradientH.ADDR; + public static MemorySegment SetModelMeshMaterial$address() { + return SetModelMeshMaterial.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2) + * void SetModelMeshMaterial(Model *model, int meshId, int materialId) * } */ - public static void DrawRectangleGradientH(int posX, int posY, int width, int height, MemorySegment color1, MemorySegment color2) { - var mh$ = DrawRectangleGradientH.HANDLE; + public static void SetModelMeshMaterial(MemorySegment model, int meshId, int materialId) { + var mh$ = SetModelMeshMaterial.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleGradientH", posX, posY, width, height, color1, color2); + traceDowncall("SetModelMeshMaterial", model, meshId, materialId); } - mh$.invokeExact(posX, posY, width, height, color1, color2); + mh$.invokeExact(model, meshId, materialId); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleGradientEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - Color.layout(), - Color.layout(), - Color.layout(), - Color.layout() + private static class LoadModelAnimations { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleGradientEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadModelAnimations"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19465,60 +32206,58 @@ private static class DrawRectangleGradientEx { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) + * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) * } */ - public static FunctionDescriptor DrawRectangleGradientEx$descriptor() { - return DrawRectangleGradientEx.DESC; + public static FunctionDescriptor LoadModelAnimations$descriptor() { + return LoadModelAnimations.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) + * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) * } */ - public static MethodHandle DrawRectangleGradientEx$handle() { - return DrawRectangleGradientEx.HANDLE; + public static MethodHandle LoadModelAnimations$handle() { + return LoadModelAnimations.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) + * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) * } */ - public static MemorySegment DrawRectangleGradientEx$address() { - return DrawRectangleGradientEx.ADDR; + public static MemorySegment LoadModelAnimations$address() { + return LoadModelAnimations.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4) + * ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount) * } */ - public static void DrawRectangleGradientEx(MemorySegment rec, MemorySegment col1, MemorySegment col2, MemorySegment col3, MemorySegment col4) { - var mh$ = DrawRectangleGradientEx.HANDLE; + public static MemorySegment LoadModelAnimations(MemorySegment fileName, MemorySegment animCount) { + var mh$ = LoadModelAnimations.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleGradientEx", rec, col1, col2, col3, col4); + traceDowncall("LoadModelAnimations", fileName, animCount); } - mh$.invokeExact(rec, col1, col2, col3, col4); + return (MemorySegment)mh$.invokeExact(fileName, animCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleLines { + private static class UpdateModelAnimation { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() + Model.layout(), + ModelAnimation.layout(), + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateModelAnimation"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19526,58 +32265,56 @@ private static class DrawRectangleLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) + * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) * } */ - public static FunctionDescriptor DrawRectangleLines$descriptor() { - return DrawRectangleLines.DESC; + public static FunctionDescriptor UpdateModelAnimation$descriptor() { + return UpdateModelAnimation.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) + * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) * } */ - public static MethodHandle DrawRectangleLines$handle() { - return DrawRectangleLines.HANDLE; + public static MethodHandle UpdateModelAnimation$handle() { + return UpdateModelAnimation.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) + * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) * } */ - public static MemorySegment DrawRectangleLines$address() { - return DrawRectangleLines.ADDR; + public static MemorySegment UpdateModelAnimation$address() { + return UpdateModelAnimation.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleLines(int posX, int posY, int width, int height, Color color) + * void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) * } */ - public static void DrawRectangleLines(int posX, int posY, int width, int height, MemorySegment color) { - var mh$ = DrawRectangleLines.HANDLE; + public static void UpdateModelAnimation(MemorySegment model, MemorySegment anim, int frame) { + var mh$ = UpdateModelAnimation.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleLines", posX, posY, width, height, color); + traceDowncall("UpdateModelAnimation", model, anim, frame); } - mh$.invokeExact(posX, posY, width, height, color); + mh$.invokeExact(model, anim, frame); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleLinesEx { + private static class UnloadModelAnimation { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - raylib.C_FLOAT, - Color.layout() + ModelAnimation.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleLinesEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadModelAnimation"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19585,59 +32322,57 @@ private static class DrawRectangleLinesEx { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) + * void UnloadModelAnimation(ModelAnimation anim) * } */ - public static FunctionDescriptor DrawRectangleLinesEx$descriptor() { - return DrawRectangleLinesEx.DESC; + public static FunctionDescriptor UnloadModelAnimation$descriptor() { + return UnloadModelAnimation.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) + * void UnloadModelAnimation(ModelAnimation anim) * } */ - public static MethodHandle DrawRectangleLinesEx$handle() { - return DrawRectangleLinesEx.HANDLE; + public static MethodHandle UnloadModelAnimation$handle() { + return UnloadModelAnimation.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) + * void UnloadModelAnimation(ModelAnimation anim) * } */ - public static MemorySegment DrawRectangleLinesEx$address() { - return DrawRectangleLinesEx.ADDR; + public static MemorySegment UnloadModelAnimation$address() { + return UnloadModelAnimation.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color) + * void UnloadModelAnimation(ModelAnimation anim) * } */ - public static void DrawRectangleLinesEx(MemorySegment rec, float lineThick, MemorySegment color) { - var mh$ = DrawRectangleLinesEx.HANDLE; + public static void UnloadModelAnimation(MemorySegment anim) { + var mh$ = UnloadModelAnimation.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleLinesEx", rec, lineThick, color); + traceDowncall("UnloadModelAnimation", anim); } - mh$.invokeExact(rec, lineThick, color); + mh$.invokeExact(anim); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleRounded { + private static class UnloadModelAnimations { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRounded"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadModelAnimations"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19645,59 +32380,58 @@ private static class DrawRectangleRounded { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) + * void UnloadModelAnimations(ModelAnimation *animations, int animCount) * } */ - public static FunctionDescriptor DrawRectangleRounded$descriptor() { - return DrawRectangleRounded.DESC; + public static FunctionDescriptor UnloadModelAnimations$descriptor() { + return UnloadModelAnimations.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) + * void UnloadModelAnimations(ModelAnimation *animations, int animCount) * } */ - public static MethodHandle DrawRectangleRounded$handle() { - return DrawRectangleRounded.HANDLE; + public static MethodHandle UnloadModelAnimations$handle() { + return UnloadModelAnimations.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) + * void UnloadModelAnimations(ModelAnimation *animations, int animCount) * } */ - public static MemorySegment DrawRectangleRounded$address() { - return DrawRectangleRounded.ADDR; + public static MemorySegment UnloadModelAnimations$address() { + return UnloadModelAnimations.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color) + * void UnloadModelAnimations(ModelAnimation *animations, int animCount) * } */ - public static void DrawRectangleRounded(MemorySegment rec, float roundness, int segments, MemorySegment color) { - var mh$ = DrawRectangleRounded.HANDLE; + public static void UnloadModelAnimations(MemorySegment animations, int animCount) { + var mh$ = UnloadModelAnimations.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleRounded", rec, roundness, segments, color); + traceDowncall("UnloadModelAnimations", animations, animCount); } - mh$.invokeExact(rec, roundness, segments, color); + mh$.invokeExact(animations, animCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleRoundedLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - raylib.C_FLOAT, - raylib.C_INT, - Color.layout() + private static class IsModelAnimationValid { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Model.layout(), + ModelAnimation.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRoundedLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsModelAnimationValid"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19705,60 +32439,60 @@ private static class DrawRectangleRoundedLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) + * bool IsModelAnimationValid(Model model, ModelAnimation anim) * } */ - public static FunctionDescriptor DrawRectangleRoundedLines$descriptor() { - return DrawRectangleRoundedLines.DESC; + public static FunctionDescriptor IsModelAnimationValid$descriptor() { + return IsModelAnimationValid.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) + * bool IsModelAnimationValid(Model model, ModelAnimation anim) * } */ - public static MethodHandle DrawRectangleRoundedLines$handle() { - return DrawRectangleRoundedLines.HANDLE; + public static MethodHandle IsModelAnimationValid$handle() { + return IsModelAnimationValid.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) + * bool IsModelAnimationValid(Model model, ModelAnimation anim) * } */ - public static MemorySegment DrawRectangleRoundedLines$address() { - return DrawRectangleRoundedLines.ADDR; + public static MemorySegment IsModelAnimationValid$address() { + return IsModelAnimationValid.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color) + * bool IsModelAnimationValid(Model model, ModelAnimation anim) * } */ - public static void DrawRectangleRoundedLines(MemorySegment rec, float roundness, int segments, MemorySegment color) { - var mh$ = DrawRectangleRoundedLines.HANDLE; + public static boolean IsModelAnimationValid(MemorySegment model, MemorySegment anim) { + var mh$ = IsModelAnimationValid.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleRoundedLines", rec, roundness, segments, color); + traceDowncall("IsModelAnimationValid", model, anim); } - mh$.invokeExact(rec, roundness, segments, color); + return (boolean)mh$.invokeExact(model, anim); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawRectangleRoundedLinesEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Rectangle.layout(), - raylib.C_FLOAT, - raylib.C_INT, + private static class CheckCollisionSpheres { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Vector3.layout(), raylib.C_FLOAT, - Color.layout() + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawRectangleRoundedLinesEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionSpheres"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19766,59 +32500,58 @@ private static class DrawRectangleRoundedLinesEx { /** * Function descriptor for: * {@snippet lang=c : - * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) + * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) * } */ - public static FunctionDescriptor DrawRectangleRoundedLinesEx$descriptor() { - return DrawRectangleRoundedLinesEx.DESC; + public static FunctionDescriptor CheckCollisionSpheres$descriptor() { + return CheckCollisionSpheres.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) + * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) * } */ - public static MethodHandle DrawRectangleRoundedLinesEx$handle() { - return DrawRectangleRoundedLinesEx.HANDLE; + public static MethodHandle CheckCollisionSpheres$handle() { + return CheckCollisionSpheres.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) + * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) * } */ - public static MemorySegment DrawRectangleRoundedLinesEx$address() { - return DrawRectangleRoundedLinesEx.ADDR; + public static MemorySegment CheckCollisionSpheres$address() { + return CheckCollisionSpheres.ADDR; } /** * {@snippet lang=c : - * void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float lineThick, Color color) + * bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2) * } */ - public static void DrawRectangleRoundedLinesEx(MemorySegment rec, float roundness, int segments, float lineThick, MemorySegment color) { - var mh$ = DrawRectangleRoundedLinesEx.HANDLE; + public static boolean CheckCollisionSpheres(MemorySegment center1, float radius1, MemorySegment center2, float radius2) { + var mh$ = CheckCollisionSpheres.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawRectangleRoundedLinesEx", rec, roundness, segments, lineThick, color); + traceDowncall("CheckCollisionSpheres", center1, radius1, center2, radius2); } - mh$.invokeExact(rec, roundness, segments, lineThick, color); + return (boolean)mh$.invokeExact(center1, radius1, center2, radius2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawTriangle { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Color.layout() + private static class CheckCollisionBoxes { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + BoundingBox.layout(), + BoundingBox.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangle"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionBoxes"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19826,59 +32559,59 @@ private static class DrawTriangle { /** * Function descriptor for: * {@snippet lang=c : - * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) * } */ - public static FunctionDescriptor DrawTriangle$descriptor() { - return DrawTriangle.DESC; + public static FunctionDescriptor CheckCollisionBoxes$descriptor() { + return CheckCollisionBoxes.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) * } */ - public static MethodHandle DrawTriangle$handle() { - return DrawTriangle.HANDLE; + public static MethodHandle CheckCollisionBoxes$handle() { + return CheckCollisionBoxes.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) * } */ - public static MemorySegment DrawTriangle$address() { - return DrawTriangle.ADDR; + public static MemorySegment CheckCollisionBoxes$address() { + return CheckCollisionBoxes.ADDR; } /** * {@snippet lang=c : - * void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2) * } */ - public static void DrawTriangle(MemorySegment v1, MemorySegment v2, MemorySegment v3, MemorySegment color) { - var mh$ = DrawTriangle.HANDLE; + public static boolean CheckCollisionBoxes(MemorySegment box1, MemorySegment box2) { + var mh$ = CheckCollisionBoxes.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawTriangle", v1, v2, v3, color); + traceDowncall("CheckCollisionBoxes", box1, box2); } - mh$.invokeExact(v1, v2, v3, color); + return (boolean)mh$.invokeExact(box1, box2); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawTriangleLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Color.layout() + private static class CheckCollisionBoxSphere { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + BoundingBox.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionBoxSphere"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19886,58 +32619,59 @@ private static class DrawTriangleLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) * } */ - public static FunctionDescriptor DrawTriangleLines$descriptor() { - return DrawTriangleLines.DESC; + public static FunctionDescriptor CheckCollisionBoxSphere$descriptor() { + return CheckCollisionBoxSphere.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) * } */ - public static MethodHandle DrawTriangleLines$handle() { - return DrawTriangleLines.HANDLE; + public static MethodHandle CheckCollisionBoxSphere$handle() { + return CheckCollisionBoxSphere.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) * } */ - public static MemorySegment DrawTriangleLines$address() { - return DrawTriangleLines.ADDR; + public static MemorySegment CheckCollisionBoxSphere$address() { + return CheckCollisionBoxSphere.ADDR; } /** * {@snippet lang=c : - * void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) + * bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius) * } */ - public static void DrawTriangleLines(MemorySegment v1, MemorySegment v2, MemorySegment v3, MemorySegment color) { - var mh$ = DrawTriangleLines.HANDLE; + public static boolean CheckCollisionBoxSphere(MemorySegment box, MemorySegment center, float radius) { + var mh$ = CheckCollisionBoxSphere.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawTriangleLines", v1, v2, v3, color); + traceDowncall("CheckCollisionBoxSphere", box, center, radius); } - mh$.invokeExact(v1, v2, v3, color); + return (boolean)mh$.invokeExact(box, center, radius); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawTriangleFan { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - Color.layout() + private static class GetRayCollisionSphere { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + RayCollision.layout(), + Ray.layout(), + Vector3.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleFan"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionSphere"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -19945,58 +32679,58 @@ private static class DrawTriangleFan { /** * Function descriptor for: * {@snippet lang=c : - * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) * } */ - public static FunctionDescriptor DrawTriangleFan$descriptor() { - return DrawTriangleFan.DESC; + public static FunctionDescriptor GetRayCollisionSphere$descriptor() { + return GetRayCollisionSphere.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) * } */ - public static MethodHandle DrawTriangleFan$handle() { - return DrawTriangleFan.HANDLE; + public static MethodHandle GetRayCollisionSphere$handle() { + return GetRayCollisionSphere.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) * } */ - public static MemorySegment DrawTriangleFan$address() { - return DrawTriangleFan.ADDR; + public static MemorySegment GetRayCollisionSphere$address() { + return GetRayCollisionSphere.ADDR; } /** * {@snippet lang=c : - * void DrawTriangleFan(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius) * } */ - public static void DrawTriangleFan(MemorySegment points, int pointCount, MemorySegment color) { - var mh$ = DrawTriangleFan.HANDLE; + public static MemorySegment GetRayCollisionSphere(SegmentAllocator allocator, MemorySegment ray, MemorySegment center, float radius) { + var mh$ = GetRayCollisionSphere.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawTriangleFan", points, pointCount, color); + traceDowncall("GetRayCollisionSphere", allocator, ray, center, radius); } - mh$.invokeExact(points, pointCount, color); + return (MemorySegment)mh$.invokeExact(allocator, ray, center, radius); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawTriangleStrip { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - Color.layout() + private static class GetRayCollisionBox { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + RayCollision.layout(), + Ray.layout(), + BoundingBox.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawTriangleStrip"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionBox"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20004,60 +32738,59 @@ private static class DrawTriangleStrip { /** * Function descriptor for: * {@snippet lang=c : - * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) * } */ - public static FunctionDescriptor DrawTriangleStrip$descriptor() { - return DrawTriangleStrip.DESC; + public static FunctionDescriptor GetRayCollisionBox$descriptor() { + return GetRayCollisionBox.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) * } */ - public static MethodHandle DrawTriangleStrip$handle() { - return DrawTriangleStrip.HANDLE; + public static MethodHandle GetRayCollisionBox$handle() { + return GetRayCollisionBox.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) * } */ - public static MemorySegment DrawTriangleStrip$address() { - return DrawTriangleStrip.ADDR; + public static MemorySegment GetRayCollisionBox$address() { + return GetRayCollisionBox.ADDR; } /** * {@snippet lang=c : - * void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) + * RayCollision GetRayCollisionBox(Ray ray, BoundingBox box) * } */ - public static void DrawTriangleStrip(MemorySegment points, int pointCount, MemorySegment color) { - var mh$ = DrawTriangleStrip.HANDLE; + public static MemorySegment GetRayCollisionBox(SegmentAllocator allocator, MemorySegment ray, MemorySegment box) { + var mh$ = GetRayCollisionBox.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawTriangleStrip", points, pointCount, color); + traceDowncall("GetRayCollisionBox", allocator, ray, box); } - mh$.invokeExact(points, pointCount, color); + return (MemorySegment)mh$.invokeExact(allocator, ray, box); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawPoly { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_INT, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() + private static class GetRayCollisionMesh { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + RayCollision.layout(), + Ray.layout(), + Mesh.layout(), + Matrix.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPoly"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionMesh"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20065,60 +32798,60 @@ private static class DrawPoly { /** * Function descriptor for: * {@snippet lang=c : - * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) * } */ - public static FunctionDescriptor DrawPoly$descriptor() { - return DrawPoly.DESC; + public static FunctionDescriptor GetRayCollisionMesh$descriptor() { + return GetRayCollisionMesh.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) * } */ - public static MethodHandle DrawPoly$handle() { - return DrawPoly.HANDLE; + public static MethodHandle GetRayCollisionMesh$handle() { + return GetRayCollisionMesh.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) * } */ - public static MemorySegment DrawPoly$address() { - return DrawPoly.ADDR; + public static MemorySegment GetRayCollisionMesh$address() { + return GetRayCollisionMesh.ADDR; } /** * {@snippet lang=c : - * void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform) * } */ - public static void DrawPoly(MemorySegment center, int sides, float radius, float rotation, MemorySegment color) { - var mh$ = DrawPoly.HANDLE; + public static MemorySegment GetRayCollisionMesh(SegmentAllocator allocator, MemorySegment ray, MemorySegment mesh, MemorySegment transform) { + var mh$ = GetRayCollisionMesh.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawPoly", center, sides, radius, rotation, color); + traceDowncall("GetRayCollisionMesh", allocator, ray, mesh, transform); } - mh$.invokeExact(center, sides, radius, rotation, color); + return (MemorySegment)mh$.invokeExact(allocator, ray, mesh, transform); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawPolyLines { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_INT, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() + private static class GetRayCollisionTriangle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + RayCollision.layout(), + Ray.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPolyLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionTriangle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20126,61 +32859,61 @@ private static class DrawPolyLines { /** * Function descriptor for: * {@snippet lang=c : - * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) * } */ - public static FunctionDescriptor DrawPolyLines$descriptor() { - return DrawPolyLines.DESC; + public static FunctionDescriptor GetRayCollisionTriangle$descriptor() { + return GetRayCollisionTriangle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) * } */ - public static MethodHandle DrawPolyLines$handle() { - return DrawPolyLines.HANDLE; + public static MethodHandle GetRayCollisionTriangle$handle() { + return GetRayCollisionTriangle.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) * } */ - public static MemorySegment DrawPolyLines$address() { - return DrawPolyLines.ADDR; + public static MemorySegment GetRayCollisionTriangle$address() { + return GetRayCollisionTriangle.ADDR; } /** * {@snippet lang=c : - * void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color) + * RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3) * } */ - public static void DrawPolyLines(MemorySegment center, int sides, float radius, float rotation, MemorySegment color) { - var mh$ = DrawPolyLines.HANDLE; + public static MemorySegment GetRayCollisionTriangle(SegmentAllocator allocator, MemorySegment ray, MemorySegment p1, MemorySegment p2, MemorySegment p3) { + var mh$ = GetRayCollisionTriangle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawPolyLines", center, sides, radius, rotation, color); + traceDowncall("GetRayCollisionTriangle", allocator, ray, p1, p2, p3); } - mh$.invokeExact(center, sides, radius, rotation, color); + return (MemorySegment)mh$.invokeExact(allocator, ray, p1, p2, p3); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawPolyLinesEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - raylib.C_INT, - raylib.C_FLOAT, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() + private static class GetRayCollisionQuad { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + RayCollision.layout(), + Ray.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout(), + Vector3.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawPolyLinesEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetRayCollisionQuad"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20188,59 +32921,54 @@ private static class DrawPolyLinesEx { /** * Function descriptor for: * {@snippet lang=c : - * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) + * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) * } */ - public static FunctionDescriptor DrawPolyLinesEx$descriptor() { - return DrawPolyLinesEx.DESC; + public static FunctionDescriptor GetRayCollisionQuad$descriptor() { + return GetRayCollisionQuad.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) + * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) * } */ - public static MethodHandle DrawPolyLinesEx$handle() { - return DrawPolyLinesEx.HANDLE; + public static MethodHandle GetRayCollisionQuad$handle() { + return GetRayCollisionQuad.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) + * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) * } */ - public static MemorySegment DrawPolyLinesEx$address() { - return DrawPolyLinesEx.ADDR; + public static MemorySegment GetRayCollisionQuad$address() { + return GetRayCollisionQuad.ADDR; } /** * {@snippet lang=c : - * void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color) + * RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) * } */ - public static void DrawPolyLinesEx(MemorySegment center, int sides, float radius, float rotation, float lineThick, MemorySegment color) { - var mh$ = DrawPolyLinesEx.HANDLE; + public static MemorySegment GetRayCollisionQuad(SegmentAllocator allocator, MemorySegment ray, MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4) { + var mh$ = GetRayCollisionQuad.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawPolyLinesEx", center, sides, radius, rotation, lineThick, color); + traceDowncall("GetRayCollisionQuad", allocator, ray, p1, p2, p3, p4); } - mh$.invokeExact(center, sides, radius, rotation, lineThick, color); + return (MemorySegment)mh$.invokeExact(allocator, ray, p1, p2, p3, p4); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineLinear { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout() - ); + private static class InitAudioDevice { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineLinear"); + public static final MemorySegment ADDR = raylib.findOrThrow("InitAudioDevice"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20248,59 +32976,54 @@ private static class DrawSplineLinear { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) + * void InitAudioDevice() * } */ - public static FunctionDescriptor DrawSplineLinear$descriptor() { - return DrawSplineLinear.DESC; + public static FunctionDescriptor InitAudioDevice$descriptor() { + return InitAudioDevice.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) + * void InitAudioDevice() * } */ - public static MethodHandle DrawSplineLinear$handle() { - return DrawSplineLinear.HANDLE; + public static MethodHandle InitAudioDevice$handle() { + return InitAudioDevice.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) + * void InitAudioDevice() * } */ - public static MemorySegment DrawSplineLinear$address() { - return DrawSplineLinear.ADDR; + public static MemorySegment InitAudioDevice$address() { + return InitAudioDevice.ADDR; } /** * {@snippet lang=c : - * void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color) + * void InitAudioDevice() * } */ - public static void DrawSplineLinear(MemorySegment points, int pointCount, float thick, MemorySegment color) { - var mh$ = DrawSplineLinear.HANDLE; + public static void InitAudioDevice() { + var mh$ = InitAudioDevice.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineLinear", points, pointCount, thick, color); + traceDowncall("InitAudioDevice"); } - mh$.invokeExact(points, pointCount, thick, color); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineBasis { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout() - ); + private static class CloseAudioDevice { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineBasis"); + public static final MemorySegment ADDR = raylib.findOrThrow("CloseAudioDevice"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20308,59 +33031,55 @@ private static class DrawSplineBasis { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) + * void CloseAudioDevice() * } */ - public static FunctionDescriptor DrawSplineBasis$descriptor() { - return DrawSplineBasis.DESC; + public static FunctionDescriptor CloseAudioDevice$descriptor() { + return CloseAudioDevice.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) + * void CloseAudioDevice() * } */ - public static MethodHandle DrawSplineBasis$handle() { - return DrawSplineBasis.HANDLE; + public static MethodHandle CloseAudioDevice$handle() { + return CloseAudioDevice.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) + * void CloseAudioDevice() * } */ - public static MemorySegment DrawSplineBasis$address() { - return DrawSplineBasis.ADDR; + public static MemorySegment CloseAudioDevice$address() { + return CloseAudioDevice.ADDR; } /** * {@snippet lang=c : - * void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color) + * void CloseAudioDevice() * } */ - public static void DrawSplineBasis(MemorySegment points, int pointCount, float thick, MemorySegment color) { - var mh$ = DrawSplineBasis.HANDLE; + public static void CloseAudioDevice() { + var mh$ = CloseAudioDevice.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineBasis", points, pointCount, thick, color); + traceDowncall("CloseAudioDevice"); } - mh$.invokeExact(points, pointCount, thick, color); + mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineCatmullRom { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout() - ); + private static class IsAudioDeviceReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineCatmullRom"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioDeviceReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20368,59 +33087,56 @@ private static class DrawSplineCatmullRom { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) + * bool IsAudioDeviceReady() * } */ - public static FunctionDescriptor DrawSplineCatmullRom$descriptor() { - return DrawSplineCatmullRom.DESC; + public static FunctionDescriptor IsAudioDeviceReady$descriptor() { + return IsAudioDeviceReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) + * bool IsAudioDeviceReady() * } */ - public static MethodHandle DrawSplineCatmullRom$handle() { - return DrawSplineCatmullRom.HANDLE; + public static MethodHandle IsAudioDeviceReady$handle() { + return IsAudioDeviceReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) + * bool IsAudioDeviceReady() * } */ - public static MemorySegment DrawSplineCatmullRom$address() { - return DrawSplineCatmullRom.ADDR; + public static MemorySegment IsAudioDeviceReady$address() { + return IsAudioDeviceReady.ADDR; } /** * {@snippet lang=c : - * void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color) + * bool IsAudioDeviceReady() * } */ - public static void DrawSplineCatmullRom(MemorySegment points, int pointCount, float thick, MemorySegment color) { - var mh$ = DrawSplineCatmullRom.HANDLE; + public static boolean IsAudioDeviceReady() { + var mh$ = IsAudioDeviceReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineCatmullRom", points, pointCount, thick, color); + traceDowncall("IsAudioDeviceReady"); } - mh$.invokeExact(points, pointCount, thick, color); + return (boolean)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineBezierQuadratic { + private static class SetMasterVolume { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout() + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineBezierQuadratic"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetMasterVolume"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20428,59 +33144,55 @@ private static class DrawSplineBezierQuadratic { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) + * void SetMasterVolume(float volume) * } */ - public static FunctionDescriptor DrawSplineBezierQuadratic$descriptor() { - return DrawSplineBezierQuadratic.DESC; + public static FunctionDescriptor SetMasterVolume$descriptor() { + return SetMasterVolume.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) + * void SetMasterVolume(float volume) * } */ - public static MethodHandle DrawSplineBezierQuadratic$handle() { - return DrawSplineBezierQuadratic.HANDLE; + public static MethodHandle SetMasterVolume$handle() { + return SetMasterVolume.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) + * void SetMasterVolume(float volume) * } */ - public static MemorySegment DrawSplineBezierQuadratic$address() { - return DrawSplineBezierQuadratic.ADDR; + public static MemorySegment SetMasterVolume$address() { + return SetMasterVolume.ADDR; } /** * {@snippet lang=c : - * void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color) + * void SetMasterVolume(float volume) * } */ - public static void DrawSplineBezierQuadratic(MemorySegment points, int pointCount, float thick, MemorySegment color) { - var mh$ = DrawSplineBezierQuadratic.HANDLE; + public static void SetMasterVolume(float volume) { + var mh$ = SetMasterVolume.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineBezierQuadratic", points, pointCount, thick, color); + traceDowncall("SetMasterVolume", volume); } - mh$.invokeExact(points, pointCount, thick, color); + mh$.invokeExact(volume); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineBezierCubic { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout() - ); + private static class GetMasterVolume { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineBezierCubic"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetMasterVolume"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20488,59 +33200,57 @@ private static class DrawSplineBezierCubic { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) + * float GetMasterVolume() * } */ - public static FunctionDescriptor DrawSplineBezierCubic$descriptor() { - return DrawSplineBezierCubic.DESC; + public static FunctionDescriptor GetMasterVolume$descriptor() { + return GetMasterVolume.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) + * float GetMasterVolume() * } */ - public static MethodHandle DrawSplineBezierCubic$handle() { - return DrawSplineBezierCubic.HANDLE; + public static MethodHandle GetMasterVolume$handle() { + return GetMasterVolume.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) + * float GetMasterVolume() * } */ - public static MemorySegment DrawSplineBezierCubic$address() { - return DrawSplineBezierCubic.ADDR; + public static MemorySegment GetMasterVolume$address() { + return GetMasterVolume.ADDR; } /** * {@snippet lang=c : - * void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color) + * float GetMasterVolume() * } */ - public static void DrawSplineBezierCubic(MemorySegment points, int pointCount, float thick, MemorySegment color) { - var mh$ = DrawSplineBezierCubic.HANDLE; + public static float GetMasterVolume() { + var mh$ = GetMasterVolume.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineBezierCubic", points, pointCount, thick, color); + traceDowncall("GetMasterVolume"); } - mh$.invokeExact(points, pointCount, thick, color); + return (float)mh$.invokeExact(); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineSegmentLinear { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + private static class LoadWave { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Wave.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentLinear"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadWave"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20548,61 +33258,59 @@ private static class DrawSplineSegmentLinear { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) + * Wave LoadWave(const char *fileName) * } */ - public static FunctionDescriptor DrawSplineSegmentLinear$descriptor() { - return DrawSplineSegmentLinear.DESC; + public static FunctionDescriptor LoadWave$descriptor() { + return LoadWave.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) + * Wave LoadWave(const char *fileName) * } */ - public static MethodHandle DrawSplineSegmentLinear$handle() { - return DrawSplineSegmentLinear.HANDLE; + public static MethodHandle LoadWave$handle() { + return LoadWave.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) + * Wave LoadWave(const char *fileName) * } */ - public static MemorySegment DrawSplineSegmentLinear$address() { - return DrawSplineSegmentLinear.ADDR; + public static MemorySegment LoadWave$address() { + return LoadWave.ADDR; } /** * {@snippet lang=c : - * void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color) + * Wave LoadWave(const char *fileName) * } */ - public static void DrawSplineSegmentLinear(MemorySegment p1, MemorySegment p2, float thick, MemorySegment color) { - var mh$ = DrawSplineSegmentLinear.HANDLE; + public static MemorySegment LoadWave(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadWave.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineSegmentLinear", p1, p2, thick, color); + traceDowncall("LoadWave", allocator, fileName); } - mh$.invokeExact(p1, p2, thick, color); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineSegmentBasis { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + private static class LoadWaveFromMemory { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Wave.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentBasis"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadWaveFromMemory"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20610,61 +33318,57 @@ private static class DrawSplineSegmentBasis { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static FunctionDescriptor DrawSplineSegmentBasis$descriptor() { - return DrawSplineSegmentBasis.DESC; + public static FunctionDescriptor LoadWaveFromMemory$descriptor() { + return LoadWaveFromMemory.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static MethodHandle DrawSplineSegmentBasis$handle() { - return DrawSplineSegmentBasis.HANDLE; + public static MethodHandle LoadWaveFromMemory$handle() { + return LoadWaveFromMemory.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static MemorySegment DrawSplineSegmentBasis$address() { - return DrawSplineSegmentBasis.ADDR; + public static MemorySegment LoadWaveFromMemory$address() { + return LoadWaveFromMemory.ADDR; } /** * {@snippet lang=c : - * void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) * } */ - public static void DrawSplineSegmentBasis(MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float thick, MemorySegment color) { - var mh$ = DrawSplineSegmentBasis.HANDLE; + public static MemorySegment LoadWaveFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize) { + var mh$ = LoadWaveFromMemory.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineSegmentBasis", p1, p2, p3, p4, thick, color); + traceDowncall("LoadWaveFromMemory", allocator, fileType, fileData, dataSize); } - mh$.invokeExact(p1, p2, p3, p4, thick, color); + return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineSegmentCatmullRom { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + private static class IsWaveReady { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + Wave.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentCatmullRom"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsWaveReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20672,60 +33376,57 @@ private static class DrawSplineSegmentCatmullRom { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * bool IsWaveReady(Wave wave) * } - */ - public static FunctionDescriptor DrawSplineSegmentCatmullRom$descriptor() { - return DrawSplineSegmentCatmullRom.DESC; + */ + public static FunctionDescriptor IsWaveReady$descriptor() { + return IsWaveReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * bool IsWaveReady(Wave wave) * } */ - public static MethodHandle DrawSplineSegmentCatmullRom$handle() { - return DrawSplineSegmentCatmullRom.HANDLE; + public static MethodHandle IsWaveReady$handle() { + return IsWaveReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * bool IsWaveReady(Wave wave) * } */ - public static MemorySegment DrawSplineSegmentCatmullRom$address() { - return DrawSplineSegmentCatmullRom.ADDR; + public static MemorySegment IsWaveReady$address() { + return IsWaveReady.ADDR; } /** * {@snippet lang=c : - * void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color) + * bool IsWaveReady(Wave wave) * } */ - public static void DrawSplineSegmentCatmullRom(MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float thick, MemorySegment color) { - var mh$ = DrawSplineSegmentCatmullRom.HANDLE; + public static boolean IsWaveReady(MemorySegment wave) { + var mh$ = IsWaveReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineSegmentCatmullRom", p1, p2, p3, p4, thick, color); + traceDowncall("IsWaveReady", wave); } - mh$.invokeExact(p1, p2, p3, p4, thick, color); + return (boolean)mh$.invokeExact(wave); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineSegmentBezierQuadratic { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + private static class LoadSound { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Sound.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentBezierQuadratic"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadSound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20733,61 +33434,57 @@ private static class DrawSplineSegmentBezierQuadratic { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) + * Sound LoadSound(const char *fileName) * } */ - public static FunctionDescriptor DrawSplineSegmentBezierQuadratic$descriptor() { - return DrawSplineSegmentBezierQuadratic.DESC; + public static FunctionDescriptor LoadSound$descriptor() { + return LoadSound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) + * Sound LoadSound(const char *fileName) * } */ - public static MethodHandle DrawSplineSegmentBezierQuadratic$handle() { - return DrawSplineSegmentBezierQuadratic.HANDLE; + public static MethodHandle LoadSound$handle() { + return LoadSound.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) + * Sound LoadSound(const char *fileName) * } */ - public static MemorySegment DrawSplineSegmentBezierQuadratic$address() { - return DrawSplineSegmentBezierQuadratic.ADDR; + public static MemorySegment LoadSound$address() { + return LoadSound.ADDR; } /** * {@snippet lang=c : - * void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color) + * Sound LoadSound(const char *fileName) * } */ - public static void DrawSplineSegmentBezierQuadratic(MemorySegment p1, MemorySegment c2, MemorySegment p3, float thick, MemorySegment color) { - var mh$ = DrawSplineSegmentBezierQuadratic.HANDLE; + public static MemorySegment LoadSound(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadSound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineSegmentBezierQuadratic", p1, c2, p3, thick, color); + traceDowncall("LoadSound", allocator, fileName); } - mh$.invokeExact(p1, c2, p3, thick, color); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class DrawSplineSegmentBezierCubic { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT, - Color.layout() + private static class LoadSoundFromWave { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Sound.layout(), + Wave.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("DrawSplineSegmentBezierCubic"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadSoundFromWave"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20795,59 +33492,57 @@ private static class DrawSplineSegmentBezierCubic { /** * Function descriptor for: * {@snippet lang=c : - * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) + * Sound LoadSoundFromWave(Wave wave) * } */ - public static FunctionDescriptor DrawSplineSegmentBezierCubic$descriptor() { - return DrawSplineSegmentBezierCubic.DESC; + public static FunctionDescriptor LoadSoundFromWave$descriptor() { + return LoadSoundFromWave.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) + * Sound LoadSoundFromWave(Wave wave) * } */ - public static MethodHandle DrawSplineSegmentBezierCubic$handle() { - return DrawSplineSegmentBezierCubic.HANDLE; + public static MethodHandle LoadSoundFromWave$handle() { + return LoadSoundFromWave.HANDLE; } /** * Address for: * {@snippet lang=c : - * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) + * Sound LoadSoundFromWave(Wave wave) * } */ - public static MemorySegment DrawSplineSegmentBezierCubic$address() { - return DrawSplineSegmentBezierCubic.ADDR; + public static MemorySegment LoadSoundFromWave$address() { + return LoadSoundFromWave.ADDR; } /** * {@snippet lang=c : - * void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color) + * Sound LoadSoundFromWave(Wave wave) * } */ - public static void DrawSplineSegmentBezierCubic(MemorySegment p1, MemorySegment c2, MemorySegment c3, MemorySegment p4, float thick, MemorySegment color) { - var mh$ = DrawSplineSegmentBezierCubic.HANDLE; + public static MemorySegment LoadSoundFromWave(SegmentAllocator allocator, MemorySegment wave) { + var mh$ = LoadSoundFromWave.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("DrawSplineSegmentBezierCubic", p1, c2, c3, p4, thick, color); + traceDowncall("LoadSoundFromWave", allocator, wave); } - mh$.invokeExact(p1, c2, c3, p4, thick, color); + return (MemorySegment)mh$.invokeExact(allocator, wave); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetSplinePointLinear { + private static class LoadSoundAlias { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + Sound.layout(), + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointLinear"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadSoundAlias"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20855,61 +33550,57 @@ private static class GetSplinePointLinear { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) + * Sound LoadSoundAlias(Sound source) * } */ - public static FunctionDescriptor GetSplinePointLinear$descriptor() { - return GetSplinePointLinear.DESC; + public static FunctionDescriptor LoadSoundAlias$descriptor() { + return LoadSoundAlias.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) + * Sound LoadSoundAlias(Sound source) * } */ - public static MethodHandle GetSplinePointLinear$handle() { - return GetSplinePointLinear.HANDLE; + public static MethodHandle LoadSoundAlias$handle() { + return LoadSoundAlias.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) + * Sound LoadSoundAlias(Sound source) * } */ - public static MemorySegment GetSplinePointLinear$address() { - return GetSplinePointLinear.ADDR; + public static MemorySegment LoadSoundAlias$address() { + return LoadSoundAlias.ADDR; } /** * {@snippet lang=c : - * Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t) + * Sound LoadSoundAlias(Sound source) * } */ - public static MemorySegment GetSplinePointLinear(SegmentAllocator allocator, MemorySegment startPos, MemorySegment endPos, float t) { - var mh$ = GetSplinePointLinear.HANDLE; + public static MemorySegment LoadSoundAlias(SegmentAllocator allocator, MemorySegment source) { + var mh$ = LoadSoundAlias.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetSplinePointLinear", allocator, startPos, endPos, t); + traceDowncall("LoadSoundAlias", allocator, source); } - return (MemorySegment)mh$.invokeExact(allocator, startPos, endPos, t); + return (MemorySegment)mh$.invokeExact(allocator, source); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetSplinePointBasis { + private static class IsSoundReady { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + raylib.C_BOOL, + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointBasis"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsSoundReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20917,61 +33608,58 @@ private static class GetSplinePointBasis { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * bool IsSoundReady(Sound sound) * } */ - public static FunctionDescriptor GetSplinePointBasis$descriptor() { - return GetSplinePointBasis.DESC; + public static FunctionDescriptor IsSoundReady$descriptor() { + return IsSoundReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * bool IsSoundReady(Sound sound) * } */ - public static MethodHandle GetSplinePointBasis$handle() { - return GetSplinePointBasis.HANDLE; + public static MethodHandle IsSoundReady$handle() { + return IsSoundReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * bool IsSoundReady(Sound sound) * } */ - public static MemorySegment GetSplinePointBasis$address() { - return GetSplinePointBasis.ADDR; + public static MemorySegment IsSoundReady$address() { + return IsSoundReady.ADDR; } /** * {@snippet lang=c : - * Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * bool IsSoundReady(Sound sound) * } */ - public static MemorySegment GetSplinePointBasis(SegmentAllocator allocator, MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float t) { - var mh$ = GetSplinePointBasis.HANDLE; + public static boolean IsSoundReady(MemorySegment sound) { + var mh$ = IsSoundReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetSplinePointBasis", allocator, p1, p2, p3, p4, t); + traceDowncall("IsSoundReady", sound); } - return (MemorySegment)mh$.invokeExact(allocator, p1, p2, p3, p4, t); + return (boolean)mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetSplinePointCatmullRom { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + private static class UpdateSound { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout(), + raylib.C_POINTER, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointCatmullRom"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateSound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -20979,60 +33667,56 @@ private static class GetSplinePointCatmullRom { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * void UpdateSound(Sound sound, const void *data, int sampleCount) * } */ - public static FunctionDescriptor GetSplinePointCatmullRom$descriptor() { - return GetSplinePointCatmullRom.DESC; + public static FunctionDescriptor UpdateSound$descriptor() { + return UpdateSound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * void UpdateSound(Sound sound, const void *data, int sampleCount) * } */ - public static MethodHandle GetSplinePointCatmullRom$handle() { - return GetSplinePointCatmullRom.HANDLE; + public static MethodHandle UpdateSound$handle() { + return UpdateSound.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * void UpdateSound(Sound sound, const void *data, int sampleCount) * } */ - public static MemorySegment GetSplinePointCatmullRom$address() { - return GetSplinePointCatmullRom.ADDR; + public static MemorySegment UpdateSound$address() { + return UpdateSound.ADDR; } /** * {@snippet lang=c : - * Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t) + * void UpdateSound(Sound sound, const void *data, int sampleCount) * } */ - public static MemorySegment GetSplinePointCatmullRom(SegmentAllocator allocator, MemorySegment p1, MemorySegment p2, MemorySegment p3, MemorySegment p4, float t) { - var mh$ = GetSplinePointCatmullRom.HANDLE; + public static void UpdateSound(MemorySegment sound, MemorySegment data, int sampleCount) { + var mh$ = UpdateSound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetSplinePointCatmullRom", allocator, p1, p2, p3, p4, t); + traceDowncall("UpdateSound", sound, data, sampleCount); } - return (MemorySegment)mh$.invokeExact(allocator, p1, p2, p3, p4, t); + mh$.invokeExact(sound, data, sampleCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetSplinePointBezierQuad { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + private static class UnloadWave { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Wave.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointBezierQuad"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadWave"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21040,61 +33724,56 @@ private static class GetSplinePointBezierQuad { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) + * void UnloadWave(Wave wave) * } */ - public static FunctionDescriptor GetSplinePointBezierQuad$descriptor() { - return GetSplinePointBezierQuad.DESC; + public static FunctionDescriptor UnloadWave$descriptor() { + return UnloadWave.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) + * void UnloadWave(Wave wave) * } */ - public static MethodHandle GetSplinePointBezierQuad$handle() { - return GetSplinePointBezierQuad.HANDLE; + public static MethodHandle UnloadWave$handle() { + return UnloadWave.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) + * void UnloadWave(Wave wave) * } */ - public static MemorySegment GetSplinePointBezierQuad$address() { - return GetSplinePointBezierQuad.ADDR; + public static MemorySegment UnloadWave$address() { + return UnloadWave.ADDR; } /** * {@snippet lang=c : - * Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t) + * void UnloadWave(Wave wave) * } */ - public static MemorySegment GetSplinePointBezierQuad(SegmentAllocator allocator, MemorySegment p1, MemorySegment c2, MemorySegment p3, float t) { - var mh$ = GetSplinePointBezierQuad.HANDLE; + public static void UnloadWave(MemorySegment wave) { + var mh$ = UnloadWave.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetSplinePointBezierQuad", allocator, p1, c2, p3, t); + traceDowncall("UnloadWave", wave); } - return (MemorySegment)mh$.invokeExact(allocator, p1, c2, p3, t); + mh$.invokeExact(wave); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetSplinePointBezierCubic { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + private static class UnloadSound { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetSplinePointBezierCubic"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadSound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21102,58 +33781,56 @@ private static class GetSplinePointBezierCubic { /** * Function descriptor for: * {@snippet lang=c : - * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) + * void UnloadSound(Sound sound) * } */ - public static FunctionDescriptor GetSplinePointBezierCubic$descriptor() { - return GetSplinePointBezierCubic.DESC; + public static FunctionDescriptor UnloadSound$descriptor() { + return UnloadSound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) + * void UnloadSound(Sound sound) * } */ - public static MethodHandle GetSplinePointBezierCubic$handle() { - return GetSplinePointBezierCubic.HANDLE; + public static MethodHandle UnloadSound$handle() { + return UnloadSound.HANDLE; } /** * Address for: * {@snippet lang=c : - * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) + * void UnloadSound(Sound sound) * } */ - public static MemorySegment GetSplinePointBezierCubic$address() { - return GetSplinePointBezierCubic.ADDR; + public static MemorySegment UnloadSound$address() { + return UnloadSound.ADDR; } /** * {@snippet lang=c : - * Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t) + * void UnloadSound(Sound sound) * } */ - public static MemorySegment GetSplinePointBezierCubic(SegmentAllocator allocator, MemorySegment p1, MemorySegment c2, MemorySegment c3, MemorySegment p4, float t) { - var mh$ = GetSplinePointBezierCubic.HANDLE; + public static void UnloadSound(MemorySegment sound) { + var mh$ = UnloadSound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetSplinePointBezierCubic", allocator, p1, c2, c3, p4, t); + traceDowncall("UnloadSound", sound); } - return (MemorySegment)mh$.invokeExact(allocator, p1, c2, c3, p4, t); + mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionRecs { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Rectangle.layout(), - Rectangle.layout() + private static class UnloadSoundAlias { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionRecs"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadSoundAlias"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21161,60 +33838,58 @@ private static class CheckCollisionRecs { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) + * void UnloadSoundAlias(Sound alias) * } */ - public static FunctionDescriptor CheckCollisionRecs$descriptor() { - return CheckCollisionRecs.DESC; + public static FunctionDescriptor UnloadSoundAlias$descriptor() { + return UnloadSoundAlias.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) + * void UnloadSoundAlias(Sound alias) * } */ - public static MethodHandle CheckCollisionRecs$handle() { - return CheckCollisionRecs.HANDLE; + public static MethodHandle UnloadSoundAlias$handle() { + return UnloadSoundAlias.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) + * void UnloadSoundAlias(Sound alias) * } */ - public static MemorySegment CheckCollisionRecs$address() { - return CheckCollisionRecs.ADDR; + public static MemorySegment UnloadSoundAlias$address() { + return UnloadSoundAlias.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2) + * void UnloadSoundAlias(Sound alias) * } */ - public static boolean CheckCollisionRecs(MemorySegment rec1, MemorySegment rec2) { - var mh$ = CheckCollisionRecs.HANDLE; + public static void UnloadSoundAlias(MemorySegment alias) { + var mh$ = UnloadSoundAlias.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionRecs", rec1, rec2); + traceDowncall("UnloadSoundAlias", alias); } - return (boolean)mh$.invokeExact(rec1, rec2); + mh$.invokeExact(alias); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionCircles { + private static class ExportWave { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_BOOL, - Vector2.layout(), - raylib.C_FLOAT, - Vector2.layout(), - raylib.C_FLOAT + Wave.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionCircles"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportWave"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21222,59 +33897,58 @@ private static class CheckCollisionCircles { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) + * bool ExportWave(Wave wave, const char *fileName) * } */ - public static FunctionDescriptor CheckCollisionCircles$descriptor() { - return CheckCollisionCircles.DESC; + public static FunctionDescriptor ExportWave$descriptor() { + return ExportWave.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) + * bool ExportWave(Wave wave, const char *fileName) * } */ - public static MethodHandle CheckCollisionCircles$handle() { - return CheckCollisionCircles.HANDLE; + public static MethodHandle ExportWave$handle() { + return ExportWave.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) + * bool ExportWave(Wave wave, const char *fileName) * } */ - public static MemorySegment CheckCollisionCircles$address() { - return CheckCollisionCircles.ADDR; + public static MemorySegment ExportWave$address() { + return ExportWave.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2) + * bool ExportWave(Wave wave, const char *fileName) * } */ - public static boolean CheckCollisionCircles(MemorySegment center1, float radius1, MemorySegment center2, float radius2) { - var mh$ = CheckCollisionCircles.HANDLE; + public static boolean ExportWave(MemorySegment wave, MemorySegment fileName) { + var mh$ = ExportWave.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionCircles", center1, radius1, center2, radius2); + traceDowncall("ExportWave", wave, fileName); } - return (boolean)mh$.invokeExact(center1, radius1, center2, radius2); + return (boolean)mh$.invokeExact(wave, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionCircleRec { + private static class ExportWaveAsCode { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_BOOL, - Vector2.layout(), - raylib.C_FLOAT, - Rectangle.layout() + Wave.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionCircleRec"); + public static final MemorySegment ADDR = raylib.findOrThrow("ExportWaveAsCode"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21282,58 +33956,56 @@ private static class CheckCollisionCircleRec { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) + * bool ExportWaveAsCode(Wave wave, const char *fileName) * } */ - public static FunctionDescriptor CheckCollisionCircleRec$descriptor() { - return CheckCollisionCircleRec.DESC; + public static FunctionDescriptor ExportWaveAsCode$descriptor() { + return ExportWaveAsCode.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) + * bool ExportWaveAsCode(Wave wave, const char *fileName) * } */ - public static MethodHandle CheckCollisionCircleRec$handle() { - return CheckCollisionCircleRec.HANDLE; + public static MethodHandle ExportWaveAsCode$handle() { + return ExportWaveAsCode.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) + * bool ExportWaveAsCode(Wave wave, const char *fileName) * } */ - public static MemorySegment CheckCollisionCircleRec$address() { - return CheckCollisionCircleRec.ADDR; + public static MemorySegment ExportWaveAsCode$address() { + return ExportWaveAsCode.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec) + * bool ExportWaveAsCode(Wave wave, const char *fileName) * } */ - public static boolean CheckCollisionCircleRec(MemorySegment center, float radius, MemorySegment rec) { - var mh$ = CheckCollisionCircleRec.HANDLE; + public static boolean ExportWaveAsCode(MemorySegment wave, MemorySegment fileName) { + var mh$ = ExportWaveAsCode.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionCircleRec", center, radius, rec); + traceDowncall("ExportWaveAsCode", wave, fileName); } - return (boolean)mh$.invokeExact(center, radius, rec); + return (boolean)mh$.invokeExact(wave, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionPointRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Vector2.layout(), - Rectangle.layout() + private static class PlaySound { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointRec"); + public static final MemorySegment ADDR = raylib.findOrThrow("PlaySound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21341,59 +34013,56 @@ private static class CheckCollisionPointRec { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) + * void PlaySound(Sound sound) * } */ - public static FunctionDescriptor CheckCollisionPointRec$descriptor() { - return CheckCollisionPointRec.DESC; + public static FunctionDescriptor PlaySound$descriptor() { + return PlaySound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) + * void PlaySound(Sound sound) * } */ - public static MethodHandle CheckCollisionPointRec$handle() { - return CheckCollisionPointRec.HANDLE; + public static MethodHandle PlaySound$handle() { + return PlaySound.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) + * void PlaySound(Sound sound) * } */ - public static MemorySegment CheckCollisionPointRec$address() { - return CheckCollisionPointRec.ADDR; + public static MemorySegment PlaySound$address() { + return PlaySound.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionPointRec(Vector2 point, Rectangle rec) + * void PlaySound(Sound sound) * } */ - public static boolean CheckCollisionPointRec(MemorySegment point, MemorySegment rec) { - var mh$ = CheckCollisionPointRec.HANDLE; + public static void PlaySound(MemorySegment sound) { + var mh$ = PlaySound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionPointRec", point, rec); + traceDowncall("PlaySound", sound); } - return (boolean)mh$.invokeExact(point, rec); + mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionPointCircle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Vector2.layout(), - Vector2.layout(), - raylib.C_FLOAT + private static class StopSound { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointCircle"); + public static final MemorySegment ADDR = raylib.findOrThrow("StopSound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21401,60 +34070,56 @@ private static class CheckCollisionPointCircle { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) + * void StopSound(Sound sound) * } */ - public static FunctionDescriptor CheckCollisionPointCircle$descriptor() { - return CheckCollisionPointCircle.DESC; + public static FunctionDescriptor StopSound$descriptor() { + return StopSound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) + * void StopSound(Sound sound) * } */ - public static MethodHandle CheckCollisionPointCircle$handle() { - return CheckCollisionPointCircle.HANDLE; + public static MethodHandle StopSound$handle() { + return StopSound.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) + * void StopSound(Sound sound) * } */ - public static MemorySegment CheckCollisionPointCircle$address() { - return CheckCollisionPointCircle.ADDR; + public static MemorySegment StopSound$address() { + return StopSound.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius) + * void StopSound(Sound sound) * } */ - public static boolean CheckCollisionPointCircle(MemorySegment point, MemorySegment center, float radius) { - var mh$ = CheckCollisionPointCircle.HANDLE; + public static void StopSound(MemorySegment sound) { + var mh$ = StopSound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionPointCircle", point, center, radius); + traceDowncall("StopSound", sound); } - return (boolean)mh$.invokeExact(point, center, radius); + mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionPointTriangle { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout() + private static class PauseSound { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointTriangle"); + public static final MemorySegment ADDR = raylib.findOrThrow("PauseSound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21462,59 +34127,56 @@ private static class CheckCollisionPointTriangle { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) + * void PauseSound(Sound sound) * } */ - public static FunctionDescriptor CheckCollisionPointTriangle$descriptor() { - return CheckCollisionPointTriangle.DESC; + public static FunctionDescriptor PauseSound$descriptor() { + return PauseSound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) + * void PauseSound(Sound sound) * } */ - public static MethodHandle CheckCollisionPointTriangle$handle() { - return CheckCollisionPointTriangle.HANDLE; + public static MethodHandle PauseSound$handle() { + return PauseSound.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) + * void PauseSound(Sound sound) * } */ - public static MemorySegment CheckCollisionPointTriangle$address() { - return CheckCollisionPointTriangle.ADDR; + public static MemorySegment PauseSound$address() { + return PauseSound.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3) + * void PauseSound(Sound sound) * } */ - public static boolean CheckCollisionPointTriangle(MemorySegment point, MemorySegment p1, MemorySegment p2, MemorySegment p3) { - var mh$ = CheckCollisionPointTriangle.HANDLE; + public static void PauseSound(MemorySegment sound) { + var mh$ = PauseSound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionPointTriangle", point, p1, p2, p3); + traceDowncall("PauseSound", sound); } - return (boolean)mh$.invokeExact(point, p1, p2, p3); + mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionPointPoly { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Vector2.layout(), - raylib.C_POINTER, - raylib.C_INT + private static class ResumeSound { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointPoly"); + public static final MemorySegment ADDR = raylib.findOrThrow("ResumeSound"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21522,61 +34184,57 @@ private static class CheckCollisionPointPoly { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) + * void ResumeSound(Sound sound) * } */ - public static FunctionDescriptor CheckCollisionPointPoly$descriptor() { - return CheckCollisionPointPoly.DESC; + public static FunctionDescriptor ResumeSound$descriptor() { + return ResumeSound.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) + * void ResumeSound(Sound sound) * } */ - public static MethodHandle CheckCollisionPointPoly$handle() { - return CheckCollisionPointPoly.HANDLE; + public static MethodHandle ResumeSound$handle() { + return ResumeSound.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) + * void ResumeSound(Sound sound) * } */ - public static MemorySegment CheckCollisionPointPoly$address() { - return CheckCollisionPointPoly.ADDR; + public static MemorySegment ResumeSound$address() { + return ResumeSound.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount) + * void ResumeSound(Sound sound) * } */ - public static boolean CheckCollisionPointPoly(MemorySegment point, MemorySegment points, int pointCount) { - var mh$ = CheckCollisionPointPoly.HANDLE; + public static void ResumeSound(MemorySegment sound) { + var mh$ = ResumeSound.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionPointPoly", point, points, pointCount); + traceDowncall("ResumeSound", sound); } - return (boolean)mh$.invokeExact(point, points, pointCount); + mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionLines { + private static class IsSoundPlaying { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_BOOL, - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_POINTER + Sound.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionLines"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsSoundPlaying"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21584,60 +34242,57 @@ private static class CheckCollisionLines { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) + * bool IsSoundPlaying(Sound sound) * } */ - public static FunctionDescriptor CheckCollisionLines$descriptor() { - return CheckCollisionLines.DESC; + public static FunctionDescriptor IsSoundPlaying$descriptor() { + return IsSoundPlaying.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) + * bool IsSoundPlaying(Sound sound) * } */ - public static MethodHandle CheckCollisionLines$handle() { - return CheckCollisionLines.HANDLE; + public static MethodHandle IsSoundPlaying$handle() { + return IsSoundPlaying.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) + * bool IsSoundPlaying(Sound sound) * } */ - public static MemorySegment CheckCollisionLines$address() { - return CheckCollisionLines.ADDR; + public static MemorySegment IsSoundPlaying$address() { + return IsSoundPlaying.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint) + * bool IsSoundPlaying(Sound sound) * } */ - public static boolean CheckCollisionLines(MemorySegment startPos1, MemorySegment endPos1, MemorySegment startPos2, MemorySegment endPos2, MemorySegment collisionPoint) { - var mh$ = CheckCollisionLines.HANDLE; + public static boolean IsSoundPlaying(MemorySegment sound) { + var mh$ = IsSoundPlaying.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionLines", startPos1, endPos1, startPos2, endPos2, collisionPoint); + traceDowncall("IsSoundPlaying", sound); } - return (boolean)mh$.invokeExact(startPos1, endPos1, startPos2, endPos2, collisionPoint); + return (boolean)mh$.invokeExact(sound); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class CheckCollisionPointLine { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Vector2.layout(), - Vector2.layout(), - Vector2.layout(), - raylib.C_INT + private static class SetSoundVolume { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("CheckCollisionPointLine"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetSoundVolume"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21645,58 +34300,57 @@ private static class CheckCollisionPointLine { /** * Function descriptor for: * {@snippet lang=c : - * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) + * void SetSoundVolume(Sound sound, float volume) * } */ - public static FunctionDescriptor CheckCollisionPointLine$descriptor() { - return CheckCollisionPointLine.DESC; + public static FunctionDescriptor SetSoundVolume$descriptor() { + return SetSoundVolume.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) + * void SetSoundVolume(Sound sound, float volume) * } */ - public static MethodHandle CheckCollisionPointLine$handle() { - return CheckCollisionPointLine.HANDLE; + public static MethodHandle SetSoundVolume$handle() { + return SetSoundVolume.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) + * void SetSoundVolume(Sound sound, float volume) * } */ - public static MemorySegment CheckCollisionPointLine$address() { - return CheckCollisionPointLine.ADDR; + public static MemorySegment SetSoundVolume$address() { + return SetSoundVolume.ADDR; } /** * {@snippet lang=c : - * bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold) + * void SetSoundVolume(Sound sound, float volume) * } */ - public static boolean CheckCollisionPointLine(MemorySegment point, MemorySegment p1, MemorySegment p2, int threshold) { - var mh$ = CheckCollisionPointLine.HANDLE; + public static void SetSoundVolume(MemorySegment sound, float volume) { + var mh$ = SetSoundVolume.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("CheckCollisionPointLine", point, p1, p2, threshold); + traceDowncall("SetSoundVolume", sound, volume); } - return (boolean)mh$.invokeExact(point, p1, p2, threshold); + mh$.invokeExact(sound, volume); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GetCollisionRec { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Rectangle.layout(), - Rectangle.layout(), - Rectangle.layout() + private static class SetSoundPitch { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GetCollisionRec"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetSoundPitch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21704,57 +34358,57 @@ private static class GetCollisionRec { /** * Function descriptor for: * {@snippet lang=c : - * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) + * void SetSoundPitch(Sound sound, float pitch) * } */ - public static FunctionDescriptor GetCollisionRec$descriptor() { - return GetCollisionRec.DESC; + public static FunctionDescriptor SetSoundPitch$descriptor() { + return SetSoundPitch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) + * void SetSoundPitch(Sound sound, float pitch) * } */ - public static MethodHandle GetCollisionRec$handle() { - return GetCollisionRec.HANDLE; + public static MethodHandle SetSoundPitch$handle() { + return SetSoundPitch.HANDLE; } /** * Address for: * {@snippet lang=c : - * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) + * void SetSoundPitch(Sound sound, float pitch) * } */ - public static MemorySegment GetCollisionRec$address() { - return GetCollisionRec.ADDR; + public static MemorySegment SetSoundPitch$address() { + return SetSoundPitch.ADDR; } /** * {@snippet lang=c : - * Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) + * void SetSoundPitch(Sound sound, float pitch) * } */ - public static MemorySegment GetCollisionRec(SegmentAllocator allocator, MemorySegment rec1, MemorySegment rec2) { - var mh$ = GetCollisionRec.HANDLE; + public static void SetSoundPitch(MemorySegment sound, float pitch) { + var mh$ = SetSoundPitch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GetCollisionRec", allocator, rec1, rec2); + traceDowncall("SetSoundPitch", sound, pitch); } - return (MemorySegment)mh$.invokeExact(allocator, rec1, rec2); + mh$.invokeExact(sound, pitch); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImage { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_POINTER + private static class SetSoundPan { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Sound.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImage"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetSoundPan"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21762,61 +34416,57 @@ private static class LoadImage { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImage(const char *fileName) + * void SetSoundPan(Sound sound, float pan) * } */ - public static FunctionDescriptor LoadImage$descriptor() { - return LoadImage.DESC; + public static FunctionDescriptor SetSoundPan$descriptor() { + return SetSoundPan.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImage(const char *fileName) + * void SetSoundPan(Sound sound, float pan) * } */ - public static MethodHandle LoadImage$handle() { - return LoadImage.HANDLE; + public static MethodHandle SetSoundPan$handle() { + return SetSoundPan.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImage(const char *fileName) + * void SetSoundPan(Sound sound, float pan) * } */ - public static MemorySegment LoadImage$address() { - return LoadImage.ADDR; + public static MemorySegment SetSoundPan$address() { + return SetSoundPan.ADDR; } /** * {@snippet lang=c : - * Image LoadImage(const char *fileName) + * void SetSoundPan(Sound sound, float pan) * } */ - public static MemorySegment LoadImage(SegmentAllocator allocator, MemorySegment fileName) { - var mh$ = LoadImage.HANDLE; + public static void SetSoundPan(MemorySegment sound, float pan) { + var mh$ = SetSoundPan.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImage", allocator, fileName); + traceDowncall("SetSoundPan", sound, pan); } - return (MemorySegment)mh$.invokeExact(allocator, fileName); + mh$.invokeExact(sound, pan); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageRaw { + private static class WaveCopy { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + Wave.layout(), + Wave.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageRaw"); + public static final MemorySegment ADDR = raylib.findOrThrow("WaveCopy"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21824,59 +34474,58 @@ private static class LoadImageRaw { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) + * Wave WaveCopy(Wave wave) * } */ - public static FunctionDescriptor LoadImageRaw$descriptor() { - return LoadImageRaw.DESC; + public static FunctionDescriptor WaveCopy$descriptor() { + return WaveCopy.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) + * Wave WaveCopy(Wave wave) * } */ - public static MethodHandle LoadImageRaw$handle() { - return LoadImageRaw.HANDLE; + public static MethodHandle WaveCopy$handle() { + return WaveCopy.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) + * Wave WaveCopy(Wave wave) * } */ - public static MemorySegment LoadImageRaw$address() { - return LoadImageRaw.ADDR; + public static MemorySegment WaveCopy$address() { + return WaveCopy.ADDR; } /** * {@snippet lang=c : - * Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize) + * Wave WaveCopy(Wave wave) * } */ - public static MemorySegment LoadImageRaw(SegmentAllocator allocator, MemorySegment fileName, int width, int height, int format, int headerSize) { - var mh$ = LoadImageRaw.HANDLE; + public static MemorySegment WaveCopy(SegmentAllocator allocator, MemorySegment wave) { + var mh$ = WaveCopy.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageRaw", allocator, fileName, width, height, format, headerSize); + traceDowncall("WaveCopy", allocator, wave); } - return (MemorySegment)mh$.invokeExact(allocator, fileName, width, height, format, headerSize); + return (MemorySegment)mh$.invokeExact(allocator, wave); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageSvg { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), + private static class WaveCrop { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER, raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageSvg"); + public static final MemorySegment ADDR = raylib.findOrThrow("WaveCrop"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21884,58 +34533,59 @@ private static class LoadImageSvg { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageSvg(const char *fileNameOrString, int width, int height) + * void WaveCrop(Wave *wave, int initSample, int finalSample) * } */ - public static FunctionDescriptor LoadImageSvg$descriptor() { - return LoadImageSvg.DESC; + public static FunctionDescriptor WaveCrop$descriptor() { + return WaveCrop.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageSvg(const char *fileNameOrString, int width, int height) + * void WaveCrop(Wave *wave, int initSample, int finalSample) * } */ - public static MethodHandle LoadImageSvg$handle() { - return LoadImageSvg.HANDLE; + public static MethodHandle WaveCrop$handle() { + return WaveCrop.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageSvg(const char *fileNameOrString, int width, int height) + * void WaveCrop(Wave *wave, int initSample, int finalSample) * } */ - public static MemorySegment LoadImageSvg$address() { - return LoadImageSvg.ADDR; + public static MemorySegment WaveCrop$address() { + return WaveCrop.ADDR; } /** * {@snippet lang=c : - * Image LoadImageSvg(const char *fileNameOrString, int width, int height) + * void WaveCrop(Wave *wave, int initSample, int finalSample) * } */ - public static MemorySegment LoadImageSvg(SegmentAllocator allocator, MemorySegment fileNameOrString, int width, int height) { - var mh$ = LoadImageSvg.HANDLE; + public static void WaveCrop(MemorySegment wave, int initSample, int finalSample) { + var mh$ = WaveCrop.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageSvg", allocator, fileNameOrString, width, height); + traceDowncall("WaveCrop", wave, initSample, finalSample); } - return (MemorySegment)mh$.invokeExact(allocator, fileNameOrString, width, height); + mh$.invokeExact(wave, initSample, finalSample); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageAnim { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), + private static class WaveFormat { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER, - raylib.C_POINTER + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageAnim"); + public static final MemorySegment ADDR = raylib.findOrThrow("WaveFormat"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -21943,60 +34593,57 @@ private static class LoadImageAnim { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageAnim(const char *fileName, int *frames) + * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) * } */ - public static FunctionDescriptor LoadImageAnim$descriptor() { - return LoadImageAnim.DESC; + public static FunctionDescriptor WaveFormat$descriptor() { + return WaveFormat.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageAnim(const char *fileName, int *frames) + * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) * } */ - public static MethodHandle LoadImageAnim$handle() { - return LoadImageAnim.HANDLE; + public static MethodHandle WaveFormat$handle() { + return WaveFormat.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageAnim(const char *fileName, int *frames) + * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) * } */ - public static MemorySegment LoadImageAnim$address() { - return LoadImageAnim.ADDR; + public static MemorySegment WaveFormat$address() { + return WaveFormat.ADDR; } /** * {@snippet lang=c : - * Image LoadImageAnim(const char *fileName, int *frames) + * void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels) * } */ - public static MemorySegment LoadImageAnim(SegmentAllocator allocator, MemorySegment fileName, MemorySegment frames) { - var mh$ = LoadImageAnim.HANDLE; + public static void WaveFormat(MemorySegment wave, int sampleRate, int sampleSize, int channels) { + var mh$ = WaveFormat.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageAnim", allocator, fileName, frames); + traceDowncall("WaveFormat", wave, sampleRate, sampleSize, channels); } - return (MemorySegment)mh$.invokeExact(allocator, fileName, frames); + mh$.invokeExact(wave, sampleRate, sampleSize, channels); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageAnimFromMemory { + private static class LoadWaveSamples { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_POINTER, raylib.C_POINTER, - raylib.C_INT, - raylib.C_POINTER + Wave.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageAnimFromMemory"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadWaveSamples"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22004,59 +34651,56 @@ private static class LoadImageAnimFromMemory { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) + * float *LoadWaveSamples(Wave wave) * } */ - public static FunctionDescriptor LoadImageAnimFromMemory$descriptor() { - return LoadImageAnimFromMemory.DESC; + public static FunctionDescriptor LoadWaveSamples$descriptor() { + return LoadWaveSamples.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) + * float *LoadWaveSamples(Wave wave) * } */ - public static MethodHandle LoadImageAnimFromMemory$handle() { - return LoadImageAnimFromMemory.HANDLE; + public static MethodHandle LoadWaveSamples$handle() { + return LoadWaveSamples.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) + * float *LoadWaveSamples(Wave wave) * } */ - public static MemorySegment LoadImageAnimFromMemory$address() { - return LoadImageAnimFromMemory.ADDR; + public static MemorySegment LoadWaveSamples$address() { + return LoadWaveSamples.ADDR; } /** * {@snippet lang=c : - * Image LoadImageAnimFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int *frames) + * float *LoadWaveSamples(Wave wave) * } */ - public static MemorySegment LoadImageAnimFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize, MemorySegment frames) { - var mh$ = LoadImageAnimFromMemory.HANDLE; + public static MemorySegment LoadWaveSamples(MemorySegment wave) { + var mh$ = LoadWaveSamples.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageAnimFromMemory", allocator, fileType, fileData, dataSize, frames); + traceDowncall("LoadWaveSamples", wave); } - return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize, frames); + return (MemorySegment)mh$.invokeExact(wave); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageFromMemory { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT + private static class UnloadWaveSamples { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageFromMemory"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadWaveSamples"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22064,57 +34708,57 @@ private static class LoadImageFromMemory { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) + * void UnloadWaveSamples(float *samples) * } - */ - public static FunctionDescriptor LoadImageFromMemory$descriptor() { - return LoadImageFromMemory.DESC; + */ + public static FunctionDescriptor UnloadWaveSamples$descriptor() { + return UnloadWaveSamples.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) + * void UnloadWaveSamples(float *samples) * } */ - public static MethodHandle LoadImageFromMemory$handle() { - return LoadImageFromMemory.HANDLE; + public static MethodHandle UnloadWaveSamples$handle() { + return UnloadWaveSamples.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) + * void UnloadWaveSamples(float *samples) * } */ - public static MemorySegment LoadImageFromMemory$address() { - return LoadImageFromMemory.ADDR; + public static MemorySegment UnloadWaveSamples$address() { + return UnloadWaveSamples.ADDR; } /** * {@snippet lang=c : - * Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize) + * void UnloadWaveSamples(float *samples) * } */ - public static MemorySegment LoadImageFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment fileData, int dataSize) { - var mh$ = LoadImageFromMemory.HANDLE; + public static void UnloadWaveSamples(MemorySegment samples) { + var mh$ = UnloadWaveSamples.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageFromMemory", allocator, fileType, fileData, dataSize); + traceDowncall("UnloadWaveSamples", samples); } - return (MemorySegment)mh$.invokeExact(allocator, fileType, fileData, dataSize); + mh$.invokeExact(samples); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageFromTexture { + private static class LoadMusicStream { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - Texture.layout() + Music.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageFromTexture"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22122,55 +34766,59 @@ private static class LoadImageFromTexture { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageFromTexture(Texture2D texture) + * Music LoadMusicStream(const char *fileName) * } */ - public static FunctionDescriptor LoadImageFromTexture$descriptor() { - return LoadImageFromTexture.DESC; + public static FunctionDescriptor LoadMusicStream$descriptor() { + return LoadMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageFromTexture(Texture2D texture) + * Music LoadMusicStream(const char *fileName) * } */ - public static MethodHandle LoadImageFromTexture$handle() { - return LoadImageFromTexture.HANDLE; + public static MethodHandle LoadMusicStream$handle() { + return LoadMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageFromTexture(Texture2D texture) + * Music LoadMusicStream(const char *fileName) * } */ - public static MemorySegment LoadImageFromTexture$address() { - return LoadImageFromTexture.ADDR; + public static MemorySegment LoadMusicStream$address() { + return LoadMusicStream.ADDR; } /** * {@snippet lang=c : - * Image LoadImageFromTexture(Texture2D texture) + * Music LoadMusicStream(const char *fileName) * } */ - public static MemorySegment LoadImageFromTexture(SegmentAllocator allocator, MemorySegment texture) { - var mh$ = LoadImageFromTexture.HANDLE; + public static MemorySegment LoadMusicStream(SegmentAllocator allocator, MemorySegment fileName) { + var mh$ = LoadMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageFromTexture", allocator, texture); + traceDowncall("LoadMusicStream", allocator, fileName); } - return (MemorySegment)mh$.invokeExact(allocator, texture); + return (MemorySegment)mh$.invokeExact(allocator, fileName); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageFromScreen { + private static class LoadMusicStreamFromMemory { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout() ); + Music.layout(), + raylib.C_POINTER, + raylib.C_POINTER, + raylib.C_INT + ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageFromScreen"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadMusicStreamFromMemory"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22178,57 +34826,57 @@ private static class LoadImageFromScreen { /** * Function descriptor for: * {@snippet lang=c : - * Image LoadImageFromScreen() + * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) * } */ - public static FunctionDescriptor LoadImageFromScreen$descriptor() { - return LoadImageFromScreen.DESC; + public static FunctionDescriptor LoadMusicStreamFromMemory$descriptor() { + return LoadMusicStreamFromMemory.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image LoadImageFromScreen() + * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) * } */ - public static MethodHandle LoadImageFromScreen$handle() { - return LoadImageFromScreen.HANDLE; + public static MethodHandle LoadMusicStreamFromMemory$handle() { + return LoadMusicStreamFromMemory.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image LoadImageFromScreen() + * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) * } */ - public static MemorySegment LoadImageFromScreen$address() { - return LoadImageFromScreen.ADDR; + public static MemorySegment LoadMusicStreamFromMemory$address() { + return LoadMusicStreamFromMemory.ADDR; } /** * {@snippet lang=c : - * Image LoadImageFromScreen() + * Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data, int dataSize) * } */ - public static MemorySegment LoadImageFromScreen(SegmentAllocator allocator) { - var mh$ = LoadImageFromScreen.HANDLE; + public static MemorySegment LoadMusicStreamFromMemory(SegmentAllocator allocator, MemorySegment fileType, MemorySegment data, int dataSize) { + var mh$ = LoadMusicStreamFromMemory.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageFromScreen", allocator); + traceDowncall("LoadMusicStreamFromMemory", allocator, fileType, data, dataSize); } - return (MemorySegment)mh$.invokeExact(allocator); + return (MemorySegment)mh$.invokeExact(allocator, fileType, data, dataSize); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class IsImageReady { + private static class IsMusicReady { public static final FunctionDescriptor DESC = FunctionDescriptor.of( raylib.C_BOOL, - Image.layout() + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("IsImageReady"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsMusicReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22236,56 +34884,56 @@ private static class IsImageReady { /** * Function descriptor for: * {@snippet lang=c : - * bool IsImageReady(Image image) + * bool IsMusicReady(Music music) * } */ - public static FunctionDescriptor IsImageReady$descriptor() { - return IsImageReady.DESC; + public static FunctionDescriptor IsMusicReady$descriptor() { + return IsMusicReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool IsImageReady(Image image) + * bool IsMusicReady(Music music) * } */ - public static MethodHandle IsImageReady$handle() { - return IsImageReady.HANDLE; + public static MethodHandle IsMusicReady$handle() { + return IsMusicReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool IsImageReady(Image image) + * bool IsMusicReady(Music music) * } */ - public static MemorySegment IsImageReady$address() { - return IsImageReady.ADDR; + public static MemorySegment IsMusicReady$address() { + return IsMusicReady.ADDR; } /** * {@snippet lang=c : - * bool IsImageReady(Image image) + * bool IsMusicReady(Music music) * } */ - public static boolean IsImageReady(MemorySegment image) { - var mh$ = IsImageReady.HANDLE; + public static boolean IsMusicReady(MemorySegment music) { + var mh$ = IsMusicReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("IsImageReady", image); + traceDowncall("IsMusicReady", music); } - return (boolean)mh$.invokeExact(image); + return (boolean)mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class UnloadImage { + private static class UnloadMusicStream { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - Image.layout() + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("UnloadImage"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22293,58 +34941,56 @@ private static class UnloadImage { /** * Function descriptor for: * {@snippet lang=c : - * void UnloadImage(Image image) + * void UnloadMusicStream(Music music) * } */ - public static FunctionDescriptor UnloadImage$descriptor() { - return UnloadImage.DESC; + public static FunctionDescriptor UnloadMusicStream$descriptor() { + return UnloadMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void UnloadImage(Image image) + * void UnloadMusicStream(Music music) * } */ - public static MethodHandle UnloadImage$handle() { - return UnloadImage.HANDLE; + public static MethodHandle UnloadMusicStream$handle() { + return UnloadMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * void UnloadImage(Image image) + * void UnloadMusicStream(Music music) * } */ - public static MemorySegment UnloadImage$address() { - return UnloadImage.ADDR; + public static MemorySegment UnloadMusicStream$address() { + return UnloadMusicStream.ADDR; } /** * {@snippet lang=c : - * void UnloadImage(Image image) + * void UnloadMusicStream(Music music) * } */ - public static void UnloadImage(MemorySegment image) { - var mh$ = UnloadImage.HANDLE; + public static void UnloadMusicStream(MemorySegment music) { + var mh$ = UnloadMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("UnloadImage", image); + traceDowncall("UnloadMusicStream", music); } - mh$.invokeExact(image); + mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ExportImage { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Image.layout(), - raylib.C_POINTER + private static class PlayMusicStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ExportImage"); + public static final MemorySegment ADDR = raylib.findOrThrow("PlayMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22352,59 +34998,57 @@ private static class ExportImage { /** * Function descriptor for: * {@snippet lang=c : - * bool ExportImage(Image image, const char *fileName) + * void PlayMusicStream(Music music) * } */ - public static FunctionDescriptor ExportImage$descriptor() { - return ExportImage.DESC; + public static FunctionDescriptor PlayMusicStream$descriptor() { + return PlayMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool ExportImage(Image image, const char *fileName) + * void PlayMusicStream(Music music) * } */ - public static MethodHandle ExportImage$handle() { - return ExportImage.HANDLE; + public static MethodHandle PlayMusicStream$handle() { + return PlayMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool ExportImage(Image image, const char *fileName) + * void PlayMusicStream(Music music) * } */ - public static MemorySegment ExportImage$address() { - return ExportImage.ADDR; + public static MemorySegment PlayMusicStream$address() { + return PlayMusicStream.ADDR; } /** * {@snippet lang=c : - * bool ExportImage(Image image, const char *fileName) + * void PlayMusicStream(Music music) * } */ - public static boolean ExportImage(MemorySegment image, MemorySegment fileName) { - var mh$ = ExportImage.HANDLE; + public static void PlayMusicStream(MemorySegment music) { + var mh$ = PlayMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ExportImage", image, fileName); + traceDowncall("PlayMusicStream", music); } - return (boolean)mh$.invokeExact(image, fileName); + mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ExportImageToMemory { + private static class IsMusicStreamPlaying { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - Image.layout(), - raylib.C_POINTER, - raylib.C_POINTER + raylib.C_BOOL, + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ExportImageToMemory"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsMusicStreamPlaying"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22412,58 +35056,56 @@ private static class ExportImageToMemory { /** * Function descriptor for: * {@snippet lang=c : - * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) + * bool IsMusicStreamPlaying(Music music) * } */ - public static FunctionDescriptor ExportImageToMemory$descriptor() { - return ExportImageToMemory.DESC; + public static FunctionDescriptor IsMusicStreamPlaying$descriptor() { + return IsMusicStreamPlaying.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) + * bool IsMusicStreamPlaying(Music music) * } */ - public static MethodHandle ExportImageToMemory$handle() { - return ExportImageToMemory.HANDLE; + public static MethodHandle IsMusicStreamPlaying$handle() { + return IsMusicStreamPlaying.HANDLE; } /** * Address for: * {@snippet lang=c : - * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) + * bool IsMusicStreamPlaying(Music music) * } */ - public static MemorySegment ExportImageToMemory$address() { - return ExportImageToMemory.ADDR; + public static MemorySegment IsMusicStreamPlaying$address() { + return IsMusicStreamPlaying.ADDR; } /** * {@snippet lang=c : - * unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize) + * bool IsMusicStreamPlaying(Music music) * } */ - public static MemorySegment ExportImageToMemory(MemorySegment image, MemorySegment fileType, MemorySegment fileSize) { - var mh$ = ExportImageToMemory.HANDLE; + public static boolean IsMusicStreamPlaying(MemorySegment music) { + var mh$ = IsMusicStreamPlaying.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ExportImageToMemory", image, fileType, fileSize); + traceDowncall("IsMusicStreamPlaying", music); } - return (MemorySegment)mh$.invokeExact(image, fileType, fileSize); + return (boolean)mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ExportImageAsCode { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_BOOL, - Image.layout(), - raylib.C_POINTER + private static class UpdateMusicStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ExportImageAsCode"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22471,59 +35113,56 @@ private static class ExportImageAsCode { /** * Function descriptor for: * {@snippet lang=c : - * bool ExportImageAsCode(Image image, const char *fileName) + * void UpdateMusicStream(Music music) * } */ - public static FunctionDescriptor ExportImageAsCode$descriptor() { - return ExportImageAsCode.DESC; + public static FunctionDescriptor UpdateMusicStream$descriptor() { + return UpdateMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * bool ExportImageAsCode(Image image, const char *fileName) + * void UpdateMusicStream(Music music) * } */ - public static MethodHandle ExportImageAsCode$handle() { - return ExportImageAsCode.HANDLE; + public static MethodHandle UpdateMusicStream$handle() { + return UpdateMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * bool ExportImageAsCode(Image image, const char *fileName) + * void UpdateMusicStream(Music music) * } */ - public static MemorySegment ExportImageAsCode$address() { - return ExportImageAsCode.ADDR; + public static MemorySegment UpdateMusicStream$address() { + return UpdateMusicStream.ADDR; } /** * {@snippet lang=c : - * bool ExportImageAsCode(Image image, const char *fileName) + * void UpdateMusicStream(Music music) * } */ - public static boolean ExportImageAsCode(MemorySegment image, MemorySegment fileName) { - var mh$ = ExportImageAsCode.HANDLE; + public static void UpdateMusicStream(MemorySegment music) { + var mh$ = UpdateMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ExportImageAsCode", image, fileName); + traceDowncall("UpdateMusicStream", music); } - return (boolean)mh$.invokeExact(image, fileName); + mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageColor { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - Color.layout() + private static class StopMusicStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageColor"); + public static final MemorySegment ADDR = raylib.findOrThrow("StopMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22531,61 +35170,56 @@ private static class GenImageColor { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageColor(int width, int height, Color color) + * void StopMusicStream(Music music) * } */ - public static FunctionDescriptor GenImageColor$descriptor() { - return GenImageColor.DESC; + public static FunctionDescriptor StopMusicStream$descriptor() { + return StopMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageColor(int width, int height, Color color) + * void StopMusicStream(Music music) * } */ - public static MethodHandle GenImageColor$handle() { - return GenImageColor.HANDLE; + public static MethodHandle StopMusicStream$handle() { + return StopMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageColor(int width, int height, Color color) + * void StopMusicStream(Music music) * } */ - public static MemorySegment GenImageColor$address() { - return GenImageColor.ADDR; + public static MemorySegment StopMusicStream$address() { + return StopMusicStream.ADDR; } /** * {@snippet lang=c : - * Image GenImageColor(int width, int height, Color color) + * void StopMusicStream(Music music) * } */ - public static MemorySegment GenImageColor(SegmentAllocator allocator, int width, int height, MemorySegment color) { - var mh$ = GenImageColor.HANDLE; + public static void StopMusicStream(MemorySegment music) { + var mh$ = StopMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageColor", allocator, width, height, color); + traceDowncall("StopMusicStream", music); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, color); + mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageGradientLinear { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout(), - Color.layout() + private static class PauseMusicStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageGradientLinear"); + public static final MemorySegment ADDR = raylib.findOrThrow("PauseMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22593,61 +35227,56 @@ private static class GenImageGradientLinear { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) + * void PauseMusicStream(Music music) * } */ - public static FunctionDescriptor GenImageGradientLinear$descriptor() { - return GenImageGradientLinear.DESC; + public static FunctionDescriptor PauseMusicStream$descriptor() { + return PauseMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) + * void PauseMusicStream(Music music) * } */ - public static MethodHandle GenImageGradientLinear$handle() { - return GenImageGradientLinear.HANDLE; + public static MethodHandle PauseMusicStream$handle() { + return PauseMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) + * void PauseMusicStream(Music music) * } */ - public static MemorySegment GenImageGradientLinear$address() { - return GenImageGradientLinear.ADDR; + public static MemorySegment PauseMusicStream$address() { + return PauseMusicStream.ADDR; } /** * {@snippet lang=c : - * Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) + * void PauseMusicStream(Music music) * } */ - public static MemorySegment GenImageGradientLinear(SegmentAllocator allocator, int width, int height, int direction, MemorySegment start, MemorySegment end) { - var mh$ = GenImageGradientLinear.HANDLE; + public static void PauseMusicStream(MemorySegment music) { + var mh$ = PauseMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageGradientLinear", allocator, width, height, direction, start, end); + traceDowncall("PauseMusicStream", music); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, direction, start, end); + mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageGradientRadial { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout(), - Color.layout() + private static class ResumeMusicStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageGradientRadial"); + public static final MemorySegment ADDR = raylib.findOrThrow("ResumeMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22655,61 +35284,57 @@ private static class GenImageGradientRadial { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) + * void ResumeMusicStream(Music music) * } */ - public static FunctionDescriptor GenImageGradientRadial$descriptor() { - return GenImageGradientRadial.DESC; + public static FunctionDescriptor ResumeMusicStream$descriptor() { + return ResumeMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) + * void ResumeMusicStream(Music music) * } */ - public static MethodHandle GenImageGradientRadial$handle() { - return GenImageGradientRadial.HANDLE; + public static MethodHandle ResumeMusicStream$handle() { + return ResumeMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) + * void ResumeMusicStream(Music music) * } */ - public static MemorySegment GenImageGradientRadial$address() { - return GenImageGradientRadial.ADDR; + public static MemorySegment ResumeMusicStream$address() { + return ResumeMusicStream.ADDR; } /** * {@snippet lang=c : - * Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer) + * void ResumeMusicStream(Music music) * } */ - public static MemorySegment GenImageGradientRadial(SegmentAllocator allocator, int width, int height, float density, MemorySegment inner, MemorySegment outer) { - var mh$ = GenImageGradientRadial.HANDLE; + public static void ResumeMusicStream(MemorySegment music) { + var mh$ = ResumeMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageGradientRadial", allocator, width, height, density, inner, outer); + traceDowncall("ResumeMusicStream", music); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, density, inner, outer); + mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageGradientSquare { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_FLOAT, - Color.layout(), - Color.layout() + private static class SeekMusicStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageGradientSquare"); + public static final MemorySegment ADDR = raylib.findOrThrow("SeekMusicStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22717,62 +35342,57 @@ private static class GenImageGradientSquare { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) + * void SeekMusicStream(Music music, float position) * } */ - public static FunctionDescriptor GenImageGradientSquare$descriptor() { - return GenImageGradientSquare.DESC; + public static FunctionDescriptor SeekMusicStream$descriptor() { + return SeekMusicStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) + * void SeekMusicStream(Music music, float position) * } */ - public static MethodHandle GenImageGradientSquare$handle() { - return GenImageGradientSquare.HANDLE; + public static MethodHandle SeekMusicStream$handle() { + return SeekMusicStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) + * void SeekMusicStream(Music music, float position) * } */ - public static MemorySegment GenImageGradientSquare$address() { - return GenImageGradientSquare.ADDR; + public static MemorySegment SeekMusicStream$address() { + return SeekMusicStream.ADDR; } /** * {@snippet lang=c : - * Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer) + * void SeekMusicStream(Music music, float position) * } */ - public static MemorySegment GenImageGradientSquare(SegmentAllocator allocator, int width, int height, float density, MemorySegment inner, MemorySegment outer) { - var mh$ = GenImageGradientSquare.HANDLE; + public static void SeekMusicStream(MemorySegment music, float position) { + var mh$ = SeekMusicStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageGradientSquare", allocator, width, height, density, inner, outer); + traceDowncall("SeekMusicStream", music, position); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, density, inner, outer); + mh$.invokeExact(music, position); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageChecked { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout(), - Color.layout() + private static class SetMusicVolume { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageChecked"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetMusicVolume"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22780,59 +35400,57 @@ private static class GenImageChecked { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) + * void SetMusicVolume(Music music, float volume) * } */ - public static FunctionDescriptor GenImageChecked$descriptor() { - return GenImageChecked.DESC; + public static FunctionDescriptor SetMusicVolume$descriptor() { + return SetMusicVolume.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) + * void SetMusicVolume(Music music, float volume) * } */ - public static MethodHandle GenImageChecked$handle() { - return GenImageChecked.HANDLE; + public static MethodHandle SetMusicVolume$handle() { + return SetMusicVolume.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) + * void SetMusicVolume(Music music, float volume) * } */ - public static MemorySegment GenImageChecked$address() { - return GenImageChecked.ADDR; + public static MemorySegment SetMusicVolume$address() { + return SetMusicVolume.ADDR; } /** * {@snippet lang=c : - * Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2) + * void SetMusicVolume(Music music, float volume) * } */ - public static MemorySegment GenImageChecked(SegmentAllocator allocator, int width, int height, int checksX, int checksY, MemorySegment col1, MemorySegment col2) { - var mh$ = GenImageChecked.HANDLE; + public static void SetMusicVolume(MemorySegment music, float volume) { + var mh$ = SetMusicVolume.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageChecked", allocator, width, height, checksX, checksY, col1, col2); + traceDowncall("SetMusicVolume", music, volume); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, checksX, checksY, col1, col2); + mh$.invokeExact(music, volume); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageWhiteNoise { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, + private static class SetMusicPitch { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageWhiteNoise"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetMusicPitch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22840,61 +35458,57 @@ private static class GenImageWhiteNoise { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageWhiteNoise(int width, int height, float factor) + * void SetMusicPitch(Music music, float pitch) * } */ - public static FunctionDescriptor GenImageWhiteNoise$descriptor() { - return GenImageWhiteNoise.DESC; + public static FunctionDescriptor SetMusicPitch$descriptor() { + return SetMusicPitch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageWhiteNoise(int width, int height, float factor) + * void SetMusicPitch(Music music, float pitch) * } */ - public static MethodHandle GenImageWhiteNoise$handle() { - return GenImageWhiteNoise.HANDLE; + public static MethodHandle SetMusicPitch$handle() { + return SetMusicPitch.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageWhiteNoise(int width, int height, float factor) + * void SetMusicPitch(Music music, float pitch) * } */ - public static MemorySegment GenImageWhiteNoise$address() { - return GenImageWhiteNoise.ADDR; + public static MemorySegment SetMusicPitch$address() { + return SetMusicPitch.ADDR; } /** * {@snippet lang=c : - * Image GenImageWhiteNoise(int width, int height, float factor) + * void SetMusicPitch(Music music, float pitch) * } */ - public static MemorySegment GenImageWhiteNoise(SegmentAllocator allocator, int width, int height, float factor) { - var mh$ = GenImageWhiteNoise.HANDLE; + public static void SetMusicPitch(MemorySegment music, float pitch) { + var mh$ = SetMusicPitch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageWhiteNoise", allocator, width, height, factor); + traceDowncall("SetMusicPitch", music, pitch); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, factor); + mh$.invokeExact(music, pitch); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImagePerlinNoise { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, + private static class SetMusicPan { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + Music.layout(), raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImagePerlinNoise"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetMusicPan"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22902,59 +35516,57 @@ private static class GenImagePerlinNoise { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) + * void SetMusicPan(Music music, float pan) * } */ - public static FunctionDescriptor GenImagePerlinNoise$descriptor() { - return GenImagePerlinNoise.DESC; + public static FunctionDescriptor SetMusicPan$descriptor() { + return SetMusicPan.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) + * void SetMusicPan(Music music, float pan) * } */ - public static MethodHandle GenImagePerlinNoise$handle() { - return GenImagePerlinNoise.HANDLE; + public static MethodHandle SetMusicPan$handle() { + return SetMusicPan.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) + * void SetMusicPan(Music music, float pan) * } */ - public static MemorySegment GenImagePerlinNoise$address() { - return GenImagePerlinNoise.ADDR; + public static MemorySegment SetMusicPan$address() { + return SetMusicPan.ADDR; } /** * {@snippet lang=c : - * Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale) + * void SetMusicPan(Music music, float pan) * } */ - public static MemorySegment GenImagePerlinNoise(SegmentAllocator allocator, int width, int height, int offsetX, int offsetY, float scale) { - var mh$ = GenImagePerlinNoise.HANDLE; + public static void SetMusicPan(MemorySegment music, float pan) { + var mh$ = SetMusicPan.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImagePerlinNoise", allocator, width, height, offsetX, offsetY, scale); + traceDowncall("SetMusicPan", music, pan); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, offsetX, offsetY, scale); + mh$.invokeExact(music, pan); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageCellular { + private static class GetMusicTimeLength { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + raylib.C_FLOAT, + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageCellular"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetMusicTimeLength"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -22962,59 +35574,57 @@ private static class GenImageCellular { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageCellular(int width, int height, int tileSize) + * float GetMusicTimeLength(Music music) * } */ - public static FunctionDescriptor GenImageCellular$descriptor() { - return GenImageCellular.DESC; + public static FunctionDescriptor GetMusicTimeLength$descriptor() { + return GetMusicTimeLength.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageCellular(int width, int height, int tileSize) + * float GetMusicTimeLength(Music music) * } */ - public static MethodHandle GenImageCellular$handle() { - return GenImageCellular.HANDLE; + public static MethodHandle GetMusicTimeLength$handle() { + return GetMusicTimeLength.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageCellular(int width, int height, int tileSize) + * float GetMusicTimeLength(Music music) * } */ - public static MemorySegment GenImageCellular$address() { - return GenImageCellular.ADDR; + public static MemorySegment GetMusicTimeLength$address() { + return GetMusicTimeLength.ADDR; } /** * {@snippet lang=c : - * Image GenImageCellular(int width, int height, int tileSize) + * float GetMusicTimeLength(Music music) * } */ - public static MemorySegment GenImageCellular(SegmentAllocator allocator, int width, int height, int tileSize) { - var mh$ = GenImageCellular.HANDLE; + public static float GetMusicTimeLength(MemorySegment music) { + var mh$ = GetMusicTimeLength.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageCellular", allocator, width, height, tileSize); + traceDowncall("GetMusicTimeLength", music); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, tileSize); + return (float)mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class GenImageText { + private static class GetMusicTimePlayed { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_INT, - raylib.C_INT, - raylib.C_POINTER + raylib.C_FLOAT, + Music.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("GenImageText"); + public static final MemorySegment ADDR = raylib.findOrThrow("GetMusicTimePlayed"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23022,57 +35632,59 @@ private static class GenImageText { /** * Function descriptor for: * {@snippet lang=c : - * Image GenImageText(int width, int height, const char *text) + * float GetMusicTimePlayed(Music music) * } */ - public static FunctionDescriptor GenImageText$descriptor() { - return GenImageText.DESC; + public static FunctionDescriptor GetMusicTimePlayed$descriptor() { + return GetMusicTimePlayed.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image GenImageText(int width, int height, const char *text) + * float GetMusicTimePlayed(Music music) * } */ - public static MethodHandle GenImageText$handle() { - return GenImageText.HANDLE; + public static MethodHandle GetMusicTimePlayed$handle() { + return GetMusicTimePlayed.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image GenImageText(int width, int height, const char *text) + * float GetMusicTimePlayed(Music music) * } */ - public static MemorySegment GenImageText$address() { - return GenImageText.ADDR; + public static MemorySegment GetMusicTimePlayed$address() { + return GetMusicTimePlayed.ADDR; } /** * {@snippet lang=c : - * Image GenImageText(int width, int height, const char *text) + * float GetMusicTimePlayed(Music music) * } */ - public static MemorySegment GenImageText(SegmentAllocator allocator, int width, int height, MemorySegment text) { - var mh$ = GenImageText.HANDLE; + public static float GetMusicTimePlayed(MemorySegment music) { + var mh$ = GetMusicTimePlayed.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("GenImageText", allocator, width, height, text); + traceDowncall("GetMusicTimePlayed", music); } - return (MemorySegment)mh$.invokeExact(allocator, width, height, text); + return (float)mh$.invokeExact(music); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageCopy { + private static class LoadAudioStream { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - Image.layout() + AudioStream.layout(), + raylib.C_INT, + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageCopy"); + public static final MemorySegment ADDR = raylib.findOrThrow("LoadAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23080,58 +35692,57 @@ private static class ImageCopy { /** * Function descriptor for: * {@snippet lang=c : - * Image ImageCopy(Image image) + * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) * } */ - public static FunctionDescriptor ImageCopy$descriptor() { - return ImageCopy.DESC; + public static FunctionDescriptor LoadAudioStream$descriptor() { + return LoadAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image ImageCopy(Image image) + * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) * } */ - public static MethodHandle ImageCopy$handle() { - return ImageCopy.HANDLE; + public static MethodHandle LoadAudioStream$handle() { + return LoadAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image ImageCopy(Image image) + * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) * } */ - public static MemorySegment ImageCopy$address() { - return ImageCopy.ADDR; + public static MemorySegment LoadAudioStream$address() { + return LoadAudioStream.ADDR; } /** * {@snippet lang=c : - * Image ImageCopy(Image image) + * AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels) * } */ - public static MemorySegment ImageCopy(SegmentAllocator allocator, MemorySegment image) { - var mh$ = ImageCopy.HANDLE; + public static MemorySegment LoadAudioStream(SegmentAllocator allocator, int sampleRate, int sampleSize, int channels) { + var mh$ = LoadAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageCopy", allocator, image); + traceDowncall("LoadAudioStream", allocator, sampleRate, sampleSize, channels); } - return (MemorySegment)mh$.invokeExact(allocator, image); + return (MemorySegment)mh$.invokeExact(allocator, sampleRate, sampleSize, channels); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageFromImage { + private static class IsAudioStreamReady { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - Image.layout(), - Rectangle.layout() + raylib.C_BOOL, + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageFromImage"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioStreamReady"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23139,59 +35750,56 @@ private static class ImageFromImage { /** * Function descriptor for: * {@snippet lang=c : - * Image ImageFromImage(Image image, Rectangle rec) + * bool IsAudioStreamReady(AudioStream stream) * } */ - public static FunctionDescriptor ImageFromImage$descriptor() { - return ImageFromImage.DESC; + public static FunctionDescriptor IsAudioStreamReady$descriptor() { + return IsAudioStreamReady.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image ImageFromImage(Image image, Rectangle rec) + * bool IsAudioStreamReady(AudioStream stream) * } */ - public static MethodHandle ImageFromImage$handle() { - return ImageFromImage.HANDLE; + public static MethodHandle IsAudioStreamReady$handle() { + return IsAudioStreamReady.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image ImageFromImage(Image image, Rectangle rec) + * bool IsAudioStreamReady(AudioStream stream) * } */ - public static MemorySegment ImageFromImage$address() { - return ImageFromImage.ADDR; + public static MemorySegment IsAudioStreamReady$address() { + return IsAudioStreamReady.ADDR; } /** * {@snippet lang=c : - * Image ImageFromImage(Image image, Rectangle rec) + * bool IsAudioStreamReady(AudioStream stream) * } */ - public static MemorySegment ImageFromImage(SegmentAllocator allocator, MemorySegment image, MemorySegment rec) { - var mh$ = ImageFromImage.HANDLE; + public static boolean IsAudioStreamReady(MemorySegment stream) { + var mh$ = IsAudioStreamReady.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageFromImage", allocator, image, rec); + traceDowncall("IsAudioStreamReady", stream); } - return (MemorySegment)mh$.invokeExact(allocator, image, rec); + return (boolean)mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageText { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - raylib.C_POINTER, - raylib.C_INT, - Color.layout() + private static class UnloadAudioStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageText"); + public static final MemorySegment ADDR = raylib.findOrThrow("UnloadAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23199,61 +35807,58 @@ private static class ImageText { /** * Function descriptor for: * {@snippet lang=c : - * Image ImageText(const char *text, int fontSize, Color color) + * void UnloadAudioStream(AudioStream stream) * } */ - public static FunctionDescriptor ImageText$descriptor() { - return ImageText.DESC; + public static FunctionDescriptor UnloadAudioStream$descriptor() { + return UnloadAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image ImageText(const char *text, int fontSize, Color color) + * void UnloadAudioStream(AudioStream stream) * } */ - public static MethodHandle ImageText$handle() { - return ImageText.HANDLE; + public static MethodHandle UnloadAudioStream$handle() { + return UnloadAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image ImageText(const char *text, int fontSize, Color color) + * void UnloadAudioStream(AudioStream stream) * } */ - public static MemorySegment ImageText$address() { - return ImageText.ADDR; + public static MemorySegment UnloadAudioStream$address() { + return UnloadAudioStream.ADDR; } /** * {@snippet lang=c : - * Image ImageText(const char *text, int fontSize, Color color) + * void UnloadAudioStream(AudioStream stream) * } */ - public static MemorySegment ImageText(SegmentAllocator allocator, MemorySegment text, int fontSize, MemorySegment color) { - var mh$ = ImageText.HANDLE; + public static void UnloadAudioStream(MemorySegment stream) { + var mh$ = UnloadAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageText", allocator, text, fontSize, color); + traceDowncall("UnloadAudioStream", stream); } - return (MemorySegment)mh$.invokeExact(allocator, text, fontSize, color); + mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageTextEx { - public static final FunctionDescriptor DESC = FunctionDescriptor.of( - Image.layout(), - Font.layout(), + private static class UpdateAudioStream { + public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + AudioStream.layout(), raylib.C_POINTER, - raylib.C_FLOAT, - raylib.C_FLOAT, - Color.layout() + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageTextEx"); + public static final MemorySegment ADDR = raylib.findOrThrow("UpdateAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23261,57 +35866,57 @@ private static class ImageTextEx { /** * Function descriptor for: * {@snippet lang=c : - * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) + * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) * } */ - public static FunctionDescriptor ImageTextEx$descriptor() { - return ImageTextEx.DESC; + public static FunctionDescriptor UpdateAudioStream$descriptor() { + return UpdateAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) + * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) * } */ - public static MethodHandle ImageTextEx$handle() { - return ImageTextEx.HANDLE; + public static MethodHandle UpdateAudioStream$handle() { + return UpdateAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) + * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) * } */ - public static MemorySegment ImageTextEx$address() { - return ImageTextEx.ADDR; + public static MemorySegment UpdateAudioStream$address() { + return UpdateAudioStream.ADDR; } /** * {@snippet lang=c : - * Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint) + * void UpdateAudioStream(AudioStream stream, const void *data, int frameCount) * } */ - public static MemorySegment ImageTextEx(SegmentAllocator allocator, MemorySegment font, MemorySegment text, float fontSize, float spacing, MemorySegment tint) { - var mh$ = ImageTextEx.HANDLE; + public static void UpdateAudioStream(MemorySegment stream, MemorySegment data, int frameCount) { + var mh$ = UpdateAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageTextEx", allocator, font, text, fontSize, spacing, tint); + traceDowncall("UpdateAudioStream", stream, data, frameCount); } - return (MemorySegment)mh$.invokeExact(allocator, font, text, fontSize, spacing, tint); + mh$.invokeExact(stream, data, frameCount); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageFormat { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT + private static class IsAudioStreamProcessed { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageFormat"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioStreamProcessed"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23319,57 +35924,56 @@ private static class ImageFormat { /** * Function descriptor for: * {@snippet lang=c : - * void ImageFormat(Image *image, int newFormat) + * bool IsAudioStreamProcessed(AudioStream stream) * } */ - public static FunctionDescriptor ImageFormat$descriptor() { - return ImageFormat.DESC; + public static FunctionDescriptor IsAudioStreamProcessed$descriptor() { + return IsAudioStreamProcessed.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageFormat(Image *image, int newFormat) + * bool IsAudioStreamProcessed(AudioStream stream) * } */ - public static MethodHandle ImageFormat$handle() { - return ImageFormat.HANDLE; + public static MethodHandle IsAudioStreamProcessed$handle() { + return IsAudioStreamProcessed.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageFormat(Image *image, int newFormat) + * bool IsAudioStreamProcessed(AudioStream stream) * } */ - public static MemorySegment ImageFormat$address() { - return ImageFormat.ADDR; + public static MemorySegment IsAudioStreamProcessed$address() { + return IsAudioStreamProcessed.ADDR; } /** * {@snippet lang=c : - * void ImageFormat(Image *image, int newFormat) + * bool IsAudioStreamProcessed(AudioStream stream) * } */ - public static void ImageFormat(MemorySegment image, int newFormat) { - var mh$ = ImageFormat.HANDLE; + public static boolean IsAudioStreamProcessed(MemorySegment stream) { + var mh$ = IsAudioStreamProcessed.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageFormat", image, newFormat); + traceDowncall("IsAudioStreamProcessed", stream); } - mh$.invokeExact(image, newFormat); + return (boolean)mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageToPOT { + private static class PlayAudioStream { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Color.layout() + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageToPOT"); + public static final MemorySegment ADDR = raylib.findOrThrow("PlayAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23377,57 +35981,56 @@ private static class ImageToPOT { /** * Function descriptor for: * {@snippet lang=c : - * void ImageToPOT(Image *image, Color fill) + * void PlayAudioStream(AudioStream stream) * } */ - public static FunctionDescriptor ImageToPOT$descriptor() { - return ImageToPOT.DESC; + public static FunctionDescriptor PlayAudioStream$descriptor() { + return PlayAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageToPOT(Image *image, Color fill) + * void PlayAudioStream(AudioStream stream) * } */ - public static MethodHandle ImageToPOT$handle() { - return ImageToPOT.HANDLE; + public static MethodHandle PlayAudioStream$handle() { + return PlayAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageToPOT(Image *image, Color fill) + * void PlayAudioStream(AudioStream stream) * } */ - public static MemorySegment ImageToPOT$address() { - return ImageToPOT.ADDR; + public static MemorySegment PlayAudioStream$address() { + return PlayAudioStream.ADDR; } /** * {@snippet lang=c : - * void ImageToPOT(Image *image, Color fill) + * void PlayAudioStream(AudioStream stream) * } */ - public static void ImageToPOT(MemorySegment image, MemorySegment fill) { - var mh$ = ImageToPOT.HANDLE; + public static void PlayAudioStream(MemorySegment stream) { + var mh$ = PlayAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageToPOT", image, fill); + traceDowncall("PlayAudioStream", stream); } - mh$.invokeExact(image, fill); + mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageCrop { + private static class PauseAudioStream { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Rectangle.layout() + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageCrop"); + public static final MemorySegment ADDR = raylib.findOrThrow("PauseAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23435,57 +36038,56 @@ private static class ImageCrop { /** * Function descriptor for: * {@snippet lang=c : - * void ImageCrop(Image *image, Rectangle crop) + * void PauseAudioStream(AudioStream stream) * } */ - public static FunctionDescriptor ImageCrop$descriptor() { - return ImageCrop.DESC; + public static FunctionDescriptor PauseAudioStream$descriptor() { + return PauseAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageCrop(Image *image, Rectangle crop) + * void PauseAudioStream(AudioStream stream) * } */ - public static MethodHandle ImageCrop$handle() { - return ImageCrop.HANDLE; + public static MethodHandle PauseAudioStream$handle() { + return PauseAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageCrop(Image *image, Rectangle crop) + * void PauseAudioStream(AudioStream stream) * } */ - public static MemorySegment ImageCrop$address() { - return ImageCrop.ADDR; + public static MemorySegment PauseAudioStream$address() { + return PauseAudioStream.ADDR; } /** * {@snippet lang=c : - * void ImageCrop(Image *image, Rectangle crop) + * void PauseAudioStream(AudioStream stream) * } */ - public static void ImageCrop(MemorySegment image, MemorySegment crop) { - var mh$ = ImageCrop.HANDLE; + public static void PauseAudioStream(MemorySegment stream) { + var mh$ = PauseAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageCrop", image, crop); + traceDowncall("PauseAudioStream", stream); } - mh$.invokeExact(image, crop); + mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageAlphaCrop { + private static class ResumeAudioStream { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_FLOAT + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaCrop"); + public static final MemorySegment ADDR = raylib.findOrThrow("ResumeAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23493,58 +36095,57 @@ private static class ImageAlphaCrop { /** * Function descriptor for: * {@snippet lang=c : - * void ImageAlphaCrop(Image *image, float threshold) + * void ResumeAudioStream(AudioStream stream) * } */ - public static FunctionDescriptor ImageAlphaCrop$descriptor() { - return ImageAlphaCrop.DESC; + public static FunctionDescriptor ResumeAudioStream$descriptor() { + return ResumeAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageAlphaCrop(Image *image, float threshold) + * void ResumeAudioStream(AudioStream stream) * } - */ - public static MethodHandle ImageAlphaCrop$handle() { - return ImageAlphaCrop.HANDLE; + */ + public static MethodHandle ResumeAudioStream$handle() { + return ResumeAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageAlphaCrop(Image *image, float threshold) + * void ResumeAudioStream(AudioStream stream) * } */ - public static MemorySegment ImageAlphaCrop$address() { - return ImageAlphaCrop.ADDR; + public static MemorySegment ResumeAudioStream$address() { + return ResumeAudioStream.ADDR; } /** * {@snippet lang=c : - * void ImageAlphaCrop(Image *image, float threshold) + * void ResumeAudioStream(AudioStream stream) * } */ - public static void ImageAlphaCrop(MemorySegment image, float threshold) { - var mh$ = ImageAlphaCrop.HANDLE; + public static void ResumeAudioStream(MemorySegment stream) { + var mh$ = ResumeAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageAlphaCrop", image, threshold); + traceDowncall("ResumeAudioStream", stream); } - mh$.invokeExact(image, threshold); + mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageAlphaClear { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Color.layout(), - raylib.C_FLOAT + private static class IsAudioStreamPlaying { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_BOOL, + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaClear"); + public static final MemorySegment ADDR = raylib.findOrThrow("IsAudioStreamPlaying"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23552,57 +36153,56 @@ private static class ImageAlphaClear { /** * Function descriptor for: * {@snippet lang=c : - * void ImageAlphaClear(Image *image, Color color, float threshold) + * bool IsAudioStreamPlaying(AudioStream stream) * } */ - public static FunctionDescriptor ImageAlphaClear$descriptor() { - return ImageAlphaClear.DESC; + public static FunctionDescriptor IsAudioStreamPlaying$descriptor() { + return IsAudioStreamPlaying.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageAlphaClear(Image *image, Color color, float threshold) + * bool IsAudioStreamPlaying(AudioStream stream) * } */ - public static MethodHandle ImageAlphaClear$handle() { - return ImageAlphaClear.HANDLE; + public static MethodHandle IsAudioStreamPlaying$handle() { + return IsAudioStreamPlaying.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageAlphaClear(Image *image, Color color, float threshold) + * bool IsAudioStreamPlaying(AudioStream stream) * } */ - public static MemorySegment ImageAlphaClear$address() { - return ImageAlphaClear.ADDR; + public static MemorySegment IsAudioStreamPlaying$address() { + return IsAudioStreamPlaying.ADDR; } /** * {@snippet lang=c : - * void ImageAlphaClear(Image *image, Color color, float threshold) + * bool IsAudioStreamPlaying(AudioStream stream) * } */ - public static void ImageAlphaClear(MemorySegment image, MemorySegment color, float threshold) { - var mh$ = ImageAlphaClear.HANDLE; + public static boolean IsAudioStreamPlaying(MemorySegment stream) { + var mh$ = IsAudioStreamPlaying.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageAlphaClear", image, color, threshold); + traceDowncall("IsAudioStreamPlaying", stream); } - mh$.invokeExact(image, color, threshold); + return (boolean)mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageAlphaMask { + private static class StopAudioStream { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Image.layout() + AudioStream.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaMask"); + public static final MemorySegment ADDR = raylib.findOrThrow("StopAudioStream"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23610,56 +36210,57 @@ private static class ImageAlphaMask { /** * Function descriptor for: * {@snippet lang=c : - * void ImageAlphaMask(Image *image, Image alphaMask) + * void StopAudioStream(AudioStream stream) * } */ - public static FunctionDescriptor ImageAlphaMask$descriptor() { - return ImageAlphaMask.DESC; + public static FunctionDescriptor StopAudioStream$descriptor() { + return StopAudioStream.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageAlphaMask(Image *image, Image alphaMask) + * void StopAudioStream(AudioStream stream) * } */ - public static MethodHandle ImageAlphaMask$handle() { - return ImageAlphaMask.HANDLE; + public static MethodHandle StopAudioStream$handle() { + return StopAudioStream.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageAlphaMask(Image *image, Image alphaMask) + * void StopAudioStream(AudioStream stream) * } */ - public static MemorySegment ImageAlphaMask$address() { - return ImageAlphaMask.ADDR; + public static MemorySegment StopAudioStream$address() { + return StopAudioStream.ADDR; } /** * {@snippet lang=c : - * void ImageAlphaMask(Image *image, Image alphaMask) + * void StopAudioStream(AudioStream stream) * } */ - public static void ImageAlphaMask(MemorySegment image, MemorySegment alphaMask) { - var mh$ = ImageAlphaMask.HANDLE; + public static void StopAudioStream(MemorySegment stream) { + var mh$ = StopAudioStream.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageAlphaMask", image, alphaMask); + traceDowncall("StopAudioStream", stream); } - mh$.invokeExact(image, alphaMask); + mh$.invokeExact(stream); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageAlphaPremultiply { + private static class SetAudioStreamVolume { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + AudioStream.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageAlphaPremultiply"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamVolume"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23667,57 +36268,57 @@ private static class ImageAlphaPremultiply { /** * Function descriptor for: * {@snippet lang=c : - * void ImageAlphaPremultiply(Image *image) + * void SetAudioStreamVolume(AudioStream stream, float volume) * } */ - public static FunctionDescriptor ImageAlphaPremultiply$descriptor() { - return ImageAlphaPremultiply.DESC; + public static FunctionDescriptor SetAudioStreamVolume$descriptor() { + return SetAudioStreamVolume.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageAlphaPremultiply(Image *image) + * void SetAudioStreamVolume(AudioStream stream, float volume) * } */ - public static MethodHandle ImageAlphaPremultiply$handle() { - return ImageAlphaPremultiply.HANDLE; + public static MethodHandle SetAudioStreamVolume$handle() { + return SetAudioStreamVolume.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageAlphaPremultiply(Image *image) + * void SetAudioStreamVolume(AudioStream stream, float volume) * } */ - public static MemorySegment ImageAlphaPremultiply$address() { - return ImageAlphaPremultiply.ADDR; + public static MemorySegment SetAudioStreamVolume$address() { + return SetAudioStreamVolume.ADDR; } /** * {@snippet lang=c : - * void ImageAlphaPremultiply(Image *image) + * void SetAudioStreamVolume(AudioStream stream, float volume) * } */ - public static void ImageAlphaPremultiply(MemorySegment image) { - var mh$ = ImageAlphaPremultiply.HANDLE; + public static void SetAudioStreamVolume(MemorySegment stream, float volume) { + var mh$ = SetAudioStreamVolume.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageAlphaPremultiply", image); + traceDowncall("SetAudioStreamVolume", stream, volume); } - mh$.invokeExact(image); + mh$.invokeExact(stream, volume); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageBlurGaussian { + private static class SetAudioStreamPitch { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT + AudioStream.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageBlurGaussian"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamPitch"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23725,58 +36326,57 @@ private static class ImageBlurGaussian { /** * Function descriptor for: * {@snippet lang=c : - * void ImageBlurGaussian(Image *image, int blurSize) + * void SetAudioStreamPitch(AudioStream stream, float pitch) * } */ - public static FunctionDescriptor ImageBlurGaussian$descriptor() { - return ImageBlurGaussian.DESC; + public static FunctionDescriptor SetAudioStreamPitch$descriptor() { + return SetAudioStreamPitch.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageBlurGaussian(Image *image, int blurSize) + * void SetAudioStreamPitch(AudioStream stream, float pitch) * } */ - public static MethodHandle ImageBlurGaussian$handle() { - return ImageBlurGaussian.HANDLE; + public static MethodHandle SetAudioStreamPitch$handle() { + return SetAudioStreamPitch.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageBlurGaussian(Image *image, int blurSize) + * void SetAudioStreamPitch(AudioStream stream, float pitch) * } */ - public static MemorySegment ImageBlurGaussian$address() { - return ImageBlurGaussian.ADDR; + public static MemorySegment SetAudioStreamPitch$address() { + return SetAudioStreamPitch.ADDR; } /** * {@snippet lang=c : - * void ImageBlurGaussian(Image *image, int blurSize) + * void SetAudioStreamPitch(AudioStream stream, float pitch) * } */ - public static void ImageBlurGaussian(MemorySegment image, int blurSize) { - var mh$ = ImageBlurGaussian.HANDLE; + public static void SetAudioStreamPitch(MemorySegment stream, float pitch) { + var mh$ = SetAudioStreamPitch.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageBlurGaussian", image, blurSize); + traceDowncall("SetAudioStreamPitch", stream, pitch); } - mh$.invokeExact(image, blurSize); + mh$.invokeExact(stream, pitch); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageKernelConvolution { + private static class SetAudioStreamPan { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_POINTER, - raylib.C_INT + AudioStream.layout(), + raylib.C_FLOAT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageKernelConvolution"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamPan"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23784,58 +36384,56 @@ private static class ImageKernelConvolution { /** * Function descriptor for: * {@snippet lang=c : - * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) + * void SetAudioStreamPan(AudioStream stream, float pan) * } */ - public static FunctionDescriptor ImageKernelConvolution$descriptor() { - return ImageKernelConvolution.DESC; + public static FunctionDescriptor SetAudioStreamPan$descriptor() { + return SetAudioStreamPan.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) + * void SetAudioStreamPan(AudioStream stream, float pan) * } */ - public static MethodHandle ImageKernelConvolution$handle() { - return ImageKernelConvolution.HANDLE; + public static MethodHandle SetAudioStreamPan$handle() { + return SetAudioStreamPan.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) + * void SetAudioStreamPan(AudioStream stream, float pan) * } */ - public static MemorySegment ImageKernelConvolution$address() { - return ImageKernelConvolution.ADDR; + public static MemorySegment SetAudioStreamPan$address() { + return SetAudioStreamPan.ADDR; } /** * {@snippet lang=c : - * void ImageKernelConvolution(Image *image, float *kernel, int kernelSize) + * void SetAudioStreamPan(AudioStream stream, float pan) * } */ - public static void ImageKernelConvolution(MemorySegment image, MemorySegment kernel, int kernelSize) { - var mh$ = ImageKernelConvolution.HANDLE; + public static void SetAudioStreamPan(MemorySegment stream, float pan) { + var mh$ = SetAudioStreamPan.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageKernelConvolution", image, kernel, kernelSize); + traceDowncall("SetAudioStreamPan", stream, pan); } - mh$.invokeExact(image, kernel, kernelSize); + mh$.invokeExact(stream, pan); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageResize { + private static class SetAudioStreamBufferSizeDefault { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageResize"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamBufferSizeDefault"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23843,58 +36441,57 @@ private static class ImageResize { /** * Function descriptor for: * {@snippet lang=c : - * void ImageResize(Image *image, int newWidth, int newHeight) + * void SetAudioStreamBufferSizeDefault(int size) * } */ - public static FunctionDescriptor ImageResize$descriptor() { - return ImageResize.DESC; + public static FunctionDescriptor SetAudioStreamBufferSizeDefault$descriptor() { + return SetAudioStreamBufferSizeDefault.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageResize(Image *image, int newWidth, int newHeight) + * void SetAudioStreamBufferSizeDefault(int size) * } */ - public static MethodHandle ImageResize$handle() { - return ImageResize.HANDLE; + public static MethodHandle SetAudioStreamBufferSizeDefault$handle() { + return SetAudioStreamBufferSizeDefault.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageResize(Image *image, int newWidth, int newHeight) + * void SetAudioStreamBufferSizeDefault(int size) * } */ - public static MemorySegment ImageResize$address() { - return ImageResize.ADDR; + public static MemorySegment SetAudioStreamBufferSizeDefault$address() { + return SetAudioStreamBufferSizeDefault.ADDR; } /** * {@snippet lang=c : - * void ImageResize(Image *image, int newWidth, int newHeight) + * void SetAudioStreamBufferSizeDefault(int size) * } */ - public static void ImageResize(MemorySegment image, int newWidth, int newHeight) { - var mh$ = ImageResize.HANDLE; + public static void SetAudioStreamBufferSizeDefault(int size) { + var mh$ = SetAudioStreamBufferSizeDefault.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageResize", image, newWidth, newHeight); + traceDowncall("SetAudioStreamBufferSizeDefault", size); } - mh$.invokeExact(image, newWidth, newHeight); + mh$.invokeExact(size); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageResizeNN { + private static class SetAudioStreamCallback { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT + AudioStream.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageResizeNN"); + public static final MemorySegment ADDR = raylib.findOrThrow("SetAudioStreamCallback"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23902,61 +36499,57 @@ private static class ImageResizeNN { /** * Function descriptor for: * {@snippet lang=c : - * void ImageResizeNN(Image *image, int newWidth, int newHeight) + * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) * } */ - public static FunctionDescriptor ImageResizeNN$descriptor() { - return ImageResizeNN.DESC; + public static FunctionDescriptor SetAudioStreamCallback$descriptor() { + return SetAudioStreamCallback.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageResizeNN(Image *image, int newWidth, int newHeight) + * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) * } */ - public static MethodHandle ImageResizeNN$handle() { - return ImageResizeNN.HANDLE; + public static MethodHandle SetAudioStreamCallback$handle() { + return SetAudioStreamCallback.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageResizeNN(Image *image, int newWidth, int newHeight) + * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) * } */ - public static MemorySegment ImageResizeNN$address() { - return ImageResizeNN.ADDR; + public static MemorySegment SetAudioStreamCallback$address() { + return SetAudioStreamCallback.ADDR; } /** * {@snippet lang=c : - * void ImageResizeNN(Image *image, int newWidth, int newHeight) + * void SetAudioStreamCallback(AudioStream stream, AudioCallback callback) * } */ - public static void ImageResizeNN(MemorySegment image, int newWidth, int newHeight) { - var mh$ = ImageResizeNN.HANDLE; + public static void SetAudioStreamCallback(MemorySegment stream, MemorySegment callback) { + var mh$ = SetAudioStreamCallback.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageResizeNN", image, newWidth, newHeight); + traceDowncall("SetAudioStreamCallback", stream, callback); } - mh$.invokeExact(image, newWidth, newHeight); + mh$.invokeExact(stream, callback); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageResizeCanvas { + private static class AttachAudioStreamProcessor { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - Color.layout() + AudioStream.layout(), + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageResizeCanvas"); + public static final MemorySegment ADDR = raylib.findOrThrow("AttachAudioStreamProcessor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -23964,56 +36557,57 @@ private static class ImageResizeCanvas { /** * Function descriptor for: * {@snippet lang=c : - * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) + * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static FunctionDescriptor ImageResizeCanvas$descriptor() { - return ImageResizeCanvas.DESC; + public static FunctionDescriptor AttachAudioStreamProcessor$descriptor() { + return AttachAudioStreamProcessor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) + * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static MethodHandle ImageResizeCanvas$handle() { - return ImageResizeCanvas.HANDLE; + public static MethodHandle AttachAudioStreamProcessor$handle() { + return AttachAudioStreamProcessor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) + * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static MemorySegment ImageResizeCanvas$address() { - return ImageResizeCanvas.ADDR; + public static MemorySegment AttachAudioStreamProcessor$address() { + return AttachAudioStreamProcessor.ADDR; } /** * {@snippet lang=c : - * void ImageResizeCanvas(Image *image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill) + * void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static void ImageResizeCanvas(MemorySegment image, int newWidth, int newHeight, int offsetX, int offsetY, MemorySegment fill) { - var mh$ = ImageResizeCanvas.HANDLE; + public static void AttachAudioStreamProcessor(MemorySegment stream, MemorySegment processor) { + var mh$ = AttachAudioStreamProcessor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageResizeCanvas", image, newWidth, newHeight, offsetX, offsetY, fill); + traceDowncall("AttachAudioStreamProcessor", stream, processor); } - mh$.invokeExact(image, newWidth, newHeight, offsetX, offsetY, fill); + mh$.invokeExact(stream, processor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageMipmaps { + private static class DetachAudioStreamProcessor { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( + AudioStream.layout(), raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageMipmaps"); + public static final MemorySegment ADDR = raylib.findOrThrow("DetachAudioStreamProcessor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24021,60 +36615,56 @@ private static class ImageMipmaps { /** * Function descriptor for: * {@snippet lang=c : - * void ImageMipmaps(Image *image) + * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static FunctionDescriptor ImageMipmaps$descriptor() { - return ImageMipmaps.DESC; + public static FunctionDescriptor DetachAudioStreamProcessor$descriptor() { + return DetachAudioStreamProcessor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageMipmaps(Image *image) + * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static MethodHandle ImageMipmaps$handle() { - return ImageMipmaps.HANDLE; + public static MethodHandle DetachAudioStreamProcessor$handle() { + return DetachAudioStreamProcessor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageMipmaps(Image *image) + * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static MemorySegment ImageMipmaps$address() { - return ImageMipmaps.ADDR; + public static MemorySegment DetachAudioStreamProcessor$address() { + return DetachAudioStreamProcessor.ADDR; } /** * {@snippet lang=c : - * void ImageMipmaps(Image *image) + * void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor) * } */ - public static void ImageMipmaps(MemorySegment image) { - var mh$ = ImageMipmaps.HANDLE; + public static void DetachAudioStreamProcessor(MemorySegment stream, MemorySegment processor) { + var mh$ = DetachAudioStreamProcessor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageMipmaps", image); + traceDowncall("DetachAudioStreamProcessor", stream, processor); } - mh$.invokeExact(image); + mh$.invokeExact(stream, processor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageDither { + private static class AttachAudioMixedProcessor { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT, - raylib.C_INT + raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageDither"); + public static final MemorySegment ADDR = raylib.findOrThrow("AttachAudioMixedProcessor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24082,56 +36672,56 @@ private static class ImageDither { /** * Function descriptor for: * {@snippet lang=c : - * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) + * void AttachAudioMixedProcessor(AudioCallback processor) * } */ - public static FunctionDescriptor ImageDither$descriptor() { - return ImageDither.DESC; + public static FunctionDescriptor AttachAudioMixedProcessor$descriptor() { + return AttachAudioMixedProcessor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) + * void AttachAudioMixedProcessor(AudioCallback processor) * } */ - public static MethodHandle ImageDither$handle() { - return ImageDither.HANDLE; + public static MethodHandle AttachAudioMixedProcessor$handle() { + return AttachAudioMixedProcessor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) + * void AttachAudioMixedProcessor(AudioCallback processor) * } */ - public static MemorySegment ImageDither$address() { - return ImageDither.ADDR; + public static MemorySegment AttachAudioMixedProcessor$address() { + return AttachAudioMixedProcessor.ADDR; } /** * {@snippet lang=c : - * void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp) + * void AttachAudioMixedProcessor(AudioCallback processor) * } */ - public static void ImageDither(MemorySegment image, int rBpp, int gBpp, int bBpp, int aBpp) { - var mh$ = ImageDither.HANDLE; + public static void AttachAudioMixedProcessor(MemorySegment processor) { + var mh$ = AttachAudioMixedProcessor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageDither", image, rBpp, gBpp, bBpp, aBpp); + traceDowncall("AttachAudioMixedProcessor", processor); } - mh$.invokeExact(image, rBpp, gBpp, bBpp, aBpp); + mh$.invokeExact(processor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageFlipVertical { + private static class DetachAudioMixedProcessor { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( raylib.C_POINTER ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageFlipVertical"); + public static final MemorySegment ADDR = raylib.findOrThrow("DetachAudioMixedProcessor"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24139,56 +36729,59 @@ private static class ImageFlipVertical { /** * Function descriptor for: * {@snippet lang=c : - * void ImageFlipVertical(Image *image) + * void DetachAudioMixedProcessor(AudioCallback processor) * } */ - public static FunctionDescriptor ImageFlipVertical$descriptor() { - return ImageFlipVertical.DESC; + public static FunctionDescriptor DetachAudioMixedProcessor$descriptor() { + return DetachAudioMixedProcessor.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageFlipVertical(Image *image) + * void DetachAudioMixedProcessor(AudioCallback processor) * } */ - public static MethodHandle ImageFlipVertical$handle() { - return ImageFlipVertical.HANDLE; + public static MethodHandle DetachAudioMixedProcessor$handle() { + return DetachAudioMixedProcessor.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageFlipVertical(Image *image) + * void DetachAudioMixedProcessor(AudioCallback processor) * } */ - public static MemorySegment ImageFlipVertical$address() { - return ImageFlipVertical.ADDR; + public static MemorySegment DetachAudioMixedProcessor$address() { + return DetachAudioMixedProcessor.ADDR; } /** * {@snippet lang=c : - * void ImageFlipVertical(Image *image) + * void DetachAudioMixedProcessor(AudioCallback processor) * } */ - public static void ImageFlipVertical(MemorySegment image) { - var mh$ = ImageFlipVertical.HANDLE; + public static void DetachAudioMixedProcessor(MemorySegment processor) { + var mh$ = DetachAudioMixedProcessor.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageFlipVertical", image); + traceDowncall("DetachAudioMixedProcessor", processor); } - mh$.invokeExact(image); + mh$.invokeExact(processor); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageFlipHorizontal { + private static class VyDrawModel { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + VyModel.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageFlipHorizontal"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyDrawModel"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24196,57 +36789,61 @@ private static class ImageFlipHorizontal { /** * Function descriptor for: * {@snippet lang=c : - * void ImageFlipHorizontal(Image *image) + * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) * } */ - public static FunctionDescriptor ImageFlipHorizontal$descriptor() { - return ImageFlipHorizontal.DESC; + public static FunctionDescriptor VyDrawModel$descriptor() { + return VyDrawModel.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageFlipHorizontal(Image *image) + * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) * } */ - public static MethodHandle ImageFlipHorizontal$handle() { - return ImageFlipHorizontal.HANDLE; + public static MethodHandle VyDrawModel$handle() { + return VyDrawModel.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageFlipHorizontal(Image *image) + * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) * } */ - public static MemorySegment ImageFlipHorizontal$address() { - return ImageFlipHorizontal.ADDR; + public static MemorySegment VyDrawModel$address() { + return VyDrawModel.ADDR; } /** * {@snippet lang=c : - * void ImageFlipHorizontal(Image *image) + * void VyDrawModel(VyModel vyModel, Vector3 position, float scale, Color tint) * } */ - public static void ImageFlipHorizontal(MemorySegment image) { - var mh$ = ImageFlipHorizontal.HANDLE; + public static void VyDrawModel(MemorySegment vyModel, MemorySegment position, float scale, MemorySegment tint) { + var mh$ = VyDrawModel.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageFlipHorizontal", image); + traceDowncall("VyDrawModel", vyModel, position, scale, tint); } - mh$.invokeExact(image); + mh$.invokeExact(vyModel, position, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageRotate { + private static class VyDrawModelEx { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_INT + VyModel.layout(), + Vector3.layout(), + Vector3.layout(), + raylib.C_FLOAT, + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageRotate"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyDrawModelEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24254,56 +36851,60 @@ private static class ImageRotate { /** * Function descriptor for: * {@snippet lang=c : - * void ImageRotate(Image *image, int degrees) + * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static FunctionDescriptor ImageRotate$descriptor() { - return ImageRotate.DESC; + public static FunctionDescriptor VyDrawModelEx$descriptor() { + return VyDrawModelEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageRotate(Image *image, int degrees) + * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MethodHandle ImageRotate$handle() { - return ImageRotate.HANDLE; + public static MethodHandle VyDrawModelEx$handle() { + return VyDrawModelEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageRotate(Image *image, int degrees) + * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static MemorySegment ImageRotate$address() { - return ImageRotate.ADDR; + public static MemorySegment VyDrawModelEx$address() { + return VyDrawModelEx.ADDR; } /** * {@snippet lang=c : - * void ImageRotate(Image *image, int degrees) + * void VyDrawModelEx(VyModel vyModel, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint) * } */ - public static void ImageRotate(MemorySegment image, int degrees) { - var mh$ = ImageRotate.HANDLE; + public static void VyDrawModelEx(MemorySegment vyModel, MemorySegment position, MemorySegment rotationAxis, float rotationAngle, MemorySegment scale, MemorySegment tint) { + var mh$ = VyDrawModelEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageRotate", image, degrees); + traceDowncall("VyDrawModelEx", vyModel, position, rotationAxis, rotationAngle, scale, tint); } - mh$.invokeExact(image, degrees); + mh$.invokeExact(vyModel, position, rotationAxis, rotationAngle, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageRotateCW { + private static class VyDrawModelExQuat { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + VyModel.layout(), + Vector3.layout(), + Vector4.layout(), + Vector3.layout(), + Color.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageRotateCW"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyDrawModelExQuat"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24311,56 +36912,56 @@ private static class ImageRotateCW { /** * Function descriptor for: * {@snippet lang=c : - * void ImageRotateCW(Image *image) + * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) * } */ - public static FunctionDescriptor ImageRotateCW$descriptor() { - return ImageRotateCW.DESC; + public static FunctionDescriptor VyDrawModelExQuat$descriptor() { + return VyDrawModelExQuat.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageRotateCW(Image *image) + * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) * } */ - public static MethodHandle ImageRotateCW$handle() { - return ImageRotateCW.HANDLE; + public static MethodHandle VyDrawModelExQuat$handle() { + return VyDrawModelExQuat.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageRotateCW(Image *image) + * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) * } */ - public static MemorySegment ImageRotateCW$address() { - return ImageRotateCW.ADDR; + public static MemorySegment VyDrawModelExQuat$address() { + return VyDrawModelExQuat.ADDR; } /** * {@snippet lang=c : - * void ImageRotateCW(Image *image) + * void VyDrawModelExQuat(VyModel vyModel, Vector3 position, Quaternion quaternion, Vector3 scale, Color tint) * } */ - public static void ImageRotateCW(MemorySegment image) { - var mh$ = ImageRotateCW.HANDLE; + public static void VyDrawModelExQuat(MemorySegment vyModel, MemorySegment position, MemorySegment quaternion, MemorySegment scale, MemorySegment tint) { + var mh$ = VyDrawModelExQuat.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageRotateCW", image); + traceDowncall("VyDrawModelExQuat", vyModel, position, quaternion, scale, tint); } - mh$.invokeExact(image); + mh$.invokeExact(vyModel, position, quaternion, scale, tint); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageRotateCCW { + private static class VyBeginMode3D { public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + VyCamera.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageRotateCCW"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyBeginMode3D"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24368,57 +36969,57 @@ private static class ImageRotateCCW { /** * Function descriptor for: * {@snippet lang=c : - * void ImageRotateCCW(Image *image) + * void VyBeginMode3D(VyCamera camera) * } */ - public static FunctionDescriptor ImageRotateCCW$descriptor() { - return ImageRotateCCW.DESC; + public static FunctionDescriptor VyBeginMode3D$descriptor() { + return VyBeginMode3D.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageRotateCCW(Image *image) + * void VyBeginMode3D(VyCamera camera) * } */ - public static MethodHandle ImageRotateCCW$handle() { - return ImageRotateCCW.HANDLE; + public static MethodHandle VyBeginMode3D$handle() { + return VyBeginMode3D.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageRotateCCW(Image *image) + * void VyBeginMode3D(VyCamera camera) * } */ - public static MemorySegment ImageRotateCCW$address() { - return ImageRotateCCW.ADDR; + public static MemorySegment VyBeginMode3D$address() { + return VyBeginMode3D.ADDR; } /** * {@snippet lang=c : - * void ImageRotateCCW(Image *image) + * void VyBeginMode3D(VyCamera camera) * } */ - public static void ImageRotateCCW(MemorySegment image) { - var mh$ = ImageRotateCCW.HANDLE; + public static void VyBeginMode3D(MemorySegment camera) { + var mh$ = VyBeginMode3D.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageRotateCCW", image); + traceDowncall("VyBeginMode3D", camera); } - mh$.invokeExact(image); + mh$.invokeExact(camera); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageColorTint { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Color.layout() + private static class VyQuaternionToAxisAngle { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_FLOAT, + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorTint"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyQuaternionToAxisAngle"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24426,56 +37027,57 @@ private static class ImageColorTint { /** * Function descriptor for: * {@snippet lang=c : - * void ImageColorTint(Image *image, Color color) + * float VyQuaternionToAxisAngle(Quaternion q) * } */ - public static FunctionDescriptor ImageColorTint$descriptor() { - return ImageColorTint.DESC; + public static FunctionDescriptor VyQuaternionToAxisAngle$descriptor() { + return VyQuaternionToAxisAngle.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageColorTint(Image *image, Color color) + * float VyQuaternionToAxisAngle(Quaternion q) * } */ - public static MethodHandle ImageColorTint$handle() { - return ImageColorTint.HANDLE; + public static MethodHandle VyQuaternionToAxisAngle$handle() { + return VyQuaternionToAxisAngle.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageColorTint(Image *image, Color color) + * float VyQuaternionToAxisAngle(Quaternion q) * } */ - public static MemorySegment ImageColorTint$address() { - return ImageColorTint.ADDR; + public static MemorySegment VyQuaternionToAxisAngle$address() { + return VyQuaternionToAxisAngle.ADDR; } /** * {@snippet lang=c : - * void ImageColorTint(Image *image, Color color) + * float VyQuaternionToAxisAngle(Quaternion q) * } */ - public static void ImageColorTint(MemorySegment image, MemorySegment color) { - var mh$ = ImageColorTint.HANDLE; + public static float VyQuaternionToAxisAngle(MemorySegment q) { + var mh$ = VyQuaternionToAxisAngle.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageColorTint", image, color); + traceDowncall("VyQuaternionToAxisAngle", q); } - mh$.invokeExact(image, color); + return (float)mh$.invokeExact(q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageColorInvert { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class VyQuaternionToAxisVector { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Vector3.layout(), + Vector4.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorInvert"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyQuaternionToAxisVector"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24483,56 +37085,58 @@ private static class ImageColorInvert { /** * Function descriptor for: * {@snippet lang=c : - * void ImageColorInvert(Image *image) + * Vector3 VyQuaternionToAxisVector(Quaternion q) * } */ - public static FunctionDescriptor ImageColorInvert$descriptor() { - return ImageColorInvert.DESC; + public static FunctionDescriptor VyQuaternionToAxisVector$descriptor() { + return VyQuaternionToAxisVector.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageColorInvert(Image *image) + * Vector3 VyQuaternionToAxisVector(Quaternion q) * } */ - public static MethodHandle ImageColorInvert$handle() { - return ImageColorInvert.HANDLE; + public static MethodHandle VyQuaternionToAxisVector$handle() { + return VyQuaternionToAxisVector.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageColorInvert(Image *image) + * Vector3 VyQuaternionToAxisVector(Quaternion q) * } */ - public static MemorySegment ImageColorInvert$address() { - return ImageColorInvert.ADDR; + public static MemorySegment VyQuaternionToAxisVector$address() { + return VyQuaternionToAxisVector.ADDR; } /** * {@snippet lang=c : - * void ImageColorInvert(Image *image) + * Vector3 VyQuaternionToAxisVector(Quaternion q) * } */ - public static void ImageColorInvert(MemorySegment image) { - var mh$ = ImageColorInvert.HANDLE; + public static MemorySegment VyQuaternionToAxisVector(SegmentAllocator allocator, MemorySegment q) { + var mh$ = VyQuaternionToAxisVector.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageColorInvert", image); + traceDowncall("VyQuaternionToAxisVector", allocator, q); } - mh$.invokeExact(image); + return (MemorySegment)mh$.invokeExact(allocator, q); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageColorGrayscale { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER + private static class VyGetScreenToWorldRay { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Ray.layout(), + Vector2.layout(), + VyCamera.layout() ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorGrayscale"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyGetScreenToWorldRay"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24540,57 +37144,60 @@ private static class ImageColorGrayscale { /** * Function descriptor for: * {@snippet lang=c : - * void ImageColorGrayscale(Image *image) + * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) * } */ - public static FunctionDescriptor ImageColorGrayscale$descriptor() { - return ImageColorGrayscale.DESC; + public static FunctionDescriptor VyGetScreenToWorldRay$descriptor() { + return VyGetScreenToWorldRay.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageColorGrayscale(Image *image) + * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) * } */ - public static MethodHandle ImageColorGrayscale$handle() { - return ImageColorGrayscale.HANDLE; + public static MethodHandle VyGetScreenToWorldRay$handle() { + return VyGetScreenToWorldRay.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageColorGrayscale(Image *image) + * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) * } */ - public static MemorySegment ImageColorGrayscale$address() { - return ImageColorGrayscale.ADDR; + public static MemorySegment VyGetScreenToWorldRay$address() { + return VyGetScreenToWorldRay.ADDR; } /** * {@snippet lang=c : - * void ImageColorGrayscale(Image *image) + * Ray VyGetScreenToWorldRay(Vector2 position, VyCamera camera) * } */ - public static void ImageColorGrayscale(MemorySegment image) { - var mh$ = ImageColorGrayscale.HANDLE; + public static MemorySegment VyGetScreenToWorldRay(SegmentAllocator allocator, MemorySegment position, MemorySegment camera) { + var mh$ = VyGetScreenToWorldRay.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageColorGrayscale", image); + traceDowncall("VyGetScreenToWorldRay", allocator, position, camera); } - mh$.invokeExact(image); + return (MemorySegment)mh$.invokeExact(allocator, position, camera); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageColorContrast { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - raylib.C_FLOAT + private static class VyGetScreenToWorldRayEx { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + Ray.layout(), + Vector2.layout(), + VyCamera.layout(), + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorContrast"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyGetScreenToWorldRayEx"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24598,57 +37205,57 @@ private static class ImageColorContrast { /** * Function descriptor for: * {@snippet lang=c : - * void ImageColorContrast(Image *image, float contrast) + * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) * } */ - public static FunctionDescriptor ImageColorContrast$descriptor() { - return ImageColorContrast.DESC; + public static FunctionDescriptor VyGetScreenToWorldRayEx$descriptor() { + return VyGetScreenToWorldRayEx.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageColorContrast(Image *image, float contrast) + * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) * } */ - public static MethodHandle ImageColorContrast$handle() { - return ImageColorContrast.HANDLE; + public static MethodHandle VyGetScreenToWorldRayEx$handle() { + return VyGetScreenToWorldRayEx.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageColorContrast(Image *image, float contrast) + * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) * } */ - public static MemorySegment ImageColorContrast$address() { - return ImageColorContrast.ADDR; + public static MemorySegment VyGetScreenToWorldRayEx$address() { + return VyGetScreenToWorldRayEx.ADDR; } /** * {@snippet lang=c : - * void ImageColorContrast(Image *image, float contrast) + * Ray VyGetScreenToWorldRayEx(Vector2 position, VyCamera camera, int width, int height) * } */ - public static void ImageColorContrast(MemorySegment image, float contrast) { - var mh$ = ImageColorContrast.HANDLE; + public static MemorySegment VyGetScreenToWorldRayEx(SegmentAllocator allocator, MemorySegment position, MemorySegment camera, int width, int height) { + var mh$ = VyGetScreenToWorldRayEx.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageColorContrast", image, contrast); + traceDowncall("VyGetScreenToWorldRayEx", allocator, position, camera, width, height); } - mh$.invokeExact(image, contrast); + return (MemorySegment)mh$.invokeExact(allocator, position, camera, width, height); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageColorBrightness { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, + private static class VyGlGetActiveParameters { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + VyShaderParameters.layout(), raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorBrightness"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyGlGetActiveParameters"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24656,58 +37263,57 @@ private static class ImageColorBrightness { /** * Function descriptor for: * {@snippet lang=c : - * void ImageColorBrightness(Image *image, int brightness) + * VyShaderParameters VyGlGetActiveParameters(int id) * } */ - public static FunctionDescriptor ImageColorBrightness$descriptor() { - return ImageColorBrightness.DESC; + public static FunctionDescriptor VyGlGetActiveParameters$descriptor() { + return VyGlGetActiveParameters.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageColorBrightness(Image *image, int brightness) + * VyShaderParameters VyGlGetActiveParameters(int id) * } */ - public static MethodHandle ImageColorBrightness$handle() { - return ImageColorBrightness.HANDLE; + public static MethodHandle VyGlGetActiveParameters$handle() { + return VyGlGetActiveParameters.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageColorBrightness(Image *image, int brightness) + * VyShaderParameters VyGlGetActiveParameters(int id) * } */ - public static MemorySegment ImageColorBrightness$address() { - return ImageColorBrightness.ADDR; + public static MemorySegment VyGlGetActiveParameters$address() { + return VyGlGetActiveParameters.ADDR; } /** * {@snippet lang=c : - * void ImageColorBrightness(Image *image, int brightness) + * VyShaderParameters VyGlGetActiveParameters(int id) * } */ - public static void ImageColorBrightness(MemorySegment image, int brightness) { - var mh$ = ImageColorBrightness.HANDLE; + public static MemorySegment VyGlGetActiveParameters(SegmentAllocator allocator, int id) { + var mh$ = VyGlGetActiveParameters.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageColorBrightness", image, brightness); + traceDowncall("VyGlGetActiveParameters", allocator, id); } - mh$.invokeExact(image, brightness); + return (MemorySegment)mh$.invokeExact(allocator, id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class ImageColorReplace { - public static final FunctionDescriptor DESC = FunctionDescriptor.ofVoid( - raylib.C_POINTER, - Color.layout(), - Color.layout() + private static class VyGlGetActiveUniformsCount { + public static final FunctionDescriptor DESC = FunctionDescriptor.of( + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("ImageColorReplace"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyGlGetActiveUniformsCount"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24715,57 +37321,57 @@ private static class ImageColorReplace { /** * Function descriptor for: * {@snippet lang=c : - * void ImageColorReplace(Image *image, Color color, Color replace) + * int VyGlGetActiveUniformsCount(int id) * } */ - public static FunctionDescriptor ImageColorReplace$descriptor() { - return ImageColorReplace.DESC; + public static FunctionDescriptor VyGlGetActiveUniformsCount$descriptor() { + return VyGlGetActiveUniformsCount.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * void ImageColorReplace(Image *image, Color color, Color replace) + * int VyGlGetActiveUniformsCount(int id) * } */ - public static MethodHandle ImageColorReplace$handle() { - return ImageColorReplace.HANDLE; + public static MethodHandle VyGlGetActiveUniformsCount$handle() { + return VyGlGetActiveUniformsCount.HANDLE; } /** * Address for: * {@snippet lang=c : - * void ImageColorReplace(Image *image, Color color, Color replace) + * int VyGlGetActiveUniformsCount(int id) * } */ - public static MemorySegment ImageColorReplace$address() { - return ImageColorReplace.ADDR; + public static MemorySegment VyGlGetActiveUniformsCount$address() { + return VyGlGetActiveUniformsCount.ADDR; } /** * {@snippet lang=c : - * void ImageColorReplace(Image *image, Color color, Color replace) + * int VyGlGetActiveUniformsCount(int id) * } */ - public static void ImageColorReplace(MemorySegment image, MemorySegment color, MemorySegment replace) { - var mh$ = ImageColorReplace.HANDLE; + public static int VyGlGetActiveUniformsCount(int id) { + var mh$ = VyGlGetActiveUniformsCount.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("ImageColorReplace", image, color, replace); + traceDowncall("VyGlGetActiveUniformsCount", id); } - mh$.invokeExact(image, color, replace); + return (int)mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } - private static class LoadImageColors { + private static class VyGlGetActiveAttributesCount { public static final FunctionDescriptor DESC = FunctionDescriptor.of( - raylib.C_POINTER, - Image.layout() + raylib.C_INT, + raylib.C_INT ); - public static final MemorySegment ADDR = raylib.findOrThrow("LoadImageColors"); + public static final MemorySegment ADDR = raylib.findOrThrow("VyGlGetActiveAttributesCount"); public static final MethodHandle HANDLE = Linker.nativeLinker().downcallHandle(ADDR, DESC); } @@ -24773,48 +37379,156 @@ private static class LoadImageColors { /** * Function descriptor for: * {@snippet lang=c : - * Color *LoadImageColors(Image image) + * int VyGlGetActiveAttributesCount(int id) * } */ - public static FunctionDescriptor LoadImageColors$descriptor() { - return LoadImageColors.DESC; + public static FunctionDescriptor VyGlGetActiveAttributesCount$descriptor() { + return VyGlGetActiveAttributesCount.DESC; } /** * Downcall method handle for: * {@snippet lang=c : - * Color *LoadImageColors(Image image) + * int VyGlGetActiveAttributesCount(int id) * } */ - public static MethodHandle LoadImageColors$handle() { - return LoadImageColors.HANDLE; + public static MethodHandle VyGlGetActiveAttributesCount$handle() { + return VyGlGetActiveAttributesCount.HANDLE; } /** * Address for: * {@snippet lang=c : - * Color *LoadImageColors(Image image) + * int VyGlGetActiveAttributesCount(int id) * } */ - public static MemorySegment LoadImageColors$address() { - return LoadImageColors.ADDR; + public static MemorySegment VyGlGetActiveAttributesCount$address() { + return VyGlGetActiveAttributesCount.ADDR; } /** * {@snippet lang=c : - * Color *LoadImageColors(Image image) + * int VyGlGetActiveAttributesCount(int id) * } */ - public static MemorySegment LoadImageColors(MemorySegment image) { - var mh$ = LoadImageColors.HANDLE; + public static int VyGlGetActiveAttributesCount(int id) { + var mh$ = VyGlGetActiveAttributesCount.HANDLE; try { if (TRACE_DOWNCALLS) { - traceDowncall("LoadImageColors", image); + traceDowncall("VyGlGetActiveAttributesCount", id); } - return (MemorySegment)mh$.invokeExact(image); + return (int)mh$.invokeExact(id); } catch (Throwable ex$) { throw new AssertionError("should not reach here", ex$); } } + private static final int RL_OPENGL_11 = (int)1L; + /** + * {@snippet lang=c : + * enum .RL_OPENGL_11 = 1 + * } + */ + public static int RL_OPENGL_11() { + return RL_OPENGL_11; + } + private static final int RL_OPENGL_21 = (int)2L; + /** + * {@snippet lang=c : + * enum .RL_OPENGL_21 = 2 + * } + */ + public static int RL_OPENGL_21() { + return RL_OPENGL_21; + } + private static final int RL_OPENGL_33 = (int)3L; + /** + * {@snippet lang=c : + * enum .RL_OPENGL_33 = 3 + * } + */ + public static int RL_OPENGL_33() { + return RL_OPENGL_33; + } + private static final int RL_OPENGL_43 = (int)4L; + /** + * {@snippet lang=c : + * enum .RL_OPENGL_43 = 4 + * } + */ + public static int RL_OPENGL_43() { + return RL_OPENGL_43; + } + private static final int RL_OPENGL_ES_20 = (int)5L; + /** + * {@snippet lang=c : + * enum .RL_OPENGL_ES_20 = 5 + * } + */ + public static int RL_OPENGL_ES_20() { + return RL_OPENGL_ES_20; + } + private static final int RL_OPENGL_ES_30 = (int)6L; + /** + * {@snippet lang=c : + * enum .RL_OPENGL_ES_30 = 6 + * } + */ + public static int RL_OPENGL_ES_30() { + return RL_OPENGL_ES_30; + } + private static final int RL_LOG_ALL = (int)0L; + /** + * {@snippet lang=c : + * enum .RL_LOG_ALL = 0 + * } + */ + public static int RL_LOG_ALL() { + return RL_LOG_ALL; + } + private static final int RL_LOG_TRACE = (int)1L; + /** + * {@snippet lang=c : + * enum .RL_LOG_TRACE = 1 + * } + */ + public static int RL_LOG_TRACE() { + return RL_LOG_TRACE; + } + private static final int RL_LOG_DEBUG = (int)2L; + /** + * {@snippet lang=c : + * enum .RL_LOG_DEBUG = 2 + * } + */ + public static int RL_LOG_DEBUG() { + return RL_LOG_DEBUG; + } + private static final int RL_LOG_INFO = (int)3L; + /** + * {@snippet lang=c : + * enum .RL_LOG_INFO = 3 + * } + */ + public static int RL_LOG_INFO() { + return RL_LOG_INFO; + } + private static final int RL_LOG_WARNING = (int)4L; + /** + * {@snippet lang=c : + * enum .RL_LOG_WARNING = 4 + * } + */ + public static int RL_LOG_WARNING() { + return RL_LOG_WARNING; + } + private static final int RL_LOG_ERROR = (int)5L; + /** + * {@snippet lang=c : + * enum .RL_LOG_ERROR = 5 + * } + */ + public static int RL_LOG_ERROR() { + return RL_LOG_ERROR; + } } diff --git a/src/vybe/raylib/impl.clj b/src/vybe/raylib/impl.clj index 7dc551d2..d0a431bf 100644 --- a/src/vybe/raylib/impl.clj +++ b/src/vybe/raylib/impl.clj @@ -53,7 +53,8 @@ (def ^:private declared-methods (concat (:declaredMethods (bean raylib)) - (:declaredMethods (vp/-try-bean "org.vybe.raylib.raylib_1")))) + (:declaredMethods (vp/-try-bean "org.vybe.raylib.raylib_1")) + (:declaredMethods (vp/-try-bean "org.vybe.raylib.raylib_2")))) (defn- ->type [^StructLayout v]