--[[ hate-no-d.lua - generated by generate.lua, do not edit. APIs: raylib (619 functions), rlgl (163 functions), raymath (146 functions), raygui (61 functions) 989 functions, 42 structs, 6 aliases, 6 callbacks, 161 defines, 53 enums ]] local ffi = require("ffi") ffi.cdef[[ typedef struct rAudioBuffer rAudioBuffer; typedef struct rAudioProcessor rAudioProcessor; typedef struct Vector2 { float x; float y; } Vector2; typedef struct Vector3 { float x; float y; float z; } Vector3; typedef struct Vector4 { float x; float y; float z; float w; } Vector4; typedef Vector4 Quaternion; typedef struct Matrix { float m0; float m4; float m8; float m12; float m1; float m5; float m9; float m13; float m2; float m6; float m10; float m14; float m3; float m7; float m11; float m15; } Matrix; typedef struct Color { unsigned char r; unsigned char g; unsigned char b; unsigned char a; } Color; typedef struct Rectangle { float x; float y; float width; float height; } Rectangle; typedef struct Image { void * data; int width; int height; int mipmaps; int format; } Image; typedef struct Texture { unsigned int id; int width; int height; int mipmaps; int format; } Texture; typedef Texture Texture2D; typedef Texture TextureCubemap; typedef struct RenderTexture { unsigned int id; Texture texture; Texture depth; } RenderTexture; typedef RenderTexture RenderTexture2D; typedef struct NPatchInfo { Rectangle source; int left; int top; int right; int bottom; int layout; } NPatchInfo; typedef struct GlyphInfo { int value; int offsetX; int offsetY; int advanceX; Image image; } GlyphInfo; typedef struct Font { int baseSize; int glyphCount; int glyphPadding; Texture2D texture; Rectangle * recs; GlyphInfo * glyphs; } Font; typedef struct Camera3D { Vector3 position; Vector3 target; Vector3 up; float fovy; int projection; } Camera3D; typedef Camera3D Camera; typedef struct Camera2D { Vector2 offset; Vector2 target; float rotation; float zoom; } Camera2D; typedef struct Mesh { int vertexCount; int triangleCount; float * vertices; float * texcoords; float * texcoords2; float * normals; float * tangents; unsigned char * colors; unsigned short * indices; int boneCount; unsigned char * boneIndices; float * boneWeights; float * animVertices; float * animNormals; unsigned int vaoId; unsigned int * vboId; } Mesh; typedef struct Shader { unsigned int id; int * locs; } Shader; typedef struct MaterialMap { Texture2D texture; Color color; float value; } MaterialMap; typedef struct Material { Shader shader; MaterialMap * maps; float params[4]; } Material; typedef struct Transform { Vector3 translation; Quaternion rotation; Vector3 scale; } Transform; typedef Transform * ModelAnimPose; typedef struct BoneInfo { char name[32]; int parent; } BoneInfo; typedef struct ModelSkeleton { unsigned int boneCount; BoneInfo * bones; ModelAnimPose bindPose; } ModelSkeleton; typedef struct Model { Matrix transform; int meshCount; int materialCount; Mesh * meshes; Material * materials; int * meshMaterial; ModelSkeleton skeleton; ModelAnimPose currentPose; Matrix * boneMatrices; } Model; typedef struct ModelAnimation { char name[32]; unsigned int boneCount; int keyframeCount; ModelAnimPose * keyframePoses; } ModelAnimation; typedef struct Ray { Vector3 position; Vector3 direction; } Ray; typedef struct RayCollision { bool hit; float distance; Vector3 point; Vector3 normal; } RayCollision; typedef struct BoundingBox { Vector3 min; Vector3 max; } BoundingBox; typedef struct Wave { unsigned int frameCount; unsigned int sampleRate; unsigned int sampleSize; unsigned int channels; void * data; } Wave; typedef struct AudioStream { rAudioBuffer * buffer; rAudioProcessor * processor; unsigned int sampleRate; unsigned int sampleSize; unsigned int channels; } AudioStream; typedef struct Sound { AudioStream stream; unsigned int frameCount; } Sound; typedef struct Music { AudioStream stream; unsigned int frameCount; bool looping; int ctxType; void * ctxData; } Music; typedef struct VrDeviceInfo { int hResolution; int vResolution; float hScreenSize; float vScreenSize; float eyeToScreenDistance; float lensSeparationDistance; float interpupillaryDistance; float lensDistortionValues[4]; float chromaAbCorrection[4]; } VrDeviceInfo; typedef struct VrStereoConfig { Matrix projection[2]; Matrix viewOffset[2]; float leftLensCenter[2]; float rightLensCenter[2]; float leftScreenCenter[2]; float rightScreenCenter[2]; float scale[2]; float scaleIn[2]; } VrStereoConfig; typedef struct FilePathList { unsigned int count; char ** paths; } FilePathList; typedef struct AutomationEvent { unsigned int frame; unsigned int type; int params[4]; } AutomationEvent; typedef struct AutomationEventList { unsigned int capacity; unsigned int count; AutomationEvent * events; } AutomationEventList; typedef struct rlVertexBuffer { int elementCount; float * vertices; float * texcoords; float * normals; unsigned char * colors; unsigned int * indices; unsigned int vaoId; unsigned int vboId[5]; } rlVertexBuffer; typedef struct rlDrawCall { int mode; int vertexCount; int vertexAlignment; unsigned int textureId; } rlDrawCall; typedef struct rlRenderBatch { int bufferCount; int currentBuffer; rlVertexBuffer * vertexBuffer; rlDrawCall * draws; int drawCounter; float currentDepth; } rlRenderBatch; typedef struct float3 { float v[3]; } float3; typedef struct float16 { float v[16]; } float16; typedef struct GuiStyleProp { unsigned short controlId; unsigned short propertyId; int propertyValue; } GuiStyleProp; typedef struct GuiTextStyle { unsigned int size; int charSpacing; int lineSpacing; int alignmentH; int alignmentV; int padding; } GuiTextStyle; typedef void (*TraceLogCallback)(int logLevel, const char * text, va_list args); typedef unsigned char * (*LoadFileDataCallback)(const char * fileName, int * dataSize); typedef bool (*SaveFileDataCallback)(const char * fileName, const void * data, int dataSize); typedef char * (*LoadFileTextCallback)(const char * fileName); typedef bool (*SaveFileTextCallback)(const char * fileName, const char * text); typedef void (*AudioCallback)(void * bufferData, unsigned int frames); void InitWindow(int width, int height, const char * title); void CloseWindow(); bool WindowShouldClose(); bool IsWindowReady(); bool IsWindowFullscreen(); bool IsWindowHidden(); bool IsWindowMinimized(); bool IsWindowMaximized(); bool IsWindowFocused(); bool IsWindowResized(); bool IsWindowState(unsigned int flag); void SetWindowState(unsigned int flags); void ClearWindowState(unsigned int flags); void ToggleFullscreen(); void ToggleBorderlessWindowed(); void MaximizeWindow(); void MinimizeWindow(); void RestoreWindow(); void SetWindowIcon(Image image); void SetWindowIcons(Image * images, int count); void SetWindowTitle(const char * title); void SetWindowPosition(int x, int y); void SetWindowMonitor(int monitor); void SetWindowMinSize(int width, int height); void SetWindowMaxSize(int width, int height); void SetWindowSize(int width, int height); void SetWindowOpacity(float opacity); void SetWindowFocused(); void * GetWindowHandle(); int GetScreenWidth(); int GetScreenHeight(); int GetRenderWidth(); int GetRenderHeight(); int GetMonitorCount(); int GetCurrentMonitor(); Vector2 GetMonitorPosition(int monitor); int GetMonitorWidth(int monitor); int GetMonitorHeight(int monitor); int GetMonitorPhysicalWidth(int monitor); int GetMonitorPhysicalHeight(int monitor); int GetMonitorRefreshRate(int monitor); Vector2 GetWindowPosition(); Vector2 GetWindowScaleDPI(); const char * GetMonitorName(int monitor); void SetClipboardText(const char * text); const char * GetClipboardText(); Image GetClipboardImage(); void EnableEventWaiting(); void DisableEventWaiting(); void ShowCursor(); void HideCursor(); bool IsCursorHidden(); void EnableCursor(); void DisableCursor(); bool IsCursorOnScreen(); void ClearBackground(Color color); void BeginDrawing(); void EndDrawing(); void BeginMode2D(Camera2D camera); void EndMode2D(); void BeginMode3D(Camera3D camera); void EndMode3D(); void BeginTextureMode(RenderTexture2D target); void EndTextureMode(); void BeginShaderMode(Shader shader); void EndShaderMode(); void BeginBlendMode(int mode); void EndBlendMode(); void BeginScissorMode(int x, int y, int width, int height); void EndScissorMode(); void BeginVrStereoMode(VrStereoConfig config); void EndVrStereoMode(); VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device); void UnloadVrStereoConfig(VrStereoConfig config); Shader LoadShader(const char * vsFileName, const char * fsFileName); Shader LoadShaderFromMemory(const char * vsCode, const char * fsCode); bool IsShaderValid(Shader shader); int GetShaderLocation(Shader shader, const char * uniformName); int GetShaderLocationAttrib(Shader shader, const char * attribName); void SetShaderValue(Shader shader, int locIndex, const void * value, int uniformType); void SetShaderValueV(Shader shader, int locIndex, const void * value, int uniformType, int count); void SetShaderValueMatrix(Shader shader, int locIndex, Matrix mat); void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); void UnloadShader(Shader shader); Ray GetScreenToWorldRay(Vector2 position, Camera camera); Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height); Vector2 GetWorldToScreen(Vector3 position, Camera camera); Vector2 GetWorldToScreenEx(Vector3 position, Camera camera, int width, int height); Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); Vector2 GetScreenToWorld2D(Vector2 position, Camera2D camera); Matrix GetCameraMatrix(Camera camera); Matrix GetCameraMatrix2D(Camera2D camera); void SetTargetFPS(int fps); float GetFrameTime(); double GetTime(); int GetFPS(); void SwapScreenBuffer(); void PollInputEvents(); void WaitTime(double seconds); void SetRandomSeed(unsigned int seed); int GetRandomValue(int min, int max); int * LoadRandomSequence(unsigned int count, int min, int max); void UnloadRandomSequence(int * sequence); void TakeScreenshot(const char * fileName); void SetConfigFlags(unsigned int flags); void OpenURL(const char * url); void SetTraceLogLevel(int logLevel); void TraceLog(int logLevel, const char * text, ...); void SetTraceLogCallback(TraceLogCallback callback); void * MemAlloc(unsigned int size); void * MemRealloc(void * ptr, unsigned int size); void MemFree(void * ptr); unsigned char * LoadFileData(const char * fileName, int * dataSize); void UnloadFileData(unsigned char * data); bool SaveFileData(const char * fileName, const void * data, int dataSize); bool ExportDataAsCode(const unsigned char * data, int dataSize, const char * fileName); char * LoadFileText(const char * fileName); void UnloadFileText(char * text); bool SaveFileText(const char * fileName, const char * text); void SetLoadFileDataCallback(LoadFileDataCallback callback); void SetSaveFileDataCallback(SaveFileDataCallback callback); void SetLoadFileTextCallback(LoadFileTextCallback callback); void SetSaveFileTextCallback(SaveFileTextCallback callback); int FileRename(const char * fileName, const char * fileRename); int FileRemove(const char * fileName); int FileCopy(const char * srcPath, const char * dstPath); int FileMove(const char * srcPath, const char * dstPath); int FileTextReplace(const char * fileName, const char * search, const char * replacement); int FileTextFindIndex(const char * fileName, const char * search); bool FileExists(const char * fileName); bool DirectoryExists(const char * dirPath); bool IsFileExtension(const char * fileName, const char * ext); bool IsFileHidden(const char * filePath); int GetFileLength(const char * fileName); long GetFileModTime(const char * fileName); const char * GetFileExtension(const char * fileName); const char * GetFileName(const char * filePath); const char * GetFileNameWithoutExt(const char * filePath); const char * GetDirectoryPath(const char * filePath); const char * GetPrevDirectoryPath(const char * dirPath); const char * GetWorkingDirectory(); const char * GetApplicationDirectory(); int MakeDirectory(const char * dirPath); int ChangeDirectory(const char * dirPath); bool IsPathFile(const char * path); bool IsPathDirectory(const char * path); bool IsPathAbsolute(const char * path); bool IsFileNameValid(const char * fileName); FilePathList LoadDirectoryFiles(const char * dirPath); FilePathList LoadDirectoryFilesEx(const char * basePath, const char * filter, bool scanSubdirs); void UnloadDirectoryFiles(FilePathList files); bool IsFileDropped(); FilePathList LoadDroppedFiles(); void UnloadDroppedFiles(FilePathList files); unsigned int GetDirectoryFileCount(const char * dirPath); unsigned int GetDirectoryFileCountEx(const char * basePath, const char * filter, bool scanSubdirs); unsigned char * CompressData(const unsigned char * data, int dataSize, int * compDataSize); unsigned char * DecompressData(const unsigned char * compData, int compDataSize, int * dataSize); char * EncodeDataBase64(const unsigned char * data, int dataSize, int * outputSize); unsigned char * DecodeDataBase64(const char * text, int * outputSize); unsigned int ComputeCRC32(const unsigned char * data, int dataSize); unsigned int * ComputeMD5(const unsigned char * data, int dataSize); unsigned int * ComputeSHA1(const unsigned char * data, int dataSize); unsigned int * ComputeSHA256(const unsigned char * data, int dataSize); AutomationEventList LoadAutomationEventList(const char * fileName); void UnloadAutomationEventList(AutomationEventList list); bool ExportAutomationEventList(AutomationEventList list, const char * fileName); void SetAutomationEventList(AutomationEventList * list); void SetAutomationEventBaseFrame(int frame); void StartAutomationEventRecording(); void StopAutomationEventRecording(); void PlayAutomationEvent(AutomationEvent event); bool IsKeyPressed(int key); bool IsKeyPressedRepeat(int key); bool IsKeyDown(int key); bool IsKeyReleased(int key); bool IsKeyUp(int key); int GetKeyPressed(); int GetCharPressed(); const char * GetKeyName(int key); void SetExitKey(int key); bool IsGamepadAvailable(int gamepad); const char * GetGamepadName(int gamepad); bool IsGamepadButtonPressed(int gamepad, int button); bool IsGamepadButtonDown(int gamepad, int button); bool IsGamepadButtonReleased(int gamepad, int button); bool IsGamepadButtonUp(int gamepad, int button); int GetGamepadButtonPressed(); int GetGamepadAxisCount(int gamepad); float GetGamepadAxisMovement(int gamepad, int axis); int SetGamepadMappings(const char * mappings); void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration); bool IsMouseButtonPressed(int button); bool IsMouseButtonDown(int button); bool IsMouseButtonReleased(int button); bool IsMouseButtonUp(int button); int GetMouseX(); int GetMouseY(); Vector2 GetMousePosition(); Vector2 GetMouseDelta(); void SetMousePosition(int x, int y); void SetMouseOffset(int offsetX, int offsetY); void SetMouseScale(float scaleX, float scaleY); float GetMouseWheelMove(); Vector2 GetMouseWheelMoveV(); void SetMouseCursor(int cursor); int GetTouchX(); int GetTouchY(); Vector2 GetTouchPosition(int index); int GetTouchPointId(int index); int GetTouchPointCount(); void SetGesturesEnabled(unsigned int flags); bool IsGestureDetected(unsigned int gesture); int GetGestureDetected(); float GetGestureHoldDuration(); Vector2 GetGestureDragVector(); float GetGestureDragAngle(); Vector2 GetGesturePinchVector(); float GetGesturePinchAngle(); void UpdateCamera(Camera * camera, int mode); void UpdateCameraPro(Camera * camera, Vector3 movement, Vector3 rotation, float zoom); void SetShapesTexture(Texture2D texture, Rectangle rec); Texture2D GetShapesTexture(); Rectangle GetShapesTextureRectangle(); void DrawPixel(int posX, int posY, Color color); void DrawPixelV(Vector2 position, Color color); void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color); void DrawLineV(Vector2 startPos, Vector2 endPos, Color color); void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color); void DrawLineStrip(const Vector2 * points, int pointCount, Color color); void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color); void DrawLineDashed(Vector2 startPos, Vector2 endPos, int dashSize, int spaceSize, Color color); void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); void DrawTriangleGradient(Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3); void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); void DrawTriangleLinesEx(Vector2 v1, Vector2 v2, Vector2 v3, float thick, Color color); void DrawTriangleFan(const Vector2 * points, int pointCount, Color color); void DrawTriangleStrip(const Vector2 * points, int pointCount, Color color); void DrawRectangle(int posX, int posY, int width, int height, Color color); void DrawRectangleV(Vector2 position, Vector2 size, Color color); void DrawRectangleRec(Rectangle rec, Color color); void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color); void DrawRectangleGradientV(int posX, int posY, int width, int height, Color top, Color bottom); void DrawRectangleGradientH(int posX, int posY, int width, int height, Color left, Color right); void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); void DrawRectangleLines(int posX, int posY, int width, int height, Color color); void DrawRectangleLinesEx(Rectangle rec, float thick, Color color); void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color); void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, Color color); void DrawRectangleRoundedLinesEx(Rectangle rec, float roundness, int segments, float thick, Color color); void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float thick, Color color); void DrawCircle(int centerX, int centerY, float radius, Color color); void DrawCircleV(Vector2 center, float radius, Color color); void DrawCircleGradient(Vector2 center, float radius, Color inner, Color outer); void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); void DrawCircleSectorLinesEx(Vector2 center, float radius, float startAngle, float endAngle, int segments, float thick, Color color); void DrawCircleLines(int centerX, int centerY, float radius, Color color); void DrawCircleLinesV(Vector2 center, float radius, Color color); void DrawCircleLinesEx(Vector2 center, float radius, float thick, Color color); void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color); void DrawEllipseV(Vector2 center, float radiusH, float radiusV, Color color); void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color); void DrawEllipseLinesV(Vector2 center, float radiusH, float radiusV, Color color); void DrawEllipseLinesEx(Vector2 center, float radiusH, float radiusV, float thick, Color color); void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); void DrawRingLines(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); void DrawRingLinesEx(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, float thick, Color color); void DrawSplineLinear(const Vector2 * points, int pointCount, float thick, Color color); void DrawSplineBasis(const Vector2 * points, int pointCount, float thick, Color color); void DrawSplineCatmullRom(const Vector2 * points, int pointCount, float thick, Color color); void DrawSplineBezierQuadratic(const Vector2 * points, int pointCount, float thick, Color color); void DrawSplineBezierCubic(const Vector2 * points, int pointCount, float thick, Color color); void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color); void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color); void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color); void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color); void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color); Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t); Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); Vector2 GetSplinePointBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float t); Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t); bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); bool CheckCollisionCircleLine(Vector2 center, float radius, Vector2 p1, Vector2 p2); bool CheckCollisionPointRec(Vector2 point, Rectangle rec); bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius); bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3); bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); bool CheckCollisionPointPoly(Vector2 point, const Vector2 * points, int pointCount); bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 * collisionPoint); Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); Image LoadImage(const char * fileName); Image LoadImageRaw(const char * fileName, int width, int height, int format, int headerSize); Image LoadImageAnim(const char * fileName, int * frames); Image LoadImageAnimFromMemory(const char * fileType, const unsigned char * fileData, int dataSize, int * frames); Image LoadImageFromMemory(const char * fileType, const unsigned char * fileData, int dataSize); Image LoadImageFromTexture(Texture2D texture); Image LoadImageFromScreen(); bool IsImageValid(Image image); void UnloadImage(Image image); bool ExportImage(Image image, const char * fileName); unsigned char * ExportImageToMemory(Image image, const char * fileType, int * fileSize); bool ExportImageAsCode(Image image, const char * fileName); Image GenImageColor(int width, int height, Color color); Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end); Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer); Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer); Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2); Image GenImageWhiteNoise(int width, int height, float factor); Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale); Image GenImageCellular(int width, int height, int tileSize); Image GenImageText(int width, int height, const char * text); Image ImageCopy(Image image); Image ImageFromImage(Image image, Rectangle rec); Image ImageFromChannel(Image image, int selectedChannel); Image ImageText(const char * text, int fontSize, Color color); Image ImageTextEx(Font font, const char * text, float fontSize, float spacing, Color tint); void ImageFormat(Image * image, int newFormat); void ImageToPOT(Image * image, Color fill); void ImageCrop(Image * image, Rectangle crop); void ImageAlphaCrop(Image * image, float threshold); void ImageAlphaClear(Image * image, Color color, float threshold); void ImageAlphaMask(Image * image, Image alphaMask); void ImageAlphaPremultiply(Image * image); void ImageBlurGaussian(Image * image, int blurSize); void ImageKernelConvolution(Image * image, const float * kernel, int kernelSize); void ImageResize(Image * image, int newWidth, int newHeight); void ImageResizeNN(Image * image, int newWidth, int newHeight); void ImageResizeCanvas(Image * image, int newWidth, int newHeight, int offsetX, int offsetY, Color fill); void ImageMipmaps(Image * image); void ImageDither(Image * image, int rBpp, int gBpp, int bBpp, int aBpp); void ImageFlipVertical(Image * image); void ImageFlipHorizontal(Image * image); void ImageRotate(Image * image, int degrees); void ImageRotateCW(Image * image); void ImageRotateCCW(Image * image); void ImageColorTint(Image * image, Color color); void ImageColorInvert(Image * image); void ImageColorGrayscale(Image * image); void ImageColorContrast(Image * image, int contrast); void ImageColorBrightness(Image * image, int brightness); void ImageColorReplace(Image * image, Color color, Color replace); Color * LoadImageColors(Image image); Color * LoadImagePalette(Image image, int maxPaletteSize, int * colorCount); void UnloadImageColors(Color * colors); void UnloadImagePalette(Color * colors); Rectangle GetImageAlphaBorder(Image image, float threshold); Color GetImageColor(Image image, int x, int y); void ImageClearBackground(Image * dst, Color color); void ImageDrawPixel(Image * dst, int posX, int posY, Color color); void ImageDrawPixelV(Image * dst, Vector2 position, Color color); void ImageDrawLine(Image * dst, int startPosX, int startPosY, int endPosX, int endPosY, Color color); void ImageDrawLineV(Image * dst, Vector2 start, Vector2 end, Color color); void ImageDrawLineEx(Image * dst, Vector2 start, Vector2 end, int thick, Color color); void ImageDrawLineStrip(Image * dst, const Vector2 * points, int pointCount, Color color); void ImageDrawTriangle(Image * dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color); void ImageDrawTriangleGradient(Image * dst, Vector2 v1, Vector2 v2, Vector2 v3, Color c1, Color c2, Color c3); void ImageDrawTriangleLines(Image * dst, Vector2 v1, Vector2 v2, Vector2 v3, Color color); void ImageDrawTriangleFan(Image * dst, const Vector2 * points, int pointCount, Color color); void ImageDrawTriangleStrip(Image * dst, const Vector2 * points, int pointCount, Color color); void ImageDrawRectangle(Image * dst, int posX, int posY, int width, int height, Color color); void ImageDrawRectangleV(Image * dst, Vector2 position, Vector2 size, Color color); void ImageDrawRectangleRec(Image * dst, Rectangle rec, Color color); void ImageDrawRectanglePro(Image * dst, Rectangle rec, Vector2 origin, float rotation, Color color); void ImageDrawRectangleLines(Image * dst, int posX, int posY, int width, int height, Color color); void ImageDrawRectangleLinesEx(Image * dst, Rectangle rec, int thick, Color color); void ImageDrawRectangleGradientEx(Image * dst, Rectangle rec, Color col1, Color col2, Color col3, Color col4); void ImageDrawCircle(Image * dst, int centerX, int centerY, int radius, Color color); void ImageDrawCircleV(Image * dst, Vector2 center, int radius, Color color); void ImageDrawCircleLines(Image * dst, int centerX, int centerY, int radius, Color color); void ImageDrawCircleLinesV(Image * dst, Vector2 center, int radius, Color color); void ImageDrawCircleGradient(Image * dst, Vector2 center, float radius, Color inner, Color outer); void ImageDrawImage(Image * dst, Image src, int posX, int posY, Color tint); void ImageDrawImageEx(Image * dst, Image src, Vector2 position, float rotation, float scale, Color tint); void ImageDrawImageRec(Image * dst, Image src, Rectangle srcRec, Vector2 position, Color tint); void ImageDrawImagePro(Image * dst, Image src, Rectangle srcRec, Rectangle dstRec, Vector2 origin, float rotation, Color tint); void ImageDrawText(Image * dst, const char * text, int posX, int posY, int fontSize, Color color); void ImageDrawTextEx(Image * dst, Font font, const char * text, Vector2 position, float fontSize, float spacing, Color tint); void ImageDrawTextPro(Image * dst, Font font, const char * text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint); Texture2D LoadTexture(const char * fileName); Texture2D LoadTextureFromImage(Image image); TextureCubemap LoadTextureCubemap(Image image, int layout); RenderTexture2D LoadRenderTexture(int width, int height); RenderTexture2D LoadRenderTextureEx(int width, int height, int format); bool IsTextureValid(Texture2D texture); void UnloadTexture(Texture2D texture); bool IsRenderTextureValid(RenderTexture2D target); void UnloadRenderTexture(RenderTexture2D target); void UpdateTexture(Texture2D texture, const void * pixels); void UpdateTextureRec(Texture2D texture, Rectangle rec, const void * pixels); void GenTextureMipmaps(Texture2D * texture); void SetTextureFilter(Texture2D texture, int filter); void SetTextureWrap(Texture2D texture, int wrap); void DrawTexture(Texture2D texture, int posX, int posY, Color tint); void DrawTextureV(Texture2D texture, Vector2 position, Color tint); void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint); void DrawTextureRec(Texture2D texture, Rectangle rec, Vector2 position, Color tint); void DrawTexturePro(Texture2D texture, Rectangle srcrec, Rectangle dstrec, Vector2 origin, float rotation, Color tint); void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle dstrec, Vector2 origin, float rotation, Color tint); bool ColorIsEqual(Color col1, Color col2); Color Fade(Color color, float alpha); int ColorToInt(Color color); Vector4 ColorNormalize(Color color); Color ColorFromNormalized(Vector4 normalized); Vector3 ColorToHSV(Color color); Color ColorFromHSV(float hue, float saturation, float value); Color ColorTint(Color color, Color tint); Color ColorBrightness(Color color, float factor); Color ColorContrast(Color color, float contrast); Color ColorAlpha(Color color, float alpha); Color ColorAlphaBlend(Color dst, Color src, Color tint); Color ColorLerp(Color color1, Color color2, float factor); Color GetColor(unsigned int hexValue); Color GetPixelColor(const void * srcPtr, int format); void SetPixelColor(void * dstPtr, Color color, int format); int GetPixelDataSize(int width, int height, int format); Font GetFontDefault(); Font LoadFont(const char * fileName); Font LoadFontEx(const char * fileName, int fontSize, const int * codepoints, int codepointCount); Font LoadFontFromImage(Image image, Color key, int firstChar); Font LoadFontFromMemory(const char * fileType, const unsigned char * fileData, int dataSize, int fontSize, const int * codepoints, int codepointCount); bool IsFontValid(Font font); GlyphInfo * LoadFontData(const unsigned char * fileData, int dataSize, int fontSize, const int * codepoints, int codepointCount, int type, int * glyphCount); Image GenImageFontAtlas(const GlyphInfo * glyphs, Rectangle ** glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); void UnloadFontData(GlyphInfo * glyphs, int glyphCount); void UnloadFont(Font font); bool ExportFontAsCode(Font font, const char * fileName); void DrawFPS(int posX, int posY); void DrawText(const char * text, int posX, int posY, int fontSize, Color color); void DrawTextEx(Font font, const char * text, Vector2 position, float fontSize, float spacing, Color tint); void DrawTextPro(Font font, const char * text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint); void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint); void DrawTextCodepoints(Font font, const int * codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint); void SetTextLineSpacing(int spacing); int MeasureText(const char * text, int fontSize); Vector2 MeasureTextEx(Font font, const char * text, float fontSize, float spacing); Vector2 MeasureTextCodepoints(Font font, const int * codepoints, int length, float fontSize, float spacing); int GetGlyphIndex(Font font, int codepoint); GlyphInfo GetGlyphInfo(Font font, int codepoint); Rectangle GetGlyphAtlasRec(Font font, int codepoint); char * LoadUTF8(const int * codepoints, int length); void UnloadUTF8(char * text); int * LoadCodepoints(const char * text, int * count); void UnloadCodepoints(int * codepoints); int GetCodepointCount(const char * text); int GetCodepoint(const char * text, int * codepointSize); int GetCodepointNext(const char * text, int * codepointSize); int GetCodepointPrevious(const char * text, int * codepointSize); const char * CodepointToUTF8(int codepoint, int * utf8Size); char ** LoadTextLines(const char * text, int * count); void UnloadTextLines(char ** text, int lineCount); int TextCopy(char * dst, const char * src); bool TextIsEqual(const char * text1, const char * text2); unsigned int TextLength(const char * text); const char * TextFormat(const char * text, ...); const char * TextSubtext(const char * text, int position, int length); const char * TextRemoveSpaces(const char * text); char * GetTextBetween(const char * text, const char * begin, const char * end); char * TextReplace(const char * text, const char * search, const char * replacement); char * TextReplaceAlloc(const char * text, const char * search, const char * replacement); char * TextReplaceBetween(const char * text, const char * begin, const char * end, const char * replacement); char * TextReplaceBetweenAlloc(const char * text, const char * begin, const char * end, const char * replacement); char * TextInsert(const char * text, const char * insert, int position); char * TextInsertAlloc(const char * text, const char * insert, int position); char * TextJoin(char ** textList, int count, const char * delimiter); char ** TextSplit(const char * text, char delimiter, int * count); void TextAppend(char * text, const char * append, int * position); int TextFindIndex(const char * text, const char * search); char * TextToUpper(const char * text); char * TextToLower(const char * text); char * TextToPascal(const char * text); char * TextToSnake(const char * text); char * TextToCamel(const char * text); int TextToInteger(const char * text); float TextToFloat(const char * text); void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color); void DrawPoint3D(Vector3 position, Color color); void DrawCircle3D(Vector3 center, float radius, Vector3 rotationAxis, float rotationAngle, Color color); void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color); void DrawTriangleStrip3D(const Vector3 * points, int pointCount, Color color); void DrawCube(Vector3 position, float width, float height, float length, Color color); void DrawCubeV(Vector3 position, Vector3 size, Color color); void DrawCubeWires(Vector3 position, float width, float height, float length, Color color); void DrawCubeWiresV(Vector3 position, Vector3 size, Color color); void DrawSphere(Vector3 centerPos, float radius, Color color); void DrawSphereEx(Vector3 centerPos, float radius, int rings, int slices, Color color); void DrawSphereWires(Vector3 centerPos, float radius, int rings, int slices, Color color); void DrawCylinder(Vector3 position, float radiusTop, float radiusBottom, float height, int sides, Color color); void DrawCylinderEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBottom, float height, int sides, Color color); void DrawCylinderWiresEx(Vector3 startPos, Vector3 endPos, float startRadius, float endRadius, int sides, Color color); void DrawCapsule(Vector3 startPos, Vector3 endPos, float radius, int rings, int slices, Color color); void DrawCapsuleWires(Vector3 startPos, Vector3 endPos, float radius, int rings, int slices, Color color); void DrawPlane(Vector3 centerPos, Vector2 size, Color color); void DrawRay(Ray ray, Color color); void DrawGrid(int slices, float spacing); Model LoadModel(const char * fileName); Model LoadModelFromMesh(Mesh mesh); bool IsModelValid(Model model); void UnloadModel(Model model); BoundingBox GetModelBoundingBox(Model model); void DrawModel(Model model, Vector3 position, float scale, Color tint); void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); void DrawModelWires(Model model, Vector3 position, float scale, Color tint); void DrawModelWiresEx(Model model, Vector3 position, Vector3 rotationAxis, float rotationAngle, Vector3 scale, Color tint); void DrawBoundingBox(BoundingBox box, Color color); void DrawBillboard(Camera camera, Texture2D texture, Vector3 position, float scale, Color tint); void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle rec, Vector3 position, Vector2 size, Color tint); void DrawBillboardPro(Camera camera, Texture2D texture, Rectangle rec, Vector3 position, Vector3 up, Vector2 size, Vector2 origin, float rotation, Color tint); void UploadMesh(Mesh * mesh, bool dynamic); void UpdateMeshBuffer(Mesh mesh, int index, const void * data, int dataSize, int offset); void UnloadMesh(Mesh mesh); void DrawMesh(Mesh mesh, Material material, Matrix transform); void DrawMeshInstanced(Mesh mesh, Material material, const Matrix * transforms, int instances); BoundingBox GetMeshBoundingBox(Mesh mesh); void GenMeshTangents(Mesh * mesh); bool ExportMesh(Mesh mesh, const char * fileName); bool ExportMeshAsCode(Mesh mesh, const char * fileName); Mesh GenMeshPoly(int sides, float radius); Mesh GenMeshPlane(float width, float length, int resX, int resZ); Mesh GenMeshCube(float width, float height, float length); Mesh GenMeshSphere(float radius, int rings, int slices); Mesh GenMeshHemiSphere(float radius, int rings, int slices); Mesh GenMeshCylinder(float radius, float height, int slices); Mesh GenMeshCone(float radius, float height, int slices); Mesh GenMeshTorus(float radius, float size, int radSeg, int sides); Mesh GenMeshKnot(float radius, float size, int radSeg, int sides); Mesh GenMeshHeightmap(Image heightmap, Vector3 size); Mesh GenMeshCubicmap(Image cubicmap, Vector3 cubeSize); Material * LoadMaterials(const char * fileName, int * materialCount); Material LoadMaterialDefault(); bool IsMaterialValid(Material material); void UnloadMaterial(Material material); void SetMaterialTexture(Material * material, int mapType, Texture2D texture); void SetModelMeshMaterial(Model * model, int meshId, int materialId); ModelAnimation * LoadModelAnimations(const char * fileName, int * animCount); void UpdateModelAnimation(Model model, ModelAnimation anim, float frame); void UpdateModelAnimationEx(Model model, ModelAnimation animA, float frameA, ModelAnimation animB, float frameB, float blend); void UnloadModelAnimations(ModelAnimation * animations, int animCount); bool IsModelAnimationValid(Model model, ModelAnimation anim); bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2); bool CheckCollisionBoxes(BoundingBox box1, BoundingBox box2); bool CheckCollisionBoxSphere(BoundingBox box, Vector3 center, float radius); RayCollision GetRayCollisionSphere(Ray ray, Vector3 center, float radius); RayCollision GetRayCollisionBox(Ray ray, BoundingBox box); RayCollision GetRayCollisionMesh(Ray ray, Mesh mesh, Matrix transform); RayCollision GetRayCollisionTriangle(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3); RayCollision GetRayCollisionQuad(Ray ray, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4); void InitAudioDevice(); void CloseAudioDevice(); bool IsAudioDeviceReady(); void SetMasterVolume(float volume); float GetMasterVolume(); Wave LoadWave(const char * fileName); Wave LoadWaveFromMemory(const char * fileType, const unsigned char * fileData, int dataSize); bool IsWaveValid(Wave wave); Sound LoadSound(const char * fileName); Sound LoadSoundFromWave(Wave wave); Sound LoadSoundAlias(Sound source); bool IsSoundValid(Sound sound); void UpdateSound(Sound sound, const void * data, int frameCount); void UnloadWave(Wave wave); void UnloadSound(Sound sound); void UnloadSoundAlias(Sound alias); bool ExportWave(Wave wave, const char * fileName); bool ExportWaveAsCode(Wave wave, const char * fileName); void PlaySound(Sound sound); void StopSound(Sound sound); void PauseSound(Sound sound); void ResumeSound(Sound sound); bool IsSoundPlaying(Sound sound); void SetSoundVolume(Sound sound, float volume); void SetSoundPitch(Sound sound, float pitch); void SetSoundPan(Sound sound, float pan); Wave WaveCopy(Wave wave); void WaveCrop(Wave * wave, int initFrame, int finalFrame); void WaveFormat(Wave * wave, int sampleRate, int sampleSize, int channels); float * LoadWaveSamples(Wave wave); void UnloadWaveSamples(float * samples); Music LoadMusicStream(const char * fileName); Music LoadMusicStreamFromMemory(const char * fileType, const unsigned char * data, int dataSize); bool IsMusicValid(Music music); void UnloadMusicStream(Music music); void PlayMusicStream(Music music); bool IsMusicStreamPlaying(Music music); void UpdateMusicStream(Music music); void StopMusicStream(Music music); void PauseMusicStream(Music music); void ResumeMusicStream(Music music); void SeekMusicStream(Music music, float position); void SetMusicVolume(Music music, float volume); void SetMusicPitch(Music music, float pitch); void SetMusicPan(Music music, float pan); float GetMusicTimeLength(Music music); float GetMusicTimePlayed(Music music); AudioStream LoadAudioStream(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels); bool IsAudioStreamValid(AudioStream stream); void UnloadAudioStream(AudioStream stream); void UpdateAudioStream(AudioStream stream, const void * data, int frameCount); bool IsAudioStreamProcessed(AudioStream stream); void PlayAudioStream(AudioStream stream); void PauseAudioStream(AudioStream stream); void ResumeAudioStream(AudioStream stream); bool IsAudioStreamPlaying(AudioStream stream); void StopAudioStream(AudioStream stream); void SetAudioStreamVolume(AudioStream stream, float volume); void SetAudioStreamPitch(AudioStream stream, float pitch); void SetAudioStreamPan(AudioStream stream, float pan); void SetAudioStreamBufferSizeDefault(int size); void SetAudioStreamCallback(AudioStream stream, AudioCallback callback); void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor); void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor); void AttachAudioMixedProcessor(AudioCallback processor); void DetachAudioMixedProcessor(AudioCallback processor); void rlMatrixMode(int mode); void rlPushMatrix(); void rlPopMatrix(); void rlLoadIdentity(); void rlTranslatef(float x, float y, float z); void rlRotatef(float angle, float x, float y, float z); void rlScalef(float x, float y, float z); void rlMultMatrixf(const float * matf); void rlFrustum(float left, float right, float bottom, float top, float znear, float zfar); void rlOrtho(float left, float right, float bottom, float top, float znear, float zfar); void rlViewport(int x, int y, int width, int height); void rlSetClipPlanes(float nearPlane, float farPlane); float rlGetCullDistanceNear(); float rlGetCullDistanceFar(); void rlBegin(int mode); void rlEnd(); void rlVertex2i(int x, int y); void rlVertex2f(float x, float y); void rlVertex3f(float x, float y, float z); void rlTexCoord2f(float x, float y); void rlNormal3f(float x, float y, float z); void rlColor4ub(unsigned char r, unsigned char g, unsigned char b, unsigned char a); void rlColor3f(float x, float y, float z); void rlColor4f(float x, float y, float z, float w); bool rlEnableVertexArray(unsigned int vaoId); void rlDisableVertexArray(); void rlEnableVertexBuffer(unsigned int id); void rlDisableVertexBuffer(); void rlEnableVertexBufferElement(unsigned int id); void rlDisableVertexBufferElement(); void rlEnableVertexAttribute(unsigned int index); void rlDisableVertexAttribute(unsigned int index); void rlEnableStatePointer(int vertexAttribType, void * buffer); void rlDisableStatePointer(int vertexAttribType); void rlActiveTextureSlot(int slot); void rlEnableTexture(unsigned int id); void rlDisableTexture(); void rlEnableTextureCubemap(unsigned int id); void rlDisableTextureCubemap(); void rlTextureParameters(unsigned int id, int param, int value); void rlCubemapParameters(unsigned int id, int param, int value); void rlEnableShader(unsigned int id); void rlDisableShader(); void rlEnableFramebuffer(unsigned int id); void rlDisableFramebuffer(); unsigned int rlGetActiveFramebuffer(); void rlActiveDrawBuffers(int count); void rlBlitFramebuffer(int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight, int bufferMask); void rlBindFramebuffer(unsigned int target, unsigned int framebuffer); void rlEnableColorBlend(); void rlDisableColorBlend(); void rlEnableDepthTest(); void rlDisableDepthTest(); void rlEnableDepthMask(); void rlDisableDepthMask(); void rlEnableBackfaceCulling(); void rlDisableBackfaceCulling(); void rlColorMask(bool r, bool g, bool b, bool a); void rlSetCullFace(int mode); void rlEnableScissorTest(); void rlDisableScissorTest(); void rlScissor(int x, int y, int width, int height); void rlEnablePointMode(); void rlDisablePointMode(); void rlSetPointSize(float size); float rlGetPointSize(); void rlEnableWireMode(); void rlDisableWireMode(); void rlSetLineWidth(float width); float rlGetLineWidth(); void rlEnableSmoothLines(); void rlDisableSmoothLines(); void rlEnableStereoRender(); void rlDisableStereoRender(); bool rlIsStereoRenderEnabled(); void rlClearColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a); void rlClearScreenBuffers(); void rlCheckErrors(); void rlSetBlendMode(int mode); void rlSetBlendFactors(int glSrcFactor, int glDstFactor, int glEquation); void rlSetBlendFactorsSeparate(int glSrcRGB, int glDstRGB, int glSrcAlpha, int glDstAlpha, int glEqRGB, int glEqAlpha); void rlglInit(int width, int height); void rlglClose(); void rlLoadExtensions(void * loader); void * rlGetProcAddress(const char * procName); int rlGetVersion(); void rlSetFramebufferWidth(int width); int rlGetFramebufferWidth(); void rlSetFramebufferHeight(int height); int rlGetFramebufferHeight(); unsigned int rlGetTextureIdDefault(); unsigned int rlGetShaderIdDefault(); int * rlGetShaderLocsDefault(); rlRenderBatch rlLoadRenderBatch(int numBuffers, int bufferElements); void rlUnloadRenderBatch(rlRenderBatch batch); void rlDrawRenderBatch(rlRenderBatch * batch); void rlSetRenderBatchActive(rlRenderBatch * batch); void rlDrawRenderBatchActive(); bool rlCheckRenderBatchLimit(int vCount); void rlSetTexture(unsigned int id); unsigned int rlLoadVertexArray(); unsigned int rlLoadVertexBuffer(const void * buffer, int size, bool dynamic); unsigned int rlLoadVertexBufferElement(const void * buffer, int size, bool dynamic); void rlUpdateVertexBuffer(unsigned int bufferId, const void * data, int dataSize, int offset); void rlUpdateVertexBufferElements(unsigned int id, const void * data, int dataSize, int offset); void rlUnloadVertexArray(unsigned int vaoId); void rlUnloadVertexBuffer(unsigned int vboId); void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool normalized, int stride, int offset); void rlSetVertexAttributeDivisor(unsigned int index, int divisor); void rlSetVertexAttributeDefault(int locIndex, const void * value, int attribType, int count); void rlDrawVertexArray(int offset, int count); void rlDrawVertexArrayElements(int offset, int count, const void * buffer); void rlDrawVertexArrayInstanced(int offset, int count, int instances); void rlDrawVertexArrayElementsInstanced(int offset, int count, const void * buffer, int instances); unsigned int rlLoadTexture(const void * data, int width, int height, int format, int mipmapCount); unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer); unsigned int rlLoadTextureCubemap(const void * data, int size, int format, int mipmapCount); void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void * data); void rlGetGlTextureFormats(int format, unsigned int * glInternalFormat, unsigned int * glFormat, unsigned int * glType); const char * rlGetPixelFormatName(unsigned int format); void rlUnloadTexture(unsigned int id); void rlGenTextureMipmaps(unsigned int id, int width, int height, int format, int * mipmaps); void * rlReadTexturePixels(unsigned int id, int width, int height, int format); unsigned char * rlReadScreenPixels(int width, int height); unsigned int rlLoadFramebuffer(); void rlFramebufferAttach(unsigned int id, unsigned int texId, int attachType, int texType, int mipLevel); bool rlFramebufferComplete(unsigned int id); void rlUnloadFramebuffer(unsigned int id); void rlCopyFramebuffer(int x, int y, int width, int height, int format, void * pixels); void rlResizeFramebuffer(int width, int height); unsigned int rlLoadShader(const char * code, int type); unsigned int rlLoadShaderProgram(const char * vsCode, const char * fsCode); unsigned int rlLoadShaderProgramEx(unsigned int vsId, unsigned int fsId); unsigned int rlLoadShaderProgramCompute(unsigned int csId); void rlUnloadShader(unsigned int id); void rlUnloadShaderProgram(unsigned int id); int rlGetLocationUniform(unsigned int id, const char * uniformName); int rlGetLocationAttrib(unsigned int id, const char * attribName); void rlSetUniform(int locIndex, const void * value, int uniformType, int count); void rlSetUniformMatrix(int locIndex, Matrix mat); void rlSetUniformMatrices(int locIndex, const Matrix * mat, int count); void rlSetUniformSampler(int locIndex, unsigned int textureId); void rlSetShader(unsigned int id, int * locs); void rlComputeShaderDispatch(unsigned int groupX, unsigned int groupY, unsigned int groupZ); unsigned int rlLoadShaderBuffer(unsigned int size, const void * data, int usageHint); void rlUnloadShaderBuffer(unsigned int ssboId); void rlUpdateShaderBuffer(unsigned int id, const void * data, unsigned int dataSize, unsigned int offset); void rlBindShaderBuffer(unsigned int id, unsigned int index); void rlReadShaderBuffer(unsigned int id, void * dest, unsigned int count, unsigned int offset); void rlCopyShaderBuffer(unsigned int destId, unsigned int srcId, unsigned int destOffset, unsigned int srcOffset, unsigned int count); unsigned int rlGetShaderBufferSize(unsigned int id); void rlBindImageTexture(unsigned int id, unsigned int index, int format, bool readonly); Matrix rlGetMatrixModelview(); Matrix rlGetMatrixProjection(); Matrix rlGetMatrixTransform(); Matrix rlGetMatrixProjectionStereo(int eye); Matrix rlGetMatrixViewOffsetStereo(int eye); void rlSetMatrixProjection(Matrix proj); void rlSetMatrixModelview(Matrix view); void rlSetMatrixProjectionStereo(Matrix right, Matrix left); void rlSetMatrixViewOffsetStereo(Matrix right, Matrix left); void rlLoadDrawCube(); void rlLoadDrawQuad(); float Clamp(float value, float min, float max); float Lerp(float start, float end, float amount); float Normalize(float value, float start, float end); float Remap(float value, float inputStart, float inputEnd, float outputStart, float outputEnd); float Wrap(float value, float min, float max); int FloatEquals(float x, float y); Vector2 Vector2Zero(); Vector2 Vector2One(); Vector2 Vector2Add(Vector2 v1, Vector2 v2); Vector2 Vector2AddValue(Vector2 v, float add); Vector2 Vector2Subtract(Vector2 v1, Vector2 v2); Vector2 Vector2SubtractValue(Vector2 v, float sub); float Vector2Length(Vector2 v); float Vector2LengthSqr(Vector2 v); float Vector2DotProduct(Vector2 v1, Vector2 v2); float Vector2CrossProduct(Vector2 v1, Vector2 v2); float Vector2Distance(Vector2 v1, Vector2 v2); float Vector2DistanceSqr(Vector2 v1, Vector2 v2); float Vector2Angle(Vector2 v1, Vector2 v2); float Vector2LineAngle(Vector2 start, Vector2 end); Vector2 Vector2Scale(Vector2 v, float scale); Vector2 Vector2Multiply(Vector2 v1, Vector2 v2); Vector2 Vector2Negate(Vector2 v); Vector2 Vector2Divide(Vector2 v1, Vector2 v2); Vector2 Vector2Normalize(Vector2 v); Vector2 Vector2Transform(Vector2 v, Matrix mat); Vector2 Vector2Lerp(Vector2 v1, Vector2 v2, float amount); Vector2 Vector2Reflect(Vector2 v, Vector2 normal); Vector2 Vector2Min(Vector2 v1, Vector2 v2); Vector2 Vector2Max(Vector2 v1, Vector2 v2); Vector2 Vector2Rotate(Vector2 v, float angle); Vector2 Vector2MoveTowards(Vector2 v, Vector2 target, float maxDistance); Vector2 Vector2Invert(Vector2 v); Vector2 Vector2Clamp(Vector2 v, Vector2 min, Vector2 max); Vector2 Vector2ClampValue(Vector2 v, float min, float max); int Vector2Equals(Vector2 p, Vector2 q); Vector2 Vector2Refract(Vector2 v, Vector2 n, float r); Vector3 Vector3Zero(); Vector3 Vector3One(); Vector3 Vector3Add(Vector3 v1, Vector3 v2); Vector3 Vector3AddValue(Vector3 v, float add); Vector3 Vector3Subtract(Vector3 v1, Vector3 v2); Vector3 Vector3SubtractValue(Vector3 v, float sub); Vector3 Vector3Scale(Vector3 v, float scalar); Vector3 Vector3Multiply(Vector3 v1, Vector3 v2); Vector3 Vector3CrossProduct(Vector3 v1, Vector3 v2); Vector3 Vector3Perpendicular(Vector3 v); float Vector3Length(const Vector3 v); float Vector3LengthSqr(const Vector3 v); float Vector3DotProduct(Vector3 v1, Vector3 v2); float Vector3Distance(Vector3 v1, Vector3 v2); float Vector3DistanceSqr(Vector3 v1, Vector3 v2); float Vector3Angle(Vector3 v1, Vector3 v2); Vector3 Vector3Negate(Vector3 v); Vector3 Vector3Divide(Vector3 v1, Vector3 v2); Vector3 Vector3Normalize(Vector3 v); Vector3 Vector3Project(Vector3 v1, Vector3 v2); Vector3 Vector3Reject(Vector3 v1, Vector3 v2); void Vector3OrthoNormalize(Vector3 * v1, Vector3 * v2); Vector3 Vector3Transform(Vector3 v, Matrix mat); Vector3 Vector3RotateByQuaternion(Vector3 v, Quaternion q); Vector3 Vector3RotateByAxisAngle(Vector3 v, Vector3 axis, float angle); Vector3 Vector3MoveTowards(Vector3 v, Vector3 target, float maxDistance); Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount); Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount); Vector3 Vector3Reflect(Vector3 v, Vector3 normal); Vector3 Vector3Min(Vector3 v1, Vector3 v2); Vector3 Vector3Max(Vector3 v1, Vector3 v2); Vector3 Vector3Barycenter(Vector3 p, Vector3 a, Vector3 b, Vector3 c); Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view); float3 Vector3ToFloatV(Vector3 v); Vector3 Vector3Invert(Vector3 v); Vector3 Vector3Clamp(Vector3 v, Vector3 min, Vector3 max); Vector3 Vector3ClampValue(Vector3 v, float min, float max); int Vector3Equals(Vector3 p, Vector3 q); Vector3 Vector3Refract(Vector3 v, Vector3 n, float r); Vector4 Vector4Zero(); Vector4 Vector4One(); Vector4 Vector4Add(Vector4 v1, Vector4 v2); Vector4 Vector4AddValue(Vector4 v, float add); Vector4 Vector4Subtract(Vector4 v1, Vector4 v2); Vector4 Vector4SubtractValue(Vector4 v, float add); float Vector4Length(Vector4 v); float Vector4LengthSqr(Vector4 v); float Vector4DotProduct(Vector4 v1, Vector4 v2); float Vector4Distance(Vector4 v1, Vector4 v2); float Vector4DistanceSqr(Vector4 v1, Vector4 v2); Vector4 Vector4Scale(Vector4 v, float scale); Vector4 Vector4Multiply(Vector4 v1, Vector4 v2); Vector4 Vector4Negate(Vector4 v); Vector4 Vector4Divide(Vector4 v1, Vector4 v2); Vector4 Vector4Normalize(Vector4 v); Vector4 Vector4Min(Vector4 v1, Vector4 v2); Vector4 Vector4Max(Vector4 v1, Vector4 v2); Vector4 Vector4Lerp(Vector4 v1, Vector4 v2, float amount); Vector4 Vector4MoveTowards(Vector4 v, Vector4 target, float maxDistance); Vector4 Vector4Invert(Vector4 v); int Vector4Equals(Vector4 p, Vector4 q); float MatrixDeterminant(Matrix mat); float MatrixTrace(Matrix mat); Matrix MatrixTranspose(Matrix mat); Matrix MatrixInvert(Matrix mat); Matrix MatrixIdentity(); Matrix MatrixAdd(Matrix left, Matrix right); Matrix MatrixSubtract(Matrix left, Matrix right); Matrix MatrixMultiply(Matrix left, Matrix right); Matrix MatrixMultiplyValue(Matrix left, float value); Matrix MatrixTranslate(float x, float y, float z); Matrix MatrixRotate(Vector3 axis, float angle); Matrix MatrixRotateX(float angle); Matrix MatrixRotateY(float angle); Matrix MatrixRotateZ(float angle); Matrix MatrixRotateXYZ(Vector3 angle); Matrix MatrixRotateZYX(Vector3 angle); Matrix MatrixScale(float x, float y, float z); Matrix MatrixFrustum(float left, float right, float bottom, float top, float nearPlane, float farPlane); Matrix MatrixPerspective(float fovY, float aspect, float nearPlane, float farPlane); Matrix MatrixOrtho(float left, float right, float bottom, float top, float nearPlane, float farPlane); Matrix MatrixLookAt(Vector3 eye, Vector3 target, Vector3 up); float16 MatrixToFloatV(Matrix mat); Quaternion QuaternionAdd(Quaternion q1, Quaternion q2); Quaternion QuaternionAddValue(Quaternion q, float add); Quaternion QuaternionSubtract(Quaternion q1, Quaternion q2); Quaternion QuaternionSubtractValue(Quaternion q, float sub); Quaternion QuaternionIdentity(); float QuaternionLength(Quaternion q); Quaternion QuaternionNormalize(Quaternion q); Quaternion QuaternionInvert(Quaternion q); Quaternion QuaternionMultiply(Quaternion q1, Quaternion q2); Quaternion QuaternionScale(Quaternion q, float mul); Quaternion QuaternionDivide(Quaternion q1, Quaternion q2); Quaternion QuaternionLerp(Quaternion q1, Quaternion q2, float amount); Quaternion QuaternionNlerp(Quaternion q1, Quaternion q2, float amount); Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount); Quaternion QuaternionCubicHermiteSpline(Quaternion q1, Quaternion outTangent1, Quaternion q2, Quaternion inTangent2, float t); Quaternion QuaternionFromVector3ToVector3(Vector3 from, Vector3 to); Quaternion QuaternionFromMatrix(Matrix mat); Matrix QuaternionToMatrix(Quaternion q); Quaternion QuaternionFromAxisAngle(Vector3 axis, float angle); void QuaternionToAxisAngle(Quaternion q, Vector3 * outAxis, float * outAngle); Quaternion QuaternionFromEuler(float pitch, float yaw, float roll); Vector3 QuaternionToEuler(Quaternion q); Quaternion QuaternionTransform(Quaternion q, Matrix mat); int QuaternionEquals(Quaternion p, Quaternion q); Matrix MatrixCompose(Vector3 translation, Quaternion rotation, Vector3 scale); void MatrixDecompose(Matrix mat, Vector3 * translation, Quaternion * rotation, Vector3 * scale); void GuiEnable(); void GuiDisable(); void GuiLock(); void GuiUnlock(); bool GuiIsLocked(); void GuiSetAlpha(float alpha); void GuiSetState(int state); int GuiGetState(); void GuiSetFont(Font font); Font GuiGetFont(); void GuiSetStyle(int control, int property, int value); int GuiGetStyle(int control, int property); void GuiLoadStyle(const char * fileName); void GuiLoadStyleFromMemory(const unsigned char * fileData, int dataSize); void GuiLoadStyleDefault(); void GuiEnableTooltip(); void GuiDisableTooltip(); void GuiSetTooltip(const char * tooltip); const char * GuiIconText(int iconId, const char * text); void GuiSetIconScale(int scale); unsigned int * GuiGetIcons(); char ** GuiLoadIcons(const char * fileName, bool loadIconsName); char ** GuiLoadIconsFromMemory(const unsigned char * fileData, int dataSize, bool loadIconsName); void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color); int GuiGetTextWidth(const char * text); int GuiWindowBox(Rectangle bounds, const char * title); int GuiGroupBox(Rectangle bounds, const char * text); int GuiLine(Rectangle bounds, const char * text); int GuiPanel(Rectangle bounds, const char * text); int GuiScrollPanel(Rectangle bounds, const char * text, Rectangle content, Vector2 * scroll, Rectangle * view); int GuiLabel(Rectangle bounds, const char * text); int GuiButton(Rectangle bounds, const char * text); int GuiLabelButton(Rectangle bounds, const char * text); int GuiToggle(Rectangle bounds, const char * text, bool * active); int GuiToggleGroup(Rectangle bounds, const char * text, int * active); int GuiToggleSlider(Rectangle bounds, const char * text, int * active); int GuiCheckBox(Rectangle bounds, const char * text, bool * checked); int GuiComboBox(Rectangle bounds, const char * text, int * active); int GuiDropdownBox(Rectangle bounds, const char * text, int * active, bool editMode); int GuiSpinner(Rectangle bounds, const char * text, int * value, int minValue, int maxValue, bool editMode); int GuiValueBox(Rectangle bounds, const char * text, int * value, int minValue, int maxValue, bool editMode); int GuiValueBoxFloat(Rectangle bounds, const char * text, char * textValue, float * value, bool editMode); int GuiTextBox(Rectangle bounds, char * text, int textSize, bool editMode); int GuiSlider(Rectangle bounds, const char * textLeft, const char * textRight, float * value, float minValue, float maxValue); int GuiSliderBar(Rectangle bounds, const char * textLeft, const char * textRight, float * value, float minValue, float maxValue); int GuiProgressBar(Rectangle bounds, const char * textLeft, const char * textRight, float * value, float minValue, float maxValue); int GuiStatusBar(Rectangle bounds, const char * text); int GuiDummyRec(Rectangle bounds, const char * text); int GuiGrid(Rectangle bounds, const char * text, float spacing, int subdivs, Vector2 * mouseCell); int GuiListView(Rectangle bounds, const char * text, int * scrollIndex, int * active); int GuiListViewEx(Rectangle bounds, char ** text, int count, int * scrollIndex, int * active, int * focus); int GuiTabBar(Rectangle bounds, const char * text, int * hscroll, int * active); int GuiTabBarEx(Rectangle bounds, char ** text, int count, int * hscroll, int * active, int * focus); int GuiMessageBox(Rectangle bounds, const char * title, const char * message, const char * btnText, int * btnActive); int GuiTextInputBox(Rectangle bounds, const char * title, const char * message, char * text, int textSize, const char * btnText, int * btnActive, bool * secretViewActive); int GuiColorPicker(Rectangle bounds, const char * text, Color * color); int GuiColorPanel(Rectangle bounds, const char * text, Color * color); int GuiColorBarAlpha(Rectangle bounds, const char * text, float * alpha); int GuiColorBarHue(Rectangle bounds, const char * text, float * value); int GuiColorPickerHSV(Rectangle bounds, const char * text, Vector3 * colorHsv); int GuiColorPanelHSV(Rectangle bounds, const char * text, Vector3 * colorHsv); ]] local C = ffi.C local string_format = string.format local type, select = type, select local function to_array(ct, t, n) n = n or #t local a = ffi.new(ct .. "[?]", n) for i = 1, n do a[i - 1] = t[i] end return a end RAYLIB_VERSION_MAJOR = 6 RAYLIB_VERSION_MINOR = 5 RAYLIB_VERSION_PATCH = 0 RAYLIB_VERSION = "6.5-dev" PI = 3.1415926535898 DEG2RAD = 0.017453292519943 RAD2DEG = 57.295779513082 LIGHTGRAY = ffi.new("Color", { r = 200, g = 200, b = 200, a = 255 }) GRAY = ffi.new("Color", { r = 130, g = 130, b = 130, a = 255 }) DARKGRAY = ffi.new("Color", { r = 80, g = 80, b = 80, a = 255 }) YELLOW = ffi.new("Color", { r = 253, g = 249, b = 0, a = 255 }) GOLD = ffi.new("Color", { r = 255, g = 203, b = 0, a = 255 }) ORANGE = ffi.new("Color", { r = 255, g = 161, b = 0, a = 255 }) PINK = ffi.new("Color", { r = 255, g = 109, b = 194, a = 255 }) RED = ffi.new("Color", { r = 230, g = 41, b = 55, a = 255 }) MAROON = ffi.new("Color", { r = 190, g = 33, b = 55, a = 255 }) GREEN = ffi.new("Color", { r = 0, g = 228, b = 48, a = 255 }) LIME = ffi.new("Color", { r = 0, g = 158, b = 47, a = 255 }) DARKGREEN = ffi.new("Color", { r = 0, g = 117, b = 44, a = 255 }) SKYBLUE = ffi.new("Color", { r = 102, g = 191, b = 255, a = 255 }) BLUE = ffi.new("Color", { r = 0, g = 121, b = 241, a = 255 }) DARKBLUE = ffi.new("Color", { r = 0, g = 82, b = 172, a = 255 }) PURPLE = ffi.new("Color", { r = 200, g = 122, b = 255, a = 255 }) VIOLET = ffi.new("Color", { r = 135, g = 60, b = 190, a = 255 }) DARKPURPLE = ffi.new("Color", { r = 112, g = 31, b = 126, a = 255 }) BEIGE = ffi.new("Color", { r = 211, g = 176, b = 131, a = 255 }) BROWN = ffi.new("Color", { r = 127, g = 106, b = 79, a = 255 }) DARKBROWN = ffi.new("Color", { r = 76, g = 63, b = 47, a = 255 }) WHITE = ffi.new("Color", { r = 255, g = 255, b = 255, a = 255 }) BLACK = ffi.new("Color", { r = 0, g = 0, b = 0, a = 255 }) BLANK = ffi.new("Color", { r = 0, g = 0, b = 0, a = 0 }) MAGENTA = ffi.new("Color", { r = 255, g = 0, b = 255, a = 255 }) RAYWHITE = ffi.new("Color", { r = 245, g = 245, b = 245, a = 255 }) RLGL_VERSION = "6.0" RL_DEFAULT_BATCH_BUFFER_ELEMENTS = 8192 RL_DEFAULT_BATCH_BUFFERS = 1 --Default number of batch buffers (multi-buffering) RL_DEFAULT_BATCH_DRAWCALLS = 256 --Default number of batch draw calls (by state changes: mode, texture) RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS = 4 --Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture()) RL_MAX_MATRIX_STACK_SIZE = 32 --Maximum size of Matrix stack RL_MAX_SHADER_LOCATIONS = 32 --Maximum number of shader locations supported RL_CULL_DISTANCE_NEAR = 0.05 --Default near cull distance RL_CULL_DISTANCE_FAR = 4000 --Default far cull distance RL_TEXTURE_WRAP_S = 10242 --GL_TEXTURE_WRAP_S RL_TEXTURE_WRAP_T = 10243 --GL_TEXTURE_WRAP_T RL_TEXTURE_MAG_FILTER = 10240 --GL_TEXTURE_MAG_FILTER RL_TEXTURE_MIN_FILTER = 10241 --GL_TEXTURE_MIN_FILTER RL_TEXTURE_FILTER_NEAREST = 9728 --GL_NEAREST RL_TEXTURE_FILTER_LINEAR = 9729 --GL_LINEAR RL_TEXTURE_FILTER_MIP_NEAREST = 9984 --GL_NEAREST_MIPMAP_NEAREST RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR = 9986 --GL_NEAREST_MIPMAP_LINEAR RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST = 9985 --GL_LINEAR_MIPMAP_NEAREST RL_TEXTURE_FILTER_MIP_LINEAR = 9987 --GL_LINEAR_MIPMAP_LINEAR RL_TEXTURE_FILTER_ANISOTROPIC = 12288 --Anisotropic filter (custom identifier) RL_TEXTURE_MIPMAP_BIAS_RATIO = 16384 --Texture mipmap bias, percentage ratio (custom identifier) RL_TEXTURE_WRAP_REPEAT = 10497 --GL_REPEAT RL_TEXTURE_WRAP_CLAMP = 33071 --GL_CLAMP_TO_EDGE RL_TEXTURE_WRAP_MIRROR_REPEAT = 33648 --GL_MIRRORED_REPEAT RL_TEXTURE_WRAP_MIRROR_CLAMP = 34626 --GL_MIRROR_CLAMP_EXT RL_MODELVIEW = 5888 --GL_MODELVIEW RL_PROJECTION = 5889 --GL_PROJECTION RL_TEXTURE = 5890 --GL_TEXTURE RL_LINES = 1 --GL_LINES RL_TRIANGLES = 4 --GL_TRIANGLES RL_QUADS = 7 --GL_QUADS RL_UNSIGNED_BYTE = 5121 --GL_UNSIGNED_BYTE RL_FLOAT = 5126 --GL_FLOAT RL_STREAM_DRAW = 35040 --GL_STREAM_DRAW RL_STREAM_READ = 35041 --GL_STREAM_READ RL_STREAM_COPY = 35042 --GL_STREAM_COPY RL_STATIC_DRAW = 35044 --GL_STATIC_DRAW RL_STATIC_READ = 35045 --GL_STATIC_READ RL_STATIC_COPY = 35046 --GL_STATIC_COPY RL_DYNAMIC_DRAW = 35048 --GL_DYNAMIC_DRAW RL_DYNAMIC_READ = 35049 --GL_DYNAMIC_READ RL_DYNAMIC_COPY = 35050 --GL_DYNAMIC_COPY RL_FRAGMENT_SHADER = 35632 --GL_FRAGMENT_SHADER RL_VERTEX_SHADER = 35633 --GL_VERTEX_SHADER RL_COMPUTE_SHADER = 37305 --GL_COMPUTE_SHADER RL_ZERO = 0 --GL_ZERO RL_ONE = 1 --GL_ONE RL_SRC_COLOR = 768 --GL_SRC_COLOR RL_ONE_MINUS_SRC_COLOR = 769 --GL_ONE_MINUS_SRC_COLOR RL_SRC_ALPHA = 770 --GL_SRC_ALPHA RL_ONE_MINUS_SRC_ALPHA = 771 --GL_ONE_MINUS_SRC_ALPHA RL_DST_ALPHA = 772 --GL_DST_ALPHA RL_ONE_MINUS_DST_ALPHA = 773 --GL_ONE_MINUS_DST_ALPHA RL_DST_COLOR = 774 --GL_DST_COLOR RL_ONE_MINUS_DST_COLOR = 775 --GL_ONE_MINUS_DST_COLOR RL_SRC_ALPHA_SATURATE = 776 --GL_SRC_ALPHA_SATURATE RL_CONSTANT_COLOR = 32769 --GL_CONSTANT_COLOR RL_ONE_MINUS_CONSTANT_COLOR = 32770 --GL_ONE_MINUS_CONSTANT_COLOR RL_CONSTANT_ALPHA = 32771 --GL_CONSTANT_ALPHA RL_ONE_MINUS_CONSTANT_ALPHA = 32772 --GL_ONE_MINUS_CONSTANT_ALPHA RL_FUNC_ADD = 32774 --GL_FUNC_ADD RL_MIN = 32775 --GL_MIN RL_MAX = 32776 --GL_MAX RL_FUNC_SUBTRACT = 32778 --GL_FUNC_SUBTRACT RL_FUNC_REVERSE_SUBTRACT = 32779 --GL_FUNC_REVERSE_SUBTRACT RL_BLEND_EQUATION = 32777 --GL_BLEND_EQUATION RL_BLEND_EQUATION_RGB = 32777 --GL_BLEND_EQUATION_RGB // (Same as BLEND_EQUATION) RL_BLEND_EQUATION_ALPHA = 34877 --GL_BLEND_EQUATION_ALPHA RL_BLEND_DST_RGB = 32968 --GL_BLEND_DST_RGB RL_BLEND_SRC_RGB = 32969 --GL_BLEND_SRC_RGB RL_BLEND_DST_ALPHA = 32970 --GL_BLEND_DST_ALPHA RL_BLEND_SRC_ALPHA = 32971 --GL_BLEND_SRC_ALPHA RL_BLEND_COLOR = 32773 --GL_BLEND_COLOR RL_READ_FRAMEBUFFER = 36008 --GL_READ_FRAMEBUFFER RL_DRAW_FRAMEBUFFER = 36009 --GL_DRAW_FRAMEBUFFER RL_DEFAULT_SHADER_ATTRIB_LOCATION_POSITION = 0 RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD = 1 RL_DEFAULT_SHADER_ATTRIB_LOCATION_NORMAL = 2 RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR = 3 RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT = 4 RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2 = 5 RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6 RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEINDICES = 7 RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS = 8 RL_DEFAULT_SHADER_ATTRIB_LOCATION_INSTANCETRANSFORM = 9 EPSILON = 1e-06 RAYGUI_VERSION_MAJOR = 5 RAYGUI_VERSION_MINOR = 1 RAYGUI_VERSION_PATCH = 0 RAYGUI_VERSION = "5.1-dev" SCROLLBAR_LEFT_SIDE = 0 SCROLLBAR_RIGHT_SIDE = 1 RAYGUI_ICON_SIZE = 16 --Size of icons in pixels (squared) RAYGUI_ICON_MAX_ICONS = 512 --Maximum number of icons RAYGUI_ICON_MAX_FONT_BACKED = 257 --Maximum number of icons to back in font atlas RAYGUI_ICON_MAX_NAME_LENGTH = 32 --Maximum length of icon name id RAYGUI_ICON_FONT_ATLAS_PADDING = 1 --Padding between backed icons in font atlas RAYGUI_ICON_DATA_ELEMENTS = (RAYGUI_ICON_SIZE*RAYGUI_ICON_SIZE/32) RAYGUI_MAX_CONTROLS = 16 --Maximum number of controls RAYGUI_MAX_PROPS_BASE = 16 --Maximum number of base properties RAYGUI_MAX_PROPS_EXTENDED = 8 --Maximum number of extended properties MOUSE_LEFT_BUTTON = 0 RAYGUI_WINDOWBOX_STATUSBAR_HEIGHT = 24 RAYGUI_WINDOWBOX_CLOSEBUTTON_HEIGHT = 18 RAYGUI_GROUPBOX_LINE_THICK = 1 RAYGUI_LINE_MARGIN_TEXT = 12 RAYGUI_LINE_TEXT_PADDING = 4 RAYGUI_PANEL_BORDER_WIDTH = 1 RAYGUI_MIN_SCROLLBAR_WIDTH = 40 RAYGUI_MIN_SCROLLBAR_HEIGHT = 40 RAYGUI_MIN_MOUSE_WHEEL_SPEED = 20 RAYGUI_TOGGLEGROUP_MAX_ITEM_TEXT_SIZE = 256 RAYGUI_TEXTBOX_AUTO_CURSOR_COOLDOWN = 20 --Frames to wait for autocursor movement RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY = 1 --Frames delay for autocursor movement RAYGUI_VALUEBOX_MAX_CHARS = 32 RAYGUI_COLORBARALPHA_CHECKED_SIZE = 10 RAYGUI_MESSAGEBOX_BUTTON_HEIGHT = 24 RAYGUI_MESSAGEBOX_BUTTON_PADDING = 12 RAYGUI_TEXTINPUTBOX_BUTTON_HEIGHT = 24 RAYGUI_TEXTINPUTBOX_BUTTON_PADDING = 12 RAYGUI_TEXTINPUTBOX_HEIGHT = 26 RAYGUI_GRID_ALPHA = 0.15 MAX_LINE_BUFFER_SIZE = 256 RAYGUI_ICON_TEXT_PADDING = 4 RAYGUI_MAX_TEXT_LINES = 128 RAYGUI_TEXTSPLIT_MAX_ITEMS = 128 RAYGUI_TEXTSPLIT_MAX_TEXT_SIZE = 1024 --WARNING: Max expected size for all concat items RAYGUI_TEXTFORMAT_MAX_SIZE = 256 ---System/Window config flags ---@alias ConfigFlags ---| `FLAG_VSYNC_HINT` #Set to try enabling V-Sync on GPU ---| `FLAG_FULLSCREEN_MODE` #Set to run program in fullscreen ---| `FLAG_WINDOW_RESIZABLE` #Set to allow resizable window ---| `FLAG_WINDOW_UNDECORATED` #Set to disable window decoration (frame and buttons) ---| `FLAG_WINDOW_HIDDEN` #Set to hide window ---| `FLAG_WINDOW_MINIMIZED` #Set to minimize window (iconify) ---| `FLAG_WINDOW_MAXIMIZED` #Set to maximize window (expanded to monitor) ---| `FLAG_WINDOW_UNFOCUSED` #Set to window non focused ---| `FLAG_WINDOW_TOPMOST` #Set to window always on top ---| `FLAG_WINDOW_ALWAYS_RUN` #Set to allow windows running while minimized ---| `FLAG_WINDOW_TRANSPARENT` #Set to allow transparent framebuffer ---| `FLAG_WINDOW_HIGHDPI` #Set to support HighDPI ---| `FLAG_WINDOW_MOUSE_PASSTHROUGH` #Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED ---| `FLAG_BORDERLESS_WINDOWED_MODE` #Set to run program in borderless windowed mode ---| `FLAG_MSAA_4X_HINT` #Set to try enabling MSAA 4X ---| `FLAG_INTERLACED_HINT` #Set to try enabling interlaced video format (for V3D) --- Set to try enabling V-Sync on GPU FLAG_VSYNC_HINT = 64 --- Set to run program in fullscreen FLAG_FULLSCREEN_MODE = 2 --- Set to allow resizable window FLAG_WINDOW_RESIZABLE = 4 --- Set to disable window decoration (frame and buttons) FLAG_WINDOW_UNDECORATED = 8 --- Set to hide window FLAG_WINDOW_HIDDEN = 128 --- Set to minimize window (iconify) FLAG_WINDOW_MINIMIZED = 512 --- Set to maximize window (expanded to monitor) FLAG_WINDOW_MAXIMIZED = 1024 --- Set to window non focused FLAG_WINDOW_UNFOCUSED = 2048 --- Set to window always on top FLAG_WINDOW_TOPMOST = 4096 --- Set to allow windows running while minimized FLAG_WINDOW_ALWAYS_RUN = 256 --- Set to allow transparent framebuffer FLAG_WINDOW_TRANSPARENT = 16 --- Set to support HighDPI FLAG_WINDOW_HIGHDPI = 8192 --- Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED FLAG_WINDOW_MOUSE_PASSTHROUGH = 16384 --- Set to run program in borderless windowed mode FLAG_BORDERLESS_WINDOWED_MODE = 32768 --- Set to try enabling MSAA 4X FLAG_MSAA_4X_HINT = 32 --- Set to try enabling interlaced video format (for V3D) FLAG_INTERLACED_HINT = 65536 ---Trace log level ---@alias TraceLogLevel ---| `LOG_ALL` #Display all logs ---| `LOG_TRACE` #Trace logging, intended for internal use only ---| `LOG_DEBUG` #Debug logging, used for internal debugging, it should be disabled on release builds ---| `LOG_INFO` #Info logging, used for program execution info ---| `LOG_WARNING` #Warning logging, used on recoverable failures ---| `LOG_ERROR` #Error logging, used on unrecoverable failures ---| `LOG_FATAL` #Fatal logging, used to abort program: exit(EXIT_FAILURE) ---| `LOG_NONE` #Disable logging --- Display all logs LOG_ALL = 0 --- Trace logging, intended for internal use only LOG_TRACE = 1 --- Debug logging, used for internal debugging, it should be disabled on release builds LOG_DEBUG = 2 --- Info logging, used for program execution info LOG_INFO = 3 --- Warning logging, used on recoverable failures LOG_WARNING = 4 --- Error logging, used on unrecoverable failures LOG_ERROR = 5 --- Fatal logging, used to abort program: exit(EXIT_FAILURE) LOG_FATAL = 6 --- Disable logging LOG_NONE = 7 ---Keyboard keys (US keyboard layout) ---@alias KeyboardKey ---| `KEY_NULL` #Key: NULL, used for no key pressed ---| `KEY_APOSTROPHE` #Key: ' ---| `KEY_COMMA` #Key: , ---| `KEY_MINUS` #Key: - ---| `KEY_PERIOD` #Key: . ---| `KEY_SLASH` #Key: / ---| `KEY_ZERO` #Key: 0 ---| `KEY_ONE` #Key: 1 ---| `KEY_TWO` #Key: 2 ---| `KEY_THREE` #Key: 3 ---| `KEY_FOUR` #Key: 4 ---| `KEY_FIVE` #Key: 5 ---| `KEY_SIX` #Key: 6 ---| `KEY_SEVEN` #Key: 7 ---| `KEY_EIGHT` #Key: 8 ---| `KEY_NINE` #Key: 9 ---| `KEY_SEMICOLON` #Key: ; ---| `KEY_EQUAL` #Key: = ---| `KEY_A` #Key: A | a ---| `KEY_B` #Key: B | b ---| `KEY_C` #Key: C | c ---| `KEY_D` #Key: D | d ---| `KEY_E` #Key: E | e ---| `KEY_F` #Key: F | f ---| `KEY_G` #Key: G | g ---| `KEY_H` #Key: H | h ---| `KEY_I` #Key: I | i ---| `KEY_J` #Key: J | j ---| `KEY_K` #Key: K | k ---| `KEY_L` #Key: L | l ---| `KEY_M` #Key: M | m ---| `KEY_N` #Key: N | n ---| `KEY_O` #Key: O | o ---| `KEY_P` #Key: P | p ---| `KEY_Q` #Key: Q | q ---| `KEY_R` #Key: R | r ---| `KEY_S` #Key: S | s ---| `KEY_T` #Key: T | t ---| `KEY_U` #Key: U | u ---| `KEY_V` #Key: V | v ---| `KEY_W` #Key: W | w ---| `KEY_X` #Key: X | x ---| `KEY_Y` #Key: Y | y ---| `KEY_Z` #Key: Z | z ---| `KEY_LEFT_BRACKET` #Key: [ ---| `KEY_BACKSLASH` #Key: '\' ---| `KEY_RIGHT_BRACKET` #Key: ] ---| `KEY_GRAVE` #Key: ` ---| `KEY_SPACE` #Key: Space ---| `KEY_ESCAPE` #Key: Esc ---| `KEY_ENTER` #Key: Enter ---| `KEY_TAB` #Key: Tab ---| `KEY_BACKSPACE` #Key: Backspace ---| `KEY_INSERT` #Key: Ins ---| `KEY_DELETE` #Key: Del ---| `KEY_RIGHT` #Key: Cursor right ---| `KEY_LEFT` #Key: Cursor left ---| `KEY_DOWN` #Key: Cursor down ---| `KEY_UP` #Key: Cursor up ---| `KEY_PAGE_UP` #Key: Page up ---| `KEY_PAGE_DOWN` #Key: Page down ---| `KEY_HOME` #Key: Home ---| `KEY_END` #Key: End ---| `KEY_CAPS_LOCK` #Key: Caps lock ---| `KEY_SCROLL_LOCK` #Key: Scroll down ---| `KEY_NUM_LOCK` #Key: Num lock ---| `KEY_PRINT_SCREEN` #Key: Print screen ---| `KEY_PAUSE` #Key: Pause ---| `KEY_F1` #Key: F1 ---| `KEY_F2` #Key: F2 ---| `KEY_F3` #Key: F3 ---| `KEY_F4` #Key: F4 ---| `KEY_F5` #Key: F5 ---| `KEY_F6` #Key: F6 ---| `KEY_F7` #Key: F7 ---| `KEY_F8` #Key: F8 ---| `KEY_F9` #Key: F9 ---| `KEY_F10` #Key: F10 ---| `KEY_F11` #Key: F11 ---| `KEY_F12` #Key: F12 ---| `KEY_LEFT_SHIFT` #Key: Shift left ---| `KEY_LEFT_CONTROL` #Key: Control left ---| `KEY_LEFT_ALT` #Key: Alt left ---| `KEY_LEFT_SUPER` #Key: Super left ---| `KEY_RIGHT_SHIFT` #Key: Shift right ---| `KEY_RIGHT_CONTROL` #Key: Control right ---| `KEY_RIGHT_ALT` #Key: Alt right ---| `KEY_RIGHT_SUPER` #Key: Super right ---| `KEY_KB_MENU` #Key: KB menu ---| `KEY_KP_0` #Key: Keypad 0 ---| `KEY_KP_1` #Key: Keypad 1 ---| `KEY_KP_2` #Key: Keypad 2 ---| `KEY_KP_3` #Key: Keypad 3 ---| `KEY_KP_4` #Key: Keypad 4 ---| `KEY_KP_5` #Key: Keypad 5 ---| `KEY_KP_6` #Key: Keypad 6 ---| `KEY_KP_7` #Key: Keypad 7 ---| `KEY_KP_8` #Key: Keypad 8 ---| `KEY_KP_9` #Key: Keypad 9 ---| `KEY_KP_DECIMAL` #Key: Keypad . ---| `KEY_KP_DIVIDE` #Key: Keypad / ---| `KEY_KP_MULTIPLY` #Key: Keypad * ---| `KEY_KP_SUBTRACT` #Key: Keypad - ---| `KEY_KP_ADD` #Key: Keypad + ---| `KEY_KP_ENTER` #Key: Keypad Enter ---| `KEY_KP_EQUAL` #Key: Keypad = ---| `KEY_BACK` #Key: Android back button ---| `KEY_MENU` #Key: Android menu button ---| `KEY_VOLUME_UP` #Key: Android volume up button ---| `KEY_VOLUME_DOWN` #Key: Android volume down button --- Key: NULL, used for no key pressed KEY_NULL = 0 --- Key: ' KEY_APOSTROPHE = 39 --- Key: , KEY_COMMA = 44 --- Key: - KEY_MINUS = 45 --- Key: . KEY_PERIOD = 46 --- Key: / KEY_SLASH = 47 --- Key: 0 KEY_ZERO = 48 --- Key: 1 KEY_ONE = 49 --- Key: 2 KEY_TWO = 50 --- Key: 3 KEY_THREE = 51 --- Key: 4 KEY_FOUR = 52 --- Key: 5 KEY_FIVE = 53 --- Key: 6 KEY_SIX = 54 --- Key: 7 KEY_SEVEN = 55 --- Key: 8 KEY_EIGHT = 56 --- Key: 9 KEY_NINE = 57 --- Key: ; KEY_SEMICOLON = 59 --- Key: = KEY_EQUAL = 61 --- Key: A | a KEY_A = 65 --- Key: B | b KEY_B = 66 --- Key: C | c KEY_C = 67 --- Key: D | d KEY_D = 68 --- Key: E | e KEY_E = 69 --- Key: F | f KEY_F = 70 --- Key: G | g KEY_G = 71 --- Key: H | h KEY_H = 72 --- Key: I | i KEY_I = 73 --- Key: J | j KEY_J = 74 --- Key: K | k KEY_K = 75 --- Key: L | l KEY_L = 76 --- Key: M | m KEY_M = 77 --- Key: N | n KEY_N = 78 --- Key: O | o KEY_O = 79 --- Key: P | p KEY_P = 80 --- Key: Q | q KEY_Q = 81 --- Key: R | r KEY_R = 82 --- Key: S | s KEY_S = 83 --- Key: T | t KEY_T = 84 --- Key: U | u KEY_U = 85 --- Key: V | v KEY_V = 86 --- Key: W | w KEY_W = 87 --- Key: X | x KEY_X = 88 --- Key: Y | y KEY_Y = 89 --- Key: Z | z KEY_Z = 90 --- Key: [ KEY_LEFT_BRACKET = 91 --- Key: '\' KEY_BACKSLASH = 92 --- Key: ] KEY_RIGHT_BRACKET = 93 --- Key: ` KEY_GRAVE = 96 --- Key: Space KEY_SPACE = 32 --- Key: Esc KEY_ESCAPE = 256 --- Key: Enter KEY_ENTER = 257 --- Key: Tab KEY_TAB = 258 --- Key: Backspace KEY_BACKSPACE = 259 --- Key: Ins KEY_INSERT = 260 --- Key: Del KEY_DELETE = 261 --- Key: Cursor right KEY_RIGHT = 262 --- Key: Cursor left KEY_LEFT = 263 --- Key: Cursor down KEY_DOWN = 264 --- Key: Cursor up KEY_UP = 265 --- Key: Page up KEY_PAGE_UP = 266 --- Key: Page down KEY_PAGE_DOWN = 267 --- Key: Home KEY_HOME = 268 --- Key: End KEY_END = 269 --- Key: Caps lock KEY_CAPS_LOCK = 280 --- Key: Scroll down KEY_SCROLL_LOCK = 281 --- Key: Num lock KEY_NUM_LOCK = 282 --- Key: Print screen KEY_PRINT_SCREEN = 283 --- Key: Pause KEY_PAUSE = 284 --- Key: F1 KEY_F1 = 290 --- Key: F2 KEY_F2 = 291 --- Key: F3 KEY_F3 = 292 --- Key: F4 KEY_F4 = 293 --- Key: F5 KEY_F5 = 294 --- Key: F6 KEY_F6 = 295 --- Key: F7 KEY_F7 = 296 --- Key: F8 KEY_F8 = 297 --- Key: F9 KEY_F9 = 298 --- Key: F10 KEY_F10 = 299 --- Key: F11 KEY_F11 = 300 --- Key: F12 KEY_F12 = 301 --- Key: Shift left KEY_LEFT_SHIFT = 340 --- Key: Control left KEY_LEFT_CONTROL = 341 --- Key: Alt left KEY_LEFT_ALT = 342 --- Key: Super left KEY_LEFT_SUPER = 343 --- Key: Shift right KEY_RIGHT_SHIFT = 344 --- Key: Control right KEY_RIGHT_CONTROL = 345 --- Key: Alt right KEY_RIGHT_ALT = 346 --- Key: Super right KEY_RIGHT_SUPER = 347 --- Key: KB menu KEY_KB_MENU = 348 --- Key: Keypad 0 KEY_KP_0 = 320 --- Key: Keypad 1 KEY_KP_1 = 321 --- Key: Keypad 2 KEY_KP_2 = 322 --- Key: Keypad 3 KEY_KP_3 = 323 --- Key: Keypad 4 KEY_KP_4 = 324 --- Key: Keypad 5 KEY_KP_5 = 325 --- Key: Keypad 6 KEY_KP_6 = 326 --- Key: Keypad 7 KEY_KP_7 = 327 --- Key: Keypad 8 KEY_KP_8 = 328 --- Key: Keypad 9 KEY_KP_9 = 329 --- Key: Keypad . KEY_KP_DECIMAL = 330 --- Key: Keypad / KEY_KP_DIVIDE = 331 --- Key: Keypad * KEY_KP_MULTIPLY = 332 --- Key: Keypad - KEY_KP_SUBTRACT = 333 --- Key: Keypad + KEY_KP_ADD = 334 --- Key: Keypad Enter KEY_KP_ENTER = 335 --- Key: Keypad = KEY_KP_EQUAL = 336 --- Key: Android back button KEY_BACK = 4 --- Key: Android menu button KEY_MENU = 5 --- Key: Android volume up button KEY_VOLUME_UP = 24 --- Key: Android volume down button KEY_VOLUME_DOWN = 25 ---Mouse buttons ---@alias MouseButton ---| `MOUSE_BUTTON_LEFT` #Mouse button left ---| `MOUSE_BUTTON_RIGHT` #Mouse button right ---| `MOUSE_BUTTON_MIDDLE` #Mouse button middle (pressed wheel) ---| `MOUSE_BUTTON_SIDE` #Mouse button side (advanced mouse device) ---| `MOUSE_BUTTON_EXTRA` #Mouse button extra (advanced mouse device) ---| `MOUSE_BUTTON_FORWARD` #Mouse button forward (advanced mouse device) ---| `MOUSE_BUTTON_BACK` #Mouse button back (advanced mouse device) --- Mouse button left MOUSE_BUTTON_LEFT = 0 --- Mouse button right MOUSE_BUTTON_RIGHT = 1 --- Mouse button middle (pressed wheel) MOUSE_BUTTON_MIDDLE = 2 --- Mouse button side (advanced mouse device) MOUSE_BUTTON_SIDE = 3 --- Mouse button extra (advanced mouse device) MOUSE_BUTTON_EXTRA = 4 --- Mouse button forward (advanced mouse device) MOUSE_BUTTON_FORWARD = 5 --- Mouse button back (advanced mouse device) MOUSE_BUTTON_BACK = 6 ---Mouse cursor ---@alias MouseCursor ---| `MOUSE_CURSOR_DEFAULT` #Default pointer shape ---| `MOUSE_CURSOR_ARROW` #Arrow shape ---| `MOUSE_CURSOR_IBEAM` #Text writing cursor shape ---| `MOUSE_CURSOR_CROSSHAIR` #Cross shape ---| `MOUSE_CURSOR_POINTING_HAND` #Pointing hand cursor ---| `MOUSE_CURSOR_RESIZE_EW` #Horizontal resize/move arrow shape ---| `MOUSE_CURSOR_RESIZE_NS` #Vertical resize/move arrow shape ---| `MOUSE_CURSOR_RESIZE_NWSE` #Top-left to bottom-right diagonal resize/move arrow shape ---| `MOUSE_CURSOR_RESIZE_NESW` #The top-right to bottom-left diagonal resize/move arrow shape ---| `MOUSE_CURSOR_RESIZE_ALL` #The omnidirectional resize/move cursor shape ---| `MOUSE_CURSOR_NOT_ALLOWED` #The operation-not-allowed shape --- Default pointer shape MOUSE_CURSOR_DEFAULT = 0 --- Arrow shape MOUSE_CURSOR_ARROW = 1 --- Text writing cursor shape MOUSE_CURSOR_IBEAM = 2 --- Cross shape MOUSE_CURSOR_CROSSHAIR = 3 --- Pointing hand cursor MOUSE_CURSOR_POINTING_HAND = 4 --- Horizontal resize/move arrow shape MOUSE_CURSOR_RESIZE_EW = 5 --- Vertical resize/move arrow shape MOUSE_CURSOR_RESIZE_NS = 6 --- Top-left to bottom-right diagonal resize/move arrow shape MOUSE_CURSOR_RESIZE_NWSE = 7 --- The top-right to bottom-left diagonal resize/move arrow shape MOUSE_CURSOR_RESIZE_NESW = 8 --- The omnidirectional resize/move cursor shape MOUSE_CURSOR_RESIZE_ALL = 9 --- The operation-not-allowed shape MOUSE_CURSOR_NOT_ALLOWED = 10 ---Gamepad buttons ---@alias GamepadButton ---| `GAMEPAD_BUTTON_UNKNOWN` #Unknown button, for error checking ---| `GAMEPAD_BUTTON_LEFT_FACE_UP` #Gamepad left DPAD up button ---| `GAMEPAD_BUTTON_LEFT_FACE_RIGHT` #Gamepad left DPAD right button ---| `GAMEPAD_BUTTON_LEFT_FACE_DOWN` #Gamepad left DPAD down button ---| `GAMEPAD_BUTTON_LEFT_FACE_LEFT` #Gamepad left DPAD left button ---| `GAMEPAD_BUTTON_RIGHT_FACE_UP` #Gamepad right button up (i.e. PS3: Triangle, Xbox: Y) ---| `GAMEPAD_BUTTON_RIGHT_FACE_RIGHT` #Gamepad right button right (i.e. PS3: Circle, Xbox: B) ---| `GAMEPAD_BUTTON_RIGHT_FACE_DOWN` #Gamepad right button down (i.e. PS3: Cross, Xbox: A) ---| `GAMEPAD_BUTTON_RIGHT_FACE_LEFT` #Gamepad right button left (i.e. PS3: Square, Xbox: X) ---| `GAMEPAD_BUTTON_LEFT_TRIGGER_1` #Gamepad top/back trigger left (first), it could be a trailing button ---| `GAMEPAD_BUTTON_LEFT_TRIGGER_2` #Gamepad top/back trigger left (second), it could be a trailing button ---| `GAMEPAD_BUTTON_RIGHT_TRIGGER_1` #Gamepad top/back trigger right (first), it could be a trailing button ---| `GAMEPAD_BUTTON_RIGHT_TRIGGER_2` #Gamepad top/back trigger right (second), it could be a trailing button ---| `GAMEPAD_BUTTON_MIDDLE_LEFT` #Gamepad center buttons, left one (i.e. PS3: Select) ---| `GAMEPAD_BUTTON_MIDDLE` #Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX) ---| `GAMEPAD_BUTTON_MIDDLE_RIGHT` #Gamepad center buttons, right one (i.e. PS3: Start) ---| `GAMEPAD_BUTTON_LEFT_THUMB` #Gamepad joystick pressed button left ---| `GAMEPAD_BUTTON_RIGHT_THUMB` #Gamepad joystick pressed button right --- Unknown button, for error checking GAMEPAD_BUTTON_UNKNOWN = 0 --- Gamepad left DPAD up button GAMEPAD_BUTTON_LEFT_FACE_UP = 1 --- Gamepad left DPAD right button GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2 --- Gamepad left DPAD down button GAMEPAD_BUTTON_LEFT_FACE_DOWN = 3 --- Gamepad left DPAD left button GAMEPAD_BUTTON_LEFT_FACE_LEFT = 4 --- Gamepad right button up (i.e. PS3: Triangle, Xbox: Y) GAMEPAD_BUTTON_RIGHT_FACE_UP = 5 --- Gamepad right button right (i.e. PS3: Circle, Xbox: B) GAMEPAD_BUTTON_RIGHT_FACE_RIGHT = 6 --- Gamepad right button down (i.e. PS3: Cross, Xbox: A) GAMEPAD_BUTTON_RIGHT_FACE_DOWN = 7 --- Gamepad right button left (i.e. PS3: Square, Xbox: X) GAMEPAD_BUTTON_RIGHT_FACE_LEFT = 8 --- Gamepad top/back trigger left (first), it could be a trailing button GAMEPAD_BUTTON_LEFT_TRIGGER_1 = 9 --- Gamepad top/back trigger left (second), it could be a trailing button GAMEPAD_BUTTON_LEFT_TRIGGER_2 = 10 --- Gamepad top/back trigger right (first), it could be a trailing button GAMEPAD_BUTTON_RIGHT_TRIGGER_1 = 11 --- Gamepad top/back trigger right (second), it could be a trailing button GAMEPAD_BUTTON_RIGHT_TRIGGER_2 = 12 --- Gamepad center buttons, left one (i.e. PS3: Select) GAMEPAD_BUTTON_MIDDLE_LEFT = 13 --- Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX) GAMEPAD_BUTTON_MIDDLE = 14 --- Gamepad center buttons, right one (i.e. PS3: Start) GAMEPAD_BUTTON_MIDDLE_RIGHT = 15 --- Gamepad joystick pressed button left GAMEPAD_BUTTON_LEFT_THUMB = 16 --- Gamepad joystick pressed button right GAMEPAD_BUTTON_RIGHT_THUMB = 17 ---Gamepad axes ---@alias GamepadAxis ---| `GAMEPAD_AXIS_LEFT_X` #Gamepad left stick X axis ---| `GAMEPAD_AXIS_LEFT_Y` #Gamepad left stick Y axis ---| `GAMEPAD_AXIS_RIGHT_X` #Gamepad right stick X axis ---| `GAMEPAD_AXIS_RIGHT_Y` #Gamepad right stick Y axis ---| `GAMEPAD_AXIS_LEFT_TRIGGER` #Gamepad back trigger left, pressure level: [1..-1] ---| `GAMEPAD_AXIS_RIGHT_TRIGGER` #Gamepad back trigger right, pressure level: [1..-1] --- Gamepad left stick X axis GAMEPAD_AXIS_LEFT_X = 0 --- Gamepad left stick Y axis GAMEPAD_AXIS_LEFT_Y = 1 --- Gamepad right stick X axis GAMEPAD_AXIS_RIGHT_X = 2 --- Gamepad right stick Y axis GAMEPAD_AXIS_RIGHT_Y = 3 --- Gamepad back trigger left, pressure level: [1..-1] GAMEPAD_AXIS_LEFT_TRIGGER = 4 --- Gamepad back trigger right, pressure level: [1..-1] GAMEPAD_AXIS_RIGHT_TRIGGER = 5 ---Material map index ---@alias MaterialMapIndex ---| `MATERIAL_MAP_ALBEDO` #Albedo material (same as: MATERIAL_MAP_DIFFUSE) ---| `MATERIAL_MAP_METALNESS` #Metalness material (same as: MATERIAL_MAP_SPECULAR) ---| `MATERIAL_MAP_NORMAL` #Normal material ---| `MATERIAL_MAP_ROUGHNESS` #Roughness material ---| `MATERIAL_MAP_OCCLUSION` #Ambient occlusion material ---| `MATERIAL_MAP_EMISSION` #Emission material ---| `MATERIAL_MAP_HEIGHT` #Heightmap material ---| `MATERIAL_MAP_CUBEMAP` #Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP) ---| `MATERIAL_MAP_IRRADIANCE` #Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP) ---| `MATERIAL_MAP_PREFILTER` #Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP) ---| `MATERIAL_MAP_BRDF` #Brdf material --- Albedo material (same as: MATERIAL_MAP_DIFFUSE) MATERIAL_MAP_ALBEDO = 0 --- Metalness material (same as: MATERIAL_MAP_SPECULAR) MATERIAL_MAP_METALNESS = 1 --- Normal material MATERIAL_MAP_NORMAL = 2 --- Roughness material MATERIAL_MAP_ROUGHNESS = 3 --- Ambient occlusion material MATERIAL_MAP_OCCLUSION = 4 --- Emission material MATERIAL_MAP_EMISSION = 5 --- Heightmap material MATERIAL_MAP_HEIGHT = 6 --- Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP) MATERIAL_MAP_CUBEMAP = 7 --- Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP) MATERIAL_MAP_IRRADIANCE = 8 --- Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP) MATERIAL_MAP_PREFILTER = 9 --- Brdf material MATERIAL_MAP_BRDF = 10 ---Shader location index ---@alias ShaderLocationIndex ---| `SHADER_LOC_VERTEX_POSITION` #Shader location: vertex attribute: position ---| `SHADER_LOC_VERTEX_TEXCOORD01` #Shader location: vertex attribute: texcoord01 ---| `SHADER_LOC_VERTEX_TEXCOORD02` #Shader location: vertex attribute: texcoord02 ---| `SHADER_LOC_VERTEX_NORMAL` #Shader location: vertex attribute: normal ---| `SHADER_LOC_VERTEX_TANGENT` #Shader location: vertex attribute: tangent ---| `SHADER_LOC_VERTEX_COLOR` #Shader location: vertex attribute: color ---| `SHADER_LOC_MATRIX_MVP` #Shader location: matrix uniform: model-view-projection ---| `SHADER_LOC_MATRIX_VIEW` #Shader location: matrix uniform: view (camera transform) ---| `SHADER_LOC_MATRIX_PROJECTION` #Shader location: matrix uniform: projection ---| `SHADER_LOC_MATRIX_MODEL` #Shader location: matrix uniform: model (transform) ---| `SHADER_LOC_MATRIX_NORMAL` #Shader location: matrix uniform: normal ---| `SHADER_LOC_VECTOR_VIEW` #Shader location: vector uniform: view ---| `SHADER_LOC_COLOR_DIFFUSE` #Shader location: vector uniform: diffuse color ---| `SHADER_LOC_COLOR_SPECULAR` #Shader location: vector uniform: specular color ---| `SHADER_LOC_COLOR_AMBIENT` #Shader location: vector uniform: ambient color ---| `SHADER_LOC_MAP_ALBEDO` #Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE) ---| `SHADER_LOC_MAP_METALNESS` #Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR) ---| `SHADER_LOC_MAP_NORMAL` #Shader location: sampler2d texture: normal ---| `SHADER_LOC_MAP_ROUGHNESS` #Shader location: sampler2d texture: roughness ---| `SHADER_LOC_MAP_OCCLUSION` #Shader location: sampler2d texture: occlusion ---| `SHADER_LOC_MAP_EMISSION` #Shader location: sampler2d texture: emission ---| `SHADER_LOC_MAP_HEIGHT` #Shader location: sampler2d texture: heightmap ---| `SHADER_LOC_MAP_CUBEMAP` #Shader location: samplerCube texture: cubemap ---| `SHADER_LOC_MAP_IRRADIANCE` #Shader location: samplerCube texture: irradiance ---| `SHADER_LOC_MAP_PREFILTER` #Shader location: samplerCube texture: prefilter ---| `SHADER_LOC_MAP_BRDF` #Shader location: sampler2d texture: brdf ---| `SHADER_LOC_VERTEX_BONEIDS` #Shader location: vertex attribute: bone indices ---| `SHADER_LOC_VERTEX_BONEWEIGHTS` #Shader location: vertex attribute: bone weights ---| `SHADER_LOC_MATRIX_BONETRANSFORMS` #Shader location: matrix attribute: bone transforms (animation) ---| `SHADER_LOC_VERTEX_INSTANCETRANSFORM` #Shader location: vertex attribute: instance transforms --- Shader location: vertex attribute: position SHADER_LOC_VERTEX_POSITION = 0 --- Shader location: vertex attribute: texcoord01 SHADER_LOC_VERTEX_TEXCOORD01 = 1 --- Shader location: vertex attribute: texcoord02 SHADER_LOC_VERTEX_TEXCOORD02 = 2 --- Shader location: vertex attribute: normal SHADER_LOC_VERTEX_NORMAL = 3 --- Shader location: vertex attribute: tangent SHADER_LOC_VERTEX_TANGENT = 4 --- Shader location: vertex attribute: color SHADER_LOC_VERTEX_COLOR = 5 --- Shader location: matrix uniform: model-view-projection SHADER_LOC_MATRIX_MVP = 6 --- Shader location: matrix uniform: view (camera transform) SHADER_LOC_MATRIX_VIEW = 7 --- Shader location: matrix uniform: projection SHADER_LOC_MATRIX_PROJECTION = 8 --- Shader location: matrix uniform: model (transform) SHADER_LOC_MATRIX_MODEL = 9 --- Shader location: matrix uniform: normal SHADER_LOC_MATRIX_NORMAL = 10 --- Shader location: vector uniform: view SHADER_LOC_VECTOR_VIEW = 11 --- Shader location: vector uniform: diffuse color SHADER_LOC_COLOR_DIFFUSE = 12 --- Shader location: vector uniform: specular color SHADER_LOC_COLOR_SPECULAR = 13 --- Shader location: vector uniform: ambient color SHADER_LOC_COLOR_AMBIENT = 14 --- Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE) SHADER_LOC_MAP_ALBEDO = 15 --- Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR) SHADER_LOC_MAP_METALNESS = 16 --- Shader location: sampler2d texture: normal SHADER_LOC_MAP_NORMAL = 17 --- Shader location: sampler2d texture: roughness SHADER_LOC_MAP_ROUGHNESS = 18 --- Shader location: sampler2d texture: occlusion SHADER_LOC_MAP_OCCLUSION = 19 --- Shader location: sampler2d texture: emission SHADER_LOC_MAP_EMISSION = 20 --- Shader location: sampler2d texture: heightmap SHADER_LOC_MAP_HEIGHT = 21 --- Shader location: samplerCube texture: cubemap SHADER_LOC_MAP_CUBEMAP = 22 --- Shader location: samplerCube texture: irradiance SHADER_LOC_MAP_IRRADIANCE = 23 --- Shader location: samplerCube texture: prefilter SHADER_LOC_MAP_PREFILTER = 24 --- Shader location: sampler2d texture: brdf SHADER_LOC_MAP_BRDF = 25 --- Shader location: vertex attribute: bone indices SHADER_LOC_VERTEX_BONEIDS = 26 --- Shader location: vertex attribute: bone weights SHADER_LOC_VERTEX_BONEWEIGHTS = 27 --- Shader location: matrix attribute: bone transforms (animation) SHADER_LOC_MATRIX_BONETRANSFORMS = 28 --- Shader location: vertex attribute: instance transforms SHADER_LOC_VERTEX_INSTANCETRANSFORM = 29 ---Shader uniform data type ---@alias ShaderUniformDataType ---| `SHADER_UNIFORM_FLOAT` #Shader uniform type: float ---| `SHADER_UNIFORM_VEC2` #Shader uniform type: vec2 (2 float) ---| `SHADER_UNIFORM_VEC3` #Shader uniform type: vec3 (3 float) ---| `SHADER_UNIFORM_VEC4` #Shader uniform type: vec4 (4 float) ---| `SHADER_UNIFORM_INT` #Shader uniform type: int ---| `SHADER_UNIFORM_IVEC2` #Shader uniform type: ivec2 (2 int) ---| `SHADER_UNIFORM_IVEC3` #Shader uniform type: ivec3 (3 int) ---| `SHADER_UNIFORM_IVEC4` #Shader uniform type: ivec4 (4 int) ---| `SHADER_UNIFORM_UINT` #Shader uniform type: unsigned int ---| `SHADER_UNIFORM_UIVEC2` #Shader uniform type: uivec2 (2 unsigned int) ---| `SHADER_UNIFORM_UIVEC3` #Shader uniform type: uivec3 (3 unsigned int) ---| `SHADER_UNIFORM_UIVEC4` #Shader uniform type: uivec4 (4 unsigned int) ---| `SHADER_UNIFORM_SAMPLER2D` #Shader uniform type: sampler2d --- Shader uniform type: float SHADER_UNIFORM_FLOAT = 0 --- Shader uniform type: vec2 (2 float) SHADER_UNIFORM_VEC2 = 1 --- Shader uniform type: vec3 (3 float) SHADER_UNIFORM_VEC3 = 2 --- Shader uniform type: vec4 (4 float) SHADER_UNIFORM_VEC4 = 3 --- Shader uniform type: int SHADER_UNIFORM_INT = 4 --- Shader uniform type: ivec2 (2 int) SHADER_UNIFORM_IVEC2 = 5 --- Shader uniform type: ivec3 (3 int) SHADER_UNIFORM_IVEC3 = 6 --- Shader uniform type: ivec4 (4 int) SHADER_UNIFORM_IVEC4 = 7 --- Shader uniform type: unsigned int SHADER_UNIFORM_UINT = 8 --- Shader uniform type: uivec2 (2 unsigned int) SHADER_UNIFORM_UIVEC2 = 9 --- Shader uniform type: uivec3 (3 unsigned int) SHADER_UNIFORM_UIVEC3 = 10 --- Shader uniform type: uivec4 (4 unsigned int) SHADER_UNIFORM_UIVEC4 = 11 --- Shader uniform type: sampler2d SHADER_UNIFORM_SAMPLER2D = 12 ---Shader attribute data types ---@alias ShaderAttributeDataType ---| `SHADER_ATTRIB_FLOAT` #Shader attribute type: float ---| `SHADER_ATTRIB_VEC2` #Shader attribute type: vec2 (2 float) ---| `SHADER_ATTRIB_VEC3` #Shader attribute type: vec3 (3 float) ---| `SHADER_ATTRIB_VEC4` #Shader attribute type: vec4 (4 float) --- Shader attribute type: float SHADER_ATTRIB_FLOAT = 0 --- Shader attribute type: vec2 (2 float) SHADER_ATTRIB_VEC2 = 1 --- Shader attribute type: vec3 (3 float) SHADER_ATTRIB_VEC3 = 2 --- Shader attribute type: vec4 (4 float) SHADER_ATTRIB_VEC4 = 3 ---Pixel formats ---@alias PixelFormat ---| `PIXELFORMAT_UNCOMPRESSED_GRAYSCALE` #8 bit per pixel (no alpha) ---| `PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA` #8*2 bpp (2 channels) ---| `PIXELFORMAT_UNCOMPRESSED_R5G6B5` #16 bpp ---| `PIXELFORMAT_UNCOMPRESSED_R8G8B8` #24 bpp ---| `PIXELFORMAT_UNCOMPRESSED_R5G5B5A1` #16 bpp (1 bit alpha) ---| `PIXELFORMAT_UNCOMPRESSED_R4G4B4A4` #16 bpp (4 bit alpha) ---| `PIXELFORMAT_UNCOMPRESSED_R8G8B8A8` #32 bpp ---| `PIXELFORMAT_UNCOMPRESSED_R32` #32 bpp (1 channel - float) ---| `PIXELFORMAT_UNCOMPRESSED_R32G32B32` #32*3 bpp (3 channels - float) ---| `PIXELFORMAT_UNCOMPRESSED_R32G32B32A32` #32*4 bpp (4 channels - float) ---| `PIXELFORMAT_UNCOMPRESSED_R16` #16 bpp (1 channel - half float) ---| `PIXELFORMAT_UNCOMPRESSED_R16G16B16` #16*3 bpp (3 channels - half float) ---| `PIXELFORMAT_UNCOMPRESSED_R16G16B16A16` #16*4 bpp (4 channels - half float) ---| `PIXELFORMAT_COMPRESSED_DXT1_RGB` #4 bpp (no alpha) ---| `PIXELFORMAT_COMPRESSED_DXT1_RGBA` #4 bpp (1 bit alpha) ---| `PIXELFORMAT_COMPRESSED_DXT3_RGBA` #8 bpp ---| `PIXELFORMAT_COMPRESSED_DXT5_RGBA` #8 bpp ---| `PIXELFORMAT_COMPRESSED_ETC1_RGB` #4 bpp ---| `PIXELFORMAT_COMPRESSED_ETC2_RGB` #4 bpp ---| `PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA` #8 bpp ---| `PIXELFORMAT_COMPRESSED_PVRT_RGB` #4 bpp ---| `PIXELFORMAT_COMPRESSED_PVRT_RGBA` #4 bpp ---| `PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA` #8 bpp ---| `PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA` #2 bpp --- 8 bit per pixel (no alpha) PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 --- 8*2 bpp (2 channels) PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 --- 16 bpp PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 --- 24 bpp PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 --- 16 bpp (1 bit alpha) PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 --- 16 bpp (4 bit alpha) PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 --- 32 bpp PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 --- 32 bpp (1 channel - float) PIXELFORMAT_UNCOMPRESSED_R32 = 8 --- 32*3 bpp (3 channels - float) PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 --- 32*4 bpp (4 channels - float) PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 --- 16 bpp (1 channel - half float) PIXELFORMAT_UNCOMPRESSED_R16 = 11 --- 16*3 bpp (3 channels - half float) PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 --- 16*4 bpp (4 channels - half float) PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 --- 4 bpp (no alpha) PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 --- 4 bpp (1 bit alpha) PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 --- 8 bpp PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 --- 8 bpp PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 --- 4 bpp PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 --- 4 bpp PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 --- 8 bpp PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 --- 4 bpp PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 --- 4 bpp PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 --- 8 bpp PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 --- 2 bpp PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 ---Texture parameters: filter mode ---@alias TextureFilter ---| `TEXTURE_FILTER_POINT` #No filter, pixel approximation ---| `TEXTURE_FILTER_BILINEAR` #Linear filtering ---| `TEXTURE_FILTER_TRILINEAR` #Trilinear filtering (linear with mipmaps) ---| `TEXTURE_FILTER_ANISOTROPIC_4X` #Anisotropic filtering 4x ---| `TEXTURE_FILTER_ANISOTROPIC_8X` #Anisotropic filtering 8x ---| `TEXTURE_FILTER_ANISOTROPIC_16X` #Anisotropic filtering 16x --- No filter, pixel approximation TEXTURE_FILTER_POINT = 0 --- Linear filtering TEXTURE_FILTER_BILINEAR = 1 --- Trilinear filtering (linear with mipmaps) TEXTURE_FILTER_TRILINEAR = 2 --- Anisotropic filtering 4x TEXTURE_FILTER_ANISOTROPIC_4X = 3 --- Anisotropic filtering 8x TEXTURE_FILTER_ANISOTROPIC_8X = 4 --- Anisotropic filtering 16x TEXTURE_FILTER_ANISOTROPIC_16X = 5 ---Texture parameters: wrap mode ---@alias TextureWrap ---| `TEXTURE_WRAP_REPEAT` #Repeats texture in tiled mode ---| `TEXTURE_WRAP_CLAMP` #Clamps texture to edge pixel in tiled mode ---| `TEXTURE_WRAP_MIRROR_REPEAT` #Mirrors and repeats the texture in tiled mode ---| `TEXTURE_WRAP_MIRROR_CLAMP` #Mirrors and clamps to border the texture in tiled mode --- Repeats texture in tiled mode TEXTURE_WRAP_REPEAT = 0 --- Clamps texture to edge pixel in tiled mode TEXTURE_WRAP_CLAMP = 1 --- Mirrors and repeats the texture in tiled mode TEXTURE_WRAP_MIRROR_REPEAT = 2 --- Mirrors and clamps to border the texture in tiled mode TEXTURE_WRAP_MIRROR_CLAMP = 3 ---Cubemap layouts ---@alias CubemapLayout ---| `CUBEMAP_LAYOUT_AUTO_DETECT` #Automatically detect layout type ---| `CUBEMAP_LAYOUT_LINE_VERTICAL` #Layout is defined by a vertical line with faces ---| `CUBEMAP_LAYOUT_LINE_HORIZONTAL` #Layout is defined by a horizontal line with faces ---| `CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR` #Layout is defined by a 3x4 cross with cubemap faces ---| `CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE` #Layout is defined by a 4x3 cross with cubemap faces --- Automatically detect layout type CUBEMAP_LAYOUT_AUTO_DETECT = 0 --- Layout is defined by a vertical line with faces CUBEMAP_LAYOUT_LINE_VERTICAL = 1 --- Layout is defined by a horizontal line with faces CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2 --- Layout is defined by a 3x4 cross with cubemap faces CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR = 3 --- Layout is defined by a 4x3 cross with cubemap faces CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4 ---Font type, defines generation method ---@alias FontType ---| `FONT_DEFAULT` #Default font generation, anti-aliased ---| `FONT_BITMAP` #Bitmap font generation, no anti-aliasing ---| `FONT_SDF` #SDF font generation, requires external shader --- Default font generation, anti-aliased FONT_DEFAULT = 0 --- Bitmap font generation, no anti-aliasing FONT_BITMAP = 1 --- SDF font generation, requires external shader FONT_SDF = 2 ---Color blending modes (pre-defined) ---@alias BlendMode ---| `BLEND_ALPHA` #Blend textures considering alpha (default) ---| `BLEND_ADDITIVE` #Blend textures adding colors ---| `BLEND_MULTIPLIED` #Blend textures multiplying colors ---| `BLEND_ADD_COLORS` #Blend textures adding colors (alternative) ---| `BLEND_SUBTRACT_COLORS` #Blend textures subtracting colors (alternative) ---| `BLEND_ALPHA_PREMULTIPLY` #Blend premultiplied textures considering alpha ---| `BLEND_CUSTOM` #Blend textures using custom src/dst factors (use rlSetBlendFactors()) ---| `BLEND_CUSTOM_SEPARATE` #Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate()) --- Blend textures considering alpha (default) BLEND_ALPHA = 0 --- Blend textures adding colors BLEND_ADDITIVE = 1 --- Blend textures multiplying colors BLEND_MULTIPLIED = 2 --- Blend textures adding colors (alternative) BLEND_ADD_COLORS = 3 --- Blend textures subtracting colors (alternative) BLEND_SUBTRACT_COLORS = 4 --- Blend premultiplied textures considering alpha BLEND_ALPHA_PREMULTIPLY = 5 --- Blend textures using custom src/dst factors (use rlSetBlendFactors()) BLEND_CUSTOM = 6 --- Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate()) BLEND_CUSTOM_SEPARATE = 7 ---Gesture ---@alias Gesture ---| `GESTURE_NONE` #No gesture ---| `GESTURE_TAP` #Tap gesture ---| `GESTURE_DOUBLETAP` #Double tap gesture ---| `GESTURE_HOLD` #Hold gesture ---| `GESTURE_DRAG` #Drag gesture ---| `GESTURE_SWIPE_RIGHT` #Swipe right gesture ---| `GESTURE_SWIPE_LEFT` #Swipe left gesture ---| `GESTURE_SWIPE_UP` #Swipe up gesture ---| `GESTURE_SWIPE_DOWN` #Swipe down gesture ---| `GESTURE_PINCH_IN` #Pinch in gesture ---| `GESTURE_PINCH_OUT` #Pinch out gesture --- No gesture GESTURE_NONE = 0 --- Tap gesture GESTURE_TAP = 1 --- Double tap gesture GESTURE_DOUBLETAP = 2 --- Hold gesture GESTURE_HOLD = 4 --- Drag gesture GESTURE_DRAG = 8 --- Swipe right gesture GESTURE_SWIPE_RIGHT = 16 --- Swipe left gesture GESTURE_SWIPE_LEFT = 32 --- Swipe up gesture GESTURE_SWIPE_UP = 64 --- Swipe down gesture GESTURE_SWIPE_DOWN = 128 --- Pinch in gesture GESTURE_PINCH_IN = 256 --- Pinch out gesture GESTURE_PINCH_OUT = 512 ---Camera system modes ---@alias CameraMode ---| `CAMERA_CUSTOM` #Camera custom, controlled by user (UpdateCamera() does nothing) ---| `CAMERA_FREE` #Camera free mode ---| `CAMERA_ORBITAL` #Camera orbital, around target, zoom supported ---| `CAMERA_FIRST_PERSON` #Camera first person ---| `CAMERA_THIRD_PERSON` #Camera third person --- Camera custom, controlled by user (UpdateCamera() does nothing) CAMERA_CUSTOM = 0 --- Camera free mode CAMERA_FREE = 1 --- Camera orbital, around target, zoom supported CAMERA_ORBITAL = 2 --- Camera first person CAMERA_FIRST_PERSON = 3 --- Camera third person CAMERA_THIRD_PERSON = 4 ---Camera projection ---@alias CameraProjection ---| `CAMERA_PERSPECTIVE` #Perspective projection ---| `CAMERA_ORTHOGRAPHIC` #Orthographic projection --- Perspective projection CAMERA_PERSPECTIVE = 0 --- Orthographic projection CAMERA_ORTHOGRAPHIC = 1 ---N-patch layout ---@alias NPatchLayout ---| `NPATCH_NINE_PATCH` #Npatch layout: 3x3 tiles ---| `NPATCH_THREE_PATCH_VERTICAL` #Npatch layout: 1x3 tiles ---| `NPATCH_THREE_PATCH_HORIZONTAL` #Npatch layout: 3x1 tiles --- Npatch layout: 3x3 tiles NPATCH_NINE_PATCH = 0 --- Npatch layout: 1x3 tiles NPATCH_THREE_PATCH_VERTICAL = 1 --- Npatch layout: 3x1 tiles NPATCH_THREE_PATCH_HORIZONTAL = 2 ---OpenGL version ---@alias rlGlVersion ---| `RL_OPENGL_SOFTWARE` #Software rendering ---| `RL_OPENGL_11` #OpenGL 1.1 ---| `RL_OPENGL_21` #OpenGL 2.1 (GLSL 120) ---| `RL_OPENGL_33` #OpenGL 3.3 (GLSL 330) ---| `RL_OPENGL_43` #OpenGL 4.3 (using GLSL 330) ---| `RL_OPENGL_ES_20` #OpenGL ES 2.0 (GLSL 100) ---| `RL_OPENGL_ES_30` #OpenGL ES 3.0 (GLSL 300 es) --- Software rendering RL_OPENGL_SOFTWARE = 0 --- OpenGL 1.1 RL_OPENGL_11 = 1 --- OpenGL 2.1 (GLSL 120) RL_OPENGL_21 = 2 --- OpenGL 3.3 (GLSL 330) RL_OPENGL_33 = 3 --- OpenGL 4.3 (using GLSL 330) RL_OPENGL_43 = 4 --- OpenGL ES 2.0 (GLSL 100) RL_OPENGL_ES_20 = 5 --- OpenGL ES 3.0 (GLSL 300 es) RL_OPENGL_ES_30 = 6 ---Trace log level ---@alias rlTraceLogLevel ---| `RL_LOG_ALL` #Display all logs ---| `RL_LOG_TRACE` #Trace logging, intended for internal use only ---| `RL_LOG_DEBUG` #Debug logging, used for internal debugging, it should be disabled on release builds ---| `RL_LOG_INFO` #Info logging, used for program execution info ---| `RL_LOG_WARNING` #Warning logging, used on recoverable failures ---| `RL_LOG_ERROR` #Error logging, used on unrecoverable failures ---| `RL_LOG_FATAL` #Fatal logging, used to abort program: exit(EXIT_FAILURE) ---| `RL_LOG_NONE` #Disable logging --- Display all logs RL_LOG_ALL = 0 --- Trace logging, intended for internal use only RL_LOG_TRACE = 1 --- Debug logging, used for internal debugging, it should be disabled on release builds RL_LOG_DEBUG = 2 --- Info logging, used for program execution info RL_LOG_INFO = 3 --- Warning logging, used on recoverable failures RL_LOG_WARNING = 4 --- Error logging, used on unrecoverable failures RL_LOG_ERROR = 5 --- Fatal logging, used to abort program: exit(EXIT_FAILURE) RL_LOG_FATAL = 6 --- Disable logging RL_LOG_NONE = 7 ---Texture pixel formats ---@alias rlPixelFormat ---| `RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE` #8 bit per pixel (no alpha) ---| `RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA` #8*2 bpp (2 channels) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5` #16 bpp ---| `RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8` #24 bpp ---| `RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1` #16 bpp (1 bit alpha) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4` #16 bpp (4 bit alpha) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8` #32 bpp ---| `RL_PIXELFORMAT_UNCOMPRESSED_R32` #32 bpp (1 channel - float) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32` #32*3 bpp (3 channels - float) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32` #32*4 bpp (4 channels - float) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R16` #16 bpp (1 channel - half float) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16` #16*3 bpp (3 channels - half float) ---| `RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16` #16*4 bpp (4 channels - half float) ---| `RL_PIXELFORMAT_COMPRESSED_DXT1_RGB` #4 bpp (no alpha) ---| `RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA` #4 bpp (1 bit alpha) ---| `RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA` #8 bpp ---| `RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA` #8 bpp ---| `RL_PIXELFORMAT_COMPRESSED_ETC1_RGB` #4 bpp ---| `RL_PIXELFORMAT_COMPRESSED_ETC2_RGB` #4 bpp ---| `RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA` #8 bpp ---| `RL_PIXELFORMAT_COMPRESSED_PVRT_RGB` #4 bpp ---| `RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA` #4 bpp ---| `RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA` #8 bpp ---| `RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA` #2 bpp --- 8 bit per pixel (no alpha) RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 --- 8*2 bpp (2 channels) RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2 --- 16 bpp RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3 --- 24 bpp RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 = 4 --- 16 bpp (1 bit alpha) RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 = 5 --- 16 bpp (4 bit alpha) RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 = 6 --- 32 bpp RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 = 7 --- 32 bpp (1 channel - float) RL_PIXELFORMAT_UNCOMPRESSED_R32 = 8 --- 32*3 bpp (3 channels - float) RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 = 9 --- 32*4 bpp (4 channels - float) RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 = 10 --- 16 bpp (1 channel - half float) RL_PIXELFORMAT_UNCOMPRESSED_R16 = 11 --- 16*3 bpp (3 channels - half float) RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16 = 12 --- 16*4 bpp (4 channels - half float) RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16 = 13 --- 4 bpp (no alpha) RL_PIXELFORMAT_COMPRESSED_DXT1_RGB = 14 --- 4 bpp (1 bit alpha) RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA = 15 --- 8 bpp RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA = 16 --- 8 bpp RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA = 17 --- 4 bpp RL_PIXELFORMAT_COMPRESSED_ETC1_RGB = 18 --- 4 bpp RL_PIXELFORMAT_COMPRESSED_ETC2_RGB = 19 --- 8 bpp RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA = 20 --- 4 bpp RL_PIXELFORMAT_COMPRESSED_PVRT_RGB = 21 --- 4 bpp RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA = 22 --- 8 bpp RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA = 23 --- 2 bpp RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24 ---Texture parameters: filter mode ---@alias rlTextureFilter ---| `RL_TEXTURE_FILTER_POINT` #No filter, pixel approximation ---| `RL_TEXTURE_FILTER_BILINEAR` #Linear filtering ---| `RL_TEXTURE_FILTER_TRILINEAR` #Trilinear filtering (linear with mipmaps) ---| `RL_TEXTURE_FILTER_ANISOTROPIC_4X` #Anisotropic filtering 4x ---| `RL_TEXTURE_FILTER_ANISOTROPIC_8X` #Anisotropic filtering 8x ---| `RL_TEXTURE_FILTER_ANISOTROPIC_16X` #Anisotropic filtering 16x --- No filter, pixel approximation RL_TEXTURE_FILTER_POINT = 0 --- Linear filtering RL_TEXTURE_FILTER_BILINEAR = 1 --- Trilinear filtering (linear with mipmaps) RL_TEXTURE_FILTER_TRILINEAR = 2 --- Anisotropic filtering 4x RL_TEXTURE_FILTER_ANISOTROPIC_4X = 3 --- Anisotropic filtering 8x RL_TEXTURE_FILTER_ANISOTROPIC_8X = 4 --- Anisotropic filtering 16x RL_TEXTURE_FILTER_ANISOTROPIC_16X = 5 ---Color blending modes (pre-defined) ---@alias rlBlendMode ---| `RL_BLEND_ALPHA` #Blend textures considering alpha (default) ---| `RL_BLEND_ADDITIVE` #Blend textures adding colors ---| `RL_BLEND_MULTIPLIED` #Blend textures multiplying colors ---| `RL_BLEND_ADD_COLORS` #Blend textures adding colors (alternative) ---| `RL_BLEND_SUBTRACT_COLORS` #Blend textures subtracting colors (alternative) ---| `RL_BLEND_ALPHA_PREMULTIPLY` #Blend premultiplied textures considering alpha ---| `RL_BLEND_CUSTOM` #Blend textures using custom src/dst factors (use rlSetBlendFactors()) ---| `RL_BLEND_CUSTOM_SEPARATE` #Blend textures using custom src/dst factors (use rlSetBlendFactorsSeparate()) --- Blend textures considering alpha (default) RL_BLEND_ALPHA = 0 --- Blend textures adding colors RL_BLEND_ADDITIVE = 1 --- Blend textures multiplying colors RL_BLEND_MULTIPLIED = 2 --- Blend textures adding colors (alternative) RL_BLEND_ADD_COLORS = 3 --- Blend textures subtracting colors (alternative) RL_BLEND_SUBTRACT_COLORS = 4 --- Blend premultiplied textures considering alpha RL_BLEND_ALPHA_PREMULTIPLY = 5 --- Blend textures using custom src/dst factors (use rlSetBlendFactors()) RL_BLEND_CUSTOM = 6 --- Blend textures using custom src/dst factors (use rlSetBlendFactorsSeparate()) RL_BLEND_CUSTOM_SEPARATE = 7 ---Shader location point type ---@alias rlShaderLocationIndex ---| `RL_SHADER_LOC_VERTEX_POSITION` #Shader location: vertex attribute: position ---| `RL_SHADER_LOC_VERTEX_TEXCOORD01` #Shader location: vertex attribute: texcoord01 ---| `RL_SHADER_LOC_VERTEX_TEXCOORD02` #Shader location: vertex attribute: texcoord02 ---| `RL_SHADER_LOC_VERTEX_NORMAL` #Shader location: vertex attribute: normal ---| `RL_SHADER_LOC_VERTEX_TANGENT` #Shader location: vertex attribute: tangent ---| `RL_SHADER_LOC_VERTEX_COLOR` #Shader location: vertex attribute: color ---| `RL_SHADER_LOC_MATRIX_MVP` #Shader location: matrix uniform: model-view-projection ---| `RL_SHADER_LOC_MATRIX_VIEW` #Shader location: matrix uniform: view (camera transform) ---| `RL_SHADER_LOC_MATRIX_PROJECTION` #Shader location: matrix uniform: projection ---| `RL_SHADER_LOC_MATRIX_MODEL` #Shader location: matrix uniform: model (transform) ---| `RL_SHADER_LOC_MATRIX_NORMAL` #Shader location: matrix uniform: normal ---| `RL_SHADER_LOC_VECTOR_VIEW` #Shader location: vector uniform: view ---| `RL_SHADER_LOC_COLOR_DIFFUSE` #Shader location: vector uniform: diffuse color ---| `RL_SHADER_LOC_COLOR_SPECULAR` #Shader location: vector uniform: specular color ---| `RL_SHADER_LOC_COLOR_AMBIENT` #Shader location: vector uniform: ambient color ---| `RL_SHADER_LOC_MAP_ALBEDO` #Shader location: sampler2d texture: albedo (same as: RL_SHADER_LOC_MAP_DIFFUSE) ---| `RL_SHADER_LOC_MAP_METALNESS` #Shader location: sampler2d texture: metalness (same as: RL_SHADER_LOC_MAP_SPECULAR) ---| `RL_SHADER_LOC_MAP_NORMAL` #Shader location: sampler2d texture: normal ---| `RL_SHADER_LOC_MAP_ROUGHNESS` #Shader location: sampler2d texture: roughness ---| `RL_SHADER_LOC_MAP_OCCLUSION` #Shader location: sampler2d texture: occlusion ---| `RL_SHADER_LOC_MAP_EMISSION` #Shader location: sampler2d texture: emission ---| `RL_SHADER_LOC_MAP_HEIGHT` #Shader location: sampler2d texture: height ---| `RL_SHADER_LOC_MAP_CUBEMAP` #Shader location: samplerCube texture: cubemap ---| `RL_SHADER_LOC_MAP_IRRADIANCE` #Shader location: samplerCube texture: irradiance ---| `RL_SHADER_LOC_MAP_PREFILTER` #Shader location: samplerCube texture: prefilter ---| `RL_SHADER_LOC_MAP_BRDF` #Shader location: sampler2d texture: brdf --- Shader location: vertex attribute: position RL_SHADER_LOC_VERTEX_POSITION = 0 --- Shader location: vertex attribute: texcoord01 RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1 --- Shader location: vertex attribute: texcoord02 RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2 --- Shader location: vertex attribute: normal RL_SHADER_LOC_VERTEX_NORMAL = 3 --- Shader location: vertex attribute: tangent RL_SHADER_LOC_VERTEX_TANGENT = 4 --- Shader location: vertex attribute: color RL_SHADER_LOC_VERTEX_COLOR = 5 --- Shader location: matrix uniform: model-view-projection RL_SHADER_LOC_MATRIX_MVP = 6 --- Shader location: matrix uniform: view (camera transform) RL_SHADER_LOC_MATRIX_VIEW = 7 --- Shader location: matrix uniform: projection RL_SHADER_LOC_MATRIX_PROJECTION = 8 --- Shader location: matrix uniform: model (transform) RL_SHADER_LOC_MATRIX_MODEL = 9 --- Shader location: matrix uniform: normal RL_SHADER_LOC_MATRIX_NORMAL = 10 --- Shader location: vector uniform: view RL_SHADER_LOC_VECTOR_VIEW = 11 --- Shader location: vector uniform: diffuse color RL_SHADER_LOC_COLOR_DIFFUSE = 12 --- Shader location: vector uniform: specular color RL_SHADER_LOC_COLOR_SPECULAR = 13 --- Shader location: vector uniform: ambient color RL_SHADER_LOC_COLOR_AMBIENT = 14 --- Shader location: sampler2d texture: albedo (same as: RL_SHADER_LOC_MAP_DIFFUSE) RL_SHADER_LOC_MAP_ALBEDO = 15 --- Shader location: sampler2d texture: metalness (same as: RL_SHADER_LOC_MAP_SPECULAR) RL_SHADER_LOC_MAP_METALNESS = 16 --- Shader location: sampler2d texture: normal RL_SHADER_LOC_MAP_NORMAL = 17 --- Shader location: sampler2d texture: roughness RL_SHADER_LOC_MAP_ROUGHNESS = 18 --- Shader location: sampler2d texture: occlusion RL_SHADER_LOC_MAP_OCCLUSION = 19 --- Shader location: sampler2d texture: emission RL_SHADER_LOC_MAP_EMISSION = 20 --- Shader location: sampler2d texture: height RL_SHADER_LOC_MAP_HEIGHT = 21 --- Shader location: samplerCube texture: cubemap RL_SHADER_LOC_MAP_CUBEMAP = 22 --- Shader location: samplerCube texture: irradiance RL_SHADER_LOC_MAP_IRRADIANCE = 23 --- Shader location: samplerCube texture: prefilter RL_SHADER_LOC_MAP_PREFILTER = 24 --- Shader location: sampler2d texture: brdf RL_SHADER_LOC_MAP_BRDF = 25 ---Shader uniform data type ---@alias rlShaderUniformDataType ---| `RL_SHADER_UNIFORM_FLOAT` #Shader uniform type: float ---| `RL_SHADER_UNIFORM_VEC2` #Shader uniform type: vec2 (2 float) ---| `RL_SHADER_UNIFORM_VEC3` #Shader uniform type: vec3 (3 float) ---| `RL_SHADER_UNIFORM_VEC4` #Shader uniform type: vec4 (4 float) ---| `RL_SHADER_UNIFORM_INT` #Shader uniform type: int ---| `RL_SHADER_UNIFORM_IVEC2` #Shader uniform type: ivec2 (2 int) ---| `RL_SHADER_UNIFORM_IVEC3` #Shader uniform type: ivec3 (3 int) ---| `RL_SHADER_UNIFORM_IVEC4` #Shader uniform type: ivec4 (4 int) ---| `RL_SHADER_UNIFORM_UINT` #Shader uniform type: unsigned int ---| `RL_SHADER_UNIFORM_UIVEC2` #Shader uniform type: uivec2 (2 unsigned int) ---| `RL_SHADER_UNIFORM_UIVEC3` #Shader uniform type: uivec3 (3 unsigned int) ---| `RL_SHADER_UNIFORM_UIVEC4` #Shader uniform type: uivec4 (4 unsigned int) ---| `RL_SHADER_UNIFORM_SAMPLER2D` #Shader uniform type: sampler2d --- Shader uniform type: float RL_SHADER_UNIFORM_FLOAT = 0 --- Shader uniform type: vec2 (2 float) RL_SHADER_UNIFORM_VEC2 = 1 --- Shader uniform type: vec3 (3 float) RL_SHADER_UNIFORM_VEC3 = 2 --- Shader uniform type: vec4 (4 float) RL_SHADER_UNIFORM_VEC4 = 3 --- Shader uniform type: int RL_SHADER_UNIFORM_INT = 4 --- Shader uniform type: ivec2 (2 int) RL_SHADER_UNIFORM_IVEC2 = 5 --- Shader uniform type: ivec3 (3 int) RL_SHADER_UNIFORM_IVEC3 = 6 --- Shader uniform type: ivec4 (4 int) RL_SHADER_UNIFORM_IVEC4 = 7 --- Shader uniform type: unsigned int RL_SHADER_UNIFORM_UINT = 8 --- Shader uniform type: uivec2 (2 unsigned int) RL_SHADER_UNIFORM_UIVEC2 = 9 --- Shader uniform type: uivec3 (3 unsigned int) RL_SHADER_UNIFORM_UIVEC3 = 10 --- Shader uniform type: uivec4 (4 unsigned int) RL_SHADER_UNIFORM_UIVEC4 = 11 --- Shader uniform type: sampler2d RL_SHADER_UNIFORM_SAMPLER2D = 12 ---Shader attribute data types ---@alias rlShaderAttributeDataType ---| `RL_SHADER_ATTRIB_FLOAT` #Shader attribute type: float ---| `RL_SHADER_ATTRIB_VEC2` #Shader attribute type: vec2 (2 float) ---| `RL_SHADER_ATTRIB_VEC3` #Shader attribute type: vec3 (3 float) ---| `RL_SHADER_ATTRIB_VEC4` #Shader attribute type: vec4 (4 float) --- Shader attribute type: float RL_SHADER_ATTRIB_FLOAT = 0 --- Shader attribute type: vec2 (2 float) RL_SHADER_ATTRIB_VEC2 = 1 --- Shader attribute type: vec3 (3 float) RL_SHADER_ATTRIB_VEC3 = 2 --- Shader attribute type: vec4 (4 float) RL_SHADER_ATTRIB_VEC4 = 3 ---Framebuffer attachment type ---@alias rlFramebufferAttachType ---| `RL_ATTACHMENT_COLOR_CHANNEL0` #Framebuffer attachment type: color 0 ---| `RL_ATTACHMENT_COLOR_CHANNEL1` #Framebuffer attachment type: color 1 ---| `RL_ATTACHMENT_COLOR_CHANNEL2` #Framebuffer attachment type: color 2 ---| `RL_ATTACHMENT_COLOR_CHANNEL3` #Framebuffer attachment type: color 3 ---| `RL_ATTACHMENT_COLOR_CHANNEL4` #Framebuffer attachment type: color 4 ---| `RL_ATTACHMENT_COLOR_CHANNEL5` #Framebuffer attachment type: color 5 ---| `RL_ATTACHMENT_COLOR_CHANNEL6` #Framebuffer attachment type: color 6 ---| `RL_ATTACHMENT_COLOR_CHANNEL7` #Framebuffer attachment type: color 7 ---| `RL_ATTACHMENT_DEPTH` #Framebuffer attachment type: depth ---| `RL_ATTACHMENT_STENCIL` #Framebuffer attachment type: stencil --- Framebuffer attachment type: color 0 RL_ATTACHMENT_COLOR_CHANNEL0 = 0 --- Framebuffer attachment type: color 1 RL_ATTACHMENT_COLOR_CHANNEL1 = 1 --- Framebuffer attachment type: color 2 RL_ATTACHMENT_COLOR_CHANNEL2 = 2 --- Framebuffer attachment type: color 3 RL_ATTACHMENT_COLOR_CHANNEL3 = 3 --- Framebuffer attachment type: color 4 RL_ATTACHMENT_COLOR_CHANNEL4 = 4 --- Framebuffer attachment type: color 5 RL_ATTACHMENT_COLOR_CHANNEL5 = 5 --- Framebuffer attachment type: color 6 RL_ATTACHMENT_COLOR_CHANNEL6 = 6 --- Framebuffer attachment type: color 7 RL_ATTACHMENT_COLOR_CHANNEL7 = 7 --- Framebuffer attachment type: depth RL_ATTACHMENT_DEPTH = 100 --- Framebuffer attachment type: stencil RL_ATTACHMENT_STENCIL = 200 ---Framebuffer texture attachment type ---@alias rlFramebufferAttachTextureType ---| `RL_ATTACHMENT_CUBEMAP_POSITIVE_X` #Framebuffer texture attachment type: cubemap, +X side ---| `RL_ATTACHMENT_CUBEMAP_NEGATIVE_X` #Framebuffer texture attachment type: cubemap, -X side ---| `RL_ATTACHMENT_CUBEMAP_POSITIVE_Y` #Framebuffer texture attachment type: cubemap, +Y side ---| `RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y` #Framebuffer texture attachment type: cubemap, -Y side ---| `RL_ATTACHMENT_CUBEMAP_POSITIVE_Z` #Framebuffer texture attachment type: cubemap, +Z side ---| `RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z` #Framebuffer texture attachment type: cubemap, -Z side ---| `RL_ATTACHMENT_TEXTURE2D` #Framebuffer texture attachment type: texture2d ---| `RL_ATTACHMENT_RENDERBUFFER` #Framebuffer texture attachment type: renderbuffer --- Framebuffer texture attachment type: cubemap, +X side RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0 --- Framebuffer texture attachment type: cubemap, -X side RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = 1 --- Framebuffer texture attachment type: cubemap, +Y side RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = 2 --- Framebuffer texture attachment type: cubemap, -Y side RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y = 3 --- Framebuffer texture attachment type: cubemap, +Z side RL_ATTACHMENT_CUBEMAP_POSITIVE_Z = 4 --- Framebuffer texture attachment type: cubemap, -Z side RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z = 5 --- Framebuffer texture attachment type: texture2d RL_ATTACHMENT_TEXTURE2D = 100 --- Framebuffer texture attachment type: renderbuffer RL_ATTACHMENT_RENDERBUFFER = 200 ---Face culling mode ---@alias rlCullMode ---| `RL_CULL_FACE_FRONT` # ---| `RL_CULL_FACE_BACK` # RL_CULL_FACE_FRONT = 0 RL_CULL_FACE_BACK = 1 ---Gui control result ---@alias GuiResult ---| `RESULT_NONE` # ---| `RESULT_PRESSED` # ---| `RESULT_CHANGED` # ---| `RESULT_TAB_CLOSE` #GuiTabBar(), tab close request RESULT_NONE = 0 RESULT_PRESSED = 1 RESULT_CHANGED = 2 --- GuiTabBar(), tab close request RESULT_TAB_CLOSE = 4 ---Gui control state ---@alias GuiState ---| `STATE_NORMAL` # ---| `STATE_FOCUSED` # ---| `STATE_PRESSED` # ---| `STATE_DISABLED` # STATE_NORMAL = 0 STATE_FOCUSED = 1 STATE_PRESSED = 2 STATE_DISABLED = 3 ---Gui control text alignment ---@alias GuiTextAlignment ---| `TEXT_ALIGN_LEFT` # ---| `TEXT_ALIGN_CENTER` # ---| `TEXT_ALIGN_RIGHT` # TEXT_ALIGN_LEFT = 0 TEXT_ALIGN_CENTER = 1 TEXT_ALIGN_RIGHT = 2 ---Gui control text alignment vertical ---@alias GuiTextAlignmentVertical ---| `TEXT_ALIGN_TOP` # ---| `TEXT_ALIGN_MIDDLE` # ---| `TEXT_ALIGN_BOTTOM` # TEXT_ALIGN_TOP = 0 TEXT_ALIGN_MIDDLE = 1 TEXT_ALIGN_BOTTOM = 2 ---Gui control text wrap mode ---@alias GuiTextWrapMode ---| `TEXT_WRAP_NONE` # ---| `TEXT_WRAP_CHAR` # ---| `TEXT_WRAP_WORD` # TEXT_WRAP_NONE = 0 TEXT_WRAP_CHAR = 1 TEXT_WRAP_WORD = 2 ---Gui controls ---@alias GuiControl ---| `DEFAULT` # ---| `LABEL` #Used also for: LABELBUTTON ---| `BUTTON` # ---| `TOGGLE` #Used also for: TOGGLEGROUP ---| `SLIDER` #Used also for: SLIDERBAR, TOGGLESLIDER ---| `PROGRESSBAR` # ---| `CHECKBOX` # ---| `COMBOBOX` # ---| `DROPDOWNBOX` # ---| `TEXTBOX` #Used also for: TEXTBOXMULTI ---| `VALUEBOX` # ---| `TABBAR` # ---| `LISTVIEW` # ---| `COLORPICKER` # ---| `SCROLLBAR` # ---| `STATUSBAR` # DEFAULT = 0 --- Used also for: LABELBUTTON LABEL = 1 BUTTON = 2 --- Used also for: TOGGLEGROUP TOGGLE = 3 --- Used also for: SLIDERBAR, TOGGLESLIDER SLIDER = 4 PROGRESSBAR = 5 CHECKBOX = 6 COMBOBOX = 7 DROPDOWNBOX = 8 --- Used also for: TEXTBOXMULTI TEXTBOX = 9 VALUEBOX = 10 TABBAR = 11 LISTVIEW = 12 COLORPICKER = 13 SCROLLBAR = 14 STATUSBAR = 15 ---Controls BASE properties for every control (RAYGUI_MAX_PROPS_BASE = 16) ---@alias GuiControlProperty ---| `BORDER_COLOR_NORMAL` #Control border color in STATE_NORMAL ---| `BASE_COLOR_NORMAL` #Control base color in STATE_NORMAL ---| `TEXT_COLOR_NORMAL` #Control text color in STATE_NORMAL ---| `BORDER_COLOR_FOCUSED` #Control border color in STATE_FOCUSED ---| `BASE_COLOR_FOCUSED` #Control base color in STATE_FOCUSED ---| `TEXT_COLOR_FOCUSED` #Control text color in STATE_FOCUSED ---| `BORDER_COLOR_PRESSED` #Control border color in STATE_PRESSED ---| `BASE_COLOR_PRESSED` #Control base color in STATE_PRESSED ---| `TEXT_COLOR_PRESSED` #Control text color in STATE_PRESSED ---| `BORDER_COLOR_DISABLED` #Control border color in STATE_DISABLED ---| `BASE_COLOR_DISABLED` #Control base color in STATE_DISABLED ---| `TEXT_COLOR_DISABLED` #Control text color in STATE_DISABLED ---| `BORDER_WIDTH` #Control border size, 0 for no border ---| `TEXT_PADDING` #Control text padding, not considering border ---| `TEXT_ALIGNMENT` #Control text horizontal alignment inside control text bound (after border and padding): 0-Left, 1-Center, 2-Right ---| `BASEPROP16` #Not used yet... --- Control border color in STATE_NORMAL BORDER_COLOR_NORMAL = 0 --- Control base color in STATE_NORMAL BASE_COLOR_NORMAL = 1 --- Control text color in STATE_NORMAL TEXT_COLOR_NORMAL = 2 --- Control border color in STATE_FOCUSED BORDER_COLOR_FOCUSED = 3 --- Control base color in STATE_FOCUSED BASE_COLOR_FOCUSED = 4 --- Control text color in STATE_FOCUSED TEXT_COLOR_FOCUSED = 5 --- Control border color in STATE_PRESSED BORDER_COLOR_PRESSED = 6 --- Control base color in STATE_PRESSED BASE_COLOR_PRESSED = 7 --- Control text color in STATE_PRESSED TEXT_COLOR_PRESSED = 8 --- Control border color in STATE_DISABLED BORDER_COLOR_DISABLED = 9 --- Control base color in STATE_DISABLED BASE_COLOR_DISABLED = 10 --- Control text color in STATE_DISABLED TEXT_COLOR_DISABLED = 11 --- Control border size, 0 for no border BORDER_WIDTH = 12 --- Control text padding, not considering border TEXT_PADDING = 13 --- Control text horizontal alignment inside control text bound (after border and padding): 0-Left, 1-Center, 2-Right TEXT_ALIGNMENT = 14 --- Not used yet... BASEPROP16 = 15 ---DEFAULT control, extended properties ---@alias GuiDefaultProperty ---| `TEXT_SIZE` #Text size (glyphs max height) ---| `TEXT_SPACING` #Text spacing between glyphs ---| `LINE_COLOR` #Line control color ---| `BACKGROUND_COLOR` #Background color ---| `TEXT_LINE_SPACING` #Text spacing between lines ---| `TEXT_ALIGNMENT_VERTICAL` #Text vertical alignment inside text bounds (after border and padding): 0-Top, 1-Middle, 2-Bottom ---| `TEXT_WRAP_MODE` #Text wrap-mode inside text bounds ---| `EXTPROP08` #Not used yet... --- Text size (glyphs max height) TEXT_SIZE = 16 --- Text spacing between glyphs TEXT_SPACING = 17 --- Line control color LINE_COLOR = 18 --- Background color BACKGROUND_COLOR = 19 --- Text spacing between lines TEXT_LINE_SPACING = 20 --- Text vertical alignment inside text bounds (after border and padding): 0-Top, 1-Middle, 2-Bottom TEXT_ALIGNMENT_VERTICAL = 21 --- Text wrap-mode inside text bounds TEXT_WRAP_MODE = 22 --- Not used yet... EXTPROP08 = 23 ---Toggle/ToggleGroup ---@alias GuiToggleProperty ---| `GROUP_PADDING` #ToggleGroup separation between toggles ---| `GROUP_WIDTH_FULL` #ToggleGroup bounds width considers all items: 0-Width per item, 1-Full width --- ToggleGroup separation between toggles GROUP_PADDING = 16 --- ToggleGroup bounds width considers all items: 0-Width per item, 1-Full width GROUP_WIDTH_FULL = 17 ---Slider/SliderBar ---@alias GuiSliderProperty ---| `SLIDER_WIDTH` #Slider size of internal bar ---| `SLIDER_PADDING` #Slider/SliderBar internal bar padding --- Slider size of internal bar SLIDER_WIDTH = 16 --- Slider/SliderBar internal bar padding SLIDER_PADDING = 17 ---ProgressBar ---@alias GuiProgressBarProperty ---| `PROGRESS_PADDING` #ProgressBar internal padding ---| `PROGRESS_SIDE` #ProgressBar increment side: 0-Left->Right, 1-Right->Left --- ProgressBar internal padding PROGRESS_PADDING = 16 --- ProgressBar increment side: 0-Left->Right, 1-Right->Left PROGRESS_SIDE = 17 ---ScrollBar ---@alias GuiScrollBarProperty ---| `ARROWS_SIZE` #ScrollBar arrows size ---| `ARROWS_VISIBLE` #ScrollBar arrows visible ---| `SCROLL_SLIDER_PADDING` #ScrollBar slider internal padding ---| `SCROLL_SLIDER_SIZE` #ScrollBar slider size ---| `SCROLL_PADDING` #ScrollBar scroll padding from arrows ---| `SCROLL_SPEED` #ScrollBar scrolling speed --- ScrollBar arrows size ARROWS_SIZE = 16 --- ScrollBar arrows visible ARROWS_VISIBLE = 17 --- ScrollBar slider internal padding SCROLL_SLIDER_PADDING = 18 --- ScrollBar slider size SCROLL_SLIDER_SIZE = 19 --- ScrollBar scroll padding from arrows SCROLL_PADDING = 20 --- ScrollBar scrolling speed SCROLL_SPEED = 21 ---CheckBox ---@alias GuiCheckBoxProperty ---| `CHECK_PADDING` #CheckBox internal check padding --- CheckBox internal check padding CHECK_PADDING = 16 ---ComboBox ---@alias GuiComboBoxProperty ---| `COMBO_BUTTON_WIDTH` #ComboBox right button width ---| `COMBO_BUTTON_SPACING` #ComboBox button separation --- ComboBox right button width COMBO_BUTTON_WIDTH = 16 --- ComboBox button separation COMBO_BUTTON_SPACING = 17 ---DropdownBox ---@alias GuiDropdownBoxProperty ---| `ARROW_PADDING` #DropdownBox arrow separation from border and items ---| `DROPDOWN_ITEMS_SPACING` #DropdownBox items separation ---| `DROPDOWN_ARROW_HIDDEN` #DropdownBox arrow hidden ---| `DROPDOWN_ROLL_UP` #DropdownBox roll up flag: 0-Roll down, 1-Roll up ---| `DROPDOWN_MAX_HEIGHT` #DropdownBox max height, using scrollbar if required, 0-No limit --- DropdownBox arrow separation from border and items ARROW_PADDING = 16 --- DropdownBox items separation DROPDOWN_ITEMS_SPACING = 17 --- DropdownBox arrow hidden DROPDOWN_ARROW_HIDDEN = 18 --- DropdownBox roll up flag: 0-Roll down, 1-Roll up DROPDOWN_ROLL_UP = 19 --- DropdownBox max height, using scrollbar if required, 0-No limit DROPDOWN_MAX_HEIGHT = 20 ---TextBox/TextBoxMulti/ValueBox/Spinner ---@alias GuiTextBoxProperty ---| `TEXT_READONLY` #TextBox in read-only mode: 0-Text editable, 1-Text read-only --- TextBox in read-only mode: 0-Text editable, 1-Text read-only TEXT_READONLY = 16 ---ValueBox/Spinner ---@alias GuiValueBoxProperty ---| `SPINNER_BUTTON_WIDTH` #Spinner left/right buttons width ---| `SPINNER_BUTTON_SPACING` #Spinner buttons separation --- Spinner left/right buttons width SPINNER_BUTTON_WIDTH = 16 --- Spinner buttons separation SPINNER_BUTTON_SPACING = 17 ---TabBar ---@alias GuiTabBarProperty ---| `TAB_ITEMS_WIDTH` #TabBar tab items width ---| `TAB_CLOSE_BUTTON` #TabBar tab close button: 0-Not shown, 1-Shown ---| `TAB_LINE_SIDE` #TabBar tabs side: 0-Bottom, 1-Top --- TabBar tab items width TAB_ITEMS_WIDTH = 16 --- TabBar tab close button: 0-Not shown, 1-Shown TAB_CLOSE_BUTTON = 17 --- TabBar tabs side: 0-Bottom, 1-Top TAB_LINE_SIDE = 18 --- ---@alias GuiListViewProperty ---| `LIST_ITEMS_HEIGHT` #ListView items height ---| `LIST_ITEMS_SPACING` #ListView items separation ---| `SCROLLBAR_WIDTH` #ListView scrollbar size (usually width) ---| `SCROLLBAR_SIDE` #ListView scrollbar side: 0-Left side, 1-Right Side ---| `LIST_ITEMS_BORDER_NORMAL` #ListView items border enabled in normal state ---| `LIST_ITEMS_BORDER_WIDTH` #ListView items border width --- ListView items height LIST_ITEMS_HEIGHT = 16 --- ListView items separation LIST_ITEMS_SPACING = 17 --- ListView scrollbar size (usually width) SCROLLBAR_WIDTH = 18 --- ListView scrollbar side: 0-Left side, 1-Right Side SCROLLBAR_SIDE = 19 --- ListView items border enabled in normal state LIST_ITEMS_BORDER_NORMAL = 20 --- ListView items border width LIST_ITEMS_BORDER_WIDTH = 21 ---ColorPicker ---@alias GuiColorPickerProperty ---| `COLOR_SELECTOR_SIZE` #ColorPicker selector square size ---| `HUEBAR_WIDTH` #ColorPicker right hue bar width ---| `HUEBAR_PADDING` #ColorPicker right hue bar separation from panel ---| `HUEBAR_SELECTOR_HEIGHT` #ColorPicker right hue bar selector height ---| `HUEBAR_SELECTOR_OVERFLOW` #ColorPicker right hue bar selector overflow --- ColorPicker selector square size COLOR_SELECTOR_SIZE = 16 --- ColorPicker right hue bar width HUEBAR_WIDTH = 17 --- ColorPicker right hue bar separation from panel HUEBAR_PADDING = 18 --- ColorPicker right hue bar selector height HUEBAR_SELECTOR_HEIGHT = 19 --- ColorPicker right hue bar selector overflow HUEBAR_SELECTOR_OVERFLOW = 20 --- ---@alias GuiIconName ---| `ICON_NONE` # ---| `ICON_FOLDER_FILE_OPEN` # ---| `ICON_FILE_SAVE_CLASSIC` # ---| `ICON_FOLDER_OPEN` # ---| `ICON_FOLDER_SAVE` # ---| `ICON_FILE_OPEN` # ---| `ICON_FILE_SAVE` # ---| `ICON_FILE_EXPORT` # ---| `ICON_FILE_ADD` # ---| `ICON_FILE_DELETE` # ---| `ICON_FILETYPE_TEXT` # ---| `ICON_FILETYPE_AUDIO` # ---| `ICON_FILETYPE_IMAGE` # ---| `ICON_FILETYPE_PLAY` # ---| `ICON_FILETYPE_VIDEO` # ---| `ICON_FILETYPE_INFO` # ---| `ICON_FILE_COPY` # ---| `ICON_FILE_CUT` # ---| `ICON_FILE_PASTE` # ---| `ICON_CURSOR_HAND` # ---| `ICON_CURSOR_POINTER` # ---| `ICON_CURSOR_CLASSIC` # ---| `ICON_PENCIL` # ---| `ICON_PENCIL_BIG` # ---| `ICON_BRUSH_CLASSIC` # ---| `ICON_BRUSH_PAINTER` # ---| `ICON_WATER_DROP` # ---| `ICON_COLOR_PICKER` # ---| `ICON_RUBBER` # ---| `ICON_COLOR_BUCKET` # ---| `ICON_TEXT_T` # ---| `ICON_TEXT_A` # ---| `ICON_SCALE` # ---| `ICON_RESIZE` # ---| `ICON_FILTER_POINT` # ---| `ICON_FILTER_BILINEAR` # ---| `ICON_CROP` # ---| `ICON_CROP_ALPHA` # ---| `ICON_SQUARE_TOGGLE` # ---| `ICON_SYMMETRY` # ---| `ICON_SYMMETRY_HORIZONTAL` # ---| `ICON_SYMMETRY_VERTICAL` # ---| `ICON_LENS` # ---| `ICON_LENS_BIG` # ---| `ICON_EYE_ON` # ---| `ICON_EYE_OFF` # ---| `ICON_FILTER_TOP` # ---| `ICON_FILTER` # ---| `ICON_TARGET_POINT` # ---| `ICON_TARGET_SMALL` # ---| `ICON_TARGET_BIG` # ---| `ICON_TARGET_MOVE` # ---| `ICON_CURSOR_MOVE` # ---| `ICON_CURSOR_SCALE` # ---| `ICON_CURSOR_SCALE_RIGHT` # ---| `ICON_CURSOR_SCALE_LEFT` # ---| `ICON_UNDO` # ---| `ICON_REDO` # ---| `ICON_REREDO` # ---| `ICON_MUTATE` # ---| `ICON_ROTATE` # ---| `ICON_REPEAT` # ---| `ICON_SHUFFLE` # ---| `ICON_EMPTYBOX` # ---| `ICON_TARGET` # ---| `ICON_TARGET_SMALL_FILL` # ---| `ICON_TARGET_BIG_FILL` # ---| `ICON_TARGET_MOVE_FILL` # ---| `ICON_CURSOR_MOVE_FILL` # ---| `ICON_CURSOR_SCALE_FILL` # ---| `ICON_CURSOR_SCALE_RIGHT_FILL` # ---| `ICON_CURSOR_SCALE_LEFT_FILL` # ---| `ICON_UNDO_FILL` # ---| `ICON_REDO_FILL` # ---| `ICON_REREDO_FILL` # ---| `ICON_MUTATE_FILL` # ---| `ICON_ROTATE_FILL` # ---| `ICON_REPEAT_FILL` # ---| `ICON_SHUFFLE_FILL` # ---| `ICON_EMPTYBOX_SMALL` # ---| `ICON_BOX` # ---| `ICON_BOX_TOP` # ---| `ICON_BOX_TOP_RIGHT` # ---| `ICON_BOX_RIGHT` # ---| `ICON_BOX_BOTTOM_RIGHT` # ---| `ICON_BOX_BOTTOM` # ---| `ICON_BOX_BOTTOM_LEFT` # ---| `ICON_BOX_LEFT` # ---| `ICON_BOX_TOP_LEFT` # ---| `ICON_BOX_CENTER` # ---| `ICON_BOX_CIRCLE_MASK` # ---| `ICON_POT` # ---| `ICON_ALPHA_MULTIPLY` # ---| `ICON_ALPHA_CLEAR` # ---| `ICON_DITHERING` # ---| `ICON_MIPMAPS` # ---| `ICON_BOX_GRID` # ---| `ICON_GRID` # ---| `ICON_BOX_CORNERS_SMALL` # ---| `ICON_BOX_CORNERS_BIG` # ---| `ICON_FOUR_BOXES` # ---| `ICON_GRID_FILL` # ---| `ICON_BOX_MULTISIZE` # ---| `ICON_ZOOM_SMALL` # ---| `ICON_ZOOM_MEDIUM` # ---| `ICON_ZOOM_BIG` # ---| `ICON_ZOOM_ALL` # ---| `ICON_ZOOM_CENTER` # ---| `ICON_BOX_DOTS_SMALL` # ---| `ICON_BOX_DOTS_BIG` # ---| `ICON_BOX_CONCENTRIC` # ---| `ICON_BOX_GRID_BIG` # ---| `ICON_OK_TICK` # ---| `ICON_CROSS` # ---| `ICON_ARROW_LEFT` # ---| `ICON_ARROW_RIGHT` # ---| `ICON_ARROW_DOWN` # ---| `ICON_ARROW_UP` # ---| `ICON_ARROW_LEFT_FILL` # ---| `ICON_ARROW_RIGHT_FILL` # ---| `ICON_ARROW_DOWN_FILL` # ---| `ICON_ARROW_UP_FILL` # ---| `ICON_AUDIO` # ---| `ICON_FX` # ---| `ICON_WAVE` # ---| `ICON_WAVE_SINUS` # ---| `ICON_WAVE_SQUARE` # ---| `ICON_WAVE_TRIANGULAR` # ---| `ICON_CROSS_SMALL` # ---| `ICON_PLAYER_PREVIOUS` # ---| `ICON_PLAYER_PLAY_BACK` # ---| `ICON_PLAYER_PLAY` # ---| `ICON_PLAYER_PAUSE` # ---| `ICON_PLAYER_STOP` # ---| `ICON_PLAYER_NEXT` # ---| `ICON_PLAYER_RECORD` # ---| `ICON_MAGNET` # ---| `ICON_LOCK_CLOSE` # ---| `ICON_LOCK_OPEN` # ---| `ICON_CLOCK` # ---| `ICON_TOOLS` # ---| `ICON_GEAR` # ---| `ICON_GEAR_BIG` # ---| `ICON_BIN` # ---| `ICON_HAND_POINTER` # ---| `ICON_LASER` # ---| `ICON_COIN` # ---| `ICON_EXPLOSION` # ---| `ICON_1UP` # ---| `ICON_PLAYER` # ---| `ICON_PLAYER_JUMP` # ---| `ICON_KEY` # ---| `ICON_DEMON` # ---| `ICON_TEXT_POPUP` # ---| `ICON_GEAR_EX` # ---| `ICON_CRACK` # ---| `ICON_CRACK_POINTS` # ---| `ICON_STAR` # ---| `ICON_DOOR` # ---| `ICON_EXIT` # ---| `ICON_MODE_2D` # ---| `ICON_MODE_3D` # ---| `ICON_CUBE` # ---| `ICON_CUBE_FACE_TOP` # ---| `ICON_CUBE_FACE_LEFT` # ---| `ICON_CUBE_FACE_FRONT` # ---| `ICON_CUBE_FACE_BOTTOM` # ---| `ICON_CUBE_FACE_RIGHT` # ---| `ICON_CUBE_FACE_BACK` # ---| `ICON_CAMERA` # ---| `ICON_SPECIAL` # ---| `ICON_LINK_NET` # ---| `ICON_LINK_BOXES` # ---| `ICON_LINK_MULTI` # ---| `ICON_LINK` # ---| `ICON_LINK_BROKE` # ---| `ICON_TEXT_NOTES` # ---| `ICON_NOTEBOOK` # ---| `ICON_SUITCASE` # ---| `ICON_SUITCASE_ZIP` # ---| `ICON_MAILBOX` # ---| `ICON_MONITOR` # ---| `ICON_PRINTER` # ---| `ICON_PHOTO_CAMERA` # ---| `ICON_PHOTO_CAMERA_FLASH` # ---| `ICON_HOUSE` # ---| `ICON_HEART` # ---| `ICON_CORNER` # ---| `ICON_VERTICAL_BARS` # ---| `ICON_VERTICAL_BARS_FILL` # ---| `ICON_LIFE_BARS` # ---| `ICON_INFO` # ---| `ICON_CROSSLINE` # ---| `ICON_HELP` # ---| `ICON_FILETYPE_ALPHA` # ---| `ICON_FILETYPE_HOME` # ---| `ICON_LAYERS_VISIBLE` # ---| `ICON_LAYERS` # ---| `ICON_WINDOW` # ---| `ICON_HIDPI` # ---| `ICON_FILETYPE_BINARY` # ---| `ICON_HEX` # ---| `ICON_SHIELD` # ---| `ICON_FILE_NEW` # ---| `ICON_FOLDER_ADD` # ---| `ICON_ALARM` # ---| `ICON_CPU` # ---| `ICON_ROM` # ---| `ICON_STEP_OVER` # ---| `ICON_STEP_INTO` # ---| `ICON_STEP_OUT` # ---| `ICON_RESTART` # ---| `ICON_BREAKPOINT_ON` # ---| `ICON_BREAKPOINT_OFF` # ---| `ICON_BURGER_MENU` # ---| `ICON_CASE_SENSITIVE` # ---| `ICON_REG_EXP` # ---| `ICON_FOLDER` # ---| `ICON_FILE` # ---| `ICON_SAND_TIMER` # ---| `ICON_WARNING` # ---| `ICON_HELP_BOX` # ---| `ICON_INFO_BOX` # ---| `ICON_PRIORITY` # ---| `ICON_LAYERS_ISO` # ---| `ICON_LAYERS2` # ---| `ICON_MLAYERS` # ---| `ICON_MAPS` # ---| `ICON_HOT` # ---| `ICON_LABEL` # ---| `ICON_NAME_ID` # ---| `ICON_SLICING` # ---| `ICON_MANUAL_CONTROL` # ---| `ICON_COLLISION` # ---| `ICON_CIRCLE_ADD` # ---| `ICON_CIRCLE_ADD_FILL` # ---| `ICON_CIRCLE_WARNING` # ---| `ICON_CIRCLE_WARNING_FILL` # ---| `ICON_BOX_MORE` # ---| `ICON_BOX_MORE_FILL` # ---| `ICON_BOX_MINUS` # ---| `ICON_BOX_MINUS_FILL` # ---| `ICON_UNION` # ---| `ICON_INTERSECTION` # ---| `ICON_DIFFERENCE` # ---| `ICON_SPHERE` # ---| `ICON_CYLINDER` # ---| `ICON_CONE` # ---| `ICON_ELLIPSOID` # ---| `ICON_CAPSULE` # ---| `ICON_FILETYPE_FONT` # ---| `ICON_FILETYPE_3D` # ---| `ICON_FILETYPE_CODE_XML` # ---| `ICON_FILETYPE_CODE_C` # ---| `ICON_FILETYPE_CODE_PYTHON` # ---| `ICON_FILETYPE_CODE_JS` # ---| `ICON_FILETYPE_ICON` # ICON_NONE = 0 ICON_FOLDER_FILE_OPEN = 1 ICON_FILE_SAVE_CLASSIC = 2 ICON_FOLDER_OPEN = 3 ICON_FOLDER_SAVE = 4 ICON_FILE_OPEN = 5 ICON_FILE_SAVE = 6 ICON_FILE_EXPORT = 7 ICON_FILE_ADD = 8 ICON_FILE_DELETE = 9 ICON_FILETYPE_TEXT = 10 ICON_FILETYPE_AUDIO = 11 ICON_FILETYPE_IMAGE = 12 ICON_FILETYPE_PLAY = 13 ICON_FILETYPE_VIDEO = 14 ICON_FILETYPE_INFO = 15 ICON_FILE_COPY = 16 ICON_FILE_CUT = 17 ICON_FILE_PASTE = 18 ICON_CURSOR_HAND = 19 ICON_CURSOR_POINTER = 20 ICON_CURSOR_CLASSIC = 21 ICON_PENCIL = 22 ICON_PENCIL_BIG = 23 ICON_BRUSH_CLASSIC = 24 ICON_BRUSH_PAINTER = 25 ICON_WATER_DROP = 26 ICON_COLOR_PICKER = 27 ICON_RUBBER = 28 ICON_COLOR_BUCKET = 29 ICON_TEXT_T = 30 ICON_TEXT_A = 31 ICON_SCALE = 32 ICON_RESIZE = 33 ICON_FILTER_POINT = 34 ICON_FILTER_BILINEAR = 35 ICON_CROP = 36 ICON_CROP_ALPHA = 37 ICON_SQUARE_TOGGLE = 38 ICON_SYMMETRY = 39 ICON_SYMMETRY_HORIZONTAL = 40 ICON_SYMMETRY_VERTICAL = 41 ICON_LENS = 42 ICON_LENS_BIG = 43 ICON_EYE_ON = 44 ICON_EYE_OFF = 45 ICON_FILTER_TOP = 46 ICON_FILTER = 47 ICON_TARGET_POINT = 48 ICON_TARGET_SMALL = 49 ICON_TARGET_BIG = 50 ICON_TARGET_MOVE = 51 ICON_CURSOR_MOVE = 52 ICON_CURSOR_SCALE = 53 ICON_CURSOR_SCALE_RIGHT = 54 ICON_CURSOR_SCALE_LEFT = 55 ICON_UNDO = 56 ICON_REDO = 57 ICON_REREDO = 58 ICON_MUTATE = 59 ICON_ROTATE = 60 ICON_REPEAT = 61 ICON_SHUFFLE = 62 ICON_EMPTYBOX = 63 ICON_TARGET = 64 ICON_TARGET_SMALL_FILL = 65 ICON_TARGET_BIG_FILL = 66 ICON_TARGET_MOVE_FILL = 67 ICON_CURSOR_MOVE_FILL = 68 ICON_CURSOR_SCALE_FILL = 69 ICON_CURSOR_SCALE_RIGHT_FILL = 70 ICON_CURSOR_SCALE_LEFT_FILL = 71 ICON_UNDO_FILL = 72 ICON_REDO_FILL = 73 ICON_REREDO_FILL = 74 ICON_MUTATE_FILL = 75 ICON_ROTATE_FILL = 76 ICON_REPEAT_FILL = 77 ICON_SHUFFLE_FILL = 78 ICON_EMPTYBOX_SMALL = 79 ICON_BOX = 80 ICON_BOX_TOP = 81 ICON_BOX_TOP_RIGHT = 82 ICON_BOX_RIGHT = 83 ICON_BOX_BOTTOM_RIGHT = 84 ICON_BOX_BOTTOM = 85 ICON_BOX_BOTTOM_LEFT = 86 ICON_BOX_LEFT = 87 ICON_BOX_TOP_LEFT = 88 ICON_BOX_CENTER = 89 ICON_BOX_CIRCLE_MASK = 90 ICON_POT = 91 ICON_ALPHA_MULTIPLY = 92 ICON_ALPHA_CLEAR = 93 ICON_DITHERING = 94 ICON_MIPMAPS = 95 ICON_BOX_GRID = 96 ICON_GRID = 97 ICON_BOX_CORNERS_SMALL = 98 ICON_BOX_CORNERS_BIG = 99 ICON_FOUR_BOXES = 100 ICON_GRID_FILL = 101 ICON_BOX_MULTISIZE = 102 ICON_ZOOM_SMALL = 103 ICON_ZOOM_MEDIUM = 104 ICON_ZOOM_BIG = 105 ICON_ZOOM_ALL = 106 ICON_ZOOM_CENTER = 107 ICON_BOX_DOTS_SMALL = 108 ICON_BOX_DOTS_BIG = 109 ICON_BOX_CONCENTRIC = 110 ICON_BOX_GRID_BIG = 111 ICON_OK_TICK = 112 ICON_CROSS = 113 ICON_ARROW_LEFT = 114 ICON_ARROW_RIGHT = 115 ICON_ARROW_DOWN = 116 ICON_ARROW_UP = 117 ICON_ARROW_LEFT_FILL = 118 ICON_ARROW_RIGHT_FILL = 119 ICON_ARROW_DOWN_FILL = 120 ICON_ARROW_UP_FILL = 121 ICON_AUDIO = 122 ICON_FX = 123 ICON_WAVE = 124 ICON_WAVE_SINUS = 125 ICON_WAVE_SQUARE = 126 ICON_WAVE_TRIANGULAR = 127 ICON_CROSS_SMALL = 128 ICON_PLAYER_PREVIOUS = 129 ICON_PLAYER_PLAY_BACK = 130 ICON_PLAYER_PLAY = 131 ICON_PLAYER_PAUSE = 132 ICON_PLAYER_STOP = 133 ICON_PLAYER_NEXT = 134 ICON_PLAYER_RECORD = 135 ICON_MAGNET = 136 ICON_LOCK_CLOSE = 137 ICON_LOCK_OPEN = 138 ICON_CLOCK = 139 ICON_TOOLS = 140 ICON_GEAR = 141 ICON_GEAR_BIG = 142 ICON_BIN = 143 ICON_HAND_POINTER = 144 ICON_LASER = 145 ICON_COIN = 146 ICON_EXPLOSION = 147 ICON_1UP = 148 ICON_PLAYER = 149 ICON_PLAYER_JUMP = 150 ICON_KEY = 151 ICON_DEMON = 152 ICON_TEXT_POPUP = 153 ICON_GEAR_EX = 154 ICON_CRACK = 155 ICON_CRACK_POINTS = 156 ICON_STAR = 157 ICON_DOOR = 158 ICON_EXIT = 159 ICON_MODE_2D = 160 ICON_MODE_3D = 161 ICON_CUBE = 162 ICON_CUBE_FACE_TOP = 163 ICON_CUBE_FACE_LEFT = 164 ICON_CUBE_FACE_FRONT = 165 ICON_CUBE_FACE_BOTTOM = 166 ICON_CUBE_FACE_RIGHT = 167 ICON_CUBE_FACE_BACK = 168 ICON_CAMERA = 169 ICON_SPECIAL = 170 ICON_LINK_NET = 171 ICON_LINK_BOXES = 172 ICON_LINK_MULTI = 173 ICON_LINK = 174 ICON_LINK_BROKE = 175 ICON_TEXT_NOTES = 176 ICON_NOTEBOOK = 177 ICON_SUITCASE = 178 ICON_SUITCASE_ZIP = 179 ICON_MAILBOX = 180 ICON_MONITOR = 181 ICON_PRINTER = 182 ICON_PHOTO_CAMERA = 183 ICON_PHOTO_CAMERA_FLASH = 184 ICON_HOUSE = 185 ICON_HEART = 186 ICON_CORNER = 187 ICON_VERTICAL_BARS = 188 ICON_VERTICAL_BARS_FILL = 189 ICON_LIFE_BARS = 190 ICON_INFO = 191 ICON_CROSSLINE = 192 ICON_HELP = 193 ICON_FILETYPE_ALPHA = 194 ICON_FILETYPE_HOME = 195 ICON_LAYERS_VISIBLE = 196 ICON_LAYERS = 197 ICON_WINDOW = 198 ICON_HIDPI = 199 ICON_FILETYPE_BINARY = 200 ICON_HEX = 201 ICON_SHIELD = 202 ICON_FILE_NEW = 203 ICON_FOLDER_ADD = 204 ICON_ALARM = 205 ICON_CPU = 206 ICON_ROM = 207 ICON_STEP_OVER = 208 ICON_STEP_INTO = 209 ICON_STEP_OUT = 210 ICON_RESTART = 211 ICON_BREAKPOINT_ON = 212 ICON_BREAKPOINT_OFF = 213 ICON_BURGER_MENU = 214 ICON_CASE_SENSITIVE = 215 ICON_REG_EXP = 216 ICON_FOLDER = 217 ICON_FILE = 218 ICON_SAND_TIMER = 219 ICON_WARNING = 220 ICON_HELP_BOX = 221 ICON_INFO_BOX = 222 ICON_PRIORITY = 223 ICON_LAYERS_ISO = 224 ICON_LAYERS2 = 225 ICON_MLAYERS = 226 ICON_MAPS = 227 ICON_HOT = 228 ICON_LABEL = 229 ICON_NAME_ID = 230 ICON_SLICING = 231 ICON_MANUAL_CONTROL = 232 ICON_COLLISION = 233 ICON_CIRCLE_ADD = 234 ICON_CIRCLE_ADD_FILL = 235 ICON_CIRCLE_WARNING = 236 ICON_CIRCLE_WARNING_FILL = 237 ICON_BOX_MORE = 238 ICON_BOX_MORE_FILL = 239 ICON_BOX_MINUS = 240 ICON_BOX_MINUS_FILL = 241 ICON_UNION = 242 ICON_INTERSECTION = 243 ICON_DIFFERENCE = 244 ICON_SPHERE = 245 ICON_CYLINDER = 246 ICON_CONE = 247 ICON_ELLIPSOID = 248 ICON_CAPSULE = 249 ICON_FILETYPE_FONT = 250 ICON_FILETYPE_3D = 251 ICON_FILETYPE_CODE_XML = 252 ICON_FILETYPE_CODE_C = 253 ICON_FILETYPE_CODE_PYTHON = 254 ICON_FILETYPE_CODE_JS = 255 ICON_FILETYPE_ICON = 256 ---Quaternion, 4 components (Vector4 alias) ---@alias Quaternion Vector4 ---Texture2D, same as Texture ---@alias Texture2D Texture ---TextureCubemap, same as Texture ---@alias TextureCubemap Texture ---RenderTexture2D, same as RenderTexture ---@alias RenderTexture2D RenderTexture ---Camera type fallback, defaults to Camera3D ---@alias Camera Camera3D ---Anim pose, an array of Transform[] ---@alias ModelAnimPose Transform[] ---Vector2, 2 components ---@class Vector2 ---@field x number Vector x component ---@field y number Vector y component ---Vector3, 3 components ---@class Vector3 ---@field x number Vector x component ---@field y number Vector y component ---@field z number Vector z component ---Vector4, 4 components ---@class Vector4 ---@field x number Vector x component ---@field y number Vector y component ---@field z number Vector z component ---@field w number Vector w component ---Matrix, 4x4 components, column major, OpenGL style, right-handed ---@class Matrix ---@field m0 number Matrix first row (4 components) ---@field m4 number Matrix first row (4 components) ---@field m8 number Matrix first row (4 components) ---@field m12 number Matrix first row (4 components) ---@field m1 number Matrix second row (4 components) ---@field m5 number Matrix second row (4 components) ---@field m9 number Matrix second row (4 components) ---@field m13 number Matrix second row (4 components) ---@field m2 number Matrix third row (4 components) ---@field m6 number Matrix third row (4 components) ---@field m10 number Matrix third row (4 components) ---@field m14 number Matrix third row (4 components) ---@field m3 number Matrix fourth row (4 components) ---@field m7 number Matrix fourth row (4 components) ---@field m11 number Matrix fourth row (4 components) ---@field m15 number Matrix fourth row (4 components) ---Color, 4 components, R8G8B8A8 (32bit) ---@class Color ---@field r integer Color red value ---@field g integer Color green value ---@field b integer Color blue value ---@field a integer Color alpha value ---Rectangle, 4 components ---@class Rectangle ---@field x number Rectangle top-left corner position x ---@field y number Rectangle top-left corner position y ---@field width number Rectangle width ---@field height number Rectangle height ---Image, pixel data stored in CPU memory (RAM) ---@class Image ---@field data ffi.cdata* Image raw data ---@field width integer Image base width ---@field height integer Image base height ---@field mipmaps integer Mipmap levels, 1 by default ---@field format integer Data format (PixelFormat type) ---Texture, tex data stored in GPU memory (VRAM) ---@class Texture ---@field id integer OpenGL texture id ---@field width integer Texture base width ---@field height integer Texture base height ---@field mipmaps integer Mipmap levels, 1 by default ---@field format integer Data format (PixelFormat type) ---RenderTexture, fbo for texture rendering ---@class RenderTexture ---@field id integer OpenGL framebuffer object id ---@field texture Texture Color buffer attachment texture ---@field depth Texture Depth buffer attachment texture ---NPatchInfo, n-patch layout info ---@class NPatchInfo ---@field source Rectangle Texture source rectangle ---@field left integer Left border offset ---@field top integer Top border offset ---@field right integer Right border offset ---@field bottom integer Bottom border offset ---@field layout integer Layout of the n-patch: 3x3, 1x3 or 3x1 ---GlyphInfo, font characters glyphs info ---@class GlyphInfo ---@field value integer Character value (Unicode) ---@field offsetX integer Character offset X when drawing ---@field offsetY integer Character offset Y when drawing ---@field advanceX integer Character advance position X ---@field image Image Character image data ---Font, font texture and GlyphInfo array data ---@class Font ---@field baseSize integer Base size (default chars height) ---@field glyphCount integer Number of glyph characters ---@field glyphPadding integer Padding around the glyph characters ---@field texture Texture2D Texture atlas containing the glyphs ---@field recs Rectangle[] Rectangles in texture for the glyphs ---@field glyphs GlyphInfo[] Glyphs info data ---Camera, defines position/orientation in 3d space ---@class Camera3D ---@field position Vector3 Camera position ---@field target Vector3 Camera target it looks-at ---@field up Vector3 Camera up vector (rotation over its axis) ---@field fovy number Camera field-of-view aperture in Y (degrees) in perspective, used as near plane height in world units in orthographic ---@field projection integer Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC ---Camera2D, defines position/orientation in 2d space ---@class Camera2D ---@field offset Vector2 Camera offset (screen space offset from window origin, unscaled by DPI, real pixel size) ---@field target Vector2 Camera target (world space target point that is mapped to screen space offset) ---@field rotation number Camera rotation in degrees (pivots around target) ---@field zoom number Camera zoom (scaling around target), must not be set to 0, set to 1.0f for no scale ---Mesh, vertex data and vao/vbo ---@class Mesh ---@field vertexCount integer Number of vertices stored in arrays ---@field triangleCount integer Number of triangles stored (indexed or not) ---@field vertices number[] Vertex position (XYZ - 3 components per vertex) (shader-location = 0) ---@field texcoords number[] Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1) ---@field texcoords2 number[] Vertex texture second coordinates (UV - 2 components per vertex) (shader-location = 5) ---@field normals number[] Vertex normals (XYZ - 3 components per vertex) (shader-location = 2) ---@field tangents number[] Vertex tangents (XYZW - 4 components per vertex) (shader-location = 4) ---@field colors integer[] Vertex colors (RGBA - 4 components per vertex) (shader-location = 3) ---@field indices integer[] Vertex indices (in case vertex data comes indexed) ---@field boneCount integer Number of bones (MAX: 256 bones) ---@field boneIndices integer[] Vertex bone indices, up to 4 bones influence by vertex (skinning) (shader-location = 6) ---@field boneWeights number[] Vertex bone weight, up to 4 bones influence by vertex (skinning) (shader-location = 7) ---@field animVertices number[] Animated vertex positions (after bones transformations) ---@field animNormals number[] Animated normals (after bones transformations) ---@field vaoId integer OpenGL Vertex Array Object id ---@field vboId integer[] OpenGL Vertex Buffer Objects id (default vertex data) ---Shader ---@class Shader ---@field id integer Shader program id ---@field locs integer[] Shader locations array (RL_MAX_SHADER_LOCATIONS) ---MaterialMap ---@class MaterialMap ---@field texture Texture2D Material map texture ---@field color Color Material map color ---@field value number Material map value ---Material, includes shader and maps ---@class Material ---@field shader Shader Material shader ---@field maps MaterialMap[] Material maps array (MAX_MATERIAL_MAPS) ---@field params number[] Material generic parameters (if required) ---Transform, vertex transformation data ---@class Transform ---@field translation Vector3 Translation ---@field rotation Quaternion Rotation ---@field scale Vector3 Scale ---Bone, skeletal animation bone ---@class BoneInfo ---@field name string Bone name ---@field parent integer Bone parent ---Skeleton, animation bones hierarchy ---@class ModelSkeleton ---@field boneCount integer Number of bones ---@field bones BoneInfo[] Bones information (skeleton) ---@field bindPose ModelAnimPose Bones base transformation (Transform[]) ---Model, meshes, materials and animation data ---@class Model ---@field transform Matrix Local transform matrix ---@field meshCount integer Number of meshes ---@field materialCount integer Number of materials ---@field meshes Mesh[] Meshes array ---@field materials Material[] Materials array ---@field meshMaterial integer[] Mesh material number ---@field skeleton ModelSkeleton Skeleton for animation ---@field currentPose ModelAnimPose Current animation pose (Transform[]) ---@field boneMatrices Matrix[] Bones animated transformation matrices ---ModelAnimation, contains a full animation sequence ---@class ModelAnimation ---@field name string Animation name ---@field boneCount integer Number of bones (per pose) ---@field keyframeCount integer Number of animation key frames ---@field keyframePoses ModelAnimPose[] Animation sequence keyframe poses [keyframe][pose] ---Ray, ray for raycasting ---@class Ray ---@field position Vector3 Ray position (origin) ---@field direction Vector3 Ray direction (normalized) ---RayCollision, ray hit information ---@class RayCollision ---@field hit boolean Did the ray hit something? ---@field distance number Distance to the nearest hit ---@field point Vector3 Point of the nearest hit ---@field normal Vector3 Surface normal of hit ---BoundingBox ---@class BoundingBox ---@field min Vector3 Minimum vertex box-corner ---@field max Vector3 Maximum vertex box-corner ---Wave, audio wave data ---@class Wave ---@field frameCount integer Total number of frames (considering channels) ---@field sampleRate integer Frequency (samples per second) ---@field sampleSize integer Bit depth (bits per sample): 8, 16, 32 (24 not supported) ---@field channels integer Number of channels (1-mono, 2-stereo, ...) ---@field data ffi.cdata* Buffer data pointer ---AudioStream, custom audio stream ---@class AudioStream ---@field buffer ffi.cdata* Pointer to internal data used by the audio system ---@field processor ffi.cdata* Pointer to internal data processor, useful for audio effects ---@field sampleRate integer Frequency (samples per second) ---@field sampleSize integer Bit depth (bits per sample): 8, 16, 32 (24 not supported) ---@field channels integer Number of channels (1-mono, 2-stereo, ...) ---Sound ---@class Sound ---@field stream AudioStream Audio stream ---@field frameCount integer Total number of frames (considering channels) ---Music, audio stream, anything longer than ~10 seconds should be streamed ---@class Music ---@field stream AudioStream Audio stream ---@field frameCount integer Total number of frames (considering channels) ---@field looping boolean Music looping enable ---@field ctxType integer Type of music context (audio filetype) ---@field ctxData ffi.cdata* Audio context data, depends on type ---VrDeviceInfo, Head-Mounted-Display device parameters ---@class VrDeviceInfo ---@field hResolution integer Horizontal resolution in pixels ---@field vResolution integer Vertical resolution in pixels ---@field hScreenSize number Horizontal size in meters ---@field vScreenSize number Vertical size in meters ---@field eyeToScreenDistance number Distance between eye and display in meters ---@field lensSeparationDistance number Lens separation distance in meters ---@field interpupillaryDistance number IPD (distance between pupils) in meters ---@field lensDistortionValues number[] Lens distortion constant parameters ---@field chromaAbCorrection number[] Chromatic aberration correction parameters ---VrStereoConfig, VR stereo rendering configuration for simulator ---@class VrStereoConfig ---@field projection Matrix[] VR projection matrices (per eye) ---@field viewOffset Matrix[] VR view offset matrices (per eye) ---@field leftLensCenter number[] VR left lens center ---@field rightLensCenter number[] VR right lens center ---@field leftScreenCenter number[] VR left screen center ---@field rightScreenCenter number[] VR right screen center ---@field scale number[] VR distortion scale ---@field scaleIn number[] VR distortion scale in ---File path list ---@class FilePathList ---@field count integer Filepaths entries count ---@field paths string[] Filepaths entries ---Automation event ---@class AutomationEvent ---@field frame integer Event frame ---@field type integer Event type (AutomationEventType) ---@field params integer[] Event parameters (if required) ---Automation event list ---@class AutomationEventList ---@field capacity integer Events max entries (MAX_AUTOMATION_EVENTS) ---@field count integer Events entries count ---@field events AutomationEvent[] Events entries ---Dynamic vertex buffers (position + texcoords + colors + indices arrays) ---@class rlVertexBuffer ---@field elementCount integer Number of elements in the buffer (QUADS) ---@field vertices number[] Vertex position (XYZ - 3 components per vertex) (shader-location = 0) ---@field texcoords number[] Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1) ---@field normals number[] Vertex normal (XYZ - 3 components per vertex) (shader-location = 2) ---@field colors integer[] Vertex colors (RGBA - 4 components per vertex) (shader-location = 3) ---@field indices integer[] Vertex indices (in case vertex data comes indexed) (6 indices per quad) ---@field vaoId integer OpenGL Vertex Array Object id ---@field vboId integer[] OpenGL Vertex Buffer Objects id (5 types of vertex data) ---of those state-change happens (this is done in core module) ---@class rlDrawCall ---@field mode integer Drawing mode: LINES, TRIANGLES, QUADS ---@field vertexCount integer Number of vertex of the draw ---@field vertexAlignment integer Number of vertex required for index alignment (LINES, TRIANGLES) ---@field textureId integer Texture id to be used on the draw -> Use to create new draw call if changes ---rlRenderBatch type ---@class rlRenderBatch ---@field bufferCount integer Number of vertex buffers (multi-buffering support) ---@field currentBuffer integer Current buffer tracking in case of multi-buffering ---@field vertexBuffer rlVertexBuffer[] Dynamic buffer(s) for vertex data ---@field draws rlDrawCall[] Draw calls array, depends on textureId ---@field drawCounter integer Draw calls counter ---@field currentDepth number Current depth value for next draw --- ---@class float3 ---@field v number[] --- ---@class float16 ---@field v number[] ---NOTE: Used when exporting style as code for convenience ---@class GuiStyleProp ---@field controlId integer Control identifier ---@field propertyId integer Property identifier ---@field propertyValue integer Property value ---NOTE: Text style is defined by control ---@class GuiTextStyle ---@field size integer ---@field charSpacing integer ---@field lineSpacing integer ---@field alignmentH integer ---@field alignmentV integer ---@field padding integer ---Logging: Redirect trace log messages ---@alias TraceLogCallback fun(logLevel: integer, text: string, args: ffi.cdata*) ---FileIO: Load binary data ---@alias LoadFileDataCallback fun(fileName: string, dataSize: integer[]): integer[] ---FileIO: Save binary data ---@alias SaveFileDataCallback fun(fileName: string, data: ffi.cdata*, dataSize: integer): boolean ---FileIO: Load text data ---@alias LoadFileTextCallback fun(fileName: string): string ---FileIO: Save text data ---@alias SaveFileTextCallback fun(fileName: string, text: string): boolean ---@alias AudioCallback fun(bufferData: ffi.cdata*, frames: integer) ---Initialize window and OpenGL context ---@param width integer ---@param height integer ---@param title string function InitWindow(width, height, title) C.InitWindow(width, height, title) end ---Close window and unload OpenGL context function CloseWindow() C.CloseWindow() end ---Check if application should close (KEY_ESCAPE pressed or windows close icon clicked) ---@return boolean function WindowShouldClose() return C.WindowShouldClose() end ---Check if window has been initialized successfully ---@return boolean function IsWindowReady() return C.IsWindowReady() end ---Check if window is currently fullscreen ---@return boolean function IsWindowFullscreen() return C.IsWindowFullscreen() end ---Check if window is currently hidden ---@return boolean function IsWindowHidden() return C.IsWindowHidden() end ---Check if window is currently minimized ---@return boolean function IsWindowMinimized() return C.IsWindowMinimized() end ---Check if window is currently maximized ---@return boolean function IsWindowMaximized() return C.IsWindowMaximized() end ---Check if window is currently focused ---@return boolean function IsWindowFocused() return C.IsWindowFocused() end ---Check if window has been resized last frame ---@return boolean function IsWindowResized() return C.IsWindowResized() end ---Check if one specific window flag is enabled ---@param flag ConfigFlags ---@return boolean function IsWindowState(flag) return C.IsWindowState(flag) end ---Set window configuration state using flags ---@param flags ConfigFlags function SetWindowState(flags) C.SetWindowState(flags) end ---Clear window configuration state flags ---@param flags ConfigFlags function ClearWindowState(flags) C.ClearWindowState(flags) end ---Toggle window state: fullscreen/windowed, resizes monitor to match window resolution function ToggleFullscreen() C.ToggleFullscreen() end ---Toggle window state: borderless windowed, resizes window to match monitor resolution function ToggleBorderlessWindowed() C.ToggleBorderlessWindowed() end ---Set window state: maximized, if resizable function MaximizeWindow() C.MaximizeWindow() end ---Set window state: minimized, if resizable function MinimizeWindow() C.MinimizeWindow() end ---Restore window from being minimized/maximized function RestoreWindow() C.RestoreWindow() end ---Set icon for window (single image, RGBA 32bit) ---@param image Image function SetWindowIcon(image) C.SetWindowIcon(image) end ---Set icon for window (multiple images, RGBA 32bit) ---@param images ffi.cdata* ---@param count integer function SetWindowIcons(images, count) C.SetWindowIcons(images, count) end ---Set title for window ---@param title string function SetWindowTitle(title) C.SetWindowTitle(title) end ---Set window position on screen ---@param x integer ---@param y integer function SetWindowPosition(x, y) C.SetWindowPosition(x, y) end ---Set monitor for the current window ---@param monitor integer function SetWindowMonitor(monitor) C.SetWindowMonitor(monitor) end ---Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE) ---@param width integer ---@param height integer function SetWindowMinSize(width, height) C.SetWindowMinSize(width, height) end ---Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE) ---@param width integer ---@param height integer function SetWindowMaxSize(width, height) C.SetWindowMaxSize(width, height) end ---Set window dimensions ---@param width integer ---@param height integer function SetWindowSize(width, height) C.SetWindowSize(width, height) end ---Set window opacity [0.0f..1.0f] ---@param opacity number function SetWindowOpacity(opacity) C.SetWindowOpacity(opacity) end ---Set window focused function SetWindowFocused() C.SetWindowFocused() end ---Get native window handle ---@return ffi.cdata* function GetWindowHandle() return C.GetWindowHandle() end ---Get current screen width ---@return integer function GetScreenWidth() return C.GetScreenWidth() end ---Get current screen height ---@return integer function GetScreenHeight() return C.GetScreenHeight() end ---Get current render width (it considers HiDPI) ---@return integer function GetRenderWidth() return C.GetRenderWidth() end ---Get current render height (it considers HiDPI) ---@return integer function GetRenderHeight() return C.GetRenderHeight() end ---Get number of connected monitors ---@return integer function GetMonitorCount() return C.GetMonitorCount() end ---Get current monitor where window is placed ---@return integer function GetCurrentMonitor() return C.GetCurrentMonitor() end ---Get specified monitor position ---@param monitor integer ---@return Vector2 function GetMonitorPosition(monitor) return C.GetMonitorPosition(monitor) end ---Get specified monitor width (current video mode used by monitor) ---@param monitor integer ---@return integer function GetMonitorWidth(monitor) return C.GetMonitorWidth(monitor) end ---Get specified monitor height (current video mode used by monitor) ---@param monitor integer ---@return integer function GetMonitorHeight(monitor) return C.GetMonitorHeight(monitor) end ---Get specified monitor physical width in millimetres ---@param monitor integer ---@return integer function GetMonitorPhysicalWidth(monitor) return C.GetMonitorPhysicalWidth(monitor) end ---Get specified monitor physical height in millimetres ---@param monitor integer ---@return integer function GetMonitorPhysicalHeight(monitor) return C.GetMonitorPhysicalHeight(monitor) end ---Get specified monitor refresh rate ---@param monitor integer ---@return integer function GetMonitorRefreshRate(monitor) return C.GetMonitorRefreshRate(monitor) end ---Get window position XY on monitor ---@return Vector2 function GetWindowPosition() return C.GetWindowPosition() end ---Get window scale DPI factor ---@return Vector2 function GetWindowScaleDPI() return C.GetWindowScaleDPI() end ---Get the human-readable, UTF-8 encoded name of the specified monitor ---@param monitor integer ---@return string function GetMonitorName(monitor) local _r = C.GetMonitorName(monitor) return _r ~= nil and ffi.string(_r) or "" end ---Set clipboard text content ---@param text string function SetClipboardText(text) C.SetClipboardText(text) end ---Get clipboard text content ---@return string function GetClipboardText() local _r = C.GetClipboardText() return _r ~= nil and ffi.string(_r) or "" end ---Get clipboard image content ---@return Image function GetClipboardImage() return C.GetClipboardImage() end ---Enable waiting for events on EndDrawing(), no automatic event polling function EnableEventWaiting() C.EnableEventWaiting() end ---Disable waiting for events on EndDrawing(), automatic events polling function DisableEventWaiting() C.DisableEventWaiting() end ---Show cursor function ShowCursor() C.ShowCursor() end ---Hide cursor function HideCursor() C.HideCursor() end ---Check if cursor is not visible ---@return boolean function IsCursorHidden() return C.IsCursorHidden() end ---Enable cursor (unlock cursor) function EnableCursor() C.EnableCursor() end ---Disable cursor (lock cursor) function DisableCursor() C.DisableCursor() end ---Check if cursor is on the screen ---@return boolean function IsCursorOnScreen() return C.IsCursorOnScreen() end ---Clear background (framebuffer) to color ---@param color Color function ClearBackground(color) C.ClearBackground(color) end ---Begin canvas (framebuffer) drawing function BeginDrawing() C.BeginDrawing() end ---End canvas (framebuffer) drawing and swap buffers (double buffering) function EndDrawing() C.EndDrawing() end ---Begin 2D mode with custom camera (2D) ---@param camera Camera2D function BeginMode2D(camera) C.BeginMode2D(camera) end ---End 2D mode with custom camera function EndMode2D() C.EndMode2D() end ---Begin 3D mode with custom camera (3D) ---@param camera Camera3D function BeginMode3D(camera) C.BeginMode3D(camera) end ---End 3D mode and returns to default 2D orthographic mode function EndMode3D() C.EndMode3D() end ---Begin drawing to render texture ---@param target RenderTexture2D function BeginTextureMode(target) C.BeginTextureMode(target) end ---End drawing to render texture function EndTextureMode() C.EndTextureMode() end ---Begin custom shader drawing ---@param shader Shader function BeginShaderMode(shader) C.BeginShaderMode(shader) end ---End custom shader drawing (use default shader) function EndShaderMode() C.EndShaderMode() end ---Begin blending mode (alpha, additive, multiplied, subtract, custom) ---@param mode BlendMode function BeginBlendMode(mode) C.BeginBlendMode(mode) end ---End blending mode (reset to default: alpha blending) function EndBlendMode() C.EndBlendMode() end ---Begin scissor mode (define screen area for following drawing) ---@param x integer ---@param y integer ---@param width integer ---@param height integer function BeginScissorMode(x, y, width, height) C.BeginScissorMode(x, y, width, height) end ---End scissor mode function EndScissorMode() C.EndScissorMode() end ---Begin stereo rendering (requires VR simulator) ---@param config VrStereoConfig function BeginVrStereoMode(config) C.BeginVrStereoMode(config) end ---End stereo rendering (requires VR simulator) function EndVrStereoMode() C.EndVrStereoMode() end ---Load VR stereo config for VR simulator device parameters ---@param device VrDeviceInfo ---@return VrStereoConfig function LoadVrStereoConfig(device) return C.LoadVrStereoConfig(device) end ---Unload VR stereo config ---@param config VrStereoConfig function UnloadVrStereoConfig(config) C.UnloadVrStereoConfig(config) end ---Load shader from files and bind default locations ---@param vsFileName string ---@param fsFileName string ---@return Shader function LoadShader(vsFileName, fsFileName) return C.LoadShader(vsFileName, fsFileName) end ---Load shader from code strings and bind default locations ---@param vsCode string ---@param fsCode string ---@return Shader function LoadShaderFromMemory(vsCode, fsCode) return C.LoadShaderFromMemory(vsCode, fsCode) end ---Check if shader is valid (loaded on GPU) ---@param shader Shader ---@return boolean function IsShaderValid(shader) return C.IsShaderValid(shader) end ---Get shader uniform location ---@param shader Shader ---@param uniformName string ---@return integer function GetShaderLocation(shader, uniformName) return C.GetShaderLocation(shader, uniformName) end ---Get shader attribute location ---@param shader Shader ---@param attribName string ---@return integer function GetShaderLocationAttrib(shader, attribName) return C.GetShaderLocationAttrib(shader, attribName) end ---Set shader uniform value ---@param shader Shader ---@param locIndex integer ---@param value string|ffi.cdata* ---@param uniformType ShaderUniformDataType function SetShaderValue(shader, locIndex, value, uniformType) local _a3 if type(value) == "string" then _a3 = ffi.cast("const void *", value) else _a3 = value end C.SetShaderValue(shader, locIndex, _a3, uniformType) end ---Set shader uniform value vector ---@param shader Shader ---@param locIndex integer ---@param value string|ffi.cdata* ---@param uniformType ShaderUniformDataType ---@param count integer function SetShaderValueV(shader, locIndex, value, uniformType, count) local _a3 if type(value) == "string" then _a3 = ffi.cast("const void *", value) else _a3 = value end C.SetShaderValueV(shader, locIndex, _a3, uniformType, count) end ---Set shader uniform value (matrix 4x4) ---@param shader Shader ---@param locIndex integer ---@param mat Matrix function SetShaderValueMatrix(shader, locIndex, mat) C.SetShaderValueMatrix(shader, locIndex, mat) end ---Set shader uniform value and bind the texture (sampler2d) ---@param shader Shader ---@param locIndex integer ---@param texture Texture2D function SetShaderValueTexture(shader, locIndex, texture) C.SetShaderValueTexture(shader, locIndex, texture) end ---Unload shader from GPU memory (VRAM) ---@param shader Shader function UnloadShader(shader) C.UnloadShader(shader) end ---Get a ray trace from screen position (i.e mouse) ---@param position Vector2 ---@param camera Camera ---@return Ray function GetScreenToWorldRay(position, camera) return C.GetScreenToWorldRay(position, camera) end ---Get a ray trace from screen position (i.e mouse) in a viewport ---@param position Vector2 ---@param camera Camera ---@param width integer ---@param height integer ---@return Ray function GetScreenToWorldRayEx(position, camera, width, height) return C.GetScreenToWorldRayEx(position, camera, width, height) end ---Get screen space position for a 3d world space position ---@param position Vector3 ---@param camera Camera ---@return Vector2 function GetWorldToScreen(position, camera) return C.GetWorldToScreen(position, camera) end ---Get sized screen space position for a 3d world space position ---@param position Vector3 ---@param camera Camera ---@param width integer ---@param height integer ---@return Vector2 function GetWorldToScreenEx(position, camera, width, height) return C.GetWorldToScreenEx(position, camera, width, height) end ---Get screen space position for a 2d camera world space position ---@param position Vector2 ---@param camera Camera2D ---@return Vector2 function GetWorldToScreen2D(position, camera) return C.GetWorldToScreen2D(position, camera) end ---Get world space position for a 2d camera screen space position ---@param position Vector2 ---@param camera Camera2D ---@return Vector2 function GetScreenToWorld2D(position, camera) return C.GetScreenToWorld2D(position, camera) end ---Get camera transform matrix (view matrix) ---@param camera Camera ---@return Matrix function GetCameraMatrix(camera) return C.GetCameraMatrix(camera) end ---Get camera 2d transform matrix ---@param camera Camera2D ---@return Matrix function GetCameraMatrix2D(camera) return C.GetCameraMatrix2D(camera) end ---Set target FPS (maximum) ---@param fps integer function SetTargetFPS(fps) C.SetTargetFPS(fps) end ---Get time in seconds for last frame drawn (delta time) ---@return number function GetFrameTime() return C.GetFrameTime() end ---Get elapsed time in seconds since InitWindow() ---@return number function GetTime() return C.GetTime() end ---Get current FPS ---@return integer function GetFPS() return C.GetFPS() end ---Swap back buffer with front buffer (screen drawing) function SwapScreenBuffer() C.SwapScreenBuffer() end ---Register all input events function PollInputEvents() C.PollInputEvents() end ---Wait for some time (halt program execution) ---@param seconds number function WaitTime(seconds) C.WaitTime(seconds) end ---Set the seed for the random number generator ---@param seed integer function SetRandomSeed(seed) C.SetRandomSeed(seed) end ---Get a random value between min and max (both included) ---@param min integer ---@param max integer ---@return integer function GetRandomValue(min, max) return C.GetRandomValue(min, max) end ---Load random values sequence, no values repeated ---@param count integer ---@param min integer ---@param max integer ---@return ffi.cdata* function LoadRandomSequence(count, min, max) return C.LoadRandomSequence(count, min, max) end ---Unload random values sequence ---@param sequence ffi.cdata* function UnloadRandomSequence(sequence) C.UnloadRandomSequence(sequence) end ---Takes a screenshot of current screen (filename extension defines format) ---@param fileName string function TakeScreenshot(fileName) C.TakeScreenshot(fileName) end ---Set init configuration flags (view FLAGS) ---@param flags ConfigFlags function SetConfigFlags(flags) C.SetConfigFlags(flags) end ---Open URL with default system browser (if available) ---@param url string function OpenURL(url) C.OpenURL(url) end ---Set the current threshold (minimum) log level ---@param logLevel TraceLogLevel function SetTraceLogLevel(logLevel) C.SetTraceLogLevel(logLevel) end ---Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...) ---@param level TraceLogLevel ---@param fmt string ---@param ... any ---@return nil function TraceLog(level, fmt, ...) if select("#", ...) == 0 then C.TraceLog(level, "%s", fmt) else C.TraceLog(level, "%s", string_format(fmt, ...)) end end ---Set custom trace log ---@param callback ffi.cdata* function SetTraceLogCallback(callback) C.SetTraceLogCallback(callback) end ---Internal memory allocator ---@param size integer ---@return ffi.cdata* function MemAlloc(size) return C.MemAlloc(size) end ---Internal memory reallocator ---@param ptr ffi.cdata* ---@param size integer ---@return ffi.cdata* function MemRealloc(ptr, size) return C.MemRealloc(ptr, size) end ---Internal memory free ---@param ptr ffi.cdata* function MemFree(ptr) C.MemFree(ptr) end ---Load file data as byte array (read) ---@param fileName string ---@param dataSize ffi.cdata* ---@return ffi.cdata* function LoadFileData(fileName, dataSize) return C.LoadFileData(fileName, dataSize) end ---Unload file data allocated by LoadFileData() ---@param data ffi.cdata* function UnloadFileData(data) C.UnloadFileData(data) end ---Save data to file from byte array (write), returns true on success ---@param fileName string ---@param data string|ffi.cdata* ---@param dataSize integer ---@return boolean function SaveFileData(fileName, data, dataSize) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end return C.SaveFileData(fileName, _a2, dataSize) end ---Export data to code (.h), returns true on success ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@param fileName string ---@return boolean function ExportDataAsCode(data, dataSize, fileName) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end return C.ExportDataAsCode(_a1, dataSize, fileName) end ---Load text data from file (read), returns a '\0' terminated string ---@param fileName string ---@return string|nil function LoadFileText(fileName) local _r = C.LoadFileText(fileName) if _r == nil then return nil end return ffi.string(_r) end ---Unload file text data allocated by LoadFileText() ---@param text ffi.cdata* function UnloadFileText(text) C.UnloadFileText(text) end ---Save text data to file (write), string must be '\0' terminated, returns true on success ---@param fileName string ---@param text string ---@return boolean function SaveFileText(fileName, text) return C.SaveFileText(fileName, text) end ---Set custom file binary data loader ---@param callback ffi.cdata* function SetLoadFileDataCallback(callback) C.SetLoadFileDataCallback(callback) end ---Set custom file binary data saver ---@param callback ffi.cdata* function SetSaveFileDataCallback(callback) C.SetSaveFileDataCallback(callback) end ---Set custom file text data loader ---@param callback ffi.cdata* function SetLoadFileTextCallback(callback) C.SetLoadFileTextCallback(callback) end ---Set custom file text data saver ---@param callback ffi.cdata* function SetSaveFileTextCallback(callback) C.SetSaveFileTextCallback(callback) end ---Rename file (if exists), returns 0 on success ---@param fileName string ---@param fileRename string ---@return integer function FileRename(fileName, fileRename) return C.FileRename(fileName, fileRename) end ---Remove file (if exists), returns 0 on success ---@param fileName string ---@return integer function FileRemove(fileName) return C.FileRemove(fileName) end ---Copy file from one path to another, dstPath created if it doesn't exist, returns 0 on success ---@param srcPath string ---@param dstPath string ---@return integer function FileCopy(srcPath, dstPath) return C.FileCopy(srcPath, dstPath) end ---Move file from one directory to another, dstPath created if it doesn't exist, returns 0 on success ---@param srcPath string ---@param dstPath string ---@return integer function FileMove(srcPath, dstPath) return C.FileMove(srcPath, dstPath) end ---Replace text in an existing file, returns 0 on success ---@param fileName string ---@param search string ---@param replacement string ---@return integer function FileTextReplace(fileName, search, replacement) return C.FileTextReplace(fileName, search, replacement) end ---Find text in existing file, returns -1 if index not found or index otherwise ---@param fileName string ---@param search string ---@return integer function FileTextFindIndex(fileName, search) return C.FileTextFindIndex(fileName, search) end ---Check if file exists ---@param fileName string ---@return boolean function FileExists(fileName) return C.FileExists(fileName) end ---Check if directory path exists ---@param dirPath string ---@return boolean function DirectoryExists(dirPath) return C.DirectoryExists(dirPath) end ---Check file extension (recommended include point: .png, .wav) ---@param fileName string ---@param ext string ---@return boolean function IsFileExtension(fileName, ext) return C.IsFileExtension(fileName, ext) end ---Check if file path (file or directory) is hidden by OS ---@param filePath string ---@return boolean function IsFileHidden(filePath) return C.IsFileHidden(filePath) end ---Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h) ---@param fileName string ---@return integer function GetFileLength(fileName) return C.GetFileLength(fileName) end ---Get file modification time (last write time) ---@param fileName string ---@return integer function GetFileModTime(fileName) return C.GetFileModTime(fileName) end ---Get pointer to extension for a filename string (includes dot: '.png') ---@param fileName string ---@return string function GetFileExtension(fileName) local _r = C.GetFileExtension(fileName) return _r ~= nil and ffi.string(_r) or "" end ---Get pointer to filename for a path string ---@param filePath string ---@return string function GetFileName(filePath) local _r = C.GetFileName(filePath) return _r ~= nil and ffi.string(_r) or "" end ---Get filename string without extension (uses static string) ---@param filePath string ---@return string function GetFileNameWithoutExt(filePath) local _r = C.GetFileNameWithoutExt(filePath) return _r ~= nil and ffi.string(_r) or "" end ---Get full path for a provided fileName with path (uses static string) ---@param filePath string ---@return string function GetDirectoryPath(filePath) local _r = C.GetDirectoryPath(filePath) return _r ~= nil and ffi.string(_r) or "" end ---Get previous directory path for a provided path (uses static string) ---@param dirPath string ---@return string function GetPrevDirectoryPath(dirPath) local _r = C.GetPrevDirectoryPath(dirPath) return _r ~= nil and ffi.string(_r) or "" end ---Get current working directory (uses static string) ---@return string function GetWorkingDirectory() local _r = C.GetWorkingDirectory() return _r ~= nil and ffi.string(_r) or "" end ---Get the directory of the running application (uses static string) ---@return string function GetApplicationDirectory() local _r = C.GetApplicationDirectory() return _r ~= nil and ffi.string(_r) or "" end ---Create directories (including full path requested), returns 0 on success ---@param dirPath string ---@return integer function MakeDirectory(dirPath) return C.MakeDirectory(dirPath) end ---Change working directory, returns 0 on success ---@param dirPath string ---@return integer function ChangeDirectory(dirPath) return C.ChangeDirectory(dirPath) end ---Check if provided path points to a file ---@param path string ---@return boolean function IsPathFile(path) return C.IsPathFile(path) end ---Check if provided path points to a directory ---@param path string ---@return boolean function IsPathDirectory(path) return C.IsPathDirectory(path) end ---Check if provided path is an absolute path ---@param path string ---@return boolean function IsPathAbsolute(path) return C.IsPathAbsolute(path) end ---Check if fileName is valid for the platform/OS ---@param fileName string ---@return boolean function IsFileNameValid(fileName) return C.IsFileNameValid(fileName) end ---Load directory filepaths, files and directories, no subdirs scan ---@param dirPath string ---@return FilePathList function LoadDirectoryFiles(dirPath) return C.LoadDirectoryFiles(dirPath) end ---Load directory filepaths with extension filtering and subdir scan; some filters available: '*.*','FILES*','DIRS*' ---@param basePath string ---@param filter string ---@param scanSubdirs boolean ---@return FilePathList function LoadDirectoryFilesEx(basePath, filter, scanSubdirs) return C.LoadDirectoryFilesEx(basePath, filter, scanSubdirs) end ---Unload filepaths ---@param files FilePathList function UnloadDirectoryFiles(files) C.UnloadDirectoryFiles(files) end ---Check if file has been dropped into window ---@return boolean function IsFileDropped() return C.IsFileDropped() end ---Load dropped filepaths ---@return FilePathList function LoadDroppedFiles() return C.LoadDroppedFiles() end ---Unload dropped filepaths ---@param files FilePathList function UnloadDroppedFiles(files) C.UnloadDroppedFiles(files) end ---Get the file count in a directory ---@param dirPath string ---@return integer function GetDirectoryFileCount(dirPath) return C.GetDirectoryFileCount(dirPath) end ---Get the file count in a directory with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result ---@param basePath string ---@param filter string ---@param scanSubdirs boolean ---@return integer function GetDirectoryFileCountEx(basePath, filter, scanSubdirs) return C.GetDirectoryFileCountEx(basePath, filter, scanSubdirs) end ---Compress data (DEFLATE algorithm), memory must be MemFree() ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@param compDataSize ffi.cdata* ---@return ffi.cdata* function CompressData(data, dataSize, compDataSize) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end return C.CompressData(_a1, dataSize, compDataSize) end ---Decompress data (DEFLATE algorithm), memory must be MemFree() ---@param compData string|integer[]|ffi.cdata* ---@param compDataSize integer ---@param dataSize ffi.cdata* ---@return ffi.cdata* function DecompressData(compData, compDataSize, dataSize) local _a1 if type(compData) == "string" then _a1 = ffi.cast("const unsigned char *", compData) elseif type(compData) == "table" then _a1 = to_array("unsigned char", compData) else _a1 = compData end return C.DecompressData(_a1, compDataSize, dataSize) end ---Encode data to Base64 string (includes NULL terminator), memory must be MemFree() ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@param outputSize ffi.cdata* ---@return string|nil function EncodeDataBase64(data, dataSize, outputSize) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end local _r = C.EncodeDataBase64(_a1, dataSize, outputSize) if _r == nil then return nil end return ffi.string(_r) end ---Decode Base64 string (expected NULL terminated), memory must be MemFree() ---@param text string ---@param outputSize ffi.cdata* ---@return ffi.cdata* function DecodeDataBase64(text, outputSize) return C.DecodeDataBase64(text, outputSize) end ---Compute CRC32 hash code ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@return integer function ComputeCRC32(data, dataSize) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end return C.ComputeCRC32(_a1, dataSize) end ---Compute MD5 hash code, returns static int[4] (16 bytes) ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@return ffi.cdata* function ComputeMD5(data, dataSize) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end return C.ComputeMD5(_a1, dataSize) end ---Compute SHA1 hash code, returns static int[5] (20 bytes) ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@return ffi.cdata* function ComputeSHA1(data, dataSize) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end return C.ComputeSHA1(_a1, dataSize) end ---Compute SHA256 hash code, returns static int[8] (32 bytes) ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@return ffi.cdata* function ComputeSHA256(data, dataSize) local _a1 if type(data) == "string" then _a1 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a1 = to_array("unsigned char", data) else _a1 = data end return C.ComputeSHA256(_a1, dataSize) end ---Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS ---@param fileName string ---@return AutomationEventList function LoadAutomationEventList(fileName) return C.LoadAutomationEventList(fileName) end ---Unload automation events list from file ---@param list AutomationEventList function UnloadAutomationEventList(list) C.UnloadAutomationEventList(list) end ---Export automation events list as text file ---@param list AutomationEventList ---@param fileName string ---@return boolean function ExportAutomationEventList(list, fileName) return C.ExportAutomationEventList(list, fileName) end ---Set automation event list to record to ---@param list ffi.cdata* function SetAutomationEventList(list) C.SetAutomationEventList(list) end ---Set automation event internal base frame to start recording ---@param frame integer function SetAutomationEventBaseFrame(frame) C.SetAutomationEventBaseFrame(frame) end ---Start recording automation events (AutomationEventList must be set) function StartAutomationEventRecording() C.StartAutomationEventRecording() end ---Stop recording automation events function StopAutomationEventRecording() C.StopAutomationEventRecording() end ---Play a recorded automation event ---@param event AutomationEvent function PlayAutomationEvent(event) C.PlayAutomationEvent(event) end ---Check if key has been pressed once ---@param key KeyboardKey ---@return boolean function IsKeyPressed(key) return C.IsKeyPressed(key) end ---Check if key has been pressed again ---@param key KeyboardKey ---@return boolean function IsKeyPressedRepeat(key) return C.IsKeyPressedRepeat(key) end ---Check if key is being pressed ---@param key KeyboardKey ---@return boolean function IsKeyDown(key) return C.IsKeyDown(key) end ---Check if key has been released once ---@param key KeyboardKey ---@return boolean function IsKeyReleased(key) return C.IsKeyReleased(key) end ---Check if key is NOT being pressed ---@param key KeyboardKey ---@return boolean function IsKeyUp(key) return C.IsKeyUp(key) end ---Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty ---@return KeyboardKey function GetKeyPressed() return C.GetKeyPressed() end ---Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty ---@return integer function GetCharPressed() return C.GetCharPressed() end ---Get name of a QWERTY key on the current keyboard layout (eg returns string 'q' for KEY_A on an AZERTY keyboard) ---@param key KeyboardKey ---@return string function GetKeyName(key) local _r = C.GetKeyName(key) return _r ~= nil and ffi.string(_r) or "" end ---Set a custom key to exit program (default is ESC) ---@param key KeyboardKey function SetExitKey(key) C.SetExitKey(key) end ---Check if gamepad is available ---@param gamepad integer ---@return boolean function IsGamepadAvailable(gamepad) return C.IsGamepadAvailable(gamepad) end ---Get gamepad internal name id ---@param gamepad integer ---@return string function GetGamepadName(gamepad) local _r = C.GetGamepadName(gamepad) return _r ~= nil and ffi.string(_r) or "" end ---Check if gamepad button has been pressed once ---@param gamepad integer ---@param button GamepadButton ---@return boolean function IsGamepadButtonPressed(gamepad, button) return C.IsGamepadButtonPressed(gamepad, button) end ---Check if gamepad button is being pressed ---@param gamepad integer ---@param button GamepadButton ---@return boolean function IsGamepadButtonDown(gamepad, button) return C.IsGamepadButtonDown(gamepad, button) end ---Check if gamepad button has been released once ---@param gamepad integer ---@param button GamepadButton ---@return boolean function IsGamepadButtonReleased(gamepad, button) return C.IsGamepadButtonReleased(gamepad, button) end ---Check if gamepad button is NOT being pressed ---@param gamepad integer ---@param button GamepadButton ---@return boolean function IsGamepadButtonUp(gamepad, button) return C.IsGamepadButtonUp(gamepad, button) end ---Get the last gamepad button pressed ---@return GamepadButton function GetGamepadButtonPressed() return C.GetGamepadButtonPressed() end ---Get axis count for a gamepad ---@param gamepad integer ---@return integer function GetGamepadAxisCount(gamepad) return C.GetGamepadAxisCount(gamepad) end ---Get movement value for a gamepad axis ---@param gamepad integer ---@param axis GamepadAxis ---@return number function GetGamepadAxisMovement(gamepad, axis) return C.GetGamepadAxisMovement(gamepad, axis) end ---Set internal gamepad mappings (SDL_GameControllerDB) ---@param mappings string ---@return integer function SetGamepadMappings(mappings) return C.SetGamepadMappings(mappings) end ---Set gamepad vibration for both motors (duration in seconds) ---@param gamepad integer ---@param leftMotor number ---@param rightMotor number ---@param duration number function SetGamepadVibration(gamepad, leftMotor, rightMotor, duration) C.SetGamepadVibration(gamepad, leftMotor, rightMotor, duration) end ---Check if mouse button has been pressed once ---@param button MouseButton ---@return boolean function IsMouseButtonPressed(button) return C.IsMouseButtonPressed(button) end ---Check if mouse button is being pressed ---@param button MouseButton ---@return boolean function IsMouseButtonDown(button) return C.IsMouseButtonDown(button) end ---Check if mouse button has been released once ---@param button MouseButton ---@return boolean function IsMouseButtonReleased(button) return C.IsMouseButtonReleased(button) end ---Check if mouse button is NOT being pressed ---@param button MouseButton ---@return boolean function IsMouseButtonUp(button) return C.IsMouseButtonUp(button) end ---Get mouse position X ---@return integer function GetMouseX() return C.GetMouseX() end ---Get mouse position Y ---@return integer function GetMouseY() return C.GetMouseY() end ---Get mouse position XY ---@return Vector2 function GetMousePosition() return C.GetMousePosition() end ---Get mouse delta between frames ---@return Vector2 function GetMouseDelta() return C.GetMouseDelta() end ---Set mouse position XY ---@param x integer ---@param y integer function SetMousePosition(x, y) C.SetMousePosition(x, y) end ---Set mouse offset ---@param offsetX integer ---@param offsetY integer function SetMouseOffset(offsetX, offsetY) C.SetMouseOffset(offsetX, offsetY) end ---Set mouse scaling ---@param scaleX number ---@param scaleY number function SetMouseScale(scaleX, scaleY) C.SetMouseScale(scaleX, scaleY) end ---Get mouse wheel movement for X or Y, whichever is larger ---@return number function GetMouseWheelMove() return C.GetMouseWheelMove() end ---Get mouse wheel movement for both X and Y ---@return Vector2 function GetMouseWheelMoveV() return C.GetMouseWheelMoveV() end ---Set mouse cursor ---@param cursor MouseCursor function SetMouseCursor(cursor) C.SetMouseCursor(cursor) end ---Get touch position X for touch point 0 (relative to screen size) ---@return integer function GetTouchX() return C.GetTouchX() end ---Get touch position Y for touch point 0 (relative to screen size) ---@return integer function GetTouchY() return C.GetTouchY() end ---Get touch position XY for a touch point index (relative to screen size) ---@param index integer ---@return Vector2 function GetTouchPosition(index) return C.GetTouchPosition(index) end ---Get touch point identifier for provided index ---@param index integer ---@return integer function GetTouchPointId(index) return C.GetTouchPointId(index) end ---Get number of touch points ---@return integer function GetTouchPointCount() return C.GetTouchPointCount() end ---Enable a set of gestures using flags ---@param flags Gesture function SetGesturesEnabled(flags) C.SetGesturesEnabled(flags) end ---Check if gesture has been detected ---@param gesture Gesture ---@return boolean function IsGestureDetected(gesture) return C.IsGestureDetected(gesture) end ---Get latest detected gesture ---@return Gesture function GetGestureDetected() return C.GetGestureDetected() end ---Get gesture hold time in seconds ---@return number function GetGestureHoldDuration() return C.GetGestureHoldDuration() end ---Get gesture drag vector ---@return Vector2 function GetGestureDragVector() return C.GetGestureDragVector() end ---Get gesture drag angle ---@return number function GetGestureDragAngle() return C.GetGestureDragAngle() end ---Get gesture pinch delta ---@return Vector2 function GetGesturePinchVector() return C.GetGesturePinchVector() end ---Get gesture pinch angle ---@return number function GetGesturePinchAngle() return C.GetGesturePinchAngle() end ---Update camera position for selected mode ---@param camera ffi.cdata* ---@param mode CameraMode function UpdateCamera(camera, mode) C.UpdateCamera(camera, mode) end ---Update camera movement/rotation ---@param camera ffi.cdata* ---@param movement Vector3 ---@param rotation Vector3 ---@param zoom number function UpdateCameraPro(camera, movement, rotation, zoom) C.UpdateCameraPro(camera, movement, rotation, zoom) end ---Set texture and rectangle to be used on shapes drawing ---@param texture Texture2D ---@param rec Rectangle function SetShapesTexture(texture, rec) C.SetShapesTexture(texture, rec) end ---Get texture that is used for shapes drawing ---@return Texture2D function GetShapesTexture() return C.GetShapesTexture() end ---Get texture source rectangle that is used for shapes drawing ---@return Rectangle function GetShapesTextureRectangle() return C.GetShapesTextureRectangle() end ---Draw a pixel using geometry [Can be slow, use with care] ---@param posX integer ---@param posY integer ---@param color Color function DrawPixel(posX, posY, color) C.DrawPixel(posX, posY, color) end ---Draw a pixel using geometry (Vector version) [Can be slow, use with care] ---@param position Vector2 ---@param color Color function DrawPixelV(position, color) C.DrawPixelV(position, color) end ---Draw a line ---@param startPosX integer ---@param startPosY integer ---@param endPosX integer ---@param endPosY integer ---@param color Color function DrawLine(startPosX, startPosY, endPosX, endPosY, color) C.DrawLine(startPosX, startPosY, endPosX, endPosY, color) end ---Draw a line (using gl lines) ---@param startPos Vector2 ---@param endPos Vector2 ---@param color Color function DrawLineV(startPos, endPos, color) C.DrawLineV(startPos, endPos, color) end ---Draw a line (using triangles/quads) ---@param startPos Vector2 ---@param endPos Vector2 ---@param thick number ---@param color Color function DrawLineEx(startPos, endPos, thick, color) C.DrawLineEx(startPos, endPos, thick, color) end ---Draw lines sequence (using gl lines) ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param color Color function DrawLineStrip(points, pointCount, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawLineStrip(_a1, pointCount, color) end ---Draw line segment cubic-bezier in-out interpolation ---@param startPos Vector2 ---@param endPos Vector2 ---@param thick number ---@param color Color function DrawLineBezier(startPos, endPos, thick, color) C.DrawLineBezier(startPos, endPos, thick, color) end ---Draw a dashed line ---@param startPos Vector2 ---@param endPos Vector2 ---@param dashSize integer ---@param spaceSize integer ---@param color Color function DrawLineDashed(startPos, endPos, dashSize, spaceSize, color) C.DrawLineDashed(startPos, endPos, dashSize, spaceSize, color) end ---Draw a color-filled triangle, counter-clockwise vertex order ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param color Color function DrawTriangle(v1, v2, v3, color) C.DrawTriangle(v1, v2, v3, color) end ---Draw triangle with interpolated colors, counter-clockwise vertex/color order ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param c1 Color ---@param c2 Color ---@param c3 Color function DrawTriangleGradient(v1, v2, v3, c1, c2, c3) C.DrawTriangleGradient(v1, v2, v3, c1, c2, c3) end ---Draw triangle outline, counter-clockwise vertex order ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param color Color function DrawTriangleLines(v1, v2, v3, color) C.DrawTriangleLines(v1, v2, v3, color) end ---Draw triangle outline with line thickness, counter-clockwise vertex order ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param thick number ---@param color Color function DrawTriangleLinesEx(v1, v2, v3, thick, color) C.DrawTriangleLinesEx(v1, v2, v3, thick, color) end ---Draw a triangle fan defined by points (first vertex is the center) ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param color Color function DrawTriangleFan(points, pointCount, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawTriangleFan(_a1, pointCount, color) end ---Draw a triangle strip defined by points ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param color Color function DrawTriangleStrip(points, pointCount, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawTriangleStrip(_a1, pointCount, color) end ---Draw a color-filled rectangle ---@param posX integer ---@param posY integer ---@param width integer ---@param height integer ---@param color Color function DrawRectangle(posX, posY, width, height, color) C.DrawRectangle(posX, posY, width, height, color) end ---Draw a color-filled rectangle (Vector version) ---@param position Vector2 ---@param size Vector2 ---@param color Color function DrawRectangleV(position, size, color) C.DrawRectangleV(position, size, color) end ---Draw a color-filled rectangle ---@param rec Rectangle ---@param color Color function DrawRectangleRec(rec, color) C.DrawRectangleRec(rec, color) end ---Draw a color-filled rectangle with pro parameters ---@param rec Rectangle ---@param origin Vector2 ---@param rotation number ---@param color Color function DrawRectanglePro(rec, origin, rotation, color) C.DrawRectanglePro(rec, origin, rotation, color) end ---Draw a vertical-gradient-filled rectangle ---@param posX integer ---@param posY integer ---@param width integer ---@param height integer ---@param top Color ---@param bottom Color function DrawRectangleGradientV(posX, posY, width, height, top, bottom) C.DrawRectangleGradientV(posX, posY, width, height, top, bottom) end ---Draw a horizontal-gradient-filled rectangle ---@param posX integer ---@param posY integer ---@param width integer ---@param height integer ---@param left Color ---@param right Color function DrawRectangleGradientH(posX, posY, width, height, left, right) C.DrawRectangleGradientH(posX, posY, width, height, left, right) end ---Draw a gradient-filled rectangle with custom vertex colors, counter-clockwise color order ---@param rec Rectangle ---@param col1 Color ---@param col2 Color ---@param col3 Color ---@param col4 Color function DrawRectangleGradientEx(rec, col1, col2, col3, col4) C.DrawRectangleGradientEx(rec, col1, col2, col3, col4) end ---Draw rectangle outline ---@param posX integer ---@param posY integer ---@param width integer ---@param height integer ---@param color Color function DrawRectangleLines(posX, posY, width, height, color) C.DrawRectangleLines(posX, posY, width, height, color) end ---Draw rectangle outline with line thickness ---@param rec Rectangle ---@param thick number ---@param color Color function DrawRectangleLinesEx(rec, thick, color) C.DrawRectangleLinesEx(rec, thick, color) end ---Draw rectangle with rounded edges ---@param rec Rectangle ---@param roundness number ---@param segments integer ---@param color Color function DrawRectangleRounded(rec, roundness, segments, color) C.DrawRectangleRounded(rec, roundness, segments, color) end ---Draw rectangle lines with rounded edges ---@param rec Rectangle ---@param roundness number ---@param segments integer ---@param color Color function DrawRectangleRoundedLines(rec, roundness, segments, color) C.DrawRectangleRoundedLines(rec, roundness, segments, color) end ---Draw rectangle lines with rounded edges outline and line thickness ---@param rec Rectangle ---@param roundness number ---@param segments integer ---@param thick number ---@param color Color function DrawRectangleRoundedLinesEx(rec, roundness, segments, thick, color) C.DrawRectangleRoundedLinesEx(rec, roundness, segments, thick, color) end ---Draw a polygon of n sides ---@param center Vector2 ---@param sides integer ---@param radius number ---@param rotation number ---@param color Color function DrawPoly(center, sides, radius, rotation, color) C.DrawPoly(center, sides, radius, rotation, color) end ---Draw a polygon outline of n sides ---@param center Vector2 ---@param sides integer ---@param radius number ---@param rotation number ---@param color Color function DrawPolyLines(center, sides, radius, rotation, color) C.DrawPolyLines(center, sides, radius, rotation, color) end ---Draw a polygon outline of n sides with line thickness ---@param center Vector2 ---@param sides integer ---@param radius number ---@param rotation number ---@param thick number ---@param color Color function DrawPolyLinesEx(center, sides, radius, rotation, thick, color) C.DrawPolyLinesEx(center, sides, radius, rotation, thick, color) end ---Draw a color-filled circle ---@param centerX integer ---@param centerY integer ---@param radius number ---@param color Color function DrawCircle(centerX, centerY, radius, color) C.DrawCircle(centerX, centerY, radius, color) end ---Draw a color-filled circle (Vector version) ---@param center Vector2 ---@param radius number ---@param color Color function DrawCircleV(center, radius, color) C.DrawCircleV(center, radius, color) end ---Draw a gradient-filled circle ---@param center Vector2 ---@param radius number ---@param inner Color ---@param outer Color function DrawCircleGradient(center, radius, inner, outer) C.DrawCircleGradient(center, radius, inner, outer) end ---Draw a piece of a circle ---@param center Vector2 ---@param radius number ---@param startAngle number ---@param endAngle number ---@param segments integer ---@param color Color function DrawCircleSector(center, radius, startAngle, endAngle, segments, color) C.DrawCircleSector(center, radius, startAngle, endAngle, segments, color) end ---Draw circle sector outline ---@param center Vector2 ---@param radius number ---@param startAngle number ---@param endAngle number ---@param segments integer ---@param color Color function DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color) C.DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color) end ---Draw circle sector outline with thickness ---@param center Vector2 ---@param radius number ---@param startAngle number ---@param endAngle number ---@param segments integer ---@param thick number ---@param color Color function DrawCircleSectorLinesEx(center, radius, startAngle, endAngle, segments, thick, color) C.DrawCircleSectorLinesEx(center, radius, startAngle, endAngle, segments, thick, color) end ---Draw circle outline ---@param centerX integer ---@param centerY integer ---@param radius number ---@param color Color function DrawCircleLines(centerX, centerY, radius, color) C.DrawCircleLines(centerX, centerY, radius, color) end ---Draw circle outline (Vector version) ---@param center Vector2 ---@param radius number ---@param color Color function DrawCircleLinesV(center, radius, color) C.DrawCircleLinesV(center, radius, color) end ---Draw circle outline with line thickness ---@param center Vector2 ---@param radius number ---@param thick number ---@param color Color function DrawCircleLinesEx(center, radius, thick, color) C.DrawCircleLinesEx(center, radius, thick, color) end ---Draw ellipse ---@param centerX integer ---@param centerY integer ---@param radiusH number ---@param radiusV number ---@param color Color function DrawEllipse(centerX, centerY, radiusH, radiusV, color) C.DrawEllipse(centerX, centerY, radiusH, radiusV, color) end ---Draw ellipse (Vector version) ---@param center Vector2 ---@param radiusH number ---@param radiusV number ---@param color Color function DrawEllipseV(center, radiusH, radiusV, color) C.DrawEllipseV(center, radiusH, radiusV, color) end ---Draw ellipse outline ---@param centerX integer ---@param centerY integer ---@param radiusH number ---@param radiusV number ---@param color Color function DrawEllipseLines(centerX, centerY, radiusH, radiusV, color) C.DrawEllipseLines(centerX, centerY, radiusH, radiusV, color) end ---Draw ellipse outline (Vector version) ---@param center Vector2 ---@param radiusH number ---@param radiusV number ---@param color Color function DrawEllipseLinesV(center, radiusH, radiusV, color) C.DrawEllipseLinesV(center, radiusH, radiusV, color) end ---Draw ellipse outline with line thickness ---@param center Vector2 ---@param radiusH number ---@param radiusV number ---@param thick number ---@param color Color function DrawEllipseLinesEx(center, radiusH, radiusV, thick, color) C.DrawEllipseLinesEx(center, radiusH, radiusV, thick, color) end ---Draw ring ---@param center Vector2 ---@param innerRadius number ---@param outerRadius number ---@param startAngle number ---@param endAngle number ---@param segments integer ---@param color Color function DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color) C.DrawRing(center, innerRadius, outerRadius, startAngle, endAngle, segments, color) end ---Draw ring outline ---@param center Vector2 ---@param innerRadius number ---@param outerRadius number ---@param startAngle number ---@param endAngle number ---@param segments integer ---@param color Color function DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color) C.DrawRingLines(center, innerRadius, outerRadius, startAngle, endAngle, segments, color) end ---Draw ring outline with line thickness ---@param center Vector2 ---@param innerRadius number ---@param outerRadius number ---@param startAngle number ---@param endAngle number ---@param segments integer ---@param thick number ---@param color Color function DrawRingLinesEx(center, innerRadius, outerRadius, startAngle, endAngle, segments, thick, color) C.DrawRingLinesEx(center, innerRadius, outerRadius, startAngle, endAngle, segments, thick, color) end ---Draw spline: Linear, minimum 2 points ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param thick number ---@param color Color function DrawSplineLinear(points, pointCount, thick, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawSplineLinear(_a1, pointCount, thick, color) end ---Draw spline: B-Spline, minimum 4 points ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param thick number ---@param color Color function DrawSplineBasis(points, pointCount, thick, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawSplineBasis(_a1, pointCount, thick, color) end ---Draw spline: Catmull-Rom, minimum 4 points ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param thick number ---@param color Color function DrawSplineCatmullRom(points, pointCount, thick, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawSplineCatmullRom(_a1, pointCount, thick, color) end ---Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...] ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param thick number ---@param color Color function DrawSplineBezierQuadratic(points, pointCount, thick, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawSplineBezierQuadratic(_a1, pointCount, thick, color) end ---Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...] ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param thick number ---@param color Color function DrawSplineBezierCubic(points, pointCount, thick, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector2", points) else _a1 = points end C.DrawSplineBezierCubic(_a1, pointCount, thick, color) end ---Draw spline segment: Linear, 2 points ---@param p1 Vector2 ---@param p2 Vector2 ---@param thick number ---@param color Color function DrawSplineSegmentLinear(p1, p2, thick, color) C.DrawSplineSegmentLinear(p1, p2, thick, color) end ---Draw spline segment: B-Spline, 4 points ---@param p1 Vector2 ---@param p2 Vector2 ---@param p3 Vector2 ---@param p4 Vector2 ---@param thick number ---@param color Color function DrawSplineSegmentBasis(p1, p2, p3, p4, thick, color) C.DrawSplineSegmentBasis(p1, p2, p3, p4, thick, color) end ---Draw spline segment: Catmull-Rom, 4 points ---@param p1 Vector2 ---@param p2 Vector2 ---@param p3 Vector2 ---@param p4 Vector2 ---@param thick number ---@param color Color function DrawSplineSegmentCatmullRom(p1, p2, p3, p4, thick, color) C.DrawSplineSegmentCatmullRom(p1, p2, p3, p4, thick, color) end ---Draw spline segment: Quadratic Bezier, 2 points, 1 control point ---@param p1 Vector2 ---@param c2 Vector2 ---@param p3 Vector2 ---@param thick number ---@param color Color function DrawSplineSegmentBezierQuadratic(p1, c2, p3, thick, color) C.DrawSplineSegmentBezierQuadratic(p1, c2, p3, thick, color) end ---Draw spline segment: Cubic Bezier, 2 points, 2 control points ---@param p1 Vector2 ---@param c2 Vector2 ---@param c3 Vector2 ---@param p4 Vector2 ---@param thick number ---@param color Color function DrawSplineSegmentBezierCubic(p1, c2, c3, p4, thick, color) C.DrawSplineSegmentBezierCubic(p1, c2, c3, p4, thick, color) end ---Get (evaluate) spline point: Linear ---@param startPos Vector2 ---@param endPos Vector2 ---@param t number ---@return Vector2 function GetSplinePointLinear(startPos, endPos, t) return C.GetSplinePointLinear(startPos, endPos, t) end ---Get (evaluate) spline point: B-Spline ---@param p1 Vector2 ---@param p2 Vector2 ---@param p3 Vector2 ---@param p4 Vector2 ---@param t number ---@return Vector2 function GetSplinePointBasis(p1, p2, p3, p4, t) return C.GetSplinePointBasis(p1, p2, p3, p4, t) end ---Get (evaluate) spline point: Catmull-Rom ---@param p1 Vector2 ---@param p2 Vector2 ---@param p3 Vector2 ---@param p4 Vector2 ---@param t number ---@return Vector2 function GetSplinePointCatmullRom(p1, p2, p3, p4, t) return C.GetSplinePointCatmullRom(p1, p2, p3, p4, t) end ---Get (evaluate) spline point: Quadratic Bezier ---@param p1 Vector2 ---@param c2 Vector2 ---@param p3 Vector2 ---@param t number ---@return Vector2 function GetSplinePointBezierQuadratic(p1, c2, p3, t) return C.GetSplinePointBezierQuadratic(p1, c2, p3, t) end ---Get (evaluate) spline point: Cubic Bezier ---@param p1 Vector2 ---@param c2 Vector2 ---@param c3 Vector2 ---@param p4 Vector2 ---@param t number ---@return Vector2 function GetSplinePointBezierCubic(p1, c2, c3, p4, t) return C.GetSplinePointBezierCubic(p1, c2, c3, p4, t) end ---Check collision between two rectangles ---@param rec1 Rectangle ---@param rec2 Rectangle ---@return boolean function CheckCollisionRecs(rec1, rec2) return C.CheckCollisionRecs(rec1, rec2) end ---Check collision between two circles ---@param center1 Vector2 ---@param radius1 number ---@param center2 Vector2 ---@param radius2 number ---@return boolean function CheckCollisionCircles(center1, radius1, center2, radius2) return C.CheckCollisionCircles(center1, radius1, center2, radius2) end ---Check collision between circle and rectangle ---@param center Vector2 ---@param radius number ---@param rec Rectangle ---@return boolean function CheckCollisionCircleRec(center, radius, rec) return C.CheckCollisionCircleRec(center, radius, rec) end ---Check if circle collides with a line created between two points [p1] and [p2] ---@param center Vector2 ---@param radius number ---@param p1 Vector2 ---@param p2 Vector2 ---@return boolean function CheckCollisionCircleLine(center, radius, p1, p2) return C.CheckCollisionCircleLine(center, radius, p1, p2) end ---Check if point is inside rectangle ---@param point Vector2 ---@param rec Rectangle ---@return boolean function CheckCollisionPointRec(point, rec) return C.CheckCollisionPointRec(point, rec) end ---Check if point is inside circle ---@param point Vector2 ---@param center Vector2 ---@param radius number ---@return boolean function CheckCollisionPointCircle(point, center, radius) return C.CheckCollisionPointCircle(point, center, radius) end ---Check if point is inside a triangle ---@param point Vector2 ---@param p1 Vector2 ---@param p2 Vector2 ---@param p3 Vector2 ---@return boolean function CheckCollisionPointTriangle(point, p1, p2, p3) return C.CheckCollisionPointTriangle(point, p1, p2, p3) end ---Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold] ---@param point Vector2 ---@param p1 Vector2 ---@param p2 Vector2 ---@param threshold integer ---@return boolean function CheckCollisionPointLine(point, p1, p2, threshold) return C.CheckCollisionPointLine(point, p1, p2, threshold) end ---Check if point is within a polygon described by array of vertices ---@param point Vector2 ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@return boolean function CheckCollisionPointPoly(point, points, pointCount) local _a2 if type(points) == "table" then _a2 = to_array("Vector2", points) else _a2 = points end return C.CheckCollisionPointPoly(point, _a2, pointCount) end ---Check the collision between two lines defined by two points each, returns collision point by reference ---@param startPos1 Vector2 ---@param endPos1 Vector2 ---@param startPos2 Vector2 ---@param endPos2 Vector2 ---@param collisionPoint ffi.cdata* ---@return boolean function CheckCollisionLines(startPos1, endPos1, startPos2, endPos2, collisionPoint) return C.CheckCollisionLines(startPos1, endPos1, startPos2, endPos2, collisionPoint) end ---Get collision rectangle for two rectangles collision ---@param rec1 Rectangle ---@param rec2 Rectangle ---@return Rectangle function GetCollisionRec(rec1, rec2) return C.GetCollisionRec(rec1, rec2) end ---Load image from file into CPU memory (RAM) ---@param fileName string ---@return Image function LoadImage(fileName) return C.LoadImage(fileName) end ---Load image from RAW file data ---@param fileName string ---@param width integer ---@param height integer ---@param format integer ---@param headerSize integer ---@return Image function LoadImageRaw(fileName, width, height, format, headerSize) return C.LoadImageRaw(fileName, width, height, format, headerSize) end ---Load image sequence from file (frames appended to image.data) ---@param fileName string ---@param frames ffi.cdata* ---@return Image function LoadImageAnim(fileName, frames) return C.LoadImageAnim(fileName, frames) end ---Load image sequence from memory buffer ---@param fileType string ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer ---@param frames ffi.cdata* ---@return Image function LoadImageAnimFromMemory(fileType, fileData, dataSize, frames) local _a2 if type(fileData) == "string" then _a2 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a2 = to_array("unsigned char", fileData) else _a2 = fileData end return C.LoadImageAnimFromMemory(fileType, _a2, dataSize, frames) end ---Load image from memory buffer, fileType refers to extension: i.e. '.png' ---@param fileType string ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer ---@return Image function LoadImageFromMemory(fileType, fileData, dataSize) local _a2 if type(fileData) == "string" then _a2 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a2 = to_array("unsigned char", fileData) else _a2 = fileData end return C.LoadImageFromMemory(fileType, _a2, dataSize) end ---Load image from GPU texture data ---@param texture Texture2D ---@return Image function LoadImageFromTexture(texture) return C.LoadImageFromTexture(texture) end ---Load image from screen buffer (screenshot) ---@return Image function LoadImageFromScreen() return C.LoadImageFromScreen() end ---Check if an image is valid (data and parameters) ---@param image Image ---@return boolean function IsImageValid(image) return C.IsImageValid(image) end ---Unload image from CPU memory (RAM) ---@param image Image function UnloadImage(image) C.UnloadImage(image) end ---Export image data to file, returns true on success ---@param image Image ---@param fileName string ---@return boolean function ExportImage(image, fileName) return C.ExportImage(image, fileName) end ---Export image to memory buffer, memory must be MemFree() ---@param image Image ---@param fileType string ---@param fileSize ffi.cdata* ---@return ffi.cdata* function ExportImageToMemory(image, fileType, fileSize) return C.ExportImageToMemory(image, fileType, fileSize) end ---Export image as code file defining an array of bytes, returns true on success ---@param image Image ---@param fileName string ---@return boolean function ExportImageAsCode(image, fileName) return C.ExportImageAsCode(image, fileName) end ---Generate image: plain color ---@param width integer ---@param height integer ---@param color Color ---@return Image function GenImageColor(width, height, color) return C.GenImageColor(width, height, color) end ---Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient ---@param width integer ---@param height integer ---@param direction integer ---@param start Color ---@param _end Color ---@return Image function GenImageGradientLinear(width, height, direction, start, _end) return C.GenImageGradientLinear(width, height, direction, start, _end) end ---Generate image: radial gradient ---@param width integer ---@param height integer ---@param density number ---@param inner Color ---@param outer Color ---@return Image function GenImageGradientRadial(width, height, density, inner, outer) return C.GenImageGradientRadial(width, height, density, inner, outer) end ---Generate image: square gradient ---@param width integer ---@param height integer ---@param density number ---@param inner Color ---@param outer Color ---@return Image function GenImageGradientSquare(width, height, density, inner, outer) return C.GenImageGradientSquare(width, height, density, inner, outer) end ---Generate image: checked ---@param width integer ---@param height integer ---@param checksX integer ---@param checksY integer ---@param col1 Color ---@param col2 Color ---@return Image function GenImageChecked(width, height, checksX, checksY, col1, col2) return C.GenImageChecked(width, height, checksX, checksY, col1, col2) end ---Generate image: white noise ---@param width integer ---@param height integer ---@param factor number ---@return Image function GenImageWhiteNoise(width, height, factor) return C.GenImageWhiteNoise(width, height, factor) end ---Generate image: perlin noise ---@param width integer ---@param height integer ---@param offsetX integer ---@param offsetY integer ---@param scale number ---@return Image function GenImagePerlinNoise(width, height, offsetX, offsetY, scale) return C.GenImagePerlinNoise(width, height, offsetX, offsetY, scale) end ---Generate image: cellular algorithm, bigger tileSize means bigger cells ---@param width integer ---@param height integer ---@param tileSize integer ---@return Image function GenImageCellular(width, height, tileSize) return C.GenImageCellular(width, height, tileSize) end ---Generate image: grayscale image from text data ---@param width integer ---@param height integer ---@param text string ---@return Image function GenImageText(width, height, text) return C.GenImageText(width, height, text) end ---Create an image duplicate (useful for transformations) ---@param image Image ---@return Image function ImageCopy(image) return C.ImageCopy(image) end ---Create an image from another image piece ---@param image Image ---@param rec Rectangle ---@return Image function ImageFromImage(image, rec) return C.ImageFromImage(image, rec) end ---Create an image from a selected channel of another image (GRAYSCALE) ---@param image Image ---@param selectedChannel integer ---@return Image function ImageFromChannel(image, selectedChannel) return C.ImageFromChannel(image, selectedChannel) end ---Create an image from text (default font) ---@param text string ---@param fontSize integer ---@param color Color ---@return Image function ImageText(text, fontSize, color) return C.ImageText(text, fontSize, color) end ---Create an image from text (custom sprite font) ---@param font Font ---@param text string ---@param fontSize number ---@param spacing number ---@param tint Color ---@return Image function ImageTextEx(font, text, fontSize, spacing, tint) return C.ImageTextEx(font, text, fontSize, spacing, tint) end ---Convert image data to desired format ---@param image ffi.cdata* ---@param newFormat integer function ImageFormat(image, newFormat) C.ImageFormat(image, newFormat) end ---Convert image to POT (power-of-two) ---@param image ffi.cdata* ---@param fill Color function ImageToPOT(image, fill) C.ImageToPOT(image, fill) end ---Crop an image to a defined rectangle ---@param image ffi.cdata* ---@param crop Rectangle function ImageCrop(image, crop) C.ImageCrop(image, crop) end ---Crop image depending on alpha value ---@param image ffi.cdata* ---@param threshold number function ImageAlphaCrop(image, threshold) C.ImageAlphaCrop(image, threshold) end ---Clear alpha channel to desired color ---@param image ffi.cdata* ---@param color Color ---@param threshold number function ImageAlphaClear(image, color, threshold) C.ImageAlphaClear(image, color, threshold) end ---Apply alpha mask to image ---@param image ffi.cdata* ---@param alphaMask Image function ImageAlphaMask(image, alphaMask) C.ImageAlphaMask(image, alphaMask) end ---Premultiply alpha channel ---@param image ffi.cdata* function ImageAlphaPremultiply(image) C.ImageAlphaPremultiply(image) end ---Apply Gaussian blur using a box blur approximation ---@param image ffi.cdata* ---@param blurSize integer function ImageBlurGaussian(image, blurSize) C.ImageBlurGaussian(image, blurSize) end ---Apply custom square convolution kernel to image ---@param image ffi.cdata* ---@param kernel number[]|ffi.cdata* ---@param kernelSize integer function ImageKernelConvolution(image, kernel, kernelSize) local _a2 if type(kernel) == "table" then _a2 = to_array("float", kernel) else _a2 = kernel end C.ImageKernelConvolution(image, _a2, kernelSize) end ---Resize image (Bicubic scaling algorithm) ---@param image ffi.cdata* ---@param newWidth integer ---@param newHeight integer function ImageResize(image, newWidth, newHeight) C.ImageResize(image, newWidth, newHeight) end ---Resize image (Nearest-Neighbor scaling algorithm) ---@param image ffi.cdata* ---@param newWidth integer ---@param newHeight integer function ImageResizeNN(image, newWidth, newHeight) C.ImageResizeNN(image, newWidth, newHeight) end ---Resize canvas and fill with color ---@param image ffi.cdata* ---@param newWidth integer ---@param newHeight integer ---@param offsetX integer ---@param offsetY integer ---@param fill Color function ImageResizeCanvas(image, newWidth, newHeight, offsetX, offsetY, fill) C.ImageResizeCanvas(image, newWidth, newHeight, offsetX, offsetY, fill) end ---Compute all mipmap levels for a provided image ---@param image ffi.cdata* function ImageMipmaps(image) C.ImageMipmaps(image) end ---Dither image data to 16bpp or lower (Floyd-Steinberg dithering) ---@param image ffi.cdata* ---@param rBpp integer ---@param gBpp integer ---@param bBpp integer ---@param aBpp integer function ImageDither(image, rBpp, gBpp, bBpp, aBpp) C.ImageDither(image, rBpp, gBpp, bBpp, aBpp) end ---Flip image vertically ---@param image ffi.cdata* function ImageFlipVertical(image) C.ImageFlipVertical(image) end ---Flip image horizontally ---@param image ffi.cdata* function ImageFlipHorizontal(image) C.ImageFlipHorizontal(image) end ---Rotate image by input angle in degrees (-359 to 359) ---@param image ffi.cdata* ---@param degrees integer function ImageRotate(image, degrees) C.ImageRotate(image, degrees) end ---Rotate image clockwise 90deg ---@param image ffi.cdata* function ImageRotateCW(image) C.ImageRotateCW(image) end ---Rotate image counter-clockwise 90deg ---@param image ffi.cdata* function ImageRotateCCW(image) C.ImageRotateCCW(image) end ---Modify image color: tint ---@param image ffi.cdata* ---@param color Color function ImageColorTint(image, color) C.ImageColorTint(image, color) end ---Modify image color: invert ---@param image ffi.cdata* function ImageColorInvert(image) C.ImageColorInvert(image) end ---Modify image color: grayscale ---@param image ffi.cdata* function ImageColorGrayscale(image) C.ImageColorGrayscale(image) end ---Modify image color: contrast (-100 to 100) ---@param image ffi.cdata* ---@param contrast integer function ImageColorContrast(image, contrast) C.ImageColorContrast(image, contrast) end ---Modify image color: brightness (-255 to 255) ---@param image ffi.cdata* ---@param brightness integer function ImageColorBrightness(image, brightness) C.ImageColorBrightness(image, brightness) end ---Modify image color: replace color ---@param image ffi.cdata* ---@param color Color ---@param replace Color function ImageColorReplace(image, color, replace) C.ImageColorReplace(image, color, replace) end ---Load color data from image as a Color array (RGBA - 32bit) ---@param image Image ---@return ffi.cdata* function LoadImageColors(image) return C.LoadImageColors(image) end ---Load colors palette from image as a Color array (RGBA - 32bit) ---@param image Image ---@param maxPaletteSize integer ---@param colorCount ffi.cdata* ---@return ffi.cdata* function LoadImagePalette(image, maxPaletteSize, colorCount) return C.LoadImagePalette(image, maxPaletteSize, colorCount) end ---Unload color data loaded with LoadImageColors() ---@param colors ffi.cdata* function UnloadImageColors(colors) C.UnloadImageColors(colors) end ---Unload colors palette loaded with LoadImagePalette() ---@param colors ffi.cdata* function UnloadImagePalette(colors) C.UnloadImagePalette(colors) end ---Get image alpha border rectangle ---@param image Image ---@param threshold number ---@return Rectangle function GetImageAlphaBorder(image, threshold) return C.GetImageAlphaBorder(image, threshold) end ---Get image pixel color at (x, y) position ---@param image Image ---@param x integer ---@param y integer ---@return Color function GetImageColor(image, x, y) return C.GetImageColor(image, x, y) end ---Clear image background with provided color ---@param dst ffi.cdata* ---@param color Color function ImageClearBackground(dst, color) C.ImageClearBackground(dst, color) end ---Draw pixel within an image ---@param dst ffi.cdata* ---@param posX integer ---@param posY integer ---@param color Color function ImageDrawPixel(dst, posX, posY, color) C.ImageDrawPixel(dst, posX, posY, color) end ---Draw pixel within an image (Vector version) ---@param dst ffi.cdata* ---@param position Vector2 ---@param color Color function ImageDrawPixelV(dst, position, color) C.ImageDrawPixelV(dst, position, color) end ---Draw line within an image ---@param dst ffi.cdata* ---@param startPosX integer ---@param startPosY integer ---@param endPosX integer ---@param endPosY integer ---@param color Color function ImageDrawLine(dst, startPosX, startPosY, endPosX, endPosY, color) C.ImageDrawLine(dst, startPosX, startPosY, endPosX, endPosY, color) end ---Draw line within an image (Vector version) ---@param dst ffi.cdata* ---@param start Vector2 ---@param _end Vector2 ---@param color Color function ImageDrawLineV(dst, start, _end, color) C.ImageDrawLineV(dst, start, _end, color) end ---Draw a line defining thickness within an image ---@param dst ffi.cdata* ---@param start Vector2 ---@param _end Vector2 ---@param thick integer ---@param color Color function ImageDrawLineEx(dst, start, _end, thick, color) C.ImageDrawLineEx(dst, start, _end, thick, color) end ---Draw a lines sequence within an image ---@param dst ffi.cdata* ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param color Color function ImageDrawLineStrip(dst, points, pointCount, color) local _a2 if type(points) == "table" then _a2 = to_array("Vector2", points) else _a2 = points end C.ImageDrawLineStrip(dst, _a2, pointCount, color) end ---Draw triangle within an image ---@param dst ffi.cdata* ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param color Color function ImageDrawTriangle(dst, v1, v2, v3, color) C.ImageDrawTriangle(dst, v1, v2, v3, color) end ---Draw triangle with interpolated colors within an image ---@param dst ffi.cdata* ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param c1 Color ---@param c2 Color ---@param c3 Color function ImageDrawTriangleGradient(dst, v1, v2, v3, c1, c2, c3) C.ImageDrawTriangleGradient(dst, v1, v2, v3, c1, c2, c3) end ---Draw triangle outline within an image ---@param dst ffi.cdata* ---@param v1 Vector2 ---@param v2 Vector2 ---@param v3 Vector2 ---@param color Color function ImageDrawTriangleLines(dst, v1, v2, v3, color) C.ImageDrawTriangleLines(dst, v1, v2, v3, color) end ---Draw a triangle fan defined by points within an image (first vertex is the center) ---@param dst ffi.cdata* ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param color Color function ImageDrawTriangleFan(dst, points, pointCount, color) local _a2 if type(points) == "table" then _a2 = to_array("Vector2", points) else _a2 = points end C.ImageDrawTriangleFan(dst, _a2, pointCount, color) end ---Draw a triangle strip defined by points within an image ---@param dst ffi.cdata* ---@param points Vector2[]|ffi.cdata* ---@param pointCount integer ---@param color Color function ImageDrawTriangleStrip(dst, points, pointCount, color) local _a2 if type(points) == "table" then _a2 = to_array("Vector2", points) else _a2 = points end C.ImageDrawTriangleStrip(dst, _a2, pointCount, color) end ---Draw rectangle within an image ---@param dst ffi.cdata* ---@param posX integer ---@param posY integer ---@param width integer ---@param height integer ---@param color Color function ImageDrawRectangle(dst, posX, posY, width, height, color) C.ImageDrawRectangle(dst, posX, posY, width, height, color) end ---Draw rectangle within an image (Vector version) ---@param dst ffi.cdata* ---@param position Vector2 ---@param size Vector2 ---@param color Color function ImageDrawRectangleV(dst, position, size, color) C.ImageDrawRectangleV(dst, position, size, color) end ---Draw rectangle within an image ---@param dst ffi.cdata* ---@param rec Rectangle ---@param color Color function ImageDrawRectangleRec(dst, rec, color) C.ImageDrawRectangleRec(dst, rec, color) end ---Draw a color-filled rectangle with pro parameters within and image ---@param dst ffi.cdata* ---@param rec Rectangle ---@param origin Vector2 ---@param rotation number ---@param color Color function ImageDrawRectanglePro(dst, rec, origin, rotation, color) C.ImageDrawRectanglePro(dst, rec, origin, rotation, color) end ---Draw rectangle lines within an image ---@param dst ffi.cdata* ---@param posX integer ---@param posY integer ---@param width integer ---@param height integer ---@param color Color function ImageDrawRectangleLines(dst, posX, posY, width, height, color) C.ImageDrawRectangleLines(dst, posX, posY, width, height, color) end ---Draw rectangle lines within an image with line thickness ---@param dst ffi.cdata* ---@param rec Rectangle ---@param thick integer ---@param color Color function ImageDrawRectangleLinesEx(dst, rec, thick, color) C.ImageDrawRectangleLinesEx(dst, rec, thick, color) end ---Draw rectangle with gradient colors within an image, counter-clockwise color order ---@param dst ffi.cdata* ---@param rec Rectangle ---@param col1 Color ---@param col2 Color ---@param col3 Color ---@param col4 Color function ImageDrawRectangleGradientEx(dst, rec, col1, col2, col3, col4) C.ImageDrawRectangleGradientEx(dst, rec, col1, col2, col3, col4) end ---Draw a filled circle within an image ---@param dst ffi.cdata* ---@param centerX integer ---@param centerY integer ---@param radius integer ---@param color Color function ImageDrawCircle(dst, centerX, centerY, radius, color) C.ImageDrawCircle(dst, centerX, centerY, radius, color) end ---Draw a filled circle within an image (Vector version) ---@param dst ffi.cdata* ---@param center Vector2 ---@param radius integer ---@param color Color function ImageDrawCircleV(dst, center, radius, color) C.ImageDrawCircleV(dst, center, radius, color) end ---Draw circle outline within an image ---@param dst ffi.cdata* ---@param centerX integer ---@param centerY integer ---@param radius integer ---@param color Color function ImageDrawCircleLines(dst, centerX, centerY, radius, color) C.ImageDrawCircleLines(dst, centerX, centerY, radius, color) end ---Draw circle outline within an image (Vector version) ---@param dst ffi.cdata* ---@param center Vector2 ---@param radius integer ---@param color Color function ImageDrawCircleLinesV(dst, center, radius, color) C.ImageDrawCircleLinesV(dst, center, radius, color) end ---Draw a gradient-filled circle within an image ---@param dst ffi.cdata* ---@param center Vector2 ---@param radius number ---@param inner Color ---@param outer Color function ImageDrawCircleGradient(dst, center, radius, inner, outer) C.ImageDrawCircleGradient(dst, center, radius, inner, outer) end ---Draw an image within an image ---@param dst ffi.cdata* ---@param src Image ---@param posX integer ---@param posY integer ---@param tint Color function ImageDrawImage(dst, src, posX, posY, tint) C.ImageDrawImage(dst, src, posX, posY, tint) end ---Draw an image with scaling and rotation within an image ---@param dst ffi.cdata* ---@param src Image ---@param position Vector2 ---@param rotation number ---@param scale number ---@param tint Color function ImageDrawImageEx(dst, src, position, rotation, scale, tint) C.ImageDrawImageEx(dst, src, position, rotation, scale, tint) end ---Draw a part of an image defined by a rectangle within an image ---@param dst ffi.cdata* ---@param src Image ---@param srcRec Rectangle ---@param position Vector2 ---@param tint Color function ImageDrawImageRec(dst, src, srcRec, position, tint) C.ImageDrawImageRec(dst, src, srcRec, position, tint) end ---Draw a part of an image defined by a rectangle into destination rectangle, with scaling and rotation, within an image ---@param dst ffi.cdata* ---@param src Image ---@param srcRec Rectangle ---@param dstRec Rectangle ---@param origin Vector2 ---@param rotation number ---@param tint Color function ImageDrawImagePro(dst, src, srcRec, dstRec, origin, rotation, tint) C.ImageDrawImagePro(dst, src, srcRec, dstRec, origin, rotation, tint) end ---Draw text (using default font) within an image (destination) ---@param dst ffi.cdata* ---@param text string ---@param posX integer ---@param posY integer ---@param fontSize integer ---@param color Color function ImageDrawText(dst, text, posX, posY, fontSize, color) C.ImageDrawText(dst, text, posX, posY, fontSize, color) end ---Draw text (custom sprite font) within an image (destination) ---@param dst ffi.cdata* ---@param font Font ---@param text string ---@param position Vector2 ---@param fontSize number ---@param spacing number ---@param tint Color function ImageDrawTextEx(dst, font, text, position, fontSize, spacing, tint) C.ImageDrawTextEx(dst, font, text, position, fontSize, spacing, tint) end ---Draw text using Font and pro parameters (rotation) ---@param dst ffi.cdata* ---@param font Font ---@param text string ---@param position Vector2 ---@param origin Vector2 ---@param rotation number ---@param fontSize number ---@param spacing number ---@param tint Color function ImageDrawTextPro(dst, font, text, position, origin, rotation, fontSize, spacing, tint) C.ImageDrawTextPro(dst, font, text, position, origin, rotation, fontSize, spacing, tint) end ---Load texture from file into GPU memory (VRAM) ---@param fileName string ---@return Texture2D function LoadTexture(fileName) return C.LoadTexture(fileName) end ---Load texture from image data ---@param image Image ---@return Texture2D function LoadTextureFromImage(image) return C.LoadTextureFromImage(image) end ---Load cubemap from image, multiple image cubemap layouts supported ---@param image Image ---@param layout CubemapLayout ---@return TextureCubemap function LoadTextureCubemap(image, layout) return C.LoadTextureCubemap(image, layout) end ---Load texture for rendering (framebuffer) ---@param width integer ---@param height integer ---@return RenderTexture2D function LoadRenderTexture(width, height) return C.LoadRenderTexture(width, height) end ---Load texture for rendering (framebuffer), with specific format ---@param width integer ---@param height integer ---@param format integer ---@return RenderTexture2D function LoadRenderTextureEx(width, height, format) return C.LoadRenderTextureEx(width, height, format) end ---Check if texture is valid (loaded in GPU) ---@param texture Texture2D ---@return boolean function IsTextureValid(texture) return C.IsTextureValid(texture) end ---Unload texture from GPU memory (VRAM) ---@param texture Texture2D function UnloadTexture(texture) C.UnloadTexture(texture) end ---Check if render texture is valid (loaded in GPU) ---@param target RenderTexture2D ---@return boolean function IsRenderTextureValid(target) return C.IsRenderTextureValid(target) end ---Unload render texture from GPU memory (VRAM) ---@param target RenderTexture2D function UnloadRenderTexture(target) C.UnloadRenderTexture(target) end ---Update GPU texture with new data (pixels should be able to fill texture) ---@param texture Texture2D ---@param pixels string|ffi.cdata* function UpdateTexture(texture, pixels) local _a2 if type(pixels) == "string" then _a2 = ffi.cast("const void *", pixels) else _a2 = pixels end C.UpdateTexture(texture, _a2) end ---Update GPU texture rectangle with new data (pixels and rec should fit in texture) ---@param texture Texture2D ---@param rec Rectangle ---@param pixels string|ffi.cdata* function UpdateTextureRec(texture, rec, pixels) local _a3 if type(pixels) == "string" then _a3 = ffi.cast("const void *", pixels) else _a3 = pixels end C.UpdateTextureRec(texture, rec, _a3) end ---Generate GPU mipmaps for a texture ---@param texture ffi.cdata* function GenTextureMipmaps(texture) C.GenTextureMipmaps(texture) end ---Set texture scaling filter mode ---@param texture Texture2D ---@param filter TextureFilter function SetTextureFilter(texture, filter) C.SetTextureFilter(texture, filter) end ---Set texture wrapping mode ---@param texture Texture2D ---@param wrap TextureWrap function SetTextureWrap(texture, wrap) C.SetTextureWrap(texture, wrap) end ---Draw a Texture2D ---@param texture Texture2D ---@param posX integer ---@param posY integer ---@param tint Color function DrawTexture(texture, posX, posY, tint) C.DrawTexture(texture, posX, posY, tint) end ---Draw a Texture2D with position defined as Vector2 ---@param texture Texture2D ---@param position Vector2 ---@param tint Color function DrawTextureV(texture, position, tint) C.DrawTextureV(texture, position, tint) end ---Draw a Texture2D with rotation and scale ---@param texture Texture2D ---@param position Vector2 ---@param rotation number ---@param scale number ---@param tint Color function DrawTextureEx(texture, position, rotation, scale, tint) C.DrawTextureEx(texture, position, rotation, scale, tint) end ---Draw a part of a texture defined by a rectangle ---@param texture Texture2D ---@param rec Rectangle ---@param position Vector2 ---@param tint Color function DrawTextureRec(texture, rec, position, tint) C.DrawTextureRec(texture, rec, position, tint) end ---Draw a part of a texture defined by a source rectangle to destination rectangle, with scaling and rotation ---@param texture Texture2D ---@param srcrec Rectangle ---@param dstrec Rectangle ---@param origin Vector2 ---@param rotation number ---@param tint Color function DrawTexturePro(texture, srcrec, dstrec, origin, rotation, tint) C.DrawTexturePro(texture, srcrec, dstrec, origin, rotation, tint) end ---Draw a texture (or part of it) that stretches or shrinks nicely ---@param texture Texture2D ---@param nPatchInfo NPatchInfo ---@param dstrec Rectangle ---@param origin Vector2 ---@param rotation number ---@param tint Color function DrawTextureNPatch(texture, nPatchInfo, dstrec, origin, rotation, tint) C.DrawTextureNPatch(texture, nPatchInfo, dstrec, origin, rotation, tint) end ---Check if two colors are equal ---@param col1 Color ---@param col2 Color ---@return boolean function ColorIsEqual(col1, col2) return C.ColorIsEqual(col1, col2) end ---Get color with alpha applied, alpha goes from 0.0f to 1.0f ---@param color Color ---@param alpha number ---@return Color function Fade(color, alpha) return C.Fade(color, alpha) end ---Get hexadecimal value for a Color (0xRRGGBBAA) ---@param color Color ---@return integer function ColorToInt(color) return C.ColorToInt(color) end ---Get Color normalized as float [0..1] ---@param color Color ---@return Vector4 function ColorNormalize(color) return C.ColorNormalize(color) end ---Get Color from normalized values [0..1] ---@param normalized Vector4 ---@return Color function ColorFromNormalized(normalized) return C.ColorFromNormalized(normalized) end ---Get HSV values for a Color, hue [0..360], saturation/value [0..1] ---@param color Color ---@return Vector3 function ColorToHSV(color) return C.ColorToHSV(color) end ---Get a Color from HSV values, hue [0..360], saturation/value [0..1] ---@param hue number ---@param saturation number ---@param value number ---@return Color function ColorFromHSV(hue, saturation, value) return C.ColorFromHSV(hue, saturation, value) end ---Get color multiplied with another color ---@param color Color ---@param tint Color ---@return Color function ColorTint(color, tint) return C.ColorTint(color, tint) end ---Get color with brightness correction, brightness factor goes from -1.0f to 1.0f ---@param color Color ---@param factor number ---@return Color function ColorBrightness(color, factor) return C.ColorBrightness(color, factor) end ---Get color with contrast correction, contrast values between -1.0f and 1.0f ---@param color Color ---@param contrast number ---@return Color function ColorContrast(color, contrast) return C.ColorContrast(color, contrast) end ---Get color with alpha applied, alpha goes from 0.0f to 1.0f ---@param color Color ---@param alpha number ---@return Color function ColorAlpha(color, alpha) return C.ColorAlpha(color, alpha) end ---Get src alpha-blended into dst color with tint ---@param dst Color ---@param src Color ---@param tint Color ---@return Color function ColorAlphaBlend(dst, src, tint) return C.ColorAlphaBlend(dst, src, tint) end ---Get color lerp interpolation between two colors, factor [0.0f..1.0f] ---@param color1 Color ---@param color2 Color ---@param factor number ---@return Color function ColorLerp(color1, color2, factor) return C.ColorLerp(color1, color2, factor) end ---Get Color structure from hexadecimal value ---@param hexValue integer ---@return Color function GetColor(hexValue) return C.GetColor(hexValue) end ---Get Color from a source pixel pointer of certain format ---@param srcPtr string|ffi.cdata* ---@param format integer ---@return Color function GetPixelColor(srcPtr, format) local _a1 if type(srcPtr) == "string" then _a1 = ffi.cast("const void *", srcPtr) else _a1 = srcPtr end return C.GetPixelColor(_a1, format) end ---Set color formatted into destination pixel pointer ---@param dstPtr ffi.cdata* ---@param color Color ---@param format integer function SetPixelColor(dstPtr, color, format) C.SetPixelColor(dstPtr, color, format) end ---Get pixel data size in bytes for certain format ---@param width integer ---@param height integer ---@param format integer ---@return integer function GetPixelDataSize(width, height, format) return C.GetPixelDataSize(width, height, format) end ---Get the default Font ---@return Font function GetFontDefault() return C.GetFontDefault() end ---Load font from file into GPU memory (VRAM) ---@param fileName string ---@return Font function LoadFont(fileName) return C.LoadFont(fileName) end ---Load font from file with defined codepoints and generation size, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height ---@param fileName string ---@param fontSize integer ---@param codepoints integer[]|ffi.cdata* ---@param codepointCount integer ---@return Font function LoadFontEx(fileName, fontSize, codepoints, codepointCount) local _a3 if type(codepoints) == "table" then _a3 = to_array("int", codepoints) else _a3 = codepoints end return C.LoadFontEx(fileName, fontSize, _a3, codepointCount) end ---Load font from Image (XNA style) ---@param image Image ---@param key Color ---@param firstChar integer ---@return Font function LoadFontFromImage(image, key, firstChar) return C.LoadFontFromImage(image, key, firstChar) end ---Load font from memory buffer, fileType refers to extension: i.e. '.ttf' ---@param fileType string ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer ---@param fontSize integer ---@param codepoints integer[]|ffi.cdata* ---@param codepointCount integer ---@return Font function LoadFontFromMemory(fileType, fileData, dataSize, fontSize, codepoints, codepointCount) local _a2 if type(fileData) == "string" then _a2 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a2 = to_array("unsigned char", fileData) else _a2 = fileData end local _a5 if type(codepoints) == "table" then _a5 = to_array("int", codepoints) else _a5 = codepoints end return C.LoadFontFromMemory(fileType, _a2, dataSize, fontSize, _a5, codepointCount) end ---Check if font is valid (font data loaded, WARNING: GPU texture not checked) ---@param font Font ---@return boolean function IsFontValid(font) return C.IsFontValid(font) end ---Load font data for further use ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer ---@param fontSize integer ---@param codepoints integer[]|ffi.cdata* ---@param codepointCount integer ---@param type integer ---@param glyphCount ffi.cdata* ---@return ffi.cdata* function LoadFontData(fileData, dataSize, fontSize, codepoints, codepointCount, type, glyphCount) local _a1 if type(fileData) == "string" then _a1 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a1 = to_array("unsigned char", fileData) else _a1 = fileData end local _a4 if type(codepoints) == "table" then _a4 = to_array("int", codepoints) else _a4 = codepoints end return C.LoadFontData(_a1, dataSize, fontSize, _a4, codepointCount, type, glyphCount) end ---Generate image font atlas using chars info ---@param glyphs GlyphInfo[]|ffi.cdata* ---@param glyphRecs ffi.cdata* ---@param glyphCount integer ---@param fontSize integer ---@param padding integer ---@param packMethod integer ---@return Image function GenImageFontAtlas(glyphs, glyphRecs, glyphCount, fontSize, padding, packMethod) local _a1 if type(glyphs) == "table" then _a1 = to_array("GlyphInfo", glyphs) else _a1 = glyphs end return C.GenImageFontAtlas(_a1, glyphRecs, glyphCount, fontSize, padding, packMethod) end ---Unload font chars info data (RAM) ---@param glyphs ffi.cdata* ---@param glyphCount integer function UnloadFontData(glyphs, glyphCount) C.UnloadFontData(glyphs, glyphCount) end ---Unload font from GPU memory (VRAM) ---@param font Font function UnloadFont(font) C.UnloadFont(font) end ---Export font as code file, returns true on success ---@param font Font ---@param fileName string ---@return boolean function ExportFontAsCode(font, fileName) return C.ExportFontAsCode(font, fileName) end ---Draw current FPS ---@param posX integer ---@param posY integer function DrawFPS(posX, posY) C.DrawFPS(posX, posY) end ---Draw text (using default font) ---@param text string ---@param posX integer ---@param posY integer ---@param fontSize integer ---@param color Color function DrawText(text, posX, posY, fontSize, color) C.DrawText(text, posX, posY, fontSize, color) end ---Draw text using font and additional parameters ---@param font Font ---@param text string ---@param position Vector2 ---@param fontSize number ---@param spacing number ---@param tint Color function DrawTextEx(font, text, position, fontSize, spacing, tint) C.DrawTextEx(font, text, position, fontSize, spacing, tint) end ---Draw text using Font and pro parameters (rotation) ---@param font Font ---@param text string ---@param position Vector2 ---@param origin Vector2 ---@param rotation number ---@param fontSize number ---@param spacing number ---@param tint Color function DrawTextPro(font, text, position, origin, rotation, fontSize, spacing, tint) C.DrawTextPro(font, text, position, origin, rotation, fontSize, spacing, tint) end ---Draw one character (codepoint) ---@param font Font ---@param codepoint integer ---@param position Vector2 ---@param fontSize number ---@param tint Color function DrawTextCodepoint(font, codepoint, position, fontSize, tint) C.DrawTextCodepoint(font, codepoint, position, fontSize, tint) end ---Draw multiple characters (codepoint) ---@param font Font ---@param codepoints integer[]|ffi.cdata* ---@param codepointCount integer ---@param position Vector2 ---@param fontSize number ---@param spacing number ---@param tint Color function DrawTextCodepoints(font, codepoints, codepointCount, position, fontSize, spacing, tint) local _a2 if type(codepoints) == "table" then _a2 = to_array("int", codepoints) else _a2 = codepoints end C.DrawTextCodepoints(font, _a2, codepointCount, position, fontSize, spacing, tint) end ---Set vertical line spacing when drawing with line-breaks ---@param spacing integer function SetTextLineSpacing(spacing) C.SetTextLineSpacing(spacing) end ---Measure string width for default font ---@param text string ---@param fontSize integer ---@return integer function MeasureText(text, fontSize) return C.MeasureText(text, fontSize) end ---Measure string size for Font ---@param font Font ---@param text string ---@param fontSize number ---@param spacing number ---@return Vector2 function MeasureTextEx(font, text, fontSize, spacing) return C.MeasureTextEx(font, text, fontSize, spacing) end ---Measure string size for an existing array of codepoints for Font ---@param font Font ---@param codepoints integer[]|ffi.cdata* ---@param length integer ---@param fontSize number ---@param spacing number ---@return Vector2 function MeasureTextCodepoints(font, codepoints, length, fontSize, spacing) local _a2 if type(codepoints) == "table" then _a2 = to_array("int", codepoints) else _a2 = codepoints end return C.MeasureTextCodepoints(font, _a2, length, fontSize, spacing) end ---Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found ---@param font Font ---@param codepoint integer ---@return integer function GetGlyphIndex(font, codepoint) return C.GetGlyphIndex(font, codepoint) end ---Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found ---@param font Font ---@param codepoint integer ---@return GlyphInfo function GetGlyphInfo(font, codepoint) return C.GetGlyphInfo(font, codepoint) end ---Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found ---@param font Font ---@param codepoint integer ---@return Rectangle function GetGlyphAtlasRec(font, codepoint) return C.GetGlyphAtlasRec(font, codepoint) end ---Load UTF-8 text encoded from codepoints array ---@param codepoints integer[]|ffi.cdata* ---@param length integer ---@return string|nil function LoadUTF8(codepoints, length) local _a1 if type(codepoints) == "table" then _a1 = to_array("int", codepoints) else _a1 = codepoints end local _r = C.LoadUTF8(_a1, length) if _r == nil then return nil end return ffi.string(_r) end ---Unload UTF-8 text encoded from codepoints array ---@param text ffi.cdata* function UnloadUTF8(text) C.UnloadUTF8(text) end ---Load all codepoints from a UTF-8 text string, codepoints count returned by parameter ---@param text string ---@param count ffi.cdata* ---@return ffi.cdata* function LoadCodepoints(text, count) return C.LoadCodepoints(text, count) end ---Unload codepoints data from memory ---@param codepoints ffi.cdata* function UnloadCodepoints(codepoints) C.UnloadCodepoints(codepoints) end ---Get total number of codepoints in a UTF-8 encoded string ---@param text string ---@return integer function GetCodepointCount(text) return C.GetCodepointCount(text) end ---Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure ---@param text string ---@param codepointSize ffi.cdata* ---@return integer function GetCodepoint(text, codepointSize) return C.GetCodepoint(text, codepointSize) end ---Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure ---@param text string ---@param codepointSize ffi.cdata* ---@return integer function GetCodepointNext(text, codepointSize) return C.GetCodepointNext(text, codepointSize) end ---Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure ---@param text string ---@param codepointSize ffi.cdata* ---@return integer function GetCodepointPrevious(text, codepointSize) return C.GetCodepointPrevious(text, codepointSize) end ---Encode one codepoint into UTF-8 byte array (array length returned as parameter) ---@param codepoint integer ---@param utf8Size ffi.cdata* ---@return string function CodepointToUTF8(codepoint, utf8Size) local _r = C.CodepointToUTF8(codepoint, utf8Size) return _r ~= nil and ffi.string(_r) or "" end ---Load text as separate lines ('\n') ---@param text string ---@param count ffi.cdata* ---@return ffi.cdata* function LoadTextLines(text, count) return C.LoadTextLines(text, count) end ---Unload text lines ---@param text string[]|ffi.cdata* ---@param lineCount integer function UnloadTextLines(text, lineCount) local _a1 if type(text) == "table" then _a1 = ffi.cast("char **", to_array("const char *", text)) else _a1 = text end C.UnloadTextLines(_a1, lineCount) end ---Copy one string to another, returns bytes copied ---@param dst ffi.cdata* ---@param src string ---@return integer function TextCopy(dst, src) return C.TextCopy(dst, src) end ---Check if two text strings are equal ---@param text1 string ---@param text2 string ---@return boolean function TextIsEqual(text1, text2) return C.TextIsEqual(text1, text2) end ---Get text length, checks for '\0' ending ---@param text string ---@return integer function TextLength(text) return C.TextLength(text) end ---Text formatting with variables (sprintf() style) ---@param fmt string ---@param ... any ---@return string function TextFormat(fmt, ...) if select("#", ...) == 0 then return fmt end return string_format(fmt, ...) end ---Get a piece of a text string ---@param text string ---@param position integer ---@param length integer ---@return string function TextSubtext(text, position, length) local _r = C.TextSubtext(text, position, length) return _r ~= nil and ffi.string(_r) or "" end ---Remove text spaces, concat words ---@param text string ---@return string function TextRemoveSpaces(text) local _r = C.TextRemoveSpaces(text) return _r ~= nil and ffi.string(_r) or "" end ---Get text between two strings ---@param text string ---@param begin string ---@param _end string ---@return string|nil function GetTextBetween(text, begin, _end) local _r = C.GetTextBetween(text, begin, _end) if _r == nil then return nil end return ffi.string(_r) end ---Replace text string with new string ---@param text string ---@param search string ---@param replacement string ---@return string|nil function TextReplace(text, search, replacement) local _r = C.TextReplace(text, search, replacement) if _r == nil then return nil end return ffi.string(_r) end ---Replace text string with new string, memory must be MemFree() ---@param text string ---@param search string ---@param replacement string ---@return string|nil function TextReplaceAlloc(text, search, replacement) local _r = C.TextReplaceAlloc(text, search, replacement) if _r == nil then return nil end return ffi.string(_r) end ---Replace text between two specific strings ---@param text string ---@param begin string ---@param _end string ---@param replacement string ---@return string|nil function TextReplaceBetween(text, begin, _end, replacement) local _r = C.TextReplaceBetween(text, begin, _end, replacement) if _r == nil then return nil end return ffi.string(_r) end ---Replace text between two specific strings, memory must be MemFree() ---@param text string ---@param begin string ---@param _end string ---@param replacement string ---@return string|nil function TextReplaceBetweenAlloc(text, begin, _end, replacement) local _r = C.TextReplaceBetweenAlloc(text, begin, _end, replacement) if _r == nil then return nil end return ffi.string(_r) end ---Insert text in a defined byte position ---@param text string ---@param insert string ---@param position integer ---@return string|nil function TextInsert(text, insert, position) local _r = C.TextInsert(text, insert, position) if _r == nil then return nil end return ffi.string(_r) end ---Insert text in a defined byte position, memory must be MemFree() ---@param text string ---@param insert string ---@param position integer ---@return string|nil function TextInsertAlloc(text, insert, position) local _r = C.TextInsertAlloc(text, insert, position) if _r == nil then return nil end return ffi.string(_r) end ---Join text strings with delimiter ---@param textList string[]|ffi.cdata* ---@param count integer ---@param delimiter string ---@return string|nil function TextJoin(textList, count, delimiter) local _a1 if type(textList) == "table" then _a1 = ffi.cast("char **", to_array("const char *", textList)) else _a1 = textList end local _r = C.TextJoin(_a1, count, delimiter) if _r == nil then return nil end return ffi.string(_r) end ---Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings ---@param text string ---@param delimiter integer ---@param count ffi.cdata* ---@return ffi.cdata* function TextSplit(text, delimiter, count) return C.TextSplit(text, delimiter, count) end ---Append text at specific position and move cursor ---@param text ffi.cdata* ---@param append string ---@param position ffi.cdata* function TextAppend(text, append, position) C.TextAppend(text, append, position) end ---Find first text occurrence within a string, -1 if not found ---@param text string ---@param search string ---@return integer function TextFindIndex(text, search) return C.TextFindIndex(text, search) end ---Get upper case version of provided string ---@param text string ---@return string|nil function TextToUpper(text) local _r = C.TextToUpper(text) if _r == nil then return nil end return ffi.string(_r) end ---Get lower case version of provided string ---@param text string ---@return string|nil function TextToLower(text) local _r = C.TextToLower(text) if _r == nil then return nil end return ffi.string(_r) end ---Get Pascal case notation version of provided string ---@param text string ---@return string|nil function TextToPascal(text) local _r = C.TextToPascal(text) if _r == nil then return nil end return ffi.string(_r) end ---Get Snake case notation version of provided string ---@param text string ---@return string|nil function TextToSnake(text) local _r = C.TextToSnake(text) if _r == nil then return nil end return ffi.string(_r) end ---Get Camel case notation version of provided string ---@param text string ---@return string|nil function TextToCamel(text) local _r = C.TextToCamel(text) if _r == nil then return nil end return ffi.string(_r) end ---Get integer value from text ---@param text string ---@return integer function TextToInteger(text) return C.TextToInteger(text) end ---Get float value from text ---@param text string ---@return number function TextToFloat(text) return C.TextToFloat(text) end ---Draw a line in 3D world space ---@param startPos Vector3 ---@param endPos Vector3 ---@param color Color function DrawLine3D(startPos, endPos, color) C.DrawLine3D(startPos, endPos, color) end ---Draw a point in 3D space, actually a small line ---@param position Vector3 ---@param color Color function DrawPoint3D(position, color) C.DrawPoint3D(position, color) end ---Draw a circle in 3D world space ---@param center Vector3 ---@param radius number ---@param rotationAxis Vector3 ---@param rotationAngle number ---@param color Color function DrawCircle3D(center, radius, rotationAxis, rotationAngle, color) C.DrawCircle3D(center, radius, rotationAxis, rotationAngle, color) end ---Draw a color-filled triangle, counter-clockwise vertex order ---@param v1 Vector3 ---@param v2 Vector3 ---@param v3 Vector3 ---@param color Color function DrawTriangle3D(v1, v2, v3, color) C.DrawTriangle3D(v1, v2, v3, color) end ---Draw a triangle strip defined by points ---@param points Vector3[]|ffi.cdata* ---@param pointCount integer ---@param color Color function DrawTriangleStrip3D(points, pointCount, color) local _a1 if type(points) == "table" then _a1 = to_array("Vector3", points) else _a1 = points end C.DrawTriangleStrip3D(_a1, pointCount, color) end ---Draw cube ---@param position Vector3 ---@param width number ---@param height number ---@param length number ---@param color Color function DrawCube(position, width, height, length, color) C.DrawCube(position, width, height, length, color) end ---Draw cube (Vector version) ---@param position Vector3 ---@param size Vector3 ---@param color Color function DrawCubeV(position, size, color) C.DrawCubeV(position, size, color) end ---Draw cube wires ---@param position Vector3 ---@param width number ---@param height number ---@param length number ---@param color Color function DrawCubeWires(position, width, height, length, color) C.DrawCubeWires(position, width, height, length, color) end ---Draw cube wires (Vector version) ---@param position Vector3 ---@param size Vector3 ---@param color Color function DrawCubeWiresV(position, size, color) C.DrawCubeWiresV(position, size, color) end ---Draw sphere ---@param centerPos Vector3 ---@param radius number ---@param color Color function DrawSphere(centerPos, radius, color) C.DrawSphere(centerPos, radius, color) end ---Draw sphere with defined rings and slices ---@param centerPos Vector3 ---@param radius number ---@param rings integer ---@param slices integer ---@param color Color function DrawSphereEx(centerPos, radius, rings, slices, color) C.DrawSphereEx(centerPos, radius, rings, slices, color) end ---Draw sphere wires ---@param centerPos Vector3 ---@param radius number ---@param rings integer ---@param slices integer ---@param color Color function DrawSphereWires(centerPos, radius, rings, slices, color) C.DrawSphereWires(centerPos, radius, rings, slices, color) end ---Draw a cylinder/cone ---@param position Vector3 ---@param radiusTop number ---@param radiusBottom number ---@param height number ---@param sides integer ---@param color Color function DrawCylinder(position, radiusTop, radiusBottom, height, sides, color) C.DrawCylinder(position, radiusTop, radiusBottom, height, sides, color) end ---Draw a cylinder with base at startPos and top at endPos ---@param startPos Vector3 ---@param endPos Vector3 ---@param startRadius number ---@param endRadius number ---@param sides integer ---@param color Color function DrawCylinderEx(startPos, endPos, startRadius, endRadius, sides, color) C.DrawCylinderEx(startPos, endPos, startRadius, endRadius, sides, color) end ---Draw a cylinder/cone wires ---@param position Vector3 ---@param radiusTop number ---@param radiusBottom number ---@param height number ---@param sides integer ---@param color Color function DrawCylinderWires(position, radiusTop, radiusBottom, height, sides, color) C.DrawCylinderWires(position, radiusTop, radiusBottom, height, sides, color) end ---Draw a cylinder wires with base at startPos and top at endPos ---@param startPos Vector3 ---@param endPos Vector3 ---@param startRadius number ---@param endRadius number ---@param sides integer ---@param color Color function DrawCylinderWiresEx(startPos, endPos, startRadius, endRadius, sides, color) C.DrawCylinderWiresEx(startPos, endPos, startRadius, endRadius, sides, color) end ---Draw a capsule with the center of its sphere caps at startPos and endPos ---@param startPos Vector3 ---@param endPos Vector3 ---@param radius number ---@param rings integer ---@param slices integer ---@param color Color function DrawCapsule(startPos, endPos, radius, rings, slices, color) C.DrawCapsule(startPos, endPos, radius, rings, slices, color) end ---Draw capsule wireframe with the center of its sphere caps at startPos and endPos ---@param startPos Vector3 ---@param endPos Vector3 ---@param radius number ---@param rings integer ---@param slices integer ---@param color Color function DrawCapsuleWires(startPos, endPos, radius, rings, slices, color) C.DrawCapsuleWires(startPos, endPos, radius, rings, slices, color) end ---Draw a plane XZ ---@param centerPos Vector3 ---@param size Vector2 ---@param color Color function DrawPlane(centerPos, size, color) C.DrawPlane(centerPos, size, color) end ---Draw a ray line ---@param ray Ray ---@param color Color function DrawRay(ray, color) C.DrawRay(ray, color) end ---Draw a grid (centered at (0, 0, 0)) ---@param slices integer ---@param spacing number function DrawGrid(slices, spacing) C.DrawGrid(slices, spacing) end ---Load model from files (meshes and materials) ---@param fileName string ---@return Model function LoadModel(fileName) return C.LoadModel(fileName) end ---Load model from generated mesh (default material) ---@param mesh Mesh ---@return Model function LoadModelFromMesh(mesh) return C.LoadModelFromMesh(mesh) end ---Check if model is valid (loaded in GPU, VAO/VBOs) ---@param model Model ---@return boolean function IsModelValid(model) return C.IsModelValid(model) end ---Unload model (including meshes) from memory (RAM and/or VRAM) ---@param model Model function UnloadModel(model) C.UnloadModel(model) end ---Compute model bounding box limits (considers all meshes) ---@param model Model ---@return BoundingBox function GetModelBoundingBox(model) return C.GetModelBoundingBox(model) end ---Draw a model (with texture if set) ---@param model Model ---@param position Vector3 ---@param scale number ---@param tint Color function DrawModel(model, position, scale, tint) C.DrawModel(model, position, scale, tint) end ---Draw a model with custom transform ---@param model Model ---@param position Vector3 ---@param rotationAxis Vector3 ---@param rotationAngle number ---@param scale Vector3 ---@param tint Color function DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint) C.DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint) end ---Draw a model wires (with texture if set) ---@param model Model ---@param position Vector3 ---@param scale number ---@param tint Color function DrawModelWires(model, position, scale, tint) C.DrawModelWires(model, position, scale, tint) end ---Draw a model wires with custom transform ---@param model Model ---@param position Vector3 ---@param rotationAxis Vector3 ---@param rotationAngle number ---@param scale Vector3 ---@param tint Color function DrawModelWiresEx(model, position, rotationAxis, rotationAngle, scale, tint) C.DrawModelWiresEx(model, position, rotationAxis, rotationAngle, scale, tint) end ---Draw bounding box (wires) ---@param box BoundingBox ---@param color Color function DrawBoundingBox(box, color) C.DrawBoundingBox(box, color) end ---Draw a billboard texture ---@param camera Camera ---@param texture Texture2D ---@param position Vector3 ---@param scale number ---@param tint Color function DrawBillboard(camera, texture, position, scale, tint) C.DrawBillboard(camera, texture, position, scale, tint) end ---Draw a billboard texture defined by rectangle ---@param camera Camera ---@param texture Texture2D ---@param rec Rectangle ---@param position Vector3 ---@param size Vector2 ---@param tint Color function DrawBillboardRec(camera, texture, rec, position, size, tint) C.DrawBillboardRec(camera, texture, rec, position, size, tint) end ---Draw a billboard texture defined by source rectangle with scaling and rotation ---@param camera Camera ---@param texture Texture2D ---@param rec Rectangle ---@param position Vector3 ---@param up Vector3 ---@param size Vector2 ---@param origin Vector2 ---@param rotation number ---@param tint Color function DrawBillboardPro(camera, texture, rec, position, up, size, origin, rotation, tint) C.DrawBillboardPro(camera, texture, rec, position, up, size, origin, rotation, tint) end ---Upload mesh vertex data in GPU and provide VAO/VBO ids ---@param mesh ffi.cdata* ---@param dynamic boolean function UploadMesh(mesh, dynamic) C.UploadMesh(mesh, dynamic) end ---Update mesh vertex data in GPU for a specific buffer index ---@param mesh Mesh ---@param index integer ---@param data string|ffi.cdata* ---@param dataSize integer ---@param offset integer function UpdateMeshBuffer(mesh, index, data, dataSize, offset) local _a3 if type(data) == "string" then _a3 = ffi.cast("const void *", data) else _a3 = data end C.UpdateMeshBuffer(mesh, index, _a3, dataSize, offset) end ---Unload mesh data from CPU and GPU ---@param mesh Mesh function UnloadMesh(mesh) C.UnloadMesh(mesh) end ---Draw a 3d mesh with material and transform ---@param mesh Mesh ---@param material Material ---@param transform Matrix function DrawMesh(mesh, material, transform) C.DrawMesh(mesh, material, transform) end ---Draw multiple mesh instances with material and different transforms ---@param mesh Mesh ---@param material Material ---@param transforms Matrix[]|ffi.cdata* ---@param instances integer function DrawMeshInstanced(mesh, material, transforms, instances) local _a3 if type(transforms) == "table" then _a3 = to_array("Matrix", transforms) else _a3 = transforms end C.DrawMeshInstanced(mesh, material, _a3, instances) end ---Compute mesh bounding box limits ---@param mesh Mesh ---@return BoundingBox function GetMeshBoundingBox(mesh) return C.GetMeshBoundingBox(mesh) end ---Compute mesh tangents ---@param mesh ffi.cdata* function GenMeshTangents(mesh) C.GenMeshTangents(mesh) end ---Export mesh data to file, returns true on success ---@param mesh Mesh ---@param fileName string ---@return boolean function ExportMesh(mesh, fileName) return C.ExportMesh(mesh, fileName) end ---Export mesh as code file (.h) defining multiple arrays of vertex attributes ---@param mesh Mesh ---@param fileName string ---@return boolean function ExportMeshAsCode(mesh, fileName) return C.ExportMeshAsCode(mesh, fileName) end ---Generate polygonal mesh ---@param sides integer ---@param radius number ---@return Mesh function GenMeshPoly(sides, radius) return C.GenMeshPoly(sides, radius) end ---Generate plane mesh (with subdivisions) ---@param width number ---@param length number ---@param resX integer ---@param resZ integer ---@return Mesh function GenMeshPlane(width, length, resX, resZ) return C.GenMeshPlane(width, length, resX, resZ) end ---Generate cuboid mesh ---@param width number ---@param height number ---@param length number ---@return Mesh function GenMeshCube(width, height, length) return C.GenMeshCube(width, height, length) end ---Generate sphere mesh (standard sphere) ---@param radius number ---@param rings integer ---@param slices integer ---@return Mesh function GenMeshSphere(radius, rings, slices) return C.GenMeshSphere(radius, rings, slices) end ---Generate half-sphere mesh (no bottom cap) ---@param radius number ---@param rings integer ---@param slices integer ---@return Mesh function GenMeshHemiSphere(radius, rings, slices) return C.GenMeshHemiSphere(radius, rings, slices) end ---Generate cylinder mesh ---@param radius number ---@param height number ---@param slices integer ---@return Mesh function GenMeshCylinder(radius, height, slices) return C.GenMeshCylinder(radius, height, slices) end ---Generate cone/pyramid mesh ---@param radius number ---@param height number ---@param slices integer ---@return Mesh function GenMeshCone(radius, height, slices) return C.GenMeshCone(radius, height, slices) end ---Generate torus mesh ---@param radius number ---@param size number ---@param radSeg integer ---@param sides integer ---@return Mesh function GenMeshTorus(radius, size, radSeg, sides) return C.GenMeshTorus(radius, size, radSeg, sides) end ---Generate trefoil knot mesh ---@param radius number ---@param size number ---@param radSeg integer ---@param sides integer ---@return Mesh function GenMeshKnot(radius, size, radSeg, sides) return C.GenMeshKnot(radius, size, radSeg, sides) end ---Generate heightmap mesh from image data ---@param heightmap Image ---@param size Vector3 ---@return Mesh function GenMeshHeightmap(heightmap, size) return C.GenMeshHeightmap(heightmap, size) end ---Generate cubes-based map mesh from image data ---@param cubicmap Image ---@param cubeSize Vector3 ---@return Mesh function GenMeshCubicmap(cubicmap, cubeSize) return C.GenMeshCubicmap(cubicmap, cubeSize) end ---Load materials from model file ---@param fileName string ---@param materialCount ffi.cdata* ---@return ffi.cdata* function LoadMaterials(fileName, materialCount) return C.LoadMaterials(fileName, materialCount) end ---Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps) ---@return Material function LoadMaterialDefault() return C.LoadMaterialDefault() end ---Check if material is valid (shader assigned, map textures loaded in GPU) ---@param material Material ---@return boolean function IsMaterialValid(material) return C.IsMaterialValid(material) end ---Unload material from GPU memory (VRAM) ---@param material Material function UnloadMaterial(material) C.UnloadMaterial(material) end ---Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...) ---@param material ffi.cdata* ---@param mapType MaterialMapIndex ---@param texture Texture2D function SetMaterialTexture(material, mapType, texture) C.SetMaterialTexture(material, mapType, texture) end ---Set material for a mesh ---@param model ffi.cdata* ---@param meshId integer ---@param materialId integer function SetModelMeshMaterial(model, meshId, materialId) C.SetModelMeshMaterial(model, meshId, materialId) end ---Load model animations from file ---@param fileName string ---@param animCount ffi.cdata* ---@return ffi.cdata* function LoadModelAnimations(fileName, animCount) return C.LoadModelAnimations(fileName, animCount) end ---Update model animation pose (vertex buffers and bone matrices) ---@param model Model ---@param anim ModelAnimation ---@param frame number function UpdateModelAnimation(model, anim, frame) C.UpdateModelAnimation(model, anim, frame) end ---Update model animation pose, blending two animations ---@param model Model ---@param animA ModelAnimation ---@param frameA number ---@param animB ModelAnimation ---@param frameB number ---@param blend number function UpdateModelAnimationEx(model, animA, frameA, animB, frameB, blend) C.UpdateModelAnimationEx(model, animA, frameA, animB, frameB, blend) end ---Unload animation array data ---@param animations ffi.cdata* ---@param animCount integer function UnloadModelAnimations(animations, animCount) C.UnloadModelAnimations(animations, animCount) end ---Check model animation skeleton match ---@param model Model ---@param anim ModelAnimation ---@return boolean function IsModelAnimationValid(model, anim) return C.IsModelAnimationValid(model, anim) end ---Check collision between two spheres ---@param center1 Vector3 ---@param radius1 number ---@param center2 Vector3 ---@param radius2 number ---@return boolean function CheckCollisionSpheres(center1, radius1, center2, radius2) return C.CheckCollisionSpheres(center1, radius1, center2, radius2) end ---Check collision between two bounding boxes ---@param box1 BoundingBox ---@param box2 BoundingBox ---@return boolean function CheckCollisionBoxes(box1, box2) return C.CheckCollisionBoxes(box1, box2) end ---Check collision between box and sphere ---@param box BoundingBox ---@param center Vector3 ---@param radius number ---@return boolean function CheckCollisionBoxSphere(box, center, radius) return C.CheckCollisionBoxSphere(box, center, radius) end ---Get collision info between ray and sphere ---@param ray Ray ---@param center Vector3 ---@param radius number ---@return RayCollision function GetRayCollisionSphere(ray, center, radius) return C.GetRayCollisionSphere(ray, center, radius) end ---Get collision info between ray and box ---@param ray Ray ---@param box BoundingBox ---@return RayCollision function GetRayCollisionBox(ray, box) return C.GetRayCollisionBox(ray, box) end ---Get collision info between ray and mesh ---@param ray Ray ---@param mesh Mesh ---@param transform Matrix ---@return RayCollision function GetRayCollisionMesh(ray, mesh, transform) return C.GetRayCollisionMesh(ray, mesh, transform) end ---Get collision info between ray and triangle ---@param ray Ray ---@param p1 Vector3 ---@param p2 Vector3 ---@param p3 Vector3 ---@return RayCollision function GetRayCollisionTriangle(ray, p1, p2, p3) return C.GetRayCollisionTriangle(ray, p1, p2, p3) end ---Get collision info between ray and quad ---@param ray Ray ---@param p1 Vector3 ---@param p2 Vector3 ---@param p3 Vector3 ---@param p4 Vector3 ---@return RayCollision function GetRayCollisionQuad(ray, p1, p2, p3, p4) return C.GetRayCollisionQuad(ray, p1, p2, p3, p4) end ---Initialize audio device and context function InitAudioDevice() C.InitAudioDevice() end ---Close the audio device and context function CloseAudioDevice() C.CloseAudioDevice() end ---Check if audio device has been initialized successfully ---@return boolean function IsAudioDeviceReady() return C.IsAudioDeviceReady() end ---Set master volume (listener) ---@param volume number function SetMasterVolume(volume) C.SetMasterVolume(volume) end ---Get master volume (listener) ---@return number function GetMasterVolume() return C.GetMasterVolume() end ---Load wave data from file ---@param fileName string ---@return Wave function LoadWave(fileName) return C.LoadWave(fileName) end ---Load wave from memory buffer, fileType refers to extension: i.e. '.wav' ---@param fileType string ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer ---@return Wave function LoadWaveFromMemory(fileType, fileData, dataSize) local _a2 if type(fileData) == "string" then _a2 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a2 = to_array("unsigned char", fileData) else _a2 = fileData end return C.LoadWaveFromMemory(fileType, _a2, dataSize) end ---Check if wave data is valid (data loaded and parameters) ---@param wave Wave ---@return boolean function IsWaveValid(wave) return C.IsWaveValid(wave) end ---Load sound from file ---@param fileName string ---@return Sound function LoadSound(fileName) return C.LoadSound(fileName) end ---Load sound from wave data ---@param wave Wave ---@return Sound function LoadSoundFromWave(wave) return C.LoadSoundFromWave(wave) end ---Load sound alias, new sound that shares the same sample data as the source sound, does not own the sound data ---@param source Sound ---@return Sound function LoadSoundAlias(source) return C.LoadSoundAlias(source) end ---Check if sound is valid (data loaded and buffers initialized) ---@param sound Sound ---@return boolean function IsSoundValid(sound) return C.IsSoundValid(sound) end ---Update sound buffer with new data (default data format: 32 bit float, stereo) ---@param sound Sound ---@param data string|ffi.cdata* ---@param frameCount integer function UpdateSound(sound, data, frameCount) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end C.UpdateSound(sound, _a2, frameCount) end ---Unload wave data ---@param wave Wave function UnloadWave(wave) C.UnloadWave(wave) end ---Unload sound ---@param sound Sound function UnloadSound(sound) C.UnloadSound(sound) end ---Unload sound alias (does not deallocate sample data) ---@param alias Sound function UnloadSoundAlias(alias) C.UnloadSoundAlias(alias) end ---Export wave data to file, returns true on success ---@param wave Wave ---@param fileName string ---@return boolean function ExportWave(wave, fileName) return C.ExportWave(wave, fileName) end ---Export wave sample data to code (.h), returns true on success ---@param wave Wave ---@param fileName string ---@return boolean function ExportWaveAsCode(wave, fileName) return C.ExportWaveAsCode(wave, fileName) end ---Play a sound ---@param sound Sound function PlaySound(sound) C.PlaySound(sound) end ---Stop playing a sound ---@param sound Sound function StopSound(sound) C.StopSound(sound) end ---Pause a sound ---@param sound Sound function PauseSound(sound) C.PauseSound(sound) end ---Resume a paused sound ---@param sound Sound function ResumeSound(sound) C.ResumeSound(sound) end ---Check if sound is currently playing ---@param sound Sound ---@return boolean function IsSoundPlaying(sound) return C.IsSoundPlaying(sound) end ---Set volume for a sound (1.0 is max level) ---@param sound Sound ---@param volume number function SetSoundVolume(sound, volume) C.SetSoundVolume(sound, volume) end ---Set pitch for a sound (1.0 is base level) ---@param sound Sound ---@param pitch number function SetSoundPitch(sound, pitch) C.SetSoundPitch(sound, pitch) end ---Set pan for a sound (-1.0 left, 0.0 center, 1.0 right) ---@param sound Sound ---@param pan number function SetSoundPan(sound, pan) C.SetSoundPan(sound, pan) end ---Copy a wave to a new wave ---@param wave Wave ---@return Wave function WaveCopy(wave) return C.WaveCopy(wave) end ---Crop a wave to defined frames range ---@param wave ffi.cdata* ---@param initFrame integer ---@param finalFrame integer function WaveCrop(wave, initFrame, finalFrame) C.WaveCrop(wave, initFrame, finalFrame) end ---Convert wave data to desired format ---@param wave ffi.cdata* ---@param sampleRate integer ---@param sampleSize integer ---@param channels integer function WaveFormat(wave, sampleRate, sampleSize, channels) C.WaveFormat(wave, sampleRate, sampleSize, channels) end ---Load samples data from wave as a 32bit float data array ---@param wave Wave ---@return ffi.cdata* function LoadWaveSamples(wave) return C.LoadWaveSamples(wave) end ---Unload samples data loaded with LoadWaveSamples() ---@param samples ffi.cdata* function UnloadWaveSamples(samples) C.UnloadWaveSamples(samples) end ---Load music stream from file ---@param fileName string ---@return Music function LoadMusicStream(fileName) return C.LoadMusicStream(fileName) end ---Load music stream from data ---@param fileType string ---@param data string|integer[]|ffi.cdata* ---@param dataSize integer ---@return Music function LoadMusicStreamFromMemory(fileType, data, dataSize) local _a2 if type(data) == "string" then _a2 = ffi.cast("const unsigned char *", data) elseif type(data) == "table" then _a2 = to_array("unsigned char", data) else _a2 = data end return C.LoadMusicStreamFromMemory(fileType, _a2, dataSize) end ---Check if music stream is valid (context and buffers initialized) ---@param music Music ---@return boolean function IsMusicValid(music) return C.IsMusicValid(music) end ---Unload music stream ---@param music Music function UnloadMusicStream(music) C.UnloadMusicStream(music) end ---Start music playing ---@param music Music function PlayMusicStream(music) C.PlayMusicStream(music) end ---Check if music is playing ---@param music Music ---@return boolean function IsMusicStreamPlaying(music) return C.IsMusicStreamPlaying(music) end ---Update buffers for music streaming ---@param music Music function UpdateMusicStream(music) C.UpdateMusicStream(music) end ---Stop music playing ---@param music Music function StopMusicStream(music) C.StopMusicStream(music) end ---Pause music playing ---@param music Music function PauseMusicStream(music) C.PauseMusicStream(music) end ---Resume playing paused music ---@param music Music function ResumeMusicStream(music) C.ResumeMusicStream(music) end ---Seek music to a position (in seconds) ---@param music Music ---@param position number function SeekMusicStream(music, position) C.SeekMusicStream(music, position) end ---Set volume for music (1.0 is max level) ---@param music Music ---@param volume number function SetMusicVolume(music, volume) C.SetMusicVolume(music, volume) end ---Set pitch for music (1.0 is base level) ---@param music Music ---@param pitch number function SetMusicPitch(music, pitch) C.SetMusicPitch(music, pitch) end ---Set pan for music (-1.0 left, 0.0 center, 1.0 right) ---@param music Music ---@param pan number function SetMusicPan(music, pan) C.SetMusicPan(music, pan) end ---Get music time length (in seconds) ---@param music Music ---@return number function GetMusicTimeLength(music) return C.GetMusicTimeLength(music) end ---Get current music time played (in seconds) ---@param music Music ---@return number function GetMusicTimePlayed(music) return C.GetMusicTimePlayed(music) end ---Load audio stream (to stream raw audio pcm data) ---@param sampleRate integer ---@param sampleSize integer ---@param channels integer ---@return AudioStream function LoadAudioStream(sampleRate, sampleSize, channels) return C.LoadAudioStream(sampleRate, sampleSize, channels) end ---Check if an audio stream is valid (buffers initialized) ---@param stream AudioStream ---@return boolean function IsAudioStreamValid(stream) return C.IsAudioStreamValid(stream) end ---Unload audio stream and free memory ---@param stream AudioStream function UnloadAudioStream(stream) C.UnloadAudioStream(stream) end ---Update audio stream buffers with data ---@param stream AudioStream ---@param data string|ffi.cdata* ---@param frameCount integer function UpdateAudioStream(stream, data, frameCount) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end C.UpdateAudioStream(stream, _a2, frameCount) end ---Check if any audio stream buffers requires refill ---@param stream AudioStream ---@return boolean function IsAudioStreamProcessed(stream) return C.IsAudioStreamProcessed(stream) end ---Play audio stream ---@param stream AudioStream function PlayAudioStream(stream) C.PlayAudioStream(stream) end ---Pause audio stream ---@param stream AudioStream function PauseAudioStream(stream) C.PauseAudioStream(stream) end ---Resume audio stream ---@param stream AudioStream function ResumeAudioStream(stream) C.ResumeAudioStream(stream) end ---Check if audio stream is playing ---@param stream AudioStream ---@return boolean function IsAudioStreamPlaying(stream) return C.IsAudioStreamPlaying(stream) end ---Stop audio stream ---@param stream AudioStream function StopAudioStream(stream) C.StopAudioStream(stream) end ---Set volume for audio stream (1.0 is max level) ---@param stream AudioStream ---@param volume number function SetAudioStreamVolume(stream, volume) C.SetAudioStreamVolume(stream, volume) end ---Set pitch for audio stream (1.0 is base level) ---@param stream AudioStream ---@param pitch number function SetAudioStreamPitch(stream, pitch) C.SetAudioStreamPitch(stream, pitch) end ---Set pan for audio stream (-1.0 left, 0.0 center, 1.0 right) ---@param stream AudioStream ---@param pan number function SetAudioStreamPan(stream, pan) C.SetAudioStreamPan(stream, pan) end ---Default size for new audio streams ---@param size integer function SetAudioStreamBufferSizeDefault(size) C.SetAudioStreamBufferSizeDefault(size) end ---Audio thread callback to request new data ---@param stream AudioStream ---@param callback ffi.cdata* function SetAudioStreamCallback(stream, callback) C.SetAudioStreamCallback(stream, callback) end ---Attach audio stream processor to stream, receives frames x 2 samples as 'float' (stereo) ---@param stream AudioStream ---@param processor ffi.cdata* function AttachAudioStreamProcessor(stream, processor) C.AttachAudioStreamProcessor(stream, processor) end ---Detach audio stream processor from stream ---@param stream AudioStream ---@param processor ffi.cdata* function DetachAudioStreamProcessor(stream, processor) C.DetachAudioStreamProcessor(stream, processor) end ---Attach audio stream processor to the entire audio pipeline, receives frames x 2 samples as 'float' (stereo) ---@param processor ffi.cdata* function AttachAudioMixedProcessor(processor) C.AttachAudioMixedProcessor(processor) end ---Detach audio stream processor from the entire audio pipeline ---@param processor ffi.cdata* function DetachAudioMixedProcessor(processor) C.DetachAudioMixedProcessor(processor) end ---Choose the current matrix to be transformed ---@param mode integer function rlMatrixMode(mode) C.rlMatrixMode(mode) end ---Push the current matrix to stack function rlPushMatrix() C.rlPushMatrix() end ---Pop latest inserted matrix from stack function rlPopMatrix() C.rlPopMatrix() end ---Reset current matrix to identity matrix function rlLoadIdentity() C.rlLoadIdentity() end ---Multiply the current matrix by a translation matrix ---@param x number ---@param y number ---@param z number function rlTranslatef(x, y, z) C.rlTranslatef(x, y, z) end ---Multiply the current matrix by a rotation matrix ---@param angle number ---@param x number ---@param y number ---@param z number function rlRotatef(angle, x, y, z) C.rlRotatef(angle, x, y, z) end ---Multiply the current matrix by a scaling matrix ---@param x number ---@param y number ---@param z number function rlScalef(x, y, z) C.rlScalef(x, y, z) end ---Multiply the current matrix by another matrix ---@param matf number[]|ffi.cdata* function rlMultMatrixf(matf) local _a1 if type(matf) == "table" then _a1 = to_array("float", matf) else _a1 = matf end C.rlMultMatrixf(_a1) end --- ---@param left number ---@param right number ---@param bottom number ---@param top number ---@param znear number ---@param zfar number function rlFrustum(left, right, bottom, top, znear, zfar) C.rlFrustum(left, right, bottom, top, znear, zfar) end --- ---@param left number ---@param right number ---@param bottom number ---@param top number ---@param znear number ---@param zfar number function rlOrtho(left, right, bottom, top, znear, zfar) C.rlOrtho(left, right, bottom, top, znear, zfar) end ---Set the viewport area ---@param x integer ---@param y integer ---@param width integer ---@param height integer function rlViewport(x, y, width, height) C.rlViewport(x, y, width, height) end ---Set clip planes distances ---@param nearPlane number ---@param farPlane number function rlSetClipPlanes(nearPlane, farPlane) C.rlSetClipPlanes(nearPlane, farPlane) end ---Get cull plane distance near ---@return number function rlGetCullDistanceNear() return C.rlGetCullDistanceNear() end ---Get cull plane distance far ---@return number function rlGetCullDistanceFar() return C.rlGetCullDistanceFar() end ---Initialize drawing mode (how to organize vertex) ---@param mode integer function rlBegin(mode) C.rlBegin(mode) end ---Finish vertex providing function rlEnd() C.rlEnd() end ---Define one vertex (position) - 2 int ---@param x integer ---@param y integer function rlVertex2i(x, y) C.rlVertex2i(x, y) end ---Define one vertex (position) - 2 float ---@param x number ---@param y number function rlVertex2f(x, y) C.rlVertex2f(x, y) end ---Define one vertex (position) - 3 float ---@param x number ---@param y number ---@param z number function rlVertex3f(x, y, z) C.rlVertex3f(x, y, z) end ---Define one vertex (texture coordinate) - 2 float ---@param x number ---@param y number function rlTexCoord2f(x, y) C.rlTexCoord2f(x, y) end ---Define one vertex (normal) - 3 float ---@param x number ---@param y number ---@param z number function rlNormal3f(x, y, z) C.rlNormal3f(x, y, z) end ---Define one vertex (color) - 4 byte ---@param r integer ---@param g integer ---@param b integer ---@param a integer function rlColor4ub(r, g, b, a) C.rlColor4ub(r, g, b, a) end ---Define one vertex (color) - 3 float ---@param x number ---@param y number ---@param z number function rlColor3f(x, y, z) C.rlColor3f(x, y, z) end ---Define one vertex (color) - 4 float ---@param x number ---@param y number ---@param z number ---@param w number function rlColor4f(x, y, z, w) C.rlColor4f(x, y, z, w) end ---Enable vertex array (VAO, if supported) ---@param vaoId integer ---@return boolean function rlEnableVertexArray(vaoId) return C.rlEnableVertexArray(vaoId) end ---Disable vertex array (VAO, if supported) function rlDisableVertexArray() C.rlDisableVertexArray() end ---Enable vertex buffer (VBO) ---@param id integer function rlEnableVertexBuffer(id) C.rlEnableVertexBuffer(id) end ---Disable vertex buffer (VBO) function rlDisableVertexBuffer() C.rlDisableVertexBuffer() end ---Enable vertex buffer element (VBO element) ---@param id integer function rlEnableVertexBufferElement(id) C.rlEnableVertexBufferElement(id) end ---Disable vertex buffer element (VBO element) function rlDisableVertexBufferElement() C.rlDisableVertexBufferElement() end ---Enable vertex attribute index ---@param index integer function rlEnableVertexAttribute(index) C.rlEnableVertexAttribute(index) end ---Disable vertex attribute index ---@param index integer function rlDisableVertexAttribute(index) C.rlDisableVertexAttribute(index) end ---Enable attribute state pointer ---@param vertexAttribType integer ---@param buffer ffi.cdata* function rlEnableStatePointer(vertexAttribType, buffer) C.rlEnableStatePointer(vertexAttribType, buffer) end ---Disable attribute state pointer ---@param vertexAttribType integer function rlDisableStatePointer(vertexAttribType) C.rlDisableStatePointer(vertexAttribType) end ---Select and active a texture slot ---@param slot integer function rlActiveTextureSlot(slot) C.rlActiveTextureSlot(slot) end ---Enable texture ---@param id integer function rlEnableTexture(id) C.rlEnableTexture(id) end ---Disable texture function rlDisableTexture() C.rlDisableTexture() end ---Enable texture cubemap ---@param id integer function rlEnableTextureCubemap(id) C.rlEnableTextureCubemap(id) end ---Disable texture cubemap function rlDisableTextureCubemap() C.rlDisableTextureCubemap() end ---Set texture parameters (filter, wrap) ---@param id integer ---@param param integer ---@param value integer function rlTextureParameters(id, param, value) C.rlTextureParameters(id, param, value) end ---Set cubemap parameters (filter, wrap) ---@param id integer ---@param param integer ---@param value integer function rlCubemapParameters(id, param, value) C.rlCubemapParameters(id, param, value) end ---Enable shader program ---@param id integer function rlEnableShader(id) C.rlEnableShader(id) end ---Disable shader program function rlDisableShader() C.rlDisableShader() end ---Enable render texture (fbo) ---@param id integer function rlEnableFramebuffer(id) C.rlEnableFramebuffer(id) end ---Disable render texture (fbo), return to default framebuffer function rlDisableFramebuffer() C.rlDisableFramebuffer() end ---Get the currently active render texture (fbo), 0 for default framebuffer ---@return integer function rlGetActiveFramebuffer() return C.rlGetActiveFramebuffer() end ---Activate multiple draw color buffers ---@param count integer function rlActiveDrawBuffers(count) C.rlActiveDrawBuffers(count) end ---Blit active framebuffer to main framebuffer ---@param srcX integer ---@param srcY integer ---@param srcWidth integer ---@param srcHeight integer ---@param dstX integer ---@param dstY integer ---@param dstWidth integer ---@param dstHeight integer ---@param bufferMask integer function rlBlitFramebuffer(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask) C.rlBlitFramebuffer(srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight, bufferMask) end ---Bind framebuffer (FBO) ---@param target integer ---@param framebuffer integer function rlBindFramebuffer(target, framebuffer) C.rlBindFramebuffer(target, framebuffer) end ---Enable color blending function rlEnableColorBlend() C.rlEnableColorBlend() end ---Disable color blending function rlDisableColorBlend() C.rlDisableColorBlend() end ---Enable depth test function rlEnableDepthTest() C.rlEnableDepthTest() end ---Disable depth test function rlDisableDepthTest() C.rlDisableDepthTest() end ---Enable depth write function rlEnableDepthMask() C.rlEnableDepthMask() end ---Disable depth write function rlDisableDepthMask() C.rlDisableDepthMask() end ---Enable backface culling function rlEnableBackfaceCulling() C.rlEnableBackfaceCulling() end ---Disable backface culling function rlDisableBackfaceCulling() C.rlDisableBackfaceCulling() end ---Color mask control ---@param r boolean ---@param g boolean ---@param b boolean ---@param a boolean function rlColorMask(r, g, b, a) C.rlColorMask(r, g, b, a) end ---Set face culling mode ---@param mode integer function rlSetCullFace(mode) C.rlSetCullFace(mode) end ---Enable scissor test function rlEnableScissorTest() C.rlEnableScissorTest() end ---Disable scissor test function rlDisableScissorTest() C.rlDisableScissorTest() end ---Scissor test ---@param x integer ---@param y integer ---@param width integer ---@param height integer function rlScissor(x, y, width, height) C.rlScissor(x, y, width, height) end ---Enable point mode function rlEnablePointMode() C.rlEnablePointMode() end ---Disable point mode function rlDisablePointMode() C.rlDisablePointMode() end ---Set the point drawing size ---@param size number function rlSetPointSize(size) C.rlSetPointSize(size) end ---Get the point drawing size ---@return number function rlGetPointSize() return C.rlGetPointSize() end ---Enable wire mode function rlEnableWireMode() C.rlEnableWireMode() end ---Disable wire mode function rlDisableWireMode() C.rlDisableWireMode() end ---Set the line drawing width ---@param width number function rlSetLineWidth(width) C.rlSetLineWidth(width) end ---Get the line drawing width ---@return number function rlGetLineWidth() return C.rlGetLineWidth() end ---Enable line aliasing function rlEnableSmoothLines() C.rlEnableSmoothLines() end ---Disable line aliasing function rlDisableSmoothLines() C.rlDisableSmoothLines() end ---Enable stereo rendering function rlEnableStereoRender() C.rlEnableStereoRender() end ---Disable stereo rendering function rlDisableStereoRender() C.rlDisableStereoRender() end ---Check if stereo render is enabled ---@return boolean function rlIsStereoRenderEnabled() return C.rlIsStereoRenderEnabled() end ---Clear color buffer with color ---@param r integer ---@param g integer ---@param b integer ---@param a integer function rlClearColor(r, g, b, a) C.rlClearColor(r, g, b, a) end ---Clear used screen buffers (color and depth) function rlClearScreenBuffers() C.rlClearScreenBuffers() end ---Check and log OpenGL error codes function rlCheckErrors() C.rlCheckErrors() end ---Set blending mode ---@param mode integer function rlSetBlendMode(mode) C.rlSetBlendMode(mode) end ---Set blending mode factor and equation (using OpenGL factors) ---@param glSrcFactor integer ---@param glDstFactor integer ---@param glEquation integer function rlSetBlendFactors(glSrcFactor, glDstFactor, glEquation) C.rlSetBlendFactors(glSrcFactor, glDstFactor, glEquation) end ---Set blending mode factors and equations separately (using OpenGL factors) ---@param glSrcRGB integer ---@param glDstRGB integer ---@param glSrcAlpha integer ---@param glDstAlpha integer ---@param glEqRGB integer ---@param glEqAlpha integer function rlSetBlendFactorsSeparate(glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha) C.rlSetBlendFactorsSeparate(glSrcRGB, glDstRGB, glSrcAlpha, glDstAlpha, glEqRGB, glEqAlpha) end ---Initialize rlgl (buffers, shaders, textures, states) ---@param width integer ---@param height integer function rlglInit(width, height) C.rlglInit(width, height) end ---De-initialize rlgl (buffers, shaders, textures) function rlglClose() C.rlglClose() end ---Load OpenGL extensions (loader function required) ---@param loader ffi.cdata* function rlLoadExtensions(loader) C.rlLoadExtensions(loader) end ---Get OpenGL procedure address ---@param procName string ---@return ffi.cdata* function rlGetProcAddress(procName) return C.rlGetProcAddress(procName) end ---Get current OpenGL version ---@return integer function rlGetVersion() return C.rlGetVersion() end ---Set current framebuffer width ---@param width integer function rlSetFramebufferWidth(width) C.rlSetFramebufferWidth(width) end ---Get default framebuffer width ---@return integer function rlGetFramebufferWidth() return C.rlGetFramebufferWidth() end ---Set current framebuffer height ---@param height integer function rlSetFramebufferHeight(height) C.rlSetFramebufferHeight(height) end ---Get default framebuffer height ---@return integer function rlGetFramebufferHeight() return C.rlGetFramebufferHeight() end ---Get default texture id ---@return integer function rlGetTextureIdDefault() return C.rlGetTextureIdDefault() end ---Get default shader id ---@return integer function rlGetShaderIdDefault() return C.rlGetShaderIdDefault() end ---Get default shader locations ---@return ffi.cdata* function rlGetShaderLocsDefault() return C.rlGetShaderLocsDefault() end ---Load a render batch system ---@param numBuffers integer ---@param bufferElements integer ---@return rlRenderBatch function rlLoadRenderBatch(numBuffers, bufferElements) return C.rlLoadRenderBatch(numBuffers, bufferElements) end ---Unload render batch system ---@param batch rlRenderBatch function rlUnloadRenderBatch(batch) C.rlUnloadRenderBatch(batch) end ---Draw render batch data (Update->Draw->Reset) ---@param batch ffi.cdata* function rlDrawRenderBatch(batch) C.rlDrawRenderBatch(batch) end ---Set the active render batch for rlgl (NULL for default internal) ---@param batch ffi.cdata* function rlSetRenderBatchActive(batch) C.rlSetRenderBatchActive(batch) end ---Update and draw internal render batch function rlDrawRenderBatchActive() C.rlDrawRenderBatchActive() end ---Check internal buffer overflow for a given number of vertex ---@param vCount integer ---@return boolean function rlCheckRenderBatchLimit(vCount) return C.rlCheckRenderBatchLimit(vCount) end ---Set current texture for render batch and check buffers limits ---@param id integer function rlSetTexture(id) C.rlSetTexture(id) end ---Load vertex array (vao) if supported ---@return integer function rlLoadVertexArray() return C.rlLoadVertexArray() end ---Load a vertex buffer object ---@param buffer string|ffi.cdata* ---@param size integer ---@param dynamic boolean ---@return integer function rlLoadVertexBuffer(buffer, size, dynamic) local _a1 if type(buffer) == "string" then _a1 = ffi.cast("const void *", buffer) else _a1 = buffer end return C.rlLoadVertexBuffer(_a1, size, dynamic) end ---Load vertex buffer elements object ---@param buffer string|ffi.cdata* ---@param size integer ---@param dynamic boolean ---@return integer function rlLoadVertexBufferElement(buffer, size, dynamic) local _a1 if type(buffer) == "string" then _a1 = ffi.cast("const void *", buffer) else _a1 = buffer end return C.rlLoadVertexBufferElement(_a1, size, dynamic) end ---Update vertex buffer object data on GPU buffer ---@param bufferId integer ---@param data string|ffi.cdata* ---@param dataSize integer ---@param offset integer function rlUpdateVertexBuffer(bufferId, data, dataSize, offset) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end C.rlUpdateVertexBuffer(bufferId, _a2, dataSize, offset) end ---Update vertex buffer elements data on GPU buffer ---@param id integer ---@param data string|ffi.cdata* ---@param dataSize integer ---@param offset integer function rlUpdateVertexBufferElements(id, data, dataSize, offset) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end C.rlUpdateVertexBufferElements(id, _a2, dataSize, offset) end ---Unload vertex array (vao) ---@param vaoId integer function rlUnloadVertexArray(vaoId) C.rlUnloadVertexArray(vaoId) end ---Unload vertex buffer object ---@param vboId integer function rlUnloadVertexBuffer(vboId) C.rlUnloadVertexBuffer(vboId) end ---Set vertex attribute data configuration ---@param index integer ---@param compSize integer ---@param type integer ---@param normalized boolean ---@param stride integer ---@param offset integer function rlSetVertexAttribute(index, compSize, type, normalized, stride, offset) C.rlSetVertexAttribute(index, compSize, type, normalized, stride, offset) end ---Set vertex attribute data divisor ---@param index integer ---@param divisor integer function rlSetVertexAttributeDivisor(index, divisor) C.rlSetVertexAttributeDivisor(index, divisor) end ---Set vertex attribute default value, when attribute to provided ---@param locIndex integer ---@param value string|ffi.cdata* ---@param attribType integer ---@param count integer function rlSetVertexAttributeDefault(locIndex, value, attribType, count) local _a2 if type(value) == "string" then _a2 = ffi.cast("const void *", value) else _a2 = value end C.rlSetVertexAttributeDefault(locIndex, _a2, attribType, count) end ---Draw vertex array (currently active vao) ---@param offset integer ---@param count integer function rlDrawVertexArray(offset, count) C.rlDrawVertexArray(offset, count) end ---Draw vertex array elements ---@param offset integer ---@param count integer ---@param buffer string|ffi.cdata* function rlDrawVertexArrayElements(offset, count, buffer) local _a3 if type(buffer) == "string" then _a3 = ffi.cast("const void *", buffer) else _a3 = buffer end C.rlDrawVertexArrayElements(offset, count, _a3) end ---Draw vertex array (currently active vao) with instancing ---@param offset integer ---@param count integer ---@param instances integer function rlDrawVertexArrayInstanced(offset, count, instances) C.rlDrawVertexArrayInstanced(offset, count, instances) end ---Draw vertex array elements with instancing ---@param offset integer ---@param count integer ---@param buffer string|ffi.cdata* ---@param instances integer function rlDrawVertexArrayElementsInstanced(offset, count, buffer, instances) local _a3 if type(buffer) == "string" then _a3 = ffi.cast("const void *", buffer) else _a3 = buffer end C.rlDrawVertexArrayElementsInstanced(offset, count, _a3, instances) end ---Load texture data ---@param data string|ffi.cdata* ---@param width integer ---@param height integer ---@param format integer ---@param mipmapCount integer ---@return integer function rlLoadTexture(data, width, height, format, mipmapCount) local _a1 if type(data) == "string" then _a1 = ffi.cast("const void *", data) else _a1 = data end return C.rlLoadTexture(_a1, width, height, format, mipmapCount) end ---Load depth texture/renderbuffer (to be attached to fbo) ---@param width integer ---@param height integer ---@param useRenderBuffer boolean ---@return integer function rlLoadTextureDepth(width, height, useRenderBuffer) return C.rlLoadTextureDepth(width, height, useRenderBuffer) end ---Load texture cubemap data ---@param data string|ffi.cdata* ---@param size integer ---@param format integer ---@param mipmapCount integer ---@return integer function rlLoadTextureCubemap(data, size, format, mipmapCount) local _a1 if type(data) == "string" then _a1 = ffi.cast("const void *", data) else _a1 = data end return C.rlLoadTextureCubemap(_a1, size, format, mipmapCount) end ---Update texture with new data on GPU ---@param id integer ---@param offsetX integer ---@param offsetY integer ---@param width integer ---@param height integer ---@param format integer ---@param data string|ffi.cdata* function rlUpdateTexture(id, offsetX, offsetY, width, height, format, data) local _a7 if type(data) == "string" then _a7 = ffi.cast("const void *", data) else _a7 = data end C.rlUpdateTexture(id, offsetX, offsetY, width, height, format, _a7) end ---Get OpenGL internal formats ---@param format integer ---@param glInternalFormat ffi.cdata* ---@param glFormat ffi.cdata* ---@param glType ffi.cdata* function rlGetGlTextureFormats(format, glInternalFormat, glFormat, glType) C.rlGetGlTextureFormats(format, glInternalFormat, glFormat, glType) end ---Get name string for pixel format ---@param format integer ---@return string function rlGetPixelFormatName(format) local _r = C.rlGetPixelFormatName(format) return _r ~= nil and ffi.string(_r) or "" end ---Unload texture from GPU memory ---@param id integer function rlUnloadTexture(id) C.rlUnloadTexture(id) end ---Generate mipmap data for selected texture ---@param id integer ---@param width integer ---@param height integer ---@param format integer ---@param mipmaps ffi.cdata* function rlGenTextureMipmaps(id, width, height, format, mipmaps) C.rlGenTextureMipmaps(id, width, height, format, mipmaps) end ---Read texture pixel data ---@param id integer ---@param width integer ---@param height integer ---@param format integer ---@return ffi.cdata* function rlReadTexturePixels(id, width, height, format) return C.rlReadTexturePixels(id, width, height, format) end ---Read screen pixel data (color buffer) ---@param width integer ---@param height integer ---@return ffi.cdata* function rlReadScreenPixels(width, height) return C.rlReadScreenPixels(width, height) end ---Load an empty framebuffer ---@return integer function rlLoadFramebuffer() return C.rlLoadFramebuffer() end ---Attach texture/renderbuffer to a framebuffer ---@param id integer ---@param texId integer ---@param attachType integer ---@param texType integer ---@param mipLevel integer function rlFramebufferAttach(id, texId, attachType, texType, mipLevel) C.rlFramebufferAttach(id, texId, attachType, texType, mipLevel) end ---Verify framebuffer is complete ---@param id integer ---@return boolean function rlFramebufferComplete(id) return C.rlFramebufferComplete(id) end ---Delete framebuffer from GPU ---@param id integer function rlUnloadFramebuffer(id) C.rlUnloadFramebuffer(id) end ---Copy framebuffer pixel data to internal buffer ---@param x integer ---@param y integer ---@param width integer ---@param height integer ---@param format integer ---@param pixels ffi.cdata* function rlCopyFramebuffer(x, y, width, height, format, pixels) C.rlCopyFramebuffer(x, y, width, height, format, pixels) end ---Resize internal framebuffer ---@param width integer ---@param height integer function rlResizeFramebuffer(width, height) C.rlResizeFramebuffer(width, height) end ---Load (compile) shader and return shader id (type: RL_VERTEX_SHADER, RL_FRAGMENT_SHADER, RL_COMPUTE_SHADER) ---@param code string ---@param type integer ---@return integer function rlLoadShader(code, type) return C.rlLoadShader(code, type) end ---Load shader from code strings ---@param vsCode string ---@param fsCode string ---@return integer function rlLoadShaderProgram(vsCode, fsCode) return C.rlLoadShaderProgram(vsCode, fsCode) end ---Load shader program, using already loaded shader ids ---@param vsId integer ---@param fsId integer ---@return integer function rlLoadShaderProgramEx(vsId, fsId) return C.rlLoadShaderProgramEx(vsId, fsId) end ---Load compute shader program ---@param csId integer ---@return integer function rlLoadShaderProgramCompute(csId) return C.rlLoadShaderProgramCompute(csId) end ---Unload shader, loaded with rlLoadShader() ---@param id integer function rlUnloadShader(id) C.rlUnloadShader(id) end ---Unload shader program ---@param id integer function rlUnloadShaderProgram(id) C.rlUnloadShaderProgram(id) end ---Get shader location uniform, requires shader program id ---@param id integer ---@param uniformName string ---@return integer function rlGetLocationUniform(id, uniformName) return C.rlGetLocationUniform(id, uniformName) end ---Get shader location attribute, requires shader program id ---@param id integer ---@param attribName string ---@return integer function rlGetLocationAttrib(id, attribName) return C.rlGetLocationAttrib(id, attribName) end ---Set shader value uniform ---@param locIndex integer ---@param value string|ffi.cdata* ---@param uniformType ShaderUniformDataType ---@param count integer function rlSetUniform(locIndex, value, uniformType, count) local _a2 if type(value) == "string" then _a2 = ffi.cast("const void *", value) else _a2 = value end C.rlSetUniform(locIndex, _a2, uniformType, count) end ---Set shader value matrix ---@param locIndex integer ---@param mat Matrix function rlSetUniformMatrix(locIndex, mat) C.rlSetUniformMatrix(locIndex, mat) end ---Set shader value matrices ---@param locIndex integer ---@param mat Matrix[]|ffi.cdata* ---@param count integer function rlSetUniformMatrices(locIndex, mat, count) local _a2 if type(mat) == "table" then _a2 = to_array("Matrix", mat) else _a2 = mat end C.rlSetUniformMatrices(locIndex, _a2, count) end ---Set shader value sampler ---@param locIndex integer ---@param textureId integer function rlSetUniformSampler(locIndex, textureId) C.rlSetUniformSampler(locIndex, textureId) end ---Set shader currently active (id and locations) ---@param id integer ---@param locs ffi.cdata* function rlSetShader(id, locs) C.rlSetShader(id, locs) end ---Dispatch compute shader (equivalent to *draw* for graphics pipeline) ---@param groupX integer ---@param groupY integer ---@param groupZ integer function rlComputeShaderDispatch(groupX, groupY, groupZ) C.rlComputeShaderDispatch(groupX, groupY, groupZ) end ---Load shader storage buffer object (SSBO) ---@param size integer ---@param data string|ffi.cdata* ---@param usageHint integer ---@return integer function rlLoadShaderBuffer(size, data, usageHint) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end return C.rlLoadShaderBuffer(size, _a2, usageHint) end ---Unload shader storage buffer object (SSBO) ---@param ssboId integer function rlUnloadShaderBuffer(ssboId) C.rlUnloadShaderBuffer(ssboId) end ---Update SSBO buffer data ---@param id integer ---@param data string|ffi.cdata* ---@param dataSize integer ---@param offset integer function rlUpdateShaderBuffer(id, data, dataSize, offset) local _a2 if type(data) == "string" then _a2 = ffi.cast("const void *", data) else _a2 = data end C.rlUpdateShaderBuffer(id, _a2, dataSize, offset) end ---Bind SSBO buffer ---@param id integer ---@param index integer function rlBindShaderBuffer(id, index) C.rlBindShaderBuffer(id, index) end ---Read SSBO buffer data (GPU->CPU) ---@param id integer ---@param dest ffi.cdata* ---@param count integer ---@param offset integer function rlReadShaderBuffer(id, dest, count, offset) C.rlReadShaderBuffer(id, dest, count, offset) end ---Copy SSBO data between buffers ---@param destId integer ---@param srcId integer ---@param destOffset integer ---@param srcOffset integer ---@param count integer function rlCopyShaderBuffer(destId, srcId, destOffset, srcOffset, count) C.rlCopyShaderBuffer(destId, srcId, destOffset, srcOffset, count) end ---Get SSBO buffer size ---@param id integer ---@return integer function rlGetShaderBufferSize(id) return C.rlGetShaderBufferSize(id) end ---Bind image texture ---@param id integer ---@param index integer ---@param format integer ---@param readonly boolean function rlBindImageTexture(id, index, format, readonly) C.rlBindImageTexture(id, index, format, readonly) end ---Get internal modelview matrix ---@return Matrix function rlGetMatrixModelview() return C.rlGetMatrixModelview() end ---Get internal projection matrix ---@return Matrix function rlGetMatrixProjection() return C.rlGetMatrixProjection() end ---Get internal accumulated transform matrix ---@return Matrix function rlGetMatrixTransform() return C.rlGetMatrixTransform() end ---Get internal projection matrix for stereo render (selected eye) ---@param eye integer ---@return Matrix function rlGetMatrixProjectionStereo(eye) return C.rlGetMatrixProjectionStereo(eye) end ---Get internal view offset matrix for stereo render (selected eye) ---@param eye integer ---@return Matrix function rlGetMatrixViewOffsetStereo(eye) return C.rlGetMatrixViewOffsetStereo(eye) end ---Set a custom projection matrix (replaces internal projection matrix) ---@param proj Matrix function rlSetMatrixProjection(proj) C.rlSetMatrixProjection(proj) end ---Set a custom modelview matrix (replaces internal modelview matrix) ---@param view Matrix function rlSetMatrixModelview(view) C.rlSetMatrixModelview(view) end ---Set eyes projection matrices for stereo rendering ---@param right Matrix ---@param left Matrix function rlSetMatrixProjectionStereo(right, left) C.rlSetMatrixProjectionStereo(right, left) end ---Set eyes view offsets matrices for stereo rendering ---@param right Matrix ---@param left Matrix function rlSetMatrixViewOffsetStereo(right, left) C.rlSetMatrixViewOffsetStereo(right, left) end ---Load and draw a cube function rlLoadDrawCube() C.rlLoadDrawCube() end ---Load and draw a quad function rlLoadDrawQuad() C.rlLoadDrawQuad() end --- ---@param value number ---@param min number ---@param max number ---@return number function Clamp(value, min, max) return C.Clamp(value, min, max) end --- ---@param start number ---@param _end number ---@param amount number ---@return number function Lerp(start, _end, amount) return C.Lerp(start, _end, amount) end --- ---@param value number ---@param start number ---@param _end number ---@return number function Normalize(value, start, _end) return C.Normalize(value, start, _end) end --- ---@param value number ---@param inputStart number ---@param inputEnd number ---@param outputStart number ---@param outputEnd number ---@return number function Remap(value, inputStart, inputEnd, outputStart, outputEnd) return C.Remap(value, inputStart, inputEnd, outputStart, outputEnd) end --- ---@param value number ---@param min number ---@param max number ---@return number function Wrap(value, min, max) return C.Wrap(value, min, max) end --- ---@param x number ---@param y number ---@return integer function FloatEquals(x, y) return C.FloatEquals(x, y) end --- ---@return Vector2 function Vector2Zero() return C.Vector2Zero() end --- ---@return Vector2 function Vector2One() return C.Vector2One() end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return Vector2 function Vector2Add(v1, v2) return C.Vector2Add(v1, v2) end --- ---@param v Vector2 ---@param add number ---@return Vector2 function Vector2AddValue(v, add) return C.Vector2AddValue(v, add) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return Vector2 function Vector2Subtract(v1, v2) return C.Vector2Subtract(v1, v2) end --- ---@param v Vector2 ---@param sub number ---@return Vector2 function Vector2SubtractValue(v, sub) return C.Vector2SubtractValue(v, sub) end --- ---@param v Vector2 ---@return number function Vector2Length(v) return C.Vector2Length(v) end --- ---@param v Vector2 ---@return number function Vector2LengthSqr(v) return C.Vector2LengthSqr(v) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return number function Vector2DotProduct(v1, v2) return C.Vector2DotProduct(v1, v2) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return number function Vector2CrossProduct(v1, v2) return C.Vector2CrossProduct(v1, v2) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return number function Vector2Distance(v1, v2) return C.Vector2Distance(v1, v2) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return number function Vector2DistanceSqr(v1, v2) return C.Vector2DistanceSqr(v1, v2) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return number function Vector2Angle(v1, v2) return C.Vector2Angle(v1, v2) end --- ---@param start Vector2 ---@param _end Vector2 ---@return number function Vector2LineAngle(start, _end) return C.Vector2LineAngle(start, _end) end --- ---@param v Vector2 ---@param scale number ---@return Vector2 function Vector2Scale(v, scale) return C.Vector2Scale(v, scale) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return Vector2 function Vector2Multiply(v1, v2) return C.Vector2Multiply(v1, v2) end --- ---@param v Vector2 ---@return Vector2 function Vector2Negate(v) return C.Vector2Negate(v) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return Vector2 function Vector2Divide(v1, v2) return C.Vector2Divide(v1, v2) end --- ---@param v Vector2 ---@return Vector2 function Vector2Normalize(v) return C.Vector2Normalize(v) end --- ---@param v Vector2 ---@param mat Matrix ---@return Vector2 function Vector2Transform(v, mat) return C.Vector2Transform(v, mat) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@param amount number ---@return Vector2 function Vector2Lerp(v1, v2, amount) return C.Vector2Lerp(v1, v2, amount) end --- ---@param v Vector2 ---@param normal Vector2 ---@return Vector2 function Vector2Reflect(v, normal) return C.Vector2Reflect(v, normal) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return Vector2 function Vector2Min(v1, v2) return C.Vector2Min(v1, v2) end --- ---@param v1 Vector2 ---@param v2 Vector2 ---@return Vector2 function Vector2Max(v1, v2) return C.Vector2Max(v1, v2) end --- ---@param v Vector2 ---@param angle number ---@return Vector2 function Vector2Rotate(v, angle) return C.Vector2Rotate(v, angle) end --- ---@param v Vector2 ---@param target Vector2 ---@param maxDistance number ---@return Vector2 function Vector2MoveTowards(v, target, maxDistance) return C.Vector2MoveTowards(v, target, maxDistance) end --- ---@param v Vector2 ---@return Vector2 function Vector2Invert(v) return C.Vector2Invert(v) end --- ---@param v Vector2 ---@param min Vector2 ---@param max Vector2 ---@return Vector2 function Vector2Clamp(v, min, max) return C.Vector2Clamp(v, min, max) end --- ---@param v Vector2 ---@param min number ---@param max number ---@return Vector2 function Vector2ClampValue(v, min, max) return C.Vector2ClampValue(v, min, max) end --- ---@param p Vector2 ---@param q Vector2 ---@return integer function Vector2Equals(p, q) return C.Vector2Equals(p, q) end --- ---@param v Vector2 ---@param n Vector2 ---@param r number ---@return Vector2 function Vector2Refract(v, n, r) return C.Vector2Refract(v, n, r) end --- ---@return Vector3 function Vector3Zero() return C.Vector3Zero() end --- ---@return Vector3 function Vector3One() return C.Vector3One() end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Add(v1, v2) return C.Vector3Add(v1, v2) end --- ---@param v Vector3 ---@param add number ---@return Vector3 function Vector3AddValue(v, add) return C.Vector3AddValue(v, add) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Subtract(v1, v2) return C.Vector3Subtract(v1, v2) end --- ---@param v Vector3 ---@param sub number ---@return Vector3 function Vector3SubtractValue(v, sub) return C.Vector3SubtractValue(v, sub) end --- ---@param v Vector3 ---@param scalar number ---@return Vector3 function Vector3Scale(v, scalar) return C.Vector3Scale(v, scalar) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Multiply(v1, v2) return C.Vector3Multiply(v1, v2) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3CrossProduct(v1, v2) return C.Vector3CrossProduct(v1, v2) end --- ---@param v Vector3 ---@return Vector3 function Vector3Perpendicular(v) return C.Vector3Perpendicular(v) end --- ---@param v Vector3 ---@return number function Vector3Length(v) return C.Vector3Length(v) end --- ---@param v Vector3 ---@return number function Vector3LengthSqr(v) return C.Vector3LengthSqr(v) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return number function Vector3DotProduct(v1, v2) return C.Vector3DotProduct(v1, v2) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return number function Vector3Distance(v1, v2) return C.Vector3Distance(v1, v2) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return number function Vector3DistanceSqr(v1, v2) return C.Vector3DistanceSqr(v1, v2) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return number function Vector3Angle(v1, v2) return C.Vector3Angle(v1, v2) end --- ---@param v Vector3 ---@return Vector3 function Vector3Negate(v) return C.Vector3Negate(v) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Divide(v1, v2) return C.Vector3Divide(v1, v2) end --- ---@param v Vector3 ---@return Vector3 function Vector3Normalize(v) return C.Vector3Normalize(v) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Project(v1, v2) return C.Vector3Project(v1, v2) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Reject(v1, v2) return C.Vector3Reject(v1, v2) end --- ---@param v1 ffi.cdata* ---@param v2 ffi.cdata* function Vector3OrthoNormalize(v1, v2) C.Vector3OrthoNormalize(v1, v2) end --- ---@param v Vector3 ---@param mat Matrix ---@return Vector3 function Vector3Transform(v, mat) return C.Vector3Transform(v, mat) end --- ---@param v Vector3 ---@param q Quaternion ---@return Vector3 function Vector3RotateByQuaternion(v, q) return C.Vector3RotateByQuaternion(v, q) end --- ---@param v Vector3 ---@param axis Vector3 ---@param angle number ---@return Vector3 function Vector3RotateByAxisAngle(v, axis, angle) return C.Vector3RotateByAxisAngle(v, axis, angle) end --- ---@param v Vector3 ---@param target Vector3 ---@param maxDistance number ---@return Vector3 function Vector3MoveTowards(v, target, maxDistance) return C.Vector3MoveTowards(v, target, maxDistance) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@param amount number ---@return Vector3 function Vector3Lerp(v1, v2, amount) return C.Vector3Lerp(v1, v2, amount) end --- ---@param v1 Vector3 ---@param tangent1 Vector3 ---@param v2 Vector3 ---@param tangent2 Vector3 ---@param amount number ---@return Vector3 function Vector3CubicHermite(v1, tangent1, v2, tangent2, amount) return C.Vector3CubicHermite(v1, tangent1, v2, tangent2, amount) end --- ---@param v Vector3 ---@param normal Vector3 ---@return Vector3 function Vector3Reflect(v, normal) return C.Vector3Reflect(v, normal) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Min(v1, v2) return C.Vector3Min(v1, v2) end --- ---@param v1 Vector3 ---@param v2 Vector3 ---@return Vector3 function Vector3Max(v1, v2) return C.Vector3Max(v1, v2) end --- ---@param p Vector3 ---@param a Vector3 ---@param b Vector3 ---@param c Vector3 ---@return Vector3 function Vector3Barycenter(p, a, b, c) return C.Vector3Barycenter(p, a, b, c) end --- ---@param source Vector3 ---@param projection Matrix ---@param view Matrix ---@return Vector3 function Vector3Unproject(source, projection, view) return C.Vector3Unproject(source, projection, view) end --- ---@param v Vector3 ---@return float3 function Vector3ToFloatV(v) return C.Vector3ToFloatV(v) end --- ---@param v Vector3 ---@return Vector3 function Vector3Invert(v) return C.Vector3Invert(v) end --- ---@param v Vector3 ---@param min Vector3 ---@param max Vector3 ---@return Vector3 function Vector3Clamp(v, min, max) return C.Vector3Clamp(v, min, max) end --- ---@param v Vector3 ---@param min number ---@param max number ---@return Vector3 function Vector3ClampValue(v, min, max) return C.Vector3ClampValue(v, min, max) end --- ---@param p Vector3 ---@param q Vector3 ---@return integer function Vector3Equals(p, q) return C.Vector3Equals(p, q) end --- ---@param v Vector3 ---@param n Vector3 ---@param r number ---@return Vector3 function Vector3Refract(v, n, r) return C.Vector3Refract(v, n, r) end --- ---@return Vector4 function Vector4Zero() return C.Vector4Zero() end --- ---@return Vector4 function Vector4One() return C.Vector4One() end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return Vector4 function Vector4Add(v1, v2) return C.Vector4Add(v1, v2) end --- ---@param v Vector4 ---@param add number ---@return Vector4 function Vector4AddValue(v, add) return C.Vector4AddValue(v, add) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return Vector4 function Vector4Subtract(v1, v2) return C.Vector4Subtract(v1, v2) end --- ---@param v Vector4 ---@param add number ---@return Vector4 function Vector4SubtractValue(v, add) return C.Vector4SubtractValue(v, add) end --- ---@param v Vector4 ---@return number function Vector4Length(v) return C.Vector4Length(v) end --- ---@param v Vector4 ---@return number function Vector4LengthSqr(v) return C.Vector4LengthSqr(v) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return number function Vector4DotProduct(v1, v2) return C.Vector4DotProduct(v1, v2) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return number function Vector4Distance(v1, v2) return C.Vector4Distance(v1, v2) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return number function Vector4DistanceSqr(v1, v2) return C.Vector4DistanceSqr(v1, v2) end --- ---@param v Vector4 ---@param scale number ---@return Vector4 function Vector4Scale(v, scale) return C.Vector4Scale(v, scale) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return Vector4 function Vector4Multiply(v1, v2) return C.Vector4Multiply(v1, v2) end --- ---@param v Vector4 ---@return Vector4 function Vector4Negate(v) return C.Vector4Negate(v) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return Vector4 function Vector4Divide(v1, v2) return C.Vector4Divide(v1, v2) end --- ---@param v Vector4 ---@return Vector4 function Vector4Normalize(v) return C.Vector4Normalize(v) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return Vector4 function Vector4Min(v1, v2) return C.Vector4Min(v1, v2) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@return Vector4 function Vector4Max(v1, v2) return C.Vector4Max(v1, v2) end --- ---@param v1 Vector4 ---@param v2 Vector4 ---@param amount number ---@return Vector4 function Vector4Lerp(v1, v2, amount) return C.Vector4Lerp(v1, v2, amount) end --- ---@param v Vector4 ---@param target Vector4 ---@param maxDistance number ---@return Vector4 function Vector4MoveTowards(v, target, maxDistance) return C.Vector4MoveTowards(v, target, maxDistance) end --- ---@param v Vector4 ---@return Vector4 function Vector4Invert(v) return C.Vector4Invert(v) end --- ---@param p Vector4 ---@param q Vector4 ---@return integer function Vector4Equals(p, q) return C.Vector4Equals(p, q) end --- ---@param mat Matrix ---@return number function MatrixDeterminant(mat) return C.MatrixDeterminant(mat) end --- ---@param mat Matrix ---@return number function MatrixTrace(mat) return C.MatrixTrace(mat) end --- ---@param mat Matrix ---@return Matrix function MatrixTranspose(mat) return C.MatrixTranspose(mat) end --- ---@param mat Matrix ---@return Matrix function MatrixInvert(mat) return C.MatrixInvert(mat) end --- ---@return Matrix function MatrixIdentity() return C.MatrixIdentity() end --- ---@param left Matrix ---@param right Matrix ---@return Matrix function MatrixAdd(left, right) return C.MatrixAdd(left, right) end --- ---@param left Matrix ---@param right Matrix ---@return Matrix function MatrixSubtract(left, right) return C.MatrixSubtract(left, right) end --- ---@param left Matrix ---@param right Matrix ---@return Matrix function MatrixMultiply(left, right) return C.MatrixMultiply(left, right) end --- ---@param left Matrix ---@param value number ---@return Matrix function MatrixMultiplyValue(left, value) return C.MatrixMultiplyValue(left, value) end --- ---@param x number ---@param y number ---@param z number ---@return Matrix function MatrixTranslate(x, y, z) return C.MatrixTranslate(x, y, z) end --- ---@param axis Vector3 ---@param angle number ---@return Matrix function MatrixRotate(axis, angle) return C.MatrixRotate(axis, angle) end --- ---@param angle number ---@return Matrix function MatrixRotateX(angle) return C.MatrixRotateX(angle) end --- ---@param angle number ---@return Matrix function MatrixRotateY(angle) return C.MatrixRotateY(angle) end --- ---@param angle number ---@return Matrix function MatrixRotateZ(angle) return C.MatrixRotateZ(angle) end --- ---@param angle Vector3 ---@return Matrix function MatrixRotateXYZ(angle) return C.MatrixRotateXYZ(angle) end --- ---@param angle Vector3 ---@return Matrix function MatrixRotateZYX(angle) return C.MatrixRotateZYX(angle) end --- ---@param x number ---@param y number ---@param z number ---@return Matrix function MatrixScale(x, y, z) return C.MatrixScale(x, y, z) end --- ---@param left number ---@param right number ---@param bottom number ---@param top number ---@param nearPlane number ---@param farPlane number ---@return Matrix function MatrixFrustum(left, right, bottom, top, nearPlane, farPlane) return C.MatrixFrustum(left, right, bottom, top, nearPlane, farPlane) end --- ---@param fovY number ---@param aspect number ---@param nearPlane number ---@param farPlane number ---@return Matrix function MatrixPerspective(fovY, aspect, nearPlane, farPlane) return C.MatrixPerspective(fovY, aspect, nearPlane, farPlane) end --- ---@param left number ---@param right number ---@param bottom number ---@param top number ---@param nearPlane number ---@param farPlane number ---@return Matrix function MatrixOrtho(left, right, bottom, top, nearPlane, farPlane) return C.MatrixOrtho(left, right, bottom, top, nearPlane, farPlane) end --- ---@param eye Vector3 ---@param target Vector3 ---@param up Vector3 ---@return Matrix function MatrixLookAt(eye, target, up) return C.MatrixLookAt(eye, target, up) end --- ---@param mat Matrix ---@return float16 function MatrixToFloatV(mat) return C.MatrixToFloatV(mat) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@return Quaternion function QuaternionAdd(q1, q2) return C.QuaternionAdd(q1, q2) end --- ---@param q Quaternion ---@param add number ---@return Quaternion function QuaternionAddValue(q, add) return C.QuaternionAddValue(q, add) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@return Quaternion function QuaternionSubtract(q1, q2) return C.QuaternionSubtract(q1, q2) end --- ---@param q Quaternion ---@param sub number ---@return Quaternion function QuaternionSubtractValue(q, sub) return C.QuaternionSubtractValue(q, sub) end --- ---@return Quaternion function QuaternionIdentity() return C.QuaternionIdentity() end --- ---@param q Quaternion ---@return number function QuaternionLength(q) return C.QuaternionLength(q) end --- ---@param q Quaternion ---@return Quaternion function QuaternionNormalize(q) return C.QuaternionNormalize(q) end --- ---@param q Quaternion ---@return Quaternion function QuaternionInvert(q) return C.QuaternionInvert(q) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@return Quaternion function QuaternionMultiply(q1, q2) return C.QuaternionMultiply(q1, q2) end --- ---@param q Quaternion ---@param mul number ---@return Quaternion function QuaternionScale(q, mul) return C.QuaternionScale(q, mul) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@return Quaternion function QuaternionDivide(q1, q2) return C.QuaternionDivide(q1, q2) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@param amount number ---@return Quaternion function QuaternionLerp(q1, q2, amount) return C.QuaternionLerp(q1, q2, amount) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@param amount number ---@return Quaternion function QuaternionNlerp(q1, q2, amount) return C.QuaternionNlerp(q1, q2, amount) end --- ---@param q1 Quaternion ---@param q2 Quaternion ---@param amount number ---@return Quaternion function QuaternionSlerp(q1, q2, amount) return C.QuaternionSlerp(q1, q2, amount) end --- ---@param q1 Quaternion ---@param outTangent1 Quaternion ---@param q2 Quaternion ---@param inTangent2 Quaternion ---@param t number ---@return Quaternion function QuaternionCubicHermiteSpline(q1, outTangent1, q2, inTangent2, t) return C.QuaternionCubicHermiteSpline(q1, outTangent1, q2, inTangent2, t) end --- ---@param from Vector3 ---@param to Vector3 ---@return Quaternion function QuaternionFromVector3ToVector3(from, to) return C.QuaternionFromVector3ToVector3(from, to) end --- ---@param mat Matrix ---@return Quaternion function QuaternionFromMatrix(mat) return C.QuaternionFromMatrix(mat) end --- ---@param q Quaternion ---@return Matrix function QuaternionToMatrix(q) return C.QuaternionToMatrix(q) end --- ---@param axis Vector3 ---@param angle number ---@return Quaternion function QuaternionFromAxisAngle(axis, angle) return C.QuaternionFromAxisAngle(axis, angle) end --- ---@param q Quaternion ---@param outAxis ffi.cdata* ---@param outAngle ffi.cdata* function QuaternionToAxisAngle(q, outAxis, outAngle) C.QuaternionToAxisAngle(q, outAxis, outAngle) end --- ---@param pitch number ---@param yaw number ---@param roll number ---@return Quaternion function QuaternionFromEuler(pitch, yaw, roll) return C.QuaternionFromEuler(pitch, yaw, roll) end --- ---@param q Quaternion ---@return Vector3 function QuaternionToEuler(q) return C.QuaternionToEuler(q) end --- ---@param q Quaternion ---@param mat Matrix ---@return Quaternion function QuaternionTransform(q, mat) return C.QuaternionTransform(q, mat) end --- ---@param p Quaternion ---@param q Quaternion ---@return integer function QuaternionEquals(p, q) return C.QuaternionEquals(p, q) end --- ---@param translation Vector3 ---@param rotation Quaternion ---@param scale Vector3 ---@return Matrix function MatrixCompose(translation, rotation, scale) return C.MatrixCompose(translation, rotation, scale) end --- ---@param mat Matrix ---@param translation ffi.cdata* ---@param rotation ffi.cdata* ---@param scale ffi.cdata* function MatrixDecompose(mat, translation, rotation, scale) C.MatrixDecompose(mat, translation, rotation, scale) end ---Enable gui controls (global state) function GuiEnable() C.GuiEnable() end ---Disable gui controls (global state) function GuiDisable() C.GuiDisable() end ---Lock gui controls (global state) function GuiLock() C.GuiLock() end ---Unlock gui controls (global state) function GuiUnlock() C.GuiUnlock() end ---Check if gui is locked (global state) ---@return boolean function GuiIsLocked() return C.GuiIsLocked() end ---Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f ---@param alpha number function GuiSetAlpha(alpha) C.GuiSetAlpha(alpha) end ---Set gui state (global state) ---@param state integer function GuiSetState(state) C.GuiSetState(state) end ---Get gui state (global state) ---@return integer function GuiGetState() return C.GuiGetState() end ---Set gui custom font (global state) ---@param font Font function GuiSetFont(font) C.GuiSetFont(font) end ---Get gui custom font (global state) ---@return Font function GuiGetFont() return C.GuiGetFont() end ---Set one style property ---@param control integer ---@param property integer ---@param value integer function GuiSetStyle(control, property, value) C.GuiSetStyle(control, property, value) end ---Get one style property ---@param control integer ---@param property integer ---@return integer function GuiGetStyle(control, property) return C.GuiGetStyle(control, property) end ---Load style file over global style variable (.rgs) ---@param fileName string function GuiLoadStyle(fileName) C.GuiLoadStyle(fileName) end ---Load style from memory (binary only) ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer function GuiLoadStyleFromMemory(fileData, dataSize) local _a1 if type(fileData) == "string" then _a1 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a1 = to_array("unsigned char", fileData) else _a1 = fileData end C.GuiLoadStyleFromMemory(_a1, dataSize) end ---Load style default over global style function GuiLoadStyleDefault() C.GuiLoadStyleDefault() end ---Enable gui tooltips (global state) function GuiEnableTooltip() C.GuiEnableTooltip() end ---Disable gui tooltips (global state) function GuiDisableTooltip() C.GuiDisableTooltip() end ---Set tooltip string ---@param tooltip string function GuiSetTooltip(tooltip) C.GuiSetTooltip(tooltip) end ---Get text with icon id prepended (if supported) ---@param iconId integer ---@param text string ---@return string function GuiIconText(iconId, text) local _r = C.GuiIconText(iconId, text) return _r ~= nil and ffi.string(_r) or "" end ---Set default icon drawing size ---@param scale integer function GuiSetIconScale(scale) C.GuiSetIconScale(scale) end ---Get raygui icons data pointer ---@return ffi.cdata* function GuiGetIcons() return C.GuiGetIcons() end ---Load raygui icons file (.rgi) into internal icons data ---@param fileName string ---@param loadIconsName boolean ---@return ffi.cdata* function GuiLoadIcons(fileName, loadIconsName) return C.GuiLoadIcons(fileName, loadIconsName) end ---Load raygui icons file (.rgi) from memory into internal icons data ---@param fileData string|integer[]|ffi.cdata* ---@param dataSize integer ---@param loadIconsName boolean ---@return ffi.cdata* function GuiLoadIconsFromMemory(fileData, dataSize, loadIconsName) local _a1 if type(fileData) == "string" then _a1 = ffi.cast("const unsigned char *", fileData) elseif type(fileData) == "table" then _a1 = to_array("unsigned char", fileData) else _a1 = fileData end return C.GuiLoadIconsFromMemory(_a1, dataSize, loadIconsName) end ---Draw icon using pixel size at specified position ---@param iconId integer ---@param posX integer ---@param posY integer ---@param pixelSize integer ---@param color Color function GuiDrawIcon(iconId, posX, posY, pixelSize, color) C.GuiDrawIcon(iconId, posX, posY, pixelSize, color) end ---Get text width considering gui style and icon size (if required) ---@param text string ---@return integer function GuiGetTextWidth(text) return C.GuiGetTextWidth(text) end ---Window Box control, shows a window that can be closed ---@param bounds Rectangle ---@param title string ---@return integer function GuiWindowBox(bounds, title) return C.GuiWindowBox(bounds, title) end ---Group Box control with text name ---@param bounds Rectangle ---@param text string ---@return integer function GuiGroupBox(bounds, text) return C.GuiGroupBox(bounds, text) end ---Line separator control, could contain text ---@param bounds Rectangle ---@param text string ---@return integer function GuiLine(bounds, text) return C.GuiLine(bounds, text) end ---Panel control, useful to group controls ---@param bounds Rectangle ---@param text string ---@return integer function GuiPanel(bounds, text) return C.GuiPanel(bounds, text) end ---Scroll Panel control ---@param bounds Rectangle ---@param text string ---@param content Rectangle ---@param scroll ffi.cdata* ---@param view ffi.cdata* ---@return integer function GuiScrollPanel(bounds, text, content, scroll, view) return C.GuiScrollPanel(bounds, text, content, scroll, view) end ---Label control ---@param bounds Rectangle ---@param text string ---@return integer function GuiLabel(bounds, text) return C.GuiLabel(bounds, text) end ---Button control, returns true when clicked ---@param bounds Rectangle ---@param text string ---@return integer function GuiButton(bounds, text) return C.GuiButton(bounds, text) end ---Label button control, returns true when clicked ---@param bounds Rectangle ---@param text string ---@return integer function GuiLabelButton(bounds, text) return C.GuiLabelButton(bounds, text) end ---Toggle Button control ---@param bounds Rectangle ---@param text string ---@param active ffi.cdata* ---@return integer function GuiToggle(bounds, text, active) return C.GuiToggle(bounds, text, active) end ---Toggle Group control ---@param bounds Rectangle ---@param text string ---@param active ffi.cdata* ---@return integer function GuiToggleGroup(bounds, text, active) return C.GuiToggleGroup(bounds, text, active) end ---Toggle Slider control ---@param bounds Rectangle ---@param text string ---@param active ffi.cdata* ---@return integer function GuiToggleSlider(bounds, text, active) return C.GuiToggleSlider(bounds, text, active) end ---Check Box control, returns true when active ---@param bounds Rectangle ---@param text string ---@param checked ffi.cdata* ---@return integer function GuiCheckBox(bounds, text, checked) return C.GuiCheckBox(bounds, text, checked) end ---Combo Box control ---@param bounds Rectangle ---@param text string ---@param active ffi.cdata* ---@return integer function GuiComboBox(bounds, text, active) return C.GuiComboBox(bounds, text, active) end ---Dropdown Box control ---@param bounds Rectangle ---@param text string ---@param active ffi.cdata* ---@param editMode boolean ---@return integer function GuiDropdownBox(bounds, text, active, editMode) return C.GuiDropdownBox(bounds, text, active, editMode) end ---Spinner control ---@param bounds Rectangle ---@param text string ---@param value ffi.cdata* ---@param minValue integer ---@param maxValue integer ---@param editMode boolean ---@return integer function GuiSpinner(bounds, text, value, minValue, maxValue, editMode) return C.GuiSpinner(bounds, text, value, minValue, maxValue, editMode) end ---Value Box control, updates input text with numbers ---@param bounds Rectangle ---@param text string ---@param value ffi.cdata* ---@param minValue integer ---@param maxValue integer ---@param editMode boolean ---@return integer function GuiValueBox(bounds, text, value, minValue, maxValue, editMode) return C.GuiValueBox(bounds, text, value, minValue, maxValue, editMode) end ---Value box control for float values ---@param bounds Rectangle ---@param text string ---@param textValue ffi.cdata* ---@param value ffi.cdata* ---@param editMode boolean ---@return integer function GuiValueBoxFloat(bounds, text, textValue, value, editMode) return C.GuiValueBoxFloat(bounds, text, textValue, value, editMode) end ---Text Box control, updates input text ---@param bounds Rectangle ---@param text ffi.cdata* ---@param textSize integer ---@param editMode boolean ---@return integer function GuiTextBox(bounds, text, textSize, editMode) return C.GuiTextBox(bounds, text, textSize, editMode) end ---Slider control ---@param bounds Rectangle ---@param textLeft string ---@param textRight string ---@param value ffi.cdata* ---@param minValue number ---@param maxValue number ---@return integer function GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue) return C.GuiSlider(bounds, textLeft, textRight, value, minValue, maxValue) end ---Slider Bar control ---@param bounds Rectangle ---@param textLeft string ---@param textRight string ---@param value ffi.cdata* ---@param minValue number ---@param maxValue number ---@return integer function GuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue) return C.GuiSliderBar(bounds, textLeft, textRight, value, minValue, maxValue) end ---Progress Bar control ---@param bounds Rectangle ---@param textLeft string ---@param textRight string ---@param value ffi.cdata* ---@param minValue number ---@param maxValue number ---@return integer function GuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue) return C.GuiProgressBar(bounds, textLeft, textRight, value, minValue, maxValue) end ---Status Bar control, shows info text ---@param bounds Rectangle ---@param text string ---@return integer function GuiStatusBar(bounds, text) return C.GuiStatusBar(bounds, text) end ---Dummy control for placeholders ---@param bounds Rectangle ---@param text string ---@return integer function GuiDummyRec(bounds, text) return C.GuiDummyRec(bounds, text) end ---Grid control ---@param bounds Rectangle ---@param text string ---@param spacing number ---@param subdivs integer ---@param mouseCell ffi.cdata* ---@return integer function GuiGrid(bounds, text, spacing, subdivs, mouseCell) return C.GuiGrid(bounds, text, spacing, subdivs, mouseCell) end ---List View control ---@param bounds Rectangle ---@param text string ---@param scrollIndex ffi.cdata* ---@param active ffi.cdata* ---@return integer function GuiListView(bounds, text, scrollIndex, active) return C.GuiListView(bounds, text, scrollIndex, active) end ---List View control, using text entries list and returning focus entry ---@param bounds Rectangle ---@param text string[]|ffi.cdata* ---@param count integer ---@param scrollIndex ffi.cdata* ---@param active ffi.cdata* ---@param focus ffi.cdata* ---@return integer function GuiListViewEx(bounds, text, count, scrollIndex, active, focus) local _a2 if type(text) == "table" then _a2 = ffi.cast("char **", to_array("const char *", text)) else _a2 = text end return C.GuiListViewEx(bounds, _a2, count, scrollIndex, active, focus) end ---Tab Bar control ---@param bounds Rectangle ---@param text string ---@param hscroll ffi.cdata* ---@param active ffi.cdata* ---@return integer function GuiTabBar(bounds, text, hscroll, active) return C.GuiTabBar(bounds, text, hscroll, active) end ---Tab Bar control, using text entries list and returning focus entry ---@param bounds Rectangle ---@param text string[]|ffi.cdata* ---@param count integer ---@param hscroll ffi.cdata* ---@param active ffi.cdata* ---@param focus ffi.cdata* ---@return integer function GuiTabBarEx(bounds, text, count, hscroll, active, focus) local _a2 if type(text) == "table" then _a2 = ffi.cast("char **", to_array("const char *", text)) else _a2 = text end return C.GuiTabBarEx(bounds, _a2, count, hscroll, active, focus) end ---Message Box control, displays a message ---@param bounds Rectangle ---@param title string ---@param message string ---@param btnText string ---@param btnActive ffi.cdata* ---@return integer function GuiMessageBox(bounds, title, message, btnText, btnActive) return C.GuiMessageBox(bounds, title, message, btnText, btnActive) end ---Text Input Box control, ask for text, supports secret ---@param bounds Rectangle ---@param title string ---@param message string ---@param text ffi.cdata* ---@param textSize integer ---@param btnText string ---@param btnActive ffi.cdata* ---@param secretViewActive ffi.cdata* ---@return integer function GuiTextInputBox(bounds, title, message, text, textSize, btnText, btnActive, secretViewActive) return C.GuiTextInputBox(bounds, title, message, text, textSize, btnText, btnActive, secretViewActive) end ---Color Picker control, includes Color bar controls ---@param bounds Rectangle ---@param text string ---@param color ffi.cdata* ---@return integer function GuiColorPicker(bounds, text, color) return C.GuiColorPicker(bounds, text, color) end ---Color Panel control ---@param bounds Rectangle ---@param text string ---@param color ffi.cdata* ---@return integer function GuiColorPanel(bounds, text, color) return C.GuiColorPanel(bounds, text, color) end ---Color Bar Alpha control ---@param bounds Rectangle ---@param text string ---@param alpha ffi.cdata* ---@return integer function GuiColorBarAlpha(bounds, text, alpha) return C.GuiColorBarAlpha(bounds, text, alpha) end ---Color Bar Hue control ---@param bounds Rectangle ---@param text string ---@param value ffi.cdata* ---@return integer function GuiColorBarHue(bounds, text, value) return C.GuiColorBarHue(bounds, text, value) end ---Color Picker control, using Hue-Saturation-Value color data, includes Color bar controls ---@param bounds Rectangle ---@param text string ---@param colorHsv ffi.cdata* ---@return integer function GuiColorPickerHSV(bounds, text, colorHsv) return C.GuiColorPickerHSV(bounds, text, colorHsv) end ---Color Panel control, using Hue-Saturation-Value color data ---@param bounds Rectangle ---@param text string ---@param colorHsv ffi.cdata* ---@return integer function GuiColorPanelHSV(bounds, text, colorHsv) return C.GuiColorPanelHSV(bounds, text, colorHsv) end