diff --git a/dynamic/raylib/__init__.pyi b/dynamic/raylib/__init__.pyi index 707eebf..5e19f03 100644 --- a/dynamic/raylib/__init__.pyi +++ b/dynamic/raylib/__init__.pyi @@ -1,11 +1,22 @@ from typing import Any +import _cffi_backend + +ffi: _cffi_backend.FFI +rl: _cffi_backend.Lib + class struct: ... ARROWS_SIZE: int ARROWS_VISIBLE: int ARROW_PADDING: int +def AttachAudioMixedProcessor(processor: Any,) -> None: + """Attach audio stream processor to the entire audio pipeline, receives the samples as s""" + ... +def AttachAudioStreamProcessor(stream: AudioStream,processor: Any,) -> None: + """Attach audio stream processor to stream, receives the samples as s""" + ... BACKGROUND_COLOR: int BASE_COLOR_DISABLED: int BASE_COLOR_FOCUSED: int @@ -14,7 +25,9 @@ BASE_COLOR_PRESSED: int BLEND_ADDITIVE: int BLEND_ADD_COLORS: int BLEND_ALPHA: int +BLEND_ALPHA_PREMULTIPLY: int BLEND_CUSTOM: int +BLEND_CUSTOM_SEPARATE: int BLEND_MULTIPLIED: int BLEND_SUBTRACT_COLORS: int BORDER_COLOR_DISABLED: int @@ -57,11 +70,9 @@ CAMERA_THIRD_PERSON: int CHECKBOX: int CHECK_PADDING: int COLORPICKER: int -COLOR_SELECTED_BG: int -COLOR_SELECTED_FG: int COLOR_SELECTOR_SIZE: int COMBOBOX: int -COMBO_BUTTON_PADDING: int +COMBO_BUTTON_SPACING: int COMBO_BUTTON_WIDTH: int CUBEMAP_LAYOUT_AUTO_DETECT: int CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE: int @@ -93,6 +104,9 @@ def CheckCollisionPointCircle(point: Vector2,center: Vector2,radius: float,) -> def CheckCollisionPointLine(point: Vector2,p1: Vector2,p2: Vector2,threshold: int,) -> bool: """Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]""" ... +def CheckCollisionPointPoly(point: Vector2,points: Any,pointCount: int,) -> bool: + """Check if point is within a polygon described by array of vertices""" + ... def CheckCollisionPointRec(point: Vector2,rec: Rectangle,) -> bool: """Check if point is inside rectangle""" ... @@ -105,15 +119,14 @@ def CheckCollisionRecs(rec1: Rectangle,rec2: Rectangle,) -> bool: def CheckCollisionSpheres(center1: Vector3,radius1: float,center2: Vector3,radius2: float,) -> bool: """Check collision between two spheres""" ... +def Clamp(float_0: float,float_1: float,float_2: float,) -> float: + """float Clamp(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... def ClearBackground(color: Color,) -> None: """Set background color (framebuffer clear color)""" ... -def ClearDirectoryFiles() -> None: - """Clear directory files paths buffers (free memory)""" - ... -def ClearDroppedFiles() -> None: - """Clear dropped files paths buffer (free memory)""" - ... def ClearWindowState(flags: int,) -> None: """Clear window configuration state flags""" ... @@ -128,7 +141,7 @@ CFFI C function from raylib._raylib_cffi.lib""" def CloseWindow() -> None: """Close window and unload OpenGL context""" ... -def CodepointToUTF8(codepoint: int,byteSize: Any,) -> str: +def CodepointToUTF8(codepoint: int,utf8Size: Any,) -> str: """Encode one codepoint into UTF-8 byte array (array length returned as parameter)""" ... def ColorAlpha(color: Color,alpha: float,) -> Color: @@ -137,6 +150,12 @@ def ColorAlpha(color: Color,alpha: float,) -> Color: def ColorAlphaBlend(dst: Color,src: Color,tint: Color,) -> Color: """Get src alpha-blended into dst color with tint""" ... +def ColorBrightness(color: Color,factor: float,) -> Color: + """Get color with brightness correction, brightness factor goes from -1.0f to 1.0f""" + ... +def ColorContrast(color: Color,contrast: float,) -> Color: + """Get color with contrast correction, contrast values between -1.0f and 1.0f""" + ... def ColorFromHSV(hue: float,saturation: float,value: float,) -> Color: """Get a Color from HSV values, hue [0..360], saturation/value [0..1]""" ... @@ -146,14 +165,17 @@ def ColorFromNormalized(normalized: Vector4,) -> Color: def ColorNormalize(color: Color,) -> Vector4: """Get Color normalized as float [0..1]""" ... +def ColorTint(color: Color,tint: Color,) -> Color: + """Get color multiplied with another color""" + ... def ColorToHSV(color: Color,) -> Vector3: """Get HSV values for a Color, hue [0..360], saturation/value [0..1]""" ... def ColorToInt(color: Color,) -> int: """Get hexadecimal value for a Color""" ... -def CompressData(data: str,dataLength: int,compDataLength: Any,) -> str: - """Compress data (DEFLATE algorithm)""" +def CompressData(data: str,dataSize: int,compDataSize: Any,) -> str: + """Compress data (DEFLATE algorithm), memory must be MemFree()""" ... def CreatePhysicsBodyCircle(Vector2_0: Vector2,float_1: float,float_2: float,) -> Any: """struct PhysicsBodyData *CreatePhysicsBodyCircle(struct Vector2, float, float); @@ -172,24 +194,33 @@ CFFI C function from raylib._raylib_cffi.lib""" ... DEFAULT: int DROPDOWNBOX: int -DROPDOWN_ITEMS_PADDING: int -def DecodeDataBase64(data: str,outputLength: Any,) -> str: - """Decode Base64 string data""" +DROPDOWN_ITEMS_SPACING: int +def DecodeDataBase64(data: str,outputSize: Any,) -> str: + """Decode Base64 string data, memory must be MemFree()""" ... -def DecompressData(compData: str,compDataLength: int,dataLength: Any,) -> str: - """Decompress data (DEFLATE algorithm)""" +def DecompressData(compData: str,compDataSize: int,dataSize: Any,) -> str: + """Decompress data (DEFLATE algorithm), memory must be MemFree()""" ... def DestroyPhysicsBody(PhysicsBodyData_pointer_0: Any,) -> None: """void DestroyPhysicsBody(struct PhysicsBodyData *); CFFI C function from raylib._raylib_cffi.lib""" ... +def DetachAudioMixedProcessor(processor: Any,) -> None: + """Detach audio stream processor from the entire audio pipeline""" + ... +def DetachAudioStreamProcessor(stream: AudioStream,processor: Any,) -> None: + """Detach audio stream processor from stream""" + ... def DirectoryExists(dirPath: str,) -> bool: """Check if a directory path exists""" ... def DisableCursor() -> None: """Disables cursor (lock cursor)""" ... +def DisableEventWaiting() -> None: + """Disable waiting for events on EndDrawing(), automatic events polling""" + ... def DrawBillboard(camera: Camera3D,texture: Texture,position: Vector3,size: float,tint: Color,) -> None: """Draw a billboard texture""" ... @@ -202,6 +233,12 @@ def DrawBillboardRec(camera: Camera3D,texture: Texture,source: Rectangle,positio def DrawBoundingBox(box: BoundingBox,color: Color,) -> None: """Draw bounding box (wires)""" ... +def DrawCapsule(startPos: Vector3,endPos: Vector3,radius: float,slices: int,rings: int,color: Color,) -> None: + """Draw a capsule with the center of its sphere caps at startPos and endPos""" + ... +def DrawCapsuleWires(startPos: Vector3,endPos: Vector3,radius: float,slices: int,rings: int,color: Color,) -> None: + """Draw capsule wireframe with the center of its sphere caps at startPos and endPos""" + ... def DrawCircle(centerX: int,centerY: int,radius: float,color: Color,) -> None: """Draw a color-filled circle""" ... @@ -214,6 +251,9 @@ def DrawCircleGradient(centerX: int,centerY: int,radius: float,color1: Color,col def DrawCircleLines(centerX: int,centerY: int,radius: float,color: Color,) -> None: """Draw circle outline""" ... +def DrawCircleLinesV(center: Vector2,radius: float,color: Color,) -> None: + """Draw circle outline (Vector version)""" + ... def DrawCircleSector(center: Vector2,radius: float,startAngle: float,endAngle: float,segments: int,color: Color,) -> None: """Draw a piece of a circle""" ... @@ -226,12 +266,6 @@ def DrawCircleV(center: Vector2,radius: float,color: Color,) -> None: def DrawCube(position: Vector3,width: float,height: float,length: float,color: Color,) -> None: """Draw cube""" ... -def DrawCubeTexture(texture: Texture,position: Vector3,width: float,height: float,length: float,color: Color,) -> None: - """Draw cube textured""" - ... -def DrawCubeTextureRec(texture: Texture,source: Rectangle,position: Vector3,width: float,height: float,length: float,color: Color,) -> None: - """Draw cube with a region of a texture""" - ... def DrawCubeV(position: Vector3,size: Vector3,color: Color,) -> None: """Draw cube (Vector version)""" ... @@ -272,22 +306,16 @@ def DrawLine3D(startPos: Vector3,endPos: Vector3,color: Color,) -> None: """Draw a line in 3D world space""" ... def DrawLineBezier(startPos: Vector2,endPos: Vector2,thick: float,color: Color,) -> None: - """Draw a line using cubic-bezier curves in-out""" - ... -def DrawLineBezierCubic(startPos: Vector2,endPos: Vector2,startControlPos: Vector2,endControlPos: Vector2,thick: float,color: Color,) -> None: - """Draw line using cubic bezier curves with 2 control points""" - ... -def DrawLineBezierQuad(startPos: Vector2,endPos: Vector2,controlPos: Vector2,thick: float,color: Color,) -> None: - """Draw line using quadratic bezier curves with a control point""" + """Draw line segment cubic-bezier in-out interpolation""" ... def DrawLineEx(startPos: Vector2,endPos: Vector2,thick: float,color: Color,) -> None: - """Draw a line defining thickness""" + """Draw a line (using triangles/quads)""" ... def DrawLineStrip(points: Any,pointCount: int,color: Color,) -> None: - """Draw lines sequence""" + """Draw lines sequence (using gl lines)""" ... def DrawLineV(startPos: Vector2,endPos: Vector2,color: Color,) -> None: - """Draw a line (Vector version)""" + """Draw a line (using gl lines)""" ... def DrawMesh(mesh: Mesh,material: Material,transform: Matrix,) -> None: """Draw a 3d mesh with material and transform""" @@ -379,12 +407,45 @@ def DrawSphereEx(centerPos: Vector3,radius: float,rings: int,slices: int,color: def DrawSphereWires(centerPos: Vector3,radius: float,rings: int,slices: int,color: Color,) -> None: """Draw sphere wires""" ... +def DrawSplineBasis(points: Any,pointCount: int,thick: float,color: Color,) -> None: + """Draw spline: B-Spline, minimum 4 points""" + ... +def DrawSplineBezierCubic(points: Any,pointCount: int,thick: float,color: Color,) -> None: + """Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]""" + ... +def DrawSplineBezierQuadratic(points: Any,pointCount: int,thick: float,color: Color,) -> None: + """Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]""" + ... +def DrawSplineCatmullRom(points: Any,pointCount: int,thick: float,color: Color,) -> None: + """Draw spline: Catmull-Rom, minimum 4 points""" + ... +def DrawSplineLinear(points: Any,pointCount: int,thick: float,color: Color,) -> None: + """Draw spline: Linear, minimum 2 points""" + ... +def DrawSplineSegmentBasis(p1: Vector2,p2: Vector2,p3: Vector2,p4: Vector2,thick: float,color: Color,) -> None: + """Draw spline segment: B-Spline, 4 points""" + ... +def DrawSplineSegmentBezierCubic(p1: Vector2,c2: Vector2,c3: Vector2,p4: Vector2,thick: float,color: Color,) -> None: + """Draw spline segment: Cubic Bezier, 2 points, 2 control points""" + ... +def DrawSplineSegmentBezierQuadratic(p1: Vector2,c2: Vector2,p3: Vector2,thick: float,color: Color,) -> None: + """Draw spline segment: Quadratic Bezier, 2 points, 1 control point""" + ... +def DrawSplineSegmentCatmullRom(p1: Vector2,p2: Vector2,p3: Vector2,p4: Vector2,thick: float,color: Color,) -> None: + """Draw spline segment: Catmull-Rom, 4 points""" + ... +def DrawSplineSegmentLinear(p1: Vector2,p2: Vector2,thick: float,color: Color,) -> None: + """Draw spline segment: Linear, 2 points""" + ... def DrawText(text: str,posX: int,posY: int,fontSize: int,color: Color,) -> None: """Draw text (using default font)""" ... def DrawTextCodepoint(font: Font,codepoint: int,position: Vector2,fontSize: float,tint: Color,) -> None: """Draw one character (codepoint)""" ... +def DrawTextCodepoints(font: Font,codepoints: Any,codepointCount: int,position: Vector2,fontSize: float,spacing: float,tint: Color,) -> None: + """Draw multiple character (codepoint)""" + ... def DrawTextEx(font: Font,text: str,position: Vector2,fontSize: float,spacing: float,tint: Color,) -> None: """Draw text using font and additional parameters""" ... @@ -400,21 +461,12 @@ def DrawTextureEx(texture: Texture,position: Vector2,rotation: float,scale: floa def DrawTextureNPatch(texture: Texture,nPatchInfo: NPatchInfo,dest: Rectangle,origin: Vector2,rotation: float,tint: Color,) -> None: """Draws a texture (or part of it) that stretches or shrinks nicely""" ... -def DrawTexturePoly(texture: Texture,center: Vector2,points: Any,texcoords: Any,pointCount: int,tint: Color,) -> None: - """Draw a textured polygon""" - ... def DrawTexturePro(texture: Texture,source: Rectangle,dest: Rectangle,origin: Vector2,rotation: float,tint: Color,) -> None: """Draw a part of a texture defined by a rectangle with 'pro' parameters""" ... -def DrawTextureQuad(texture: Texture,tiling: Vector2,offset: Vector2,quad: Rectangle,tint: Color,) -> None: - """Draw texture quad with tiling and offset parameters""" - ... def DrawTextureRec(texture: Texture,source: Rectangle,position: Vector2,tint: Color,) -> None: """Draw a part of a texture defined by a rectangle""" ... -def DrawTextureTiled(texture: Texture,source: Rectangle,dest: Rectangle,origin: Vector2,rotation: float,scale: float,tint: Color,) -> None: - """Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.""" - ... def DrawTextureV(texture: Texture,position: Vector2,tint: Color,) -> None: """Draw a Texture2D with position defined as Vector2""" ... @@ -439,8 +491,11 @@ def DrawTriangleStrip3D(points: Any,pointCount: int,color: Color,) -> None: def EnableCursor() -> None: """Enables cursor (unlock cursor)""" ... -def EncodeDataBase64(data: str,dataLength: int,outputLength: Any,) -> str: - """Encode data to Base64 string""" +def EnableEventWaiting() -> None: + """Enable waiting for events on EndDrawing(), no automatic event polling""" + ... +def EncodeDataBase64(data: str,dataSize: int,outputSize: Any,) -> str: + """Encode data to Base64 string, memory must be MemFree()""" ... def EndBlendMode() -> None: """End blending mode (reset to default: alpha blending)""" @@ -466,12 +521,24 @@ def EndTextureMode() -> None: def EndVrStereoMode() -> None: """End stereo rendering (requires VR simulator)""" ... +def ExportAutomationEventList(list: AutomationEventList,fileName: str,) -> bool: + """Export automation events list as text file""" + ... +def ExportDataAsCode(data: str,dataSize: int,fileName: str,) -> bool: + """Export data to code (.h), returns true on success""" + ... +def ExportFontAsCode(font: Font,fileName: str,) -> bool: + """Export font as code file, returns true on success""" + ... def ExportImage(image: Image,fileName: str,) -> bool: """Export image data to file, returns true on success""" ... def ExportImageAsCode(image: Image,fileName: str,) -> bool: """Export image as code file defining an array of bytes, returns true on success""" ... +def ExportImageToMemory(image: Image,fileType: str,fileSize: Any,) -> str: + """Export image to memory buffer""" + ... def ExportMesh(mesh: Mesh,fileName: str,) -> bool: """Export mesh data to file, returns true on success""" ... @@ -481,6 +548,7 @@ def ExportWave(wave: Wave,fileName: str,) -> bool: def ExportWaveAsCode(wave: Wave,fileName: str,) -> bool: """Export wave sample data to code (.h), returns true on success""" ... +FLAG_BORDERLESS_WINDOWED_MODE: int FLAG_FULLSCREEN_MODE: int FLAG_INTERLACED_HINT: int FLAG_MSAA_4X_HINT: int @@ -490,6 +558,7 @@ FLAG_WINDOW_HIDDEN: int FLAG_WINDOW_HIGHDPI: int FLAG_WINDOW_MAXIMIZED: int FLAG_WINDOW_MINIMIZED: int +FLAG_WINDOW_MOUSE_PASSTHROUGH: int FLAG_WINDOW_RESIZABLE: int FLAG_WINDOW_TOPMOST: int FLAG_WINDOW_TRANSPARENT: int @@ -504,6 +573,11 @@ def Fade(color: Color,alpha: float,) -> Color: def FileExists(fileName: str,) -> bool: """Check if file exists""" ... +def FloatEquals(float_0: float,float_1: float,) -> int: + """int FloatEquals(float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... GAMEPAD_AXIS_LEFT_TRIGGER: int GAMEPAD_AXIS_LEFT_X: int GAMEPAD_AXIS_LEFT_Y: int @@ -540,13 +614,6 @@ GESTURE_SWIPE_RIGHT: int GESTURE_SWIPE_UP: int GESTURE_TAP: int GROUP_PADDING: int -GUI_STATE_DISABLED: int -GUI_STATE_FOCUSED: int -GUI_STATE_NORMAL: int -GUI_STATE_PRESSED: int -GUI_TEXT_ALIGN_CENTER: int -GUI_TEXT_ALIGN_LEFT: int -GUI_TEXT_ALIGN_RIGHT: int def GenImageCellular(width: int,height: int,tileSize: int,) -> Image: """Generate image: cellular algorithm, bigger tileSize means bigger cells""" ... @@ -556,24 +623,27 @@ def GenImageChecked(width: int,height: int,checksX: int,checksY: int,col1: Color def GenImageColor(width: int,height: int,color: Color,) -> Image: """Generate image: plain color""" ... -def GenImageFontAtlas(chars: Any,recs: Any,glyphCount: int,fontSize: int,padding: int,packMethod: int,) -> Image: +def GenImageFontAtlas(glyphs: Any,glyphRecs: Any,glyphCount: int,fontSize: int,padding: int,packMethod: int,) -> Image: """Generate image font atlas using chars info""" ... -def GenImageGradientH(width: int,height: int,left: Color,right: Color,) -> Image: - """Generate image: horizontal gradient""" +def GenImageGradientLinear(width: int,height: int,direction: int,start: Color,end: Color,) -> Image: + """Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient""" ... def GenImageGradientRadial(width: int,height: int,density: float,inner: Color,outer: Color,) -> Image: """Generate image: radial gradient""" ... -def GenImageGradientV(width: int,height: int,top: Color,bottom: Color,) -> Image: - """Generate image: vertical gradient""" +def GenImageGradientSquare(width: int,height: int,density: float,inner: Color,outer: Color,) -> Image: + """Generate image: square gradient""" + ... +def GenImagePerlinNoise(width: int,height: int,offsetX: int,offsetY: int,scale: float,) -> Image: + """Generate image: perlin noise""" + ... +def GenImageText(width: int,height: int,text: str,) -> Image: + """Generate image: grayscale image from text data""" ... def GenImageWhiteNoise(width: int,height: int,factor: float,) -> Image: """Generate image: white noise""" ... -def GenMeshBinormals(mesh: Any,) -> None: - """Compute mesh binormals""" - ... def GenMeshCone(radius: float,height: float,slices: int,) -> Mesh: """Generate cone/pyramid mesh""" ... @@ -613,6 +683,9 @@ def GenMeshTorus(radius: float,size: float,radSeg: int,sides: int,) -> Mesh: def GenTextureMipmaps(texture: Any,) -> None: """Generate GPU mipmaps for a texture""" ... +def GetApplicationDirectory() -> str: + """Get the directory of the running application (uses static string)""" + ... def GetCameraMatrix(camera: Camera3D,) -> Matrix: """Get camera transform matrix (view matrix)""" ... @@ -625,12 +698,18 @@ def GetCharPressed() -> int: def GetClipboardText() -> str: """Get clipboard text content""" ... -def GetCodepoint(text: str,bytesProcessed: Any,) -> int: +def GetCodepoint(text: str,codepointSize: Any,) -> int: """Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure""" ... def GetCodepointCount(text: str,) -> int: """Get total number of codepoints in a UTF-8 encoded string""" ... +def GetCodepointNext(text: str,codepointSize: Any,) -> int: + """Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure""" + ... +def GetCodepointPrevious(text: str,codepointSize: Any,) -> int: + """Get previous codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure""" + ... def GetCollisionRec(rec1: Rectangle,rec2: Rectangle,) -> Rectangle: """Get collision rectangle for two rectangles collision""" ... @@ -640,21 +719,18 @@ def GetColor(hexValue: int,) -> Color: def GetCurrentMonitor() -> int: """Get current connected monitor""" ... -def GetDirectoryFiles(dirPath: str,count: Any,) -> str: - """Get filenames in a directory path (memory should be freed)""" - ... def GetDirectoryPath(filePath: str,) -> str: """Get full path for a given fileName with path (uses static string)""" ... -def GetDroppedFiles(count: Any,) -> str: - """Get dropped files names (memory should be freed)""" - ... def GetFPS() -> int: """Get current FPS""" ... def GetFileExtension(fileName: str,) -> str: """Get pointer to extension for a filename string (includes dot: '.png')""" ... +def GetFileLength(fileName: str,) -> int: + """Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)""" + ... def GetFileModTime(fileName: str,) -> int: """Get file modification time (last write time)""" ... @@ -718,6 +794,9 @@ def GetImageColor(image: Image,x: int,y: int,) -> Color: def GetKeyPressed() -> int: """Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty""" ... +def GetMasterVolume() -> float: + """Get master volume (listener)""" + ... def GetMeshBoundingBox(mesh: Mesh,) -> BoundingBox: """Compute mesh bounding box limits""" ... @@ -728,10 +807,10 @@ def GetMonitorCount() -> int: """Get number of connected monitors""" ... def GetMonitorHeight(monitor: int,) -> int: - """Get specified monitor height (max available by monitor)""" + """Get specified monitor height (current video mode used by monitor)""" ... def GetMonitorName(monitor: int,) -> str: - """Get the human-readable, UTF-8 encoded name of the primary monitor""" + """Get the human-readable, UTF-8 encoded name of the specified monitor""" ... def GetMonitorPhysicalHeight(monitor: int,) -> int: """Get specified monitor physical height in millimetres""" @@ -746,7 +825,7 @@ def GetMonitorRefreshRate(monitor: int,) -> int: """Get specified monitor refresh rate""" ... def GetMonitorWidth(monitor: int,) -> int: - """Get specified monitor width (max available by monitor)""" + """Get specified monitor width (current video mode used by monitor)""" ... def GetMouseDelta() -> Vector2: """Get mouse delta between frames""" @@ -758,7 +837,10 @@ def GetMouseRay(mousePosition: Vector2,camera: Camera3D,) -> Ray: """Get a ray trace from mouse position""" ... def GetMouseWheelMove() -> float: - """Get mouse wheel movement Y""" + """Get mouse wheel movement for X or Y, whichever is larger""" + ... +def GetMouseWheelMoveV() -> Vector2: + """Get mouse wheel movement for both X and Y""" ... def GetMouseX() -> int: """Get mouse position X""" @@ -815,9 +897,6 @@ def GetRayCollisionBox(ray: Ray,box: BoundingBox,) -> RayCollision: def GetRayCollisionMesh(ray: Ray,mesh: Mesh,transform: Matrix,) -> RayCollision: """Get collision info between ray and mesh""" ... -def GetRayCollisionModel(ray: Ray,model: Model,) -> RayCollision: - """Get collision info between ray and model""" - ... def GetRayCollisionQuad(ray: Ray,p1: Vector3,p2: Vector3,p3: Vector3,p4: Vector3,) -> RayCollision: """Get collision info between ray and quad""" ... @@ -827,6 +906,12 @@ def GetRayCollisionSphere(ray: Ray,center: Vector3,radius: float,) -> RayCollisi def GetRayCollisionTriangle(ray: Ray,p1: Vector3,p2: Vector3,p3: Vector3,) -> RayCollision: """Get collision info between ray and triangle""" ... +def GetRenderHeight() -> int: + """Get current render height (it considers HiDPI)""" + ... +def GetRenderWidth() -> int: + """Get current render width (it considers HiDPI)""" + ... def GetScreenHeight() -> int: """Get current screen height""" ... @@ -842,8 +927,20 @@ def GetShaderLocation(shader: Shader,uniformName: str,) -> int: def GetShaderLocationAttrib(shader: Shader,attribName: str,) -> int: """Get shader attribute location""" ... -def GetSoundsPlaying() -> int: - """Get number of sounds playing in the multichannel""" +def GetSplinePointBasis(p1: Vector2,p2: Vector2,p3: Vector2,p4: Vector2,t: float,) -> Vector2: + """Get (evaluate) spline point: B-Spline""" + ... +def GetSplinePointBezierCubic(p1: Vector2,c2: Vector2,c3: Vector2,p4: Vector2,t: float,) -> Vector2: + """Get (evaluate) spline point: Cubic Bezier""" + ... +def GetSplinePointBezierQuad(p1: Vector2,c2: Vector2,p3: Vector2,t: float,) -> Vector2: + """Get (evaluate) spline point: Quadratic Bezier""" + ... +def GetSplinePointCatmullRom(p1: Vector2,p2: Vector2,p3: Vector2,p4: Vector2,t: float,) -> Vector2: + """Get (evaluate) spline point: Catmull-Rom""" + ... +def GetSplinePointLinear(startPos: Vector2,endPos: Vector2,t: float,) -> Vector2: + """Get (evaluate) spline point: Linear""" ... def GetTime() -> float: """Get elapsed time in seconds since InitWindow()""" @@ -884,38 +981,48 @@ def GetWorldToScreen2D(position: Vector2,camera: Camera2D,) -> Vector2: def GetWorldToScreenEx(position: Vector3,camera: Camera3D,width: int,height: int,) -> Vector2: """Get size position for a 3d world space position""" ... -def GuiButton(Rectangle_0: Rectangle,str_1: str,) -> bool: - """_Bool GuiButton(struct Rectangle, char *); +def GuiButton(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiButton(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiCheckBox(Rectangle_0: Rectangle,str_1: str,_Bool_2: bool,) -> bool: - """_Bool GuiCheckBox(struct Rectangle, char *, _Bool); +def GuiCheckBox(Rectangle_0: Rectangle,str_1: str,_Bool_pointer_2: Any,) -> int: + """int GuiCheckBox(struct Rectangle, char *, _Bool *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiColorBarAlpha(Rectangle_0: Rectangle,float_1: float,) -> float: - """float GuiColorBarAlpha(struct Rectangle, float); +def GuiColorBarAlpha(Rectangle_0: Rectangle,str_1: str,float_pointer_2: Any,) -> int: + """int GuiColorBarAlpha(struct Rectangle, char *, float *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiColorBarHue(Rectangle_0: Rectangle,float_1: float,) -> float: - """float GuiColorBarHue(struct Rectangle, float); +def GuiColorBarHue(Rectangle_0: Rectangle,str_1: str,float_pointer_2: Any,) -> int: + """int GuiColorBarHue(struct Rectangle, char *, float *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiColorPanel(Rectangle_0: Rectangle,Color_1: Color,) -> Color: - """struct Color GuiColorPanel(struct Rectangle, struct Color); +def GuiColorPanel(Rectangle_0: Rectangle,str_1: str,Color_pointer_2: Any,) -> int: + """int GuiColorPanel(struct Rectangle, char *, struct Color *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiColorPicker(Rectangle_0: Rectangle,Color_1: Color,) -> Color: - """struct Color GuiColorPicker(struct Rectangle, struct Color); +def GuiColorPanelHSV(Rectangle_0: Rectangle,str_1: str,Vector3_pointer_2: Any,) -> int: + """int GuiColorPanelHSV(struct Rectangle, char *, struct Vector3 *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiComboBox(Rectangle_0: Rectangle,str_1: str,int_2: int,) -> int: - """int GuiComboBox(struct Rectangle, char *, int); +def GuiColorPicker(Rectangle_0: Rectangle,str_1: str,Color_pointer_2: Any,) -> int: + """int GuiColorPicker(struct Rectangle, char *, struct Color *); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiColorPickerHSV(Rectangle_0: Rectangle,str_1: str,Vector3_pointer_2: Any,) -> int: + """int GuiColorPickerHSV(struct Rectangle, char *, struct Vector3 *); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiComboBox(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,) -> int: + """int GuiComboBox(struct Rectangle, char *, int *); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -924,13 +1031,23 @@ def GuiDisable() -> None: CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiDropdownBox(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,_Bool_3: bool,) -> bool: - """_Bool GuiDropdownBox(struct Rectangle, char *, int *, _Bool); +def GuiDisableTooltip() -> None: + """void GuiDisableTooltip(); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiDummyRec(Rectangle_0: Rectangle,str_1: str,) -> None: - """void GuiDummyRec(struct Rectangle, char *); +def GuiDrawIcon(int_0: int,int_1: int,int_2: int,int_3: int,Color_4: Color,) -> None: + """void GuiDrawIcon(int, int, int, int, struct Color); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiDropdownBox(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,_Bool_3: bool,) -> int: + """int GuiDropdownBox(struct Rectangle, char *, int *, _Bool); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiDummyRec(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiDummyRec(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -939,14 +1056,19 @@ def GuiEnable() -> None: CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiFade(float_0: float,) -> None: - """void GuiFade(float); +def GuiEnableTooltip() -> None: + """void GuiEnableTooltip(); CFFI C function from raylib._raylib_cffi.lib""" ... def GuiGetFont() -> Font: """struct Font GuiGetFont(); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiGetIcons() -> Any: + """unsigned int *GuiGetIcons(); + CFFI C function from raylib._raylib_cffi.lib""" ... def GuiGetState() -> int: @@ -959,13 +1081,13 @@ def GuiGetStyle(int_0: int,int_1: int,) -> int: CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiGrid(Rectangle_0: Rectangle,float_1: float,int_2: int,) -> Vector2: - """struct Vector2 GuiGrid(struct Rectangle, float, int); +def GuiGrid(Rectangle_0: Rectangle,str_1: str,float_2: float,int_3: int,Vector2_pointer_4: Any,) -> int: + """int GuiGrid(struct Rectangle, char *, float, int, struct Vector2 *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiGroupBox(Rectangle_0: Rectangle,str_1: str,) -> None: - """void GuiGroupBox(struct Rectangle, char *); +def GuiGroupBox(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiGroupBox(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -974,38 +1096,38 @@ def GuiIconText(int_0: int,str_1: str,) -> str: CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiImageButton(Rectangle_0: Rectangle,str_1: str,Texture_2: Texture,) -> bool: - """_Bool GuiImageButton(struct Rectangle, char *, struct Texture); +def GuiIsLocked() -> bool: + """_Bool GuiIsLocked(); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiImageButtonEx(Rectangle_0: Rectangle,str_1: str,Texture_2: Texture,Rectangle_3: Rectangle,) -> bool: - """_Bool GuiImageButtonEx(struct Rectangle, char *, struct Texture, struct Rectangle); +def GuiLabel(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiLabel(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiLabel(Rectangle_0: Rectangle,str_1: str,) -> None: - """void GuiLabel(struct Rectangle, char *); +def GuiLabelButton(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiLabelButton(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiLabelButton(Rectangle_0: Rectangle,str_1: str,) -> bool: - """_Bool GuiLabelButton(struct Rectangle, char *); +def GuiLine(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiLine(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiLine(Rectangle_0: Rectangle,str_1: str,) -> None: - """void GuiLine(struct Rectangle, char *); +def GuiListView(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,int_pointer_3: Any,) -> int: + """int GuiListView(struct Rectangle, char *, int *, int *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiListView(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,int_3: int,) -> int: - """int GuiListView(struct Rectangle, char *, int *, int); +def GuiListViewEx(Rectangle_0: Rectangle,str_pointer_1: str,int_2: int,int_pointer_3: Any,int_pointer_4: Any,int_pointer_5: Any,) -> int: + """int GuiListViewEx(struct Rectangle, char * *, int, int *, int *, int *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiListViewEx(Rectangle_0: Rectangle,str_pointer_1: str,int_2: int,int_pointer_3: Any,int_pointer_4: Any,int_5: int,) -> int: - """int GuiListViewEx(struct Rectangle, char * *, int, int *, int *, int); +def GuiLoadIcons(str_0: str,_Bool_1: bool,) -> str: + """char * *GuiLoadIcons(char *, _Bool); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -1029,29 +1151,34 @@ def GuiMessageBox(Rectangle_0: Rectangle,str_1: str,str_2: str,str_3: str,) -> i CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiPanel(Rectangle_0: Rectangle,) -> None: - """void GuiPanel(struct Rectangle); +def GuiPanel(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiPanel(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiProgressBar(Rectangle_0: Rectangle,str_1: str,str_2: str,float_3: float,float_4: float,float_5: float,) -> float: - """float GuiProgressBar(struct Rectangle, char *, char *, float, float, float); +def GuiProgressBar(Rectangle_0: Rectangle,str_1: str,str_2: str,float_pointer_3: Any,float_4: float,float_5: float,) -> int: + """int GuiProgressBar(struct Rectangle, char *, char *, float *, float, float); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiScrollBar(Rectangle_0: Rectangle,int_1: int,int_2: int,int_3: int,) -> int: - """int GuiScrollBar(struct Rectangle, int, int, int); +def GuiScrollPanel(Rectangle_0: Rectangle,str_1: str,Rectangle_2: Rectangle,Vector2_pointer_3: Any,Rectangle_pointer_4: Any,) -> int: + """int GuiScrollPanel(struct Rectangle, char *, struct Rectangle, struct Vector2 *, struct Rectangle *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiScrollPanel(Rectangle_0: Rectangle,Rectangle_1: Rectangle,Vector2_pointer_2: Any,) -> Rectangle: - """struct Rectangle GuiScrollPanel(struct Rectangle, struct Rectangle, struct Vector2 *); +def GuiSetAlpha(float_0: float,) -> None: + """void GuiSetAlpha(float); CFFI C function from raylib._raylib_cffi.lib""" ... def GuiSetFont(Font_0: Font,) -> None: """void GuiSetFont(struct Font); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiSetIconScale(int_0: int,) -> None: + """void GuiSetIconScale(int); + CFFI C function from raylib._raylib_cffi.lib""" ... def GuiSetState(int_0: int,) -> None: @@ -1064,48 +1191,58 @@ def GuiSetStyle(int_0: int,int_1: int,int_2: int,) -> None: CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiSlider(Rectangle_0: Rectangle,str_1: str,str_2: str,float_3: float,float_4: float,float_5: float,) -> float: - """float GuiSlider(struct Rectangle, char *, char *, float, float, float); +def GuiSetTooltip(str_0: str,) -> None: + """void GuiSetTooltip(char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiSliderBar(Rectangle_0: Rectangle,str_1: str,str_2: str,float_3: float,float_4: float,float_5: float,) -> float: - """float GuiSliderBar(struct Rectangle, char *, char *, float, float, float); +def GuiSlider(Rectangle_0: Rectangle,str_1: str,str_2: str,float_pointer_3: Any,float_4: float,float_5: float,) -> int: + """int GuiSlider(struct Rectangle, char *, char *, float *, float, float); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiSpinner(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,int_3: int,int_4: int,_Bool_5: bool,) -> bool: - """_Bool GuiSpinner(struct Rectangle, char *, int *, int, int, _Bool); +def GuiSliderBar(Rectangle_0: Rectangle,str_1: str,str_2: str,float_pointer_3: Any,float_4: float,float_5: float,) -> int: + """int GuiSliderBar(struct Rectangle, char *, char *, float *, float, float); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiStatusBar(Rectangle_0: Rectangle,str_1: str,) -> None: - """void GuiStatusBar(struct Rectangle, char *); +def GuiSpinner(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,int_3: int,int_4: int,_Bool_5: bool,) -> int: + """int GuiSpinner(struct Rectangle, char *, int *, int, int, _Bool); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiTextBox(Rectangle_0: Rectangle,str_1: str,int_2: int,_Bool_3: bool,) -> bool: - """_Bool GuiTextBox(struct Rectangle, char *, int, _Bool); +def GuiStatusBar(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiStatusBar(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiTextBoxMulti(Rectangle_0: Rectangle,str_1: str,int_2: int,_Bool_3: bool,) -> bool: - """_Bool GuiTextBoxMulti(struct Rectangle, char *, int, _Bool); +def GuiTabBar(Rectangle_0: Rectangle,str_pointer_1: str,int_2: int,int_pointer_3: Any,) -> int: + """int GuiTabBar(struct Rectangle, char * *, int, int *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiTextInputBox(Rectangle_0: Rectangle,str_1: str,str_2: str,str_3: str,str_4: str,) -> int: - """int GuiTextInputBox(struct Rectangle, char *, char *, char *, char *); +def GuiTextBox(Rectangle_0: Rectangle,str_1: str,int_2: int,_Bool_3: bool,) -> int: + """int GuiTextBox(struct Rectangle, char *, int, _Bool); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiToggle(Rectangle_0: Rectangle,str_1: str,_Bool_2: bool,) -> bool: - """_Bool GuiToggle(struct Rectangle, char *, _Bool); +def GuiTextInputBox(Rectangle_0: Rectangle,str_1: str,str_2: str,str_3: str,str_4: str,int_5: int,_Bool_pointer_6: Any,) -> int: + """int GuiTextInputBox(struct Rectangle, char *, char *, char *, char *, int, _Bool *); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiToggleGroup(Rectangle_0: Rectangle,str_1: str,int_2: int,) -> int: - """int GuiToggleGroup(struct Rectangle, char *, int); +def GuiToggle(Rectangle_0: Rectangle,str_1: str,_Bool_pointer_2: Any,) -> int: + """int GuiToggle(struct Rectangle, char *, _Bool *); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiToggleGroup(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,) -> int: + """int GuiToggleGroup(struct Rectangle, char *, int *); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def GuiToggleSlider(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,) -> int: + """int GuiToggleSlider(struct Rectangle, char *, int *); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -1114,13 +1251,13 @@ def GuiUnlock() -> None: CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiValueBox(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,int_3: int,int_4: int,_Bool_5: bool,) -> bool: - """_Bool GuiValueBox(struct Rectangle, char *, int *, int, int, _Bool); +def GuiValueBox(Rectangle_0: Rectangle,str_1: str,int_pointer_2: Any,int_3: int,int_4: int,_Bool_5: bool,) -> int: + """int GuiValueBox(struct Rectangle, char *, int *, int, int, _Bool); CFFI C function from raylib._raylib_cffi.lib""" ... -def GuiWindowBox(Rectangle_0: Rectangle,str_1: str,) -> bool: - """_Bool GuiWindowBox(struct Rectangle, char *); +def GuiWindowBox(Rectangle_0: Rectangle,str_1: str,) -> int: + """int GuiWindowBox(struct Rectangle, char *); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -1131,6 +1268,262 @@ HUEBAR_WIDTH: int def HideCursor() -> None: """Hides cursor""" ... +ICON_1UP: int +ICON_220: int +ICON_221: int +ICON_222: int +ICON_223: int +ICON_224: int +ICON_225: int +ICON_226: int +ICON_227: int +ICON_228: int +ICON_229: int +ICON_230: int +ICON_231: int +ICON_232: int +ICON_233: int +ICON_234: int +ICON_235: int +ICON_236: int +ICON_237: int +ICON_238: int +ICON_239: int +ICON_240: int +ICON_241: int +ICON_242: int +ICON_243: int +ICON_244: int +ICON_245: int +ICON_246: int +ICON_247: int +ICON_248: int +ICON_249: int +ICON_250: int +ICON_251: int +ICON_252: int +ICON_253: int +ICON_254: int +ICON_255: int +ICON_ALARM: int +ICON_ALPHA_CLEAR: int +ICON_ALPHA_MULTIPLY: int +ICON_ARROW_DOWN: int +ICON_ARROW_DOWN_FILL: int +ICON_ARROW_LEFT: int +ICON_ARROW_LEFT_FILL: int +ICON_ARROW_RIGHT: int +ICON_ARROW_RIGHT_FILL: int +ICON_ARROW_UP: int +ICON_ARROW_UP_FILL: int +ICON_AUDIO: int +ICON_BIN: int +ICON_BOX: int +ICON_BOX_BOTTOM: int +ICON_BOX_BOTTOM_LEFT: int +ICON_BOX_BOTTOM_RIGHT: int +ICON_BOX_CENTER: int +ICON_BOX_CIRCLE_MASK: int +ICON_BOX_CONCENTRIC: int +ICON_BOX_CORNERS_BIG: int +ICON_BOX_CORNERS_SMALL: int +ICON_BOX_DOTS_BIG: int +ICON_BOX_DOTS_SMALL: int +ICON_BOX_GRID: int +ICON_BOX_GRID_BIG: int +ICON_BOX_LEFT: int +ICON_BOX_MULTISIZE: int +ICON_BOX_RIGHT: int +ICON_BOX_TOP: int +ICON_BOX_TOP_LEFT: int +ICON_BOX_TOP_RIGHT: int +ICON_BREAKPOINT_OFF: int +ICON_BREAKPOINT_ON: int +ICON_BRUSH_CLASSIC: int +ICON_BRUSH_PAINTER: int +ICON_BURGER_MENU: int +ICON_CAMERA: int +ICON_CASE_SENSITIVE: int +ICON_CLOCK: int +ICON_COIN: int +ICON_COLOR_BUCKET: int +ICON_COLOR_PICKER: int +ICON_CORNER: int +ICON_CPU: int +ICON_CRACK: int +ICON_CRACK_POINTS: int +ICON_CROP: int +ICON_CROP_ALPHA: int +ICON_CROSS: int +ICON_CROSSLINE: int +ICON_CROSS_SMALL: int +ICON_CUBE: int +ICON_CUBE_FACE_BACK: int +ICON_CUBE_FACE_BOTTOM: int +ICON_CUBE_FACE_FRONT: int +ICON_CUBE_FACE_LEFT: int +ICON_CUBE_FACE_RIGHT: int +ICON_CUBE_FACE_TOP: int +ICON_CURSOR_CLASSIC: int +ICON_CURSOR_HAND: int +ICON_CURSOR_MOVE: int +ICON_CURSOR_MOVE_FILL: int +ICON_CURSOR_POINTER: int +ICON_CURSOR_SCALE: int +ICON_CURSOR_SCALE_FILL: int +ICON_CURSOR_SCALE_LEFT: int +ICON_CURSOR_SCALE_LEFT_FILL: int +ICON_CURSOR_SCALE_RIGHT: int +ICON_CURSOR_SCALE_RIGHT_FILL: int +ICON_DEMON: int +ICON_DITHERING: int +ICON_DOOR: int +ICON_EMPTYBOX: int +ICON_EMPTYBOX_SMALL: int +ICON_EXIT: int +ICON_EXPLOSION: int +ICON_EYE_OFF: int +ICON_EYE_ON: int +ICON_FILE: int +ICON_FILETYPE_ALPHA: int +ICON_FILETYPE_AUDIO: int +ICON_FILETYPE_BINARY: int +ICON_FILETYPE_HOME: int +ICON_FILETYPE_IMAGE: int +ICON_FILETYPE_INFO: int +ICON_FILETYPE_PLAY: int +ICON_FILETYPE_TEXT: int +ICON_FILETYPE_VIDEO: int +ICON_FILE_ADD: int +ICON_FILE_COPY: int +ICON_FILE_CUT: int +ICON_FILE_DELETE: int +ICON_FILE_EXPORT: int +ICON_FILE_NEW: int +ICON_FILE_OPEN: int +ICON_FILE_PASTE: int +ICON_FILE_SAVE: int +ICON_FILE_SAVE_CLASSIC: int +ICON_FILTER: int +ICON_FILTER_BILINEAR: int +ICON_FILTER_POINT: int +ICON_FILTER_TOP: int +ICON_FOLDER: int +ICON_FOLDER_ADD: int +ICON_FOLDER_FILE_OPEN: int +ICON_FOLDER_OPEN: int +ICON_FOLDER_SAVE: int +ICON_FOUR_BOXES: int +ICON_FX: int +ICON_GEAR: int +ICON_GEAR_BIG: int +ICON_GEAR_EX: int +ICON_GRID: int +ICON_GRID_FILL: int +ICON_HAND_POINTER: int +ICON_HEART: int +ICON_HELP: int +ICON_HEX: int +ICON_HIDPI: int +ICON_HOUSE: int +ICON_INFO: int +ICON_KEY: int +ICON_LASER: int +ICON_LAYERS: int +ICON_LAYERS_VISIBLE: int +ICON_LENS: int +ICON_LENS_BIG: int +ICON_LIFE_BARS: int +ICON_LINK: int +ICON_LINK_BOXES: int +ICON_LINK_BROKE: int +ICON_LINK_MULTI: int +ICON_LINK_NET: int +ICON_LOCK_CLOSE: int +ICON_LOCK_OPEN: int +ICON_MAGNET: int +ICON_MAILBOX: int +ICON_MIPMAPS: int +ICON_MODE_2D: int +ICON_MODE_3D: int +ICON_MONITOR: int +ICON_MUTATE: int +ICON_MUTATE_FILL: int +ICON_NONE: int +ICON_NOTEBOOK: int +ICON_OK_TICK: int +ICON_PENCIL: int +ICON_PENCIL_BIG: int +ICON_PHOTO_CAMERA: int +ICON_PHOTO_CAMERA_FLASH: int +ICON_PLAYER: int +ICON_PLAYER_JUMP: int +ICON_PLAYER_NEXT: int +ICON_PLAYER_PAUSE: int +ICON_PLAYER_PLAY: int +ICON_PLAYER_PLAY_BACK: int +ICON_PLAYER_PREVIOUS: int +ICON_PLAYER_RECORD: int +ICON_PLAYER_STOP: int +ICON_POT: int +ICON_PRINTER: int +ICON_REDO: int +ICON_REDO_FILL: int +ICON_REG_EXP: int +ICON_REPEAT: int +ICON_REPEAT_FILL: int +ICON_REREDO: int +ICON_REREDO_FILL: int +ICON_RESIZE: int +ICON_RESTART: int +ICON_ROM: int +ICON_ROTATE: int +ICON_ROTATE_FILL: int +ICON_RUBBER: int +ICON_SAND_TIMER: int +ICON_SCALE: int +ICON_SHIELD: int +ICON_SHUFFLE: int +ICON_SHUFFLE_FILL: int +ICON_SPECIAL: int +ICON_SQUARE_TOGGLE: int +ICON_STAR: int +ICON_STEP_INTO: int +ICON_STEP_OUT: int +ICON_STEP_OVER: int +ICON_SUITCASE: int +ICON_SUITCASE_ZIP: int +ICON_SYMMETRY: int +ICON_SYMMETRY_HORIZONTAL: int +ICON_SYMMETRY_VERTICAL: int +ICON_TARGET: int +ICON_TARGET_BIG: int +ICON_TARGET_BIG_FILL: int +ICON_TARGET_MOVE: int +ICON_TARGET_MOVE_FILL: int +ICON_TARGET_POINT: int +ICON_TARGET_SMALL: int +ICON_TARGET_SMALL_FILL: int +ICON_TEXT_A: int +ICON_TEXT_NOTES: int +ICON_TEXT_POPUP: int +ICON_TEXT_T: int +ICON_TOOLS: int +ICON_UNDO: int +ICON_UNDO_FILL: int +ICON_VERTICAL_BARS: int +ICON_VERTICAL_BARS_FILL: int +ICON_WATER_DROP: int +ICON_WAVE: int +ICON_WAVE_SINUS: int +ICON_WAVE_SQUARE: int +ICON_WAVE_TRIANGULAR: int +ICON_WINDOW: int +ICON_ZOOM_ALL: int +ICON_ZOOM_BIG: int +ICON_ZOOM_CENTER: int +ICON_ZOOM_MEDIUM: int +ICON_ZOOM_SMALL: int def ImageAlphaClear(image: Any,color: Color,threshold: float,) -> None: """Clear alpha channel to desired color""" ... @@ -1143,6 +1536,9 @@ def ImageAlphaMask(image: Any,alphaMask: Image,) -> None: def ImageAlphaPremultiply(image: Any,) -> None: """Premultiply alpha channel""" ... +def ImageBlurGaussian(image: Any,blurSize: int,) -> None: + """Apply Gaussian blur using a box blur approximation""" + ... def ImageClearBackground(dst: Any,color: Color,) -> None: """Clear image background with given color""" ... @@ -1177,10 +1573,16 @@ def ImageDraw(dst: Any,src: Image,srcRec: Rectangle,dstRec: Rectangle,tint: Colo """Draw a source image within a destination image (tint applied to source)""" ... def ImageDrawCircle(dst: Any,centerX: int,centerY: int,radius: int,color: Color,) -> None: - """Draw circle within an image""" + """Draw a filled circle within an image""" + ... +def ImageDrawCircleLines(dst: Any,centerX: int,centerY: int,radius: int,color: Color,) -> None: + """Draw circle outline within an image""" + ... +def ImageDrawCircleLinesV(dst: Any,center: Vector2,radius: int,color: Color,) -> None: + """Draw circle outline within an image (Vector version)""" ... def ImageDrawCircleV(dst: Any,center: Vector2,radius: int,color: Color,) -> None: - """Draw circle within an image (Vector version)""" + """Draw a filled circle within an image (Vector version)""" ... def ImageDrawLine(dst: Any,startPosX: int,startPosY: int,endPosX: int,endPosY: int,color: Color,) -> None: """Draw line within an image""" @@ -1236,6 +1638,9 @@ def ImageResizeCanvas(image: Any,newWidth: int,newHeight: int,offsetX: int,offse def ImageResizeNN(image: Any,newWidth: int,newHeight: int,) -> None: """Resize image (Nearest-Neighbor scaling algorithm)""" ... +def ImageRotate(image: Any,degrees: int,) -> None: + """Rotate image by input angle in degrees (-359 to 359)""" + ... def ImageRotateCCW(image: Any,) -> None: """Rotate image counter-clockwise 90deg""" ... @@ -1271,6 +1676,9 @@ def IsAudioStreamPlaying(stream: AudioStream,) -> bool: def IsAudioStreamProcessed(stream: AudioStream,) -> bool: """Check if any audio stream buffers requires refill""" ... +def IsAudioStreamReady(stream: AudioStream,) -> bool: + """Checks if an audio stream is ready""" + ... def IsCursorHidden() -> bool: """Check if cursor is not visible""" ... @@ -1283,6 +1691,9 @@ def IsFileDropped() -> bool: def IsFileExtension(fileName: str,ext: str,) -> bool: """Check file extension (including point: .png, .wav)""" ... +def IsFontReady(font: Font,) -> bool: + """Check if a font is ready""" + ... def IsGamepadAvailable(gamepad: int,) -> bool: """Check if a gamepad is available""" ... @@ -1301,21 +1712,33 @@ def IsGamepadButtonUp(gamepad: int,button: int,) -> bool: def IsGestureDetected(gesture: int,) -> bool: """Check if a gesture have been detected""" ... +def IsImageReady(image: Image,) -> bool: + """Check if an image is ready""" + ... def IsKeyDown(key: int,) -> bool: """Check if a key is being pressed""" ... def IsKeyPressed(key: int,) -> bool: """Check if a key has been pressed once""" ... +def IsKeyPressedRepeat(key: int,) -> bool: + """Check if a key has been pressed again (Only PLATFORM_DESKTOP)""" + ... def IsKeyReleased(key: int,) -> bool: """Check if a key has been released once""" ... def IsKeyUp(key: int,) -> bool: """Check if a key is NOT being pressed""" ... +def IsMaterialReady(material: Material,) -> bool: + """Check if a material is ready""" + ... def IsModelAnimationValid(model: Model,anim: ModelAnimation,) -> bool: """Check model animation skeleton match""" ... +def IsModelReady(model: Model,) -> bool: + """Check if a model is ready""" + ... def IsMouseButtonDown(button: int,) -> bool: """Check if a mouse button is being pressed""" ... @@ -1328,12 +1751,33 @@ def IsMouseButtonReleased(button: int,) -> bool: def IsMouseButtonUp(button: int,) -> bool: """Check if a mouse button is NOT being pressed""" ... +def IsMusicReady(music: Music,) -> bool: + """Checks if a music stream is ready""" + ... def IsMusicStreamPlaying(music: Music,) -> bool: """Check if music is playing""" ... +def IsPathFile(path: str,) -> bool: + """Check if a given path is a file or a directory""" + ... +def IsRenderTextureReady(target: RenderTexture,) -> bool: + """Check if a render texture is ready""" + ... +def IsShaderReady(shader: Shader,) -> bool: + """Check if a shader is ready""" + ... def IsSoundPlaying(sound: Sound,) -> bool: """Check if a sound is currently playing""" ... +def IsSoundReady(sound: Sound,) -> bool: + """Checks if a sound is ready""" + ... +def IsTextureReady(texture: Texture,) -> bool: + """Check if a texture is ready""" + ... +def IsWaveReady(wave: Wave,) -> bool: + """Checks if wave data is ready""" + ... def IsWindowFocused() -> bool: """Check if window is currently focused (only PLATFORM_DESKTOP)""" ... @@ -1472,7 +1916,7 @@ LABEL: int LINE_COLOR: int LISTVIEW: int LIST_ITEMS_HEIGHT: int -LIST_ITEMS_PADDING: int +LIST_ITEMS_SPACING: int LOG_ALL: int LOG_DEBUG: int LOG_ERROR: int @@ -1481,31 +1925,48 @@ LOG_INFO: int LOG_NONE: int LOG_TRACE: int LOG_WARNING: int +def Lerp(float_0: float,float_1: float,float_2: float,) -> float: + """float Lerp(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... def LoadAudioStream(sampleRate: int,sampleSize: int,channels: int,) -> AudioStream: """Load audio stream (to stream raw audio pcm data)""" ... +def LoadAutomationEventList(fileName: str,) -> AutomationEventList: + """Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS""" + ... def LoadCodepoints(text: str,count: Any,) -> Any: """Load all codepoints from a UTF-8 text string, codepoints count returned by parameter""" ... -def LoadFileData(fileName: str,bytesRead: Any,) -> str: +def LoadDirectoryFiles(dirPath: str,) -> FilePathList: + """Load directory filepaths""" + ... +def LoadDirectoryFilesEx(basePath: str,filter: str,scanSubdirs: bool,) -> FilePathList: + """Load directory filepaths with extension filtering and recursive directory scan""" + ... +def LoadDroppedFiles() -> FilePathList: + """Load dropped filepaths""" + ... +def LoadFileData(fileName: str,dataSize: Any,) -> str: """Load file data as byte array (read)""" ... def LoadFileText(fileName: str,) -> str: - """Load text data from file (read), returns a ' 0' terminated string""" + """Load text data from file (read), returns a '\0' terminated string""" ... def LoadFont(fileName: str,) -> Font: """Load font from file into GPU memory (VRAM)""" ... -def LoadFontData(fileData: str,dataSize: int,fontSize: int,fontChars: Any,glyphCount: int,type: int,) -> Any: +def LoadFontData(fileData: str,dataSize: int,fontSize: int,codepoints: Any,codepointCount: int,type: int,) -> Any: """Load font data for further use""" ... -def LoadFontEx(fileName: str,fontSize: int,fontChars: Any,glyphCount: int,) -> Font: - """Load font from file with extended parameters""" +def LoadFontEx(fileName: str,fontSize: int,codepoints: Any,codepointCount: int,) -> Font: + """Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont""" ... def LoadFontFromImage(image: Image,key: Color,firstChar: int,) -> Font: """Load font from Image (XNA style)""" ... -def LoadFontFromMemory(fileType: str,fileData: str,dataSize: int,fontSize: int,fontChars: Any,glyphCount: int,) -> Font: +def LoadFontFromMemory(fileType: str,fileData: str,dataSize: int,fontSize: int,codepoints: Any,codepointCount: int,) -> Font: """Load font from memory buffer, fileType refers to extension: i.e. '.ttf'""" ... def LoadImage(fileName: str,) -> Image: @@ -1532,6 +1993,9 @@ def LoadImagePalette(image: Image,maxPaletteSize: int,colorCount: Any,) -> Any: def LoadImageRaw(fileName: str,width: int,height: int,format: int,headerSize: int,) -> Image: """Load image from RAW file data""" ... +def LoadImageSvg(fileNameOrString: str,width: int,height: int,) -> Image: + """Load image from SVG file data or string with specified size""" + ... def LoadMaterialDefault() -> Material: """Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)""" ... @@ -1553,6 +2017,9 @@ def LoadMusicStream(fileName: str,) -> Music: def LoadMusicStreamFromMemory(fileType: str,data: str,dataSize: int,) -> Music: """Load music stream from data""" ... +def LoadRandomSequence(count: int,min: int,max: int,) -> Any: + """Load random values sequence, no values repeated""" + ... def LoadRenderTexture(width: int,height: int,) -> RenderTexture: """Load texture for rendering (framebuffer)""" ... @@ -1565,12 +2032,12 @@ def LoadShaderFromMemory(vsCode: str,fsCode: str,) -> Shader: def LoadSound(fileName: str,) -> Sound: """Load sound from file""" ... +def LoadSoundAlias(source: Sound,) -> Sound: + """Create a new sound that shares the same sample data as the source sound, does not own the sound data""" + ... def LoadSoundFromWave(wave: Wave,) -> Sound: """Load sound from wave data""" ... -def LoadStorageValue(position: int,) -> int: - """Load integer value from storage file (from defined position)""" - ... def LoadTexture(fileName: str,) -> Texture: """Load texture from file into GPU memory (VRAM)""" ... @@ -1580,6 +2047,9 @@ def LoadTextureCubemap(image: Image,layout: int,) -> Texture: def LoadTextureFromImage(image: Image,) -> Texture: """Load texture from image data""" ... +def LoadUTF8(codepoints: Any,length: int,) -> str: + """Load UTF-8 text encoded from codepoints array""" + ... def LoadVrStereoConfig(device: VrDeviceInfo,) -> VrStereoConfig: """Load VR stereo config for VR simulator device parameters""" ... @@ -1590,7 +2060,7 @@ def LoadWaveFromMemory(fileType: str,fileData: str,dataSize: int,) -> Wave: """Load wave from memory buffer, fileType refers to extension: i.e. '.wav'""" ... def LoadWaveSamples(wave: Wave,) -> Any: - """Load samples data from wave as a floats array""" + """Load samples data from wave as a 32bit float data array""" ... MATERIAL_MAP_ALBEDO: int MATERIAL_MAP_BRDF: int @@ -1621,6 +2091,111 @@ MOUSE_CURSOR_RESIZE_EW: int MOUSE_CURSOR_RESIZE_NESW: int MOUSE_CURSOR_RESIZE_NS: int MOUSE_CURSOR_RESIZE_NWSE: int +def MatrixAdd(Matrix_0: Matrix,Matrix_1: Matrix,) -> Matrix: + """struct Matrix MatrixAdd(struct Matrix, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixDeterminant(Matrix_0: Matrix,) -> float: + """float MatrixDeterminant(struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixFrustum(double_0: float,double_1: float,double_2: float,double_3: float,double_4: float,double_5: float,) -> Matrix: + """struct Matrix MatrixFrustum(double, double, double, double, double, double); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixIdentity() -> Matrix: + """struct Matrix MatrixIdentity(); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixInvert(Matrix_0: Matrix,) -> Matrix: + """struct Matrix MatrixInvert(struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixLookAt(Vector3_0: Vector3,Vector3_1: Vector3,Vector3_2: Vector3,) -> Matrix: + """struct Matrix MatrixLookAt(struct Vector3, struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixMultiply(Matrix_0: Matrix,Matrix_1: Matrix,) -> Matrix: + """struct Matrix MatrixMultiply(struct Matrix, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixOrtho(double_0: float,double_1: float,double_2: float,double_3: float,double_4: float,double_5: float,) -> Matrix: + """struct Matrix MatrixOrtho(double, double, double, double, double, double); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixPerspective(double_0: float,double_1: float,double_2: float,double_3: float,) -> Matrix: + """struct Matrix MatrixPerspective(double, double, double, double); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixRotate(Vector3_0: Vector3,float_1: float,) -> Matrix: + """struct Matrix MatrixRotate(struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixRotateX(float_0: float,) -> Matrix: + """struct Matrix MatrixRotateX(float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixRotateXYZ(Vector3_0: Vector3,) -> Matrix: + """struct Matrix MatrixRotateXYZ(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixRotateY(float_0: float,) -> Matrix: + """struct Matrix MatrixRotateY(float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixRotateZ(float_0: float,) -> Matrix: + """struct Matrix MatrixRotateZ(float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixRotateZYX(Vector3_0: Vector3,) -> Matrix: + """struct Matrix MatrixRotateZYX(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixScale(float_0: float,float_1: float,float_2: float,) -> Matrix: + """struct Matrix MatrixScale(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixSubtract(Matrix_0: Matrix,Matrix_1: Matrix,) -> Matrix: + """struct Matrix MatrixSubtract(struct Matrix, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixToFloatV(Matrix_0: Matrix,) -> float16: + """struct float16 MatrixToFloatV(struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixTrace(Matrix_0: Matrix,) -> float: + """float MatrixTrace(struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixTranslate(float_0: float,float_1: float,float_2: float,) -> Matrix: + """struct Matrix MatrixTranslate(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def MatrixTranspose(Matrix_0: Matrix,) -> Matrix: + """struct Matrix MatrixTranspose(struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... def MaximizeWindow() -> None: """Set window state: maximized, if resizable (only PLATFORM_DESKTOP)""" ... @@ -1645,11 +2220,11 @@ def MinimizeWindow() -> None: NPATCH_NINE_PATCH: int NPATCH_THREE_PATCH_HORIZONTAL: int NPATCH_THREE_PATCH_VERTICAL: int -OPENGL_11: int -OPENGL_21: int -OPENGL_33: int -OPENGL_43: int -OPENGL_ES_20: int +def Normalize(float_0: float,float_1: float,float_2: float,) -> float: + """float Normalize(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... def OpenURL(url: str,) -> None: """Open URL with default system browser (if available)""" ... @@ -1668,6 +2243,9 @@ PIXELFORMAT_COMPRESSED_PVRT_RGB: int PIXELFORMAT_COMPRESSED_PVRT_RGBA: int PIXELFORMAT_UNCOMPRESSED_GRAYSCALE: int PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA: int +PIXELFORMAT_UNCOMPRESSED_R16: int +PIXELFORMAT_UNCOMPRESSED_R16G16B16: int +PIXELFORMAT_UNCOMPRESSED_R16G16B16A16: int PIXELFORMAT_UNCOMPRESSED_R32: int PIXELFORMAT_UNCOMPRESSED_R32G32B32: int PIXELFORMAT_UNCOMPRESSED_R32G32B32A32: int @@ -1705,19 +2283,133 @@ CFFI C function from raylib._raylib_cffi.lib""" def PlayAudioStream(stream: AudioStream,) -> None: """Play audio stream""" ... +def PlayAutomationEvent(event: AutomationEvent,) -> None: + """Play a recorded automation event""" + ... def PlayMusicStream(music: Music,) -> None: """Start music playing""" ... def PlaySound(sound: Sound,) -> None: """Play a sound""" ... -def PlaySoundMulti(sound: Sound,) -> None: - """Play a sound (using multichannel buffer pool)""" - ... def PollInputEvents() -> None: """Register all input events""" ... -RESERVED: int +def QuaternionAdd(Vector4_0: Vector4,Vector4_1: Vector4,) -> Vector4: + """struct Vector4 QuaternionAdd(struct Vector4, struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionAddValue(Vector4_0: Vector4,float_1: float,) -> Vector4: + """struct Vector4 QuaternionAddValue(struct Vector4, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionDivide(Vector4_0: Vector4,Vector4_1: Vector4,) -> Vector4: + """struct Vector4 QuaternionDivide(struct Vector4, struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionEquals(Vector4_0: Vector4,Vector4_1: Vector4,) -> int: + """int QuaternionEquals(struct Vector4, struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionFromAxisAngle(Vector3_0: Vector3,float_1: float,) -> Vector4: + """struct Vector4 QuaternionFromAxisAngle(struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionFromEuler(float_0: float,float_1: float,float_2: float,) -> Vector4: + """struct Vector4 QuaternionFromEuler(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionFromMatrix(Matrix_0: Matrix,) -> Vector4: + """struct Vector4 QuaternionFromMatrix(struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionFromVector3ToVector3(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector4: + """struct Vector4 QuaternionFromVector3ToVector3(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionIdentity() -> Vector4: + """struct Vector4 QuaternionIdentity(); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionInvert(Vector4_0: Vector4,) -> Vector4: + """struct Vector4 QuaternionInvert(struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionLength(Vector4_0: Vector4,) -> float: + """float QuaternionLength(struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionLerp(Vector4_0: Vector4,Vector4_1: Vector4,float_2: float,) -> Vector4: + """struct Vector4 QuaternionLerp(struct Vector4, struct Vector4, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionMultiply(Vector4_0: Vector4,Vector4_1: Vector4,) -> Vector4: + """struct Vector4 QuaternionMultiply(struct Vector4, struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionNlerp(Vector4_0: Vector4,Vector4_1: Vector4,float_2: float,) -> Vector4: + """struct Vector4 QuaternionNlerp(struct Vector4, struct Vector4, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionNormalize(Vector4_0: Vector4,) -> Vector4: + """struct Vector4 QuaternionNormalize(struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionScale(Vector4_0: Vector4,float_1: float,) -> Vector4: + """struct Vector4 QuaternionScale(struct Vector4, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionSlerp(Vector4_0: Vector4,Vector4_1: Vector4,float_2: float,) -> Vector4: + """struct Vector4 QuaternionSlerp(struct Vector4, struct Vector4, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionSubtract(Vector4_0: Vector4,Vector4_1: Vector4,) -> Vector4: + """struct Vector4 QuaternionSubtract(struct Vector4, struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionSubtractValue(Vector4_0: Vector4,float_1: float,) -> Vector4: + """struct Vector4 QuaternionSubtractValue(struct Vector4, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionToAxisAngle(Vector4_0: Vector4,Vector3_pointer_1: Any,float_pointer_2: Any,) -> None: + """void QuaternionToAxisAngle(struct Vector4, struct Vector3 *, float *); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionToEuler(Vector4_0: Vector4,) -> Vector3: + """struct Vector3 QuaternionToEuler(struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionToMatrix(Vector4_0: Vector4,) -> Matrix: + """struct Matrix QuaternionToMatrix(struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def QuaternionTransform(Vector4_0: Vector4,Matrix_1: Matrix,) -> Vector4: + """struct Vector4 QuaternionTransform(struct Vector4, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... RL_ATTACHMENT_COLOR_CHANNEL0: int RL_ATTACHMENT_COLOR_CHANNEL1: int RL_ATTACHMENT_COLOR_CHANNEL2: int @@ -1739,9 +2431,13 @@ RL_ATTACHMENT_TEXTURE2D: int RL_BLEND_ADDITIVE: int RL_BLEND_ADD_COLORS: int RL_BLEND_ALPHA: int +RL_BLEND_ALPHA_PREMULTIPLY: int RL_BLEND_CUSTOM: int +RL_BLEND_CUSTOM_SEPARATE: int RL_BLEND_MULTIPLIED: int RL_BLEND_SUBTRACT_COLORS: int +RL_CULL_FACE_BACK: int +RL_CULL_FACE_FRONT: int RL_LOG_ALL: int RL_LOG_DEBUG: int RL_LOG_ERROR: int @@ -1750,6 +2446,12 @@ RL_LOG_INFO: int RL_LOG_NONE: int RL_LOG_TRACE: int RL_LOG_WARNING: int +RL_OPENGL_11: int +RL_OPENGL_21: int +RL_OPENGL_33: int +RL_OPENGL_43: int +RL_OPENGL_ES_20: int +RL_OPENGL_ES_30: int RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA: int RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA: int RL_PIXELFORMAT_COMPRESSED_DXT1_RGB: int @@ -1763,6 +2465,9 @@ RL_PIXELFORMAT_COMPRESSED_PVRT_RGB: int RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA: int RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE: int RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA: int +RL_PIXELFORMAT_UNCOMPRESSED_R16: int +RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16: int +RL_PIXELFORMAT_UNCOMPRESSED_R16G16B16A16: int RL_PIXELFORMAT_UNCOMPRESSED_R32: int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32: int RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32: int @@ -1816,6 +2521,11 @@ RL_TEXTURE_FILTER_ANISOTROPIC_8X: int RL_TEXTURE_FILTER_BILINEAR: int RL_TEXTURE_FILTER_POINT: int RL_TEXTURE_FILTER_TRILINEAR: int +def Remap(float_0: float,float_1: float,float_2: float,float_3: float,float_4: float,) -> float: + """float Remap(float, float, float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... def ResetPhysics() -> None: """void ResetPhysics(); @@ -1834,8 +2544,6 @@ def ResumeSound(sound: Sound,) -> None: """Resume a paused sound""" ... SCROLLBAR: int -SCROLLBAR_LEFT_SIDE: int -SCROLLBAR_RIGHT_SIDE: int SCROLLBAR_SIDE: int SCROLLBAR_WIDTH: int SCROLL_PADDING: int @@ -1885,17 +2593,18 @@ SLIDER: int SLIDER_PADDING: int SLIDER_WIDTH: int SPINNER: int -SPIN_BUTTON_PADDING: int +SPIN_BUTTON_SPACING: int SPIN_BUTTON_WIDTH: int +STATE_DISABLED: int +STATE_FOCUSED: int +STATE_NORMAL: int +STATE_PRESSED: int STATUSBAR: int -def SaveFileData(fileName: str,data: Any,bytesToWrite: int,) -> bool: +def SaveFileData(fileName: str,data: Any,dataSize: int,) -> bool: """Save data to file from byte array (write), returns true on success""" ... def SaveFileText(fileName: str,text: str,) -> bool: - """Save text data to file (write), string must be ' 0' terminated, returns true on success""" - ... -def SaveStorageValue(position: int,value: int,) -> bool: - """Save integer value to storage file (to defined position), returns true on success""" + """Save text data to file (write), string must be '\0' terminated, returns true on success""" ... def SeekMusicStream(music: Music,position: float,) -> None: """Seek music to a position (in seconds)""" @@ -1903,26 +2612,23 @@ def SeekMusicStream(music: Music,position: float,) -> None: def SetAudioStreamBufferSizeDefault(size: int,) -> None: """Default size for new audio streams""" ... +def SetAudioStreamCallback(stream: AudioStream,callback: Any,) -> None: + """Audio thread callback to request new data""" + ... +def SetAudioStreamPan(stream: AudioStream,pan: float,) -> None: + """Set pan for audio stream (0.5 is centered)""" + ... def SetAudioStreamPitch(stream: AudioStream,pitch: float,) -> None: """Set pitch for audio stream (1.0 is base level)""" ... def SetAudioStreamVolume(stream: AudioStream,volume: float,) -> None: """Set volume for audio stream (1.0 is max level)""" ... -def SetCameraAltControl(keyAlt: int,) -> None: - """Set camera alt key to combine with mouse movement (free camera)""" +def SetAutomationEventBaseFrame(frame: int,) -> None: + """Set automation event internal base frame to start recording""" ... -def SetCameraMode(camera: Camera3D,mode: int,) -> None: - """Set camera mode (multiple camera modes available)""" - ... -def SetCameraMoveControls(keyFront: int,keyBack: int,keyRight: int,keyLeft: int,keyUp: int,keyDown: int,) -> None: - """Set camera move controls (1st person and 3rd person cameras)""" - ... -def SetCameraPanControl(keyPan: int,) -> None: - """Set camera pan key to combine with mouse movement (free camera)""" - ... -def SetCameraSmoothZoomControl(keySmoothZoom: int,) -> None: - """Set camera smooth zoom key to combine with mouse (free camera)""" +def SetAutomationEventList(list: Any,) -> None: + """Set automation event list to record to""" ... def SetClipboardText(text: str,) -> None: """Set clipboard text content""" @@ -1966,6 +2672,9 @@ def SetMousePosition(x: int,y: int,) -> None: def SetMouseScale(scaleX: float,scaleY: float,) -> None: """Set mouse scaling""" ... +def SetMusicPan(music: Music,pan: float,) -> None: + """Set pan for a music (0.5 is center)""" + ... def SetMusicPitch(music: Music,pitch: float,) -> None: """Set pitch for a music (1.0 is base level)""" ... @@ -2014,6 +2723,9 @@ def SetShaderValueV(shader: Shader,locIndex: int,value: Any,uniformType: int,cou def SetShapesTexture(texture: Texture,source: Rectangle,) -> None: """Set texture and rectangle to be used on shapes drawing""" ... +def SetSoundPan(sound: Sound,pan: float,) -> None: + """Set pan for a sound (0.5 is center)""" + ... def SetSoundPitch(sound: Sound,pitch: float,) -> None: """Set pitch for a sound (1.0 is base level)""" ... @@ -2023,6 +2735,9 @@ def SetSoundVolume(sound: Sound,volume: float,) -> None: def SetTargetFPS(fps: int,) -> None: """Set target FPS (maximum)""" ... +def SetTextLineSpacing(spacing: int,) -> None: + """Set vertical line spacing when drawing with line-breaks""" + ... def SetTextureFilter(texture: Texture,filter: int,) -> None: """Set texture scaling filter mode""" ... @@ -2035,14 +2750,26 @@ def SetTraceLogCallback(callback: str,) -> None: def SetTraceLogLevel(logLevel: int,) -> None: """Set the current threshold (minimum) log level""" ... +def SetWindowFocused() -> None: + """Set window focused (only PLATFORM_DESKTOP)""" + ... def SetWindowIcon(image: Image,) -> None: - """Set icon for window (only PLATFORM_DESKTOP)""" + """Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)""" + ... +def SetWindowIcons(images: Any,count: int,) -> None: + """Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)""" + ... +def SetWindowMaxSize(width: int,height: int,) -> None: + """Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)""" ... def SetWindowMinSize(width: int,height: int,) -> None: """Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)""" ... def SetWindowMonitor(monitor: int,) -> None: - """Set monitor for the current window (fullscreen mode)""" + """Set monitor for the current window""" + ... +def SetWindowOpacity(opacity: float,) -> None: + """Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)""" ... def SetWindowPosition(x: int,y: int,) -> None: """Set window position on screen (only PLATFORM_DESKTOP)""" @@ -2051,26 +2778,29 @@ def SetWindowSize(width: int,height: int,) -> None: """Set window dimensions""" ... def SetWindowState(flags: int,) -> None: - """Set window configuration state using flags""" + """Set window configuration state using flags (only PLATFORM_DESKTOP)""" ... def SetWindowTitle(title: str,) -> None: - """Set title for window (only PLATFORM_DESKTOP)""" + """Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)""" ... def ShowCursor() -> None: """Shows cursor""" ... +def StartAutomationEventRecording() -> None: + """Start recording automation events (AutomationEventList must be set)""" + ... def StopAudioStream(stream: AudioStream,) -> None: """Stop audio stream""" ... +def StopAutomationEventRecording() -> None: + """Stop recording automation events""" + ... def StopMusicStream(music: Music,) -> None: """Stop music playing""" ... def StopSound(sound: Sound,) -> None: """Stop playing a sound""" ... -def StopSoundMulti() -> None: - """Stop any sound playing (using multichannel buffer pool)""" - ... def SwapScreenBuffer() -> None: """Swap back buffer with front buffer (screen drawing)""" ... @@ -2086,15 +2816,26 @@ TEXTURE_WRAP_MIRROR_CLAMP: int TEXTURE_WRAP_MIRROR_REPEAT: int TEXTURE_WRAP_REPEAT: int TEXT_ALIGNMENT: int +TEXT_ALIGNMENT_VERTICAL: int +TEXT_ALIGN_BOTTOM: int +TEXT_ALIGN_CENTER: int +TEXT_ALIGN_LEFT: int +TEXT_ALIGN_MIDDLE: int +TEXT_ALIGN_RIGHT: int +TEXT_ALIGN_TOP: int TEXT_COLOR_DISABLED: int TEXT_COLOR_FOCUSED: int TEXT_COLOR_NORMAL: int TEXT_COLOR_PRESSED: int -TEXT_INNER_PADDING: int -TEXT_LINES_PADDING: int +TEXT_LINE_SPACING: int TEXT_PADDING: int +TEXT_READONLY: int TEXT_SIZE: int TEXT_SPACING: int +TEXT_WRAP_CHAR: int +TEXT_WRAP_MODE: int +TEXT_WRAP_NONE: int +TEXT_WRAP_WORD: int TOGGLE: int def TakeScreenshot(fileName: str,) -> None: """Takes a screenshot of current screen (filename extension defines format)""" @@ -2102,9 +2843,6 @@ def TakeScreenshot(fileName: str,) -> None: def TextAppend(text: str,append: str,position: Any,) -> None: """Append text at specific position and move cursor!""" ... -def TextCodepointsToUTF8(codepoints: Any,length: int,) -> str: - """Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)""" - ... def TextCopy(dst: str,src: str,) -> int: """Copy one string to another, returns bytes copied""" ... @@ -2124,7 +2862,7 @@ def TextJoin(textList: str,count: int,delimiter: str,) -> str: """Join text strings with delimiter""" ... def TextLength(text: str,) -> int: - """Get text length, checks for ' 0' ending""" + """Get text length, checks for '\0' ending""" ... def TextReplace(text: str,replace: str,by: str,) -> str: """Replace text string (WARNING: memory must be freed!)""" @@ -2147,6 +2885,9 @@ def TextToPascal(text: str,) -> str: def TextToUpper(text: str,) -> str: """Get upper case version of provided string""" ... +def ToggleBorderlessWindowed() -> None: + """Toggle window state: borderless windowed (only PLATFORM_DESKTOP)""" + ... def ToggleFullscreen() -> None: """Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)""" ... @@ -2156,9 +2897,18 @@ def TraceLog(*args) -> None: def UnloadAudioStream(stream: AudioStream,) -> None: """Unload audio stream and free memory""" ... +def UnloadAutomationEventList(list: Any,) -> None: + """Unload automation events list from file""" + ... def UnloadCodepoints(codepoints: Any,) -> None: """Unload codepoints data from memory""" ... +def UnloadDirectoryFiles(files: FilePathList,) -> None: + """Unload filepaths""" + ... +def UnloadDroppedFiles(files: FilePathList,) -> None: + """Unload dropped filepaths""" + ... def UnloadFileData(data: str,) -> None: """Unload file data allocated by LoadFileData()""" ... @@ -2166,9 +2916,9 @@ def UnloadFileText(text: str,) -> None: """Unload file text data allocated by LoadFileText()""" ... def UnloadFont(font: Font,) -> None: - """Unload Font from GPU memory (VRAM)""" + """Unload font from GPU memory (VRAM)""" ... -def UnloadFontData(chars: Any,glyphCount: int,) -> None: +def UnloadFontData(glyphs: Any,glyphCount: int,) -> None: """Unload font chars info data (RAM)""" ... def UnloadImage(image: Image,) -> None: @@ -2192,15 +2942,15 @@ def UnloadModel(model: Model,) -> None: def UnloadModelAnimation(anim: ModelAnimation,) -> None: """Unload animation data""" ... -def UnloadModelAnimations(animations: Any,count: int,) -> None: +def UnloadModelAnimations(animations: Any,animCount: int,) -> None: """Unload animation array data""" ... -def UnloadModelKeepMeshes(model: Model,) -> None: - """Unload model (but not meshes) from memory (RAM and/or VRAM)""" - ... def UnloadMusicStream(music: Music,) -> None: """Unload music stream""" ... +def UnloadRandomSequence(sequence: Any,) -> None: + """Unload random values sequence""" + ... def UnloadRenderTexture(target: RenderTexture,) -> None: """Unload render texture from GPU memory (VRAM)""" ... @@ -2210,9 +2960,15 @@ def UnloadShader(shader: Shader,) -> None: def UnloadSound(sound: Sound,) -> None: """Unload sound""" ... +def UnloadSoundAlias(alias: Sound,) -> None: + """Unload a sound alias (does not deallocate sample data)""" + ... def UnloadTexture(texture: Texture,) -> None: """Unload texture from GPU memory (VRAM)""" ... +def UnloadUTF8(text: str,) -> None: + """Unload UTF-8 text encoded from codepoints array""" + ... def UnloadVrStereoConfig(config: VrStereoConfig,) -> None: """Unload VR stereo config""" ... @@ -2225,9 +2981,12 @@ def UnloadWaveSamples(samples: Any,) -> None: def UpdateAudioStream(stream: AudioStream,data: Any,frameCount: int,) -> None: """Update audio stream buffers with data""" ... -def UpdateCamera(camera: Any,) -> None: +def UpdateCamera(camera: Any,mode: int,) -> None: """Update camera position for selected mode""" ... +def UpdateCameraPro(camera: Any,movement: Vector3,rotation: Vector3,zoom: float,) -> None: + """Update camera movement/rotation""" + ... def UpdateMeshBuffer(mesh: Mesh,index: int,data: Any,dataSize: int,offset: int,) -> None: """Update mesh vertex data in GPU for a specific buffer index""" ... @@ -2255,8 +3014,328 @@ def UploadMesh(mesh: Any,dynamic: bool,) -> None: """Upload mesh vertex data in GPU and provide VAO/VBO ids""" ... VALUEBOX: int -def WaitTime(ms: float,) -> None: - """Wait for some milliseconds (halt program execution)""" +def Vector2Add(Vector2_0: Vector2,Vector2_1: Vector2,) -> Vector2: + """struct Vector2 Vector2Add(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2AddValue(Vector2_0: Vector2,float_1: float,) -> Vector2: + """struct Vector2 Vector2AddValue(struct Vector2, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Angle(Vector2_0: Vector2,Vector2_1: Vector2,) -> float: + """float Vector2Angle(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Clamp(Vector2_0: Vector2,Vector2_1: Vector2,Vector2_2: Vector2,) -> Vector2: + """struct Vector2 Vector2Clamp(struct Vector2, struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2ClampValue(Vector2_0: Vector2,float_1: float,float_2: float,) -> Vector2: + """struct Vector2 Vector2ClampValue(struct Vector2, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Distance(Vector2_0: Vector2,Vector2_1: Vector2,) -> float: + """float Vector2Distance(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2DistanceSqr(Vector2_0: Vector2,Vector2_1: Vector2,) -> float: + """float Vector2DistanceSqr(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Divide(Vector2_0: Vector2,Vector2_1: Vector2,) -> Vector2: + """struct Vector2 Vector2Divide(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2DotProduct(Vector2_0: Vector2,Vector2_1: Vector2,) -> float: + """float Vector2DotProduct(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Equals(Vector2_0: Vector2,Vector2_1: Vector2,) -> int: + """int Vector2Equals(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Invert(Vector2_0: Vector2,) -> Vector2: + """struct Vector2 Vector2Invert(struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Length(Vector2_0: Vector2,) -> float: + """float Vector2Length(struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2LengthSqr(Vector2_0: Vector2,) -> float: + """float Vector2LengthSqr(struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Lerp(Vector2_0: Vector2,Vector2_1: Vector2,float_2: float,) -> Vector2: + """struct Vector2 Vector2Lerp(struct Vector2, struct Vector2, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2LineAngle(Vector2_0: Vector2,Vector2_1: Vector2,) -> float: + """float Vector2LineAngle(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2MoveTowards(Vector2_0: Vector2,Vector2_1: Vector2,float_2: float,) -> Vector2: + """struct Vector2 Vector2MoveTowards(struct Vector2, struct Vector2, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Multiply(Vector2_0: Vector2,Vector2_1: Vector2,) -> Vector2: + """struct Vector2 Vector2Multiply(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Negate(Vector2_0: Vector2,) -> Vector2: + """struct Vector2 Vector2Negate(struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Normalize(Vector2_0: Vector2,) -> Vector2: + """struct Vector2 Vector2Normalize(struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2One() -> Vector2: + """struct Vector2 Vector2One(); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Reflect(Vector2_0: Vector2,Vector2_1: Vector2,) -> Vector2: + """struct Vector2 Vector2Reflect(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Rotate(Vector2_0: Vector2,float_1: float,) -> Vector2: + """struct Vector2 Vector2Rotate(struct Vector2, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Scale(Vector2_0: Vector2,float_1: float,) -> Vector2: + """struct Vector2 Vector2Scale(struct Vector2, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Subtract(Vector2_0: Vector2,Vector2_1: Vector2,) -> Vector2: + """struct Vector2 Vector2Subtract(struct Vector2, struct Vector2); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2SubtractValue(Vector2_0: Vector2,float_1: float,) -> Vector2: + """struct Vector2 Vector2SubtractValue(struct Vector2, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Transform(Vector2_0: Vector2,Matrix_1: Matrix,) -> Vector2: + """struct Vector2 Vector2Transform(struct Vector2, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector2Zero() -> Vector2: + """struct Vector2 Vector2Zero(); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Add(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Add(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3AddValue(Vector3_0: Vector3,float_1: float,) -> Vector3: + """struct Vector3 Vector3AddValue(struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Angle(Vector3_0: Vector3,Vector3_1: Vector3,) -> float: + """float Vector3Angle(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Barycenter(Vector3_0: Vector3,Vector3_1: Vector3,Vector3_2: Vector3,Vector3_3: Vector3,) -> Vector3: + """struct Vector3 Vector3Barycenter(struct Vector3, struct Vector3, struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Clamp(Vector3_0: Vector3,Vector3_1: Vector3,Vector3_2: Vector3,) -> Vector3: + """struct Vector3 Vector3Clamp(struct Vector3, struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3ClampValue(Vector3_0: Vector3,float_1: float,float_2: float,) -> Vector3: + """struct Vector3 Vector3ClampValue(struct Vector3, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3CrossProduct(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3CrossProduct(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Distance(Vector3_0: Vector3,Vector3_1: Vector3,) -> float: + """float Vector3Distance(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3DistanceSqr(Vector3_0: Vector3,Vector3_1: Vector3,) -> float: + """float Vector3DistanceSqr(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Divide(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Divide(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3DotProduct(Vector3_0: Vector3,Vector3_1: Vector3,) -> float: + """float Vector3DotProduct(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Equals(Vector3_0: Vector3,Vector3_1: Vector3,) -> int: + """int Vector3Equals(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Invert(Vector3_0: Vector3,) -> Vector3: + """struct Vector3 Vector3Invert(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Length(Vector3_0: Vector3,) -> float: + """float Vector3Length(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3LengthSqr(Vector3_0: Vector3,) -> float: + """float Vector3LengthSqr(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Lerp(Vector3_0: Vector3,Vector3_1: Vector3,float_2: float,) -> Vector3: + """struct Vector3 Vector3Lerp(struct Vector3, struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Max(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Max(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Min(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Min(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Multiply(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Multiply(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Negate(Vector3_0: Vector3,) -> Vector3: + """struct Vector3 Vector3Negate(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Normalize(Vector3_0: Vector3,) -> Vector3: + """struct Vector3 Vector3Normalize(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3One() -> Vector3: + """struct Vector3 Vector3One(); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3OrthoNormalize(Vector3_pointer_0: Any,Vector3_pointer_1: Any,) -> None: + """void Vector3OrthoNormalize(struct Vector3 *, struct Vector3 *); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Perpendicular(Vector3_0: Vector3,) -> Vector3: + """struct Vector3 Vector3Perpendicular(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Project(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Project(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Reflect(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Reflect(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Refract(Vector3_0: Vector3,Vector3_1: Vector3,float_2: float,) -> Vector3: + """struct Vector3 Vector3Refract(struct Vector3, struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Reject(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Reject(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3RotateByAxisAngle(Vector3_0: Vector3,Vector3_1: Vector3,float_2: float,) -> Vector3: + """struct Vector3 Vector3RotateByAxisAngle(struct Vector3, struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3RotateByQuaternion(Vector3_0: Vector3,Vector4_1: Vector4,) -> Vector3: + """struct Vector3 Vector3RotateByQuaternion(struct Vector3, struct Vector4); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Scale(Vector3_0: Vector3,float_1: float,) -> Vector3: + """struct Vector3 Vector3Scale(struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Subtract(Vector3_0: Vector3,Vector3_1: Vector3,) -> Vector3: + """struct Vector3 Vector3Subtract(struct Vector3, struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3SubtractValue(Vector3_0: Vector3,float_1: float,) -> Vector3: + """struct Vector3 Vector3SubtractValue(struct Vector3, float); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3ToFloatV(Vector3_0: Vector3,) -> float3: + """struct float3 Vector3ToFloatV(struct Vector3); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Transform(Vector3_0: Vector3,Matrix_1: Matrix,) -> Vector3: + """struct Vector3 Vector3Transform(struct Vector3, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Unproject(Vector3_0: Vector3,Matrix_1: Matrix,Matrix_2: Matrix,) -> Vector3: + """struct Vector3 Vector3Unproject(struct Vector3, struct Matrix, struct Matrix); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def Vector3Zero() -> Vector3: + """struct Vector3 Vector3Zero(); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def WaitTime(seconds: float,) -> None: + """Wait for some time (halt program execution)""" ... def WaveCopy(wave: Wave,) -> Wave: """Copy a wave to a new wave""" @@ -2268,7 +3347,12 @@ def WaveFormat(wave: Any,sampleRate: int,sampleSize: int,channels: int,) -> None """Convert wave data to desired format""" ... def WindowShouldClose() -> bool: - """Check if KEY_ESCAPE pressed or Close icon pressed""" + """Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)""" + ... +def Wrap(float_0: float,float_1: float,float_2: float,) -> float: + """float Wrap(float, float, float); + +CFFI C function from raylib._raylib_cffi.lib""" ... def rlActiveDrawBuffers(int_0: int,) -> None: """void rlActiveDrawBuffers(int); @@ -2283,6 +3367,21 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlBegin(int_0: int,) -> None: """void rlBegin(int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlBindImageTexture(unsignedint_0: int,unsignedint_1: int,int_2: int,_Bool_3: bool,) -> None: + """void rlBindImageTexture(unsigned int, unsigned int, int, _Bool); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlBindShaderBuffer(unsignedint_0: int,unsignedint_1: int,) -> None: + """void rlBindShaderBuffer(unsigned int, unsigned int); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlBlitFramebuffer(int_0: int,int_1: int,int_2: int,int_3: int,int_4: int,int_5: int,int_6: int,int_7: int,int_8: int,) -> None: + """void rlBlitFramebuffer(int, int, int, int, int, int, int, int, int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlCheckErrors() -> None: @@ -2323,6 +3422,21 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlCompileShader(str_0: str,int_1: int,) -> int: """unsigned int rlCompileShader(char *, int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlComputeShaderDispatch(unsignedint_0: int,unsignedint_1: int,unsignedint_2: int,) -> None: + """void rlComputeShaderDispatch(unsigned int, unsigned int, unsigned int); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlCopyShaderBuffer(unsignedint_0: int,unsignedint_1: int,unsignedint_2: int,unsignedint_3: int,unsignedint_4: int,) -> None: + """void rlCopyShaderBuffer(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlCubemapParameters(unsignedint_0: int,int_1: int,int_2: int,) -> None: + """void rlCubemapParameters(unsigned int, int, int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlDisableBackfaceCulling() -> None: @@ -2458,6 +3572,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlEnableFramebuffer(unsignedint_0: int,) -> None: """void rlEnableFramebuffer(unsigned int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlEnablePointMode() -> None: + """void rlEnablePointMode(); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlEnableScissorTest() -> None: @@ -2550,8 +3669,8 @@ def rlGetFramebufferWidth() -> int: CFFI C function from raylib._raylib_cffi.lib""" ... -def rlGetGlTextureFormats(int_0: int,int_pointer_1: Any,int_pointer_2: Any,int_pointer_3: Any,) -> None: - """void rlGetGlTextureFormats(int, int *, int *, int *); +def rlGetGlTextureFormats(int_0: int,unsignedint_pointer_1: Any,unsignedint_pointer_2: Any,unsignedint_pointer_3: Any,) -> None: + """void rlGetGlTextureFormats(int, unsigned int *, unsigned int *, unsigned int *); CFFI C function from raylib._raylib_cffi.lib""" ... @@ -2598,6 +3717,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlGetPixelFormatName(unsignedint_0: int,) -> str: """char *rlGetPixelFormatName(unsigned int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlGetShaderBufferSize(unsignedint_0: int,) -> int: + """unsigned int rlGetShaderBufferSize(unsigned int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlGetShaderIdDefault() -> int: @@ -2623,6 +3747,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlIsStereoRenderEnabled() -> bool: """_Bool rlIsStereoRenderEnabled(); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlLoadComputeShaderProgram(unsignedint_0: int,) -> int: + """unsigned int rlLoadComputeShaderProgram(unsigned int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlLoadDrawCube() -> None: @@ -2653,6 +3782,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlLoadRenderBatch(int_0: int,int_1: int,) -> rlRenderBatch: """struct rlRenderBatch rlLoadRenderBatch(int, int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlLoadShaderBuffer(unsignedint_0: int,void_pointer_1: Any,int_2: int,) -> int: + """unsigned int rlLoadShaderBuffer(unsigned int, void *, int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlLoadShaderCode(str_0: str,str_1: str,) -> int: @@ -2728,6 +3862,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlReadScreenPixels(int_0: int,int_1: int,) -> str: """unsigned char *rlReadScreenPixels(int, int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlReadShaderBuffer(unsignedint_0: int,void_pointer_1: Any,unsignedint_2: int,unsignedint_3: int,) -> None: + """void rlReadShaderBuffer(unsigned int, void *, unsigned int, unsigned int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlReadTexturePixels(unsignedint_0: int,int_1: int,int_2: int,int_3: int,) -> Any: @@ -2753,11 +3892,31 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlSetBlendFactors(int_0: int,int_1: int,int_2: int,) -> None: """void rlSetBlendFactors(int, int, int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlSetBlendFactorsSeparate(int_0: int,int_1: int,int_2: int,int_3: int,int_4: int,int_5: int,) -> None: + """void rlSetBlendFactorsSeparate(int, int, int, int, int, int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlSetBlendMode(int_0: int,) -> None: """void rlSetBlendMode(int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlSetCullFace(int_0: int,) -> None: + """void rlSetCullFace(int); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlSetFramebufferHeight(int_0: int,) -> None: + """void rlSetFramebufferHeight(int); + +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlSetFramebufferWidth(int_0: int,) -> None: + """void rlSetFramebufferWidth(int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlSetLineWidth(float_0: float,) -> None: @@ -2853,6 +4012,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlUnloadRenderBatch(rlRenderBatch_0: rlRenderBatch,) -> None: """void rlUnloadRenderBatch(struct rlRenderBatch); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlUnloadShaderBuffer(unsignedint_0: int,) -> None: + """void rlUnloadShaderBuffer(unsigned int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlUnloadShaderProgram(unsignedint_0: int,) -> None: @@ -2873,6 +4037,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlUnloadVertexBuffer(unsignedint_0: int,) -> None: """void rlUnloadVertexBuffer(unsigned int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlUpdateShaderBuffer(unsignedint_0: int,void_pointer_1: Any,unsignedint_2: int,unsignedint_3: int,) -> None: + """void rlUpdateShaderBuffer(unsigned int, void *, unsigned int, unsigned int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlUpdateTexture(unsignedint_0: int,int_1: int,int_2: int,int_3: int,int_4: int,int_5: int,void_pointer_6: Any,) -> None: @@ -2883,6 +4052,11 @@ CFFI C function from raylib._raylib_cffi.lib""" def rlUpdateVertexBuffer(unsignedint_0: int,void_pointer_1: Any,int_2: int,int_3: int,) -> None: """void rlUpdateVertexBuffer(unsigned int, void *, int, int); +CFFI C function from raylib._raylib_cffi.lib""" + ... +def rlUpdateVertexBufferElements(unsignedint_0: int,void_pointer_1: Any,int_2: int,int_3: int,) -> None: + """void rlUpdateVertexBufferElements(unsigned int, void *, int, int); + CFFI C function from raylib._raylib_cffi.lib""" ... def rlVertex2f(float_0: float,float_1: float,) -> None: @@ -2916,6 +4090,8 @@ def rlglInit(int_0: int,int_1: int,) -> None: CFFI C function from raylib._raylib_cffi.lib""" ... AudioStream: struct +AutomationEvent: struct +AutomationEventList: struct BlendMode: int BoneInfo: struct BoundingBox: struct @@ -2927,6 +4103,7 @@ CameraProjection: int Color: struct ConfigFlags: int CubemapLayout: int +FilePathList: struct Font: struct FontType: int GamepadAxis: int @@ -2938,18 +4115,20 @@ GuiColorPickerProperty: int GuiComboBoxProperty: int GuiControl: int GuiControlProperty: int -GuiControlState: int GuiDefaultProperty: int GuiDropdownBoxProperty: int +GuiIconName: int GuiListViewProperty: int GuiProgressBarProperty: int GuiScrollBarProperty: int -GuiScrollBarSide: int GuiSliderProperty: int GuiSpinnerProperty: int +GuiState: int GuiStyleProp: struct GuiTextAlignment: int +GuiTextAlignmentVertical: int GuiTextBoxProperty: int +GuiTextWrapMode: int GuiToggleProperty: int Image: struct KeyboardKey: int @@ -2996,8 +4175,12 @@ Vector4: struct VrDeviceInfo: struct VrStereoConfig: struct Wave: struct +float16: struct +float3: struct rAudioBuffer: struct +rAudioProcessor: struct rlBlendMode: int +rlCullMode: int rlDrawCall: struct rlFramebufferAttachTextureType: int rlFramebufferAttachType: int @@ -3010,6 +4193,19 @@ rlShaderUniformDataType: int rlTextureFilter: int rlTraceLogLevel: int rlVertexBuffer: struct +# Copyright (c) 2021 Richard Smith and others +# +# This program and the accompanying materials are made available under the +# terms of the Eclipse Public License 2.0 which is available at +# http://www.eclipse.org/legal/epl-2.0. +# +# This Source Code may also be made available under the following Secondary +# licenses when the conditions for such availability set forth in the Eclipse +# Public License, v. 2.0 are satisfied: GNU General Public License, version 2 +# with the GNU Classpath Exception which is +# available at https://www.gnu.org/software/classpath/license.html. +# +# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 LIGHTGRAY =( 200, 200, 200, 255 ) GRAY =( 130, 130, 130, 255 ) @@ -3036,4 +4232,5 @@ WHITE =( 255, 255, 255, 255 ) BLACK =( 0, 0, 0, 255 ) BLANK =( 0, 0, 0, 0 ) MAGENTA =( 255, 0, 255, 255 ) -RAYWHITE =( 245, 245, 245, 255 ) \ No newline at end of file +RAYWHITE =( 245, 245, 245, 255 ) + diff --git a/dynamic/raylib/libraylib.dylib b/dynamic/raylib/libraylib.dylib index 83e4eb7..24e7911 100755 Binary files a/dynamic/raylib/libraylib.dylib and b/dynamic/raylib/libraylib.dylib differ diff --git a/dynamic/raylib/libraylib.so b/dynamic/raylib/libraylib.so index 6caf3a8..f297e6e 100755 Binary files a/dynamic/raylib/libraylib.so and b/dynamic/raylib/libraylib.so differ diff --git a/dynamic/raylib/raylib.dll b/dynamic/raylib/raylib.dll index c220506..a9d218b 100644 Binary files a/dynamic/raylib/raylib.dll and b/dynamic/raylib/raylib.dll differ diff --git a/dynamic/raylib/raylib_modified.h b/dynamic/raylib/raylib_modified.h index 3664046..158519a 100644 --- a/dynamic/raylib/raylib_modified.h +++ b/dynamic/raylib/raylib_modified.h @@ -1,6 +1,6 @@ /********************************************************************************************** * -* raylib v4.5 - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com) +* raylib v5.0 - A simple and easy-to-use library to enjoy videogames programming (www.raylib.com) * * FEATURES: * - NO external dependencies, all required libraries included with raylib @@ -84,6 +84,10 @@ // NOTE: Require recompiling raylib sources // NOTE: MSVC C++ compiler does not support compound literals (C99 feature) // Plain structures in C++ (without constructors) can be initialized with { } +// This is called aggregate initialization (C++11 feature) +// Some compilers (mostly macos clang) default to C++98, +// where aggregate initialization can't be used +// So, give a more clear error stating how to fix this // NOTE: We set some defines with some data types declared by raylib // Other modules (raymath, rlgl) also require some of those types, so, // to be able to use those other modules as standalone (not depending on raylib) @@ -273,6 +277,7 @@ typedef struct ModelAnimation { int frameCount; // Number of animation frames BoneInfo *bones; // Bones information (skeleton) Transform **framePoses; // Poses array by frame + char name[32]; // Animation name } ModelAnimation; // Ray, ray for raycasting typedef struct Ray { @@ -354,6 +359,18 @@ typedef struct FilePathList { unsigned int count; // Filepaths entries count char **paths; // Filepaths entries } FilePathList; +// Automation event +typedef struct AutomationEvent { + unsigned int frame; // Event frame + unsigned int type; // Event type (AutomationEventType) + int params[4]; // Event parameters (if required) +} AutomationEvent; +// Automation event list +typedef struct AutomationEventList { + unsigned int capacity; // Events max entries (MAX_AUTOMATION_EVENTS) + unsigned int count; // Events entries count + AutomationEvent *events; // Events entries +} AutomationEventList; //---------------------------------------------------------------------------------- // Enumerators Definition //---------------------------------------------------------------------------------- @@ -374,6 +391,7 @@ typedef enum { FLAG_WINDOW_TRANSPARENT = 0x00000010, // Set to allow transparent framebuffer FLAG_WINDOW_HIGHDPI = 0x00002000, // Set to support HighDPI FLAG_WINDOW_MOUSE_PASSTHROUGH = 0x00004000, // Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED + FLAG_BORDERLESS_WINDOWED_MODE = 0x00008000, // Set to run program in borderless windowed mode FLAG_MSAA_4X_HINT = 0x00000020, // Set to try enabling MSAA 4X FLAG_INTERLACED_HINT = 0x00010000 // Set to try enabling interlaced video format (for V3D) } ConfigFlags; @@ -638,6 +656,9 @@ typedef enum { 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 @@ -731,8 +752,8 @@ typedef enum { // Callbacks to hook some internal functions // WARNING: These callbacks are intended for advance users typedef void (*TraceLogCallback)(int logLevel, const char *text, void * args); // Logging: Redirect trace log messages -typedef unsigned char *(*LoadFileDataCallback)(const char *fileName, unsigned int *bytesRead); // FileIO: Load binary data -typedef bool (*SaveFileDataCallback)(const char *fileName, void *data, unsigned int bytesToWrite); // FileIO: Save binary data +typedef unsigned char *(*LoadFileDataCallback)(const char *fileName, int *dataSize); // FileIO: Load binary data +typedef bool (*SaveFileDataCallback)(const char *fileName, void *data, int dataSize); // FileIO: Save binary data typedef char *(*LoadFileTextCallback)(const char *fileName); // FileIO: Load text data typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileIO: Save text data //------------------------------------------------------------------------------------ @@ -744,8 +765,8 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI //------------------------------------------------------------------------------------ // Window-related functions void InitWindow(int width, int height, const char *title); // Initialize window and OpenGL context - bool WindowShouldClose(void); // Check if KEY_ESCAPE pressed or Close icon pressed void CloseWindow(void); // Close window and unload OpenGL context + bool WindowShouldClose(void); // Check if application should close (KEY_ESCAPE pressed or windows close icon clicked) bool IsWindowReady(void); // Check if window has been initialized successfully bool IsWindowFullscreen(void); // Check if window is currently fullscreen bool IsWindowHidden(void); // Check if window is currently hidden (only PLATFORM_DESKTOP) @@ -757,17 +778,20 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void SetWindowState(unsigned int flags); // Set window configuration state using flags (only PLATFORM_DESKTOP) void ClearWindowState(unsigned int flags); // Clear window configuration state flags void ToggleFullscreen(void); // Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) + void ToggleBorderlessWindowed(void); // Toggle window state: borderless windowed (only PLATFORM_DESKTOP) void MaximizeWindow(void); // Set window state: maximized, if resizable (only PLATFORM_DESKTOP) void MinimizeWindow(void); // Set window state: minimized, if resizable (only PLATFORM_DESKTOP) void RestoreWindow(void); // Set window state: not minimized/maximized (only PLATFORM_DESKTOP) void SetWindowIcon(Image image); // Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP) void SetWindowIcons(Image *images, int count); // Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP) - void SetWindowTitle(const char *title); // Set title for window (only PLATFORM_DESKTOP) + void SetWindowTitle(const char *title); // Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB) void SetWindowPosition(int x, int y); // Set window position on screen (only PLATFORM_DESKTOP) - void SetWindowMonitor(int monitor); // Set monitor for the current window (fullscreen mode) + void SetWindowMonitor(int monitor); // Set monitor for the current window void SetWindowMinSize(int width, int height); // Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE) + void SetWindowMaxSize(int width, int height); // Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE) void SetWindowSize(int width, int height); // Set window dimensions void SetWindowOpacity(float opacity); // Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP) + void SetWindowFocused(void); // Set window focused (only PLATFORM_DESKTOP) void *GetWindowHandle(void); // Get native window handle int GetScreenWidth(void); // Get current screen width int GetScreenHeight(void); // Get current screen height @@ -783,18 +807,11 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI int GetMonitorRefreshRate(int monitor); // Get specified monitor refresh rate Vector2 GetWindowPosition(void); // Get window position XY on monitor Vector2 GetWindowScaleDPI(void); // Get window scale DPI factor - const char *GetMonitorName(int monitor); // Get the human-readable, UTF-8 encoded name of the primary monitor + const char *GetMonitorName(int monitor); // Get the human-readable, UTF-8 encoded name of the specified monitor void SetClipboardText(const char *text); // Set clipboard text content const char *GetClipboardText(void); // Get clipboard text content void EnableEventWaiting(void); // Enable waiting for events on EndDrawing(), no automatic event polling void DisableEventWaiting(void); // Disable waiting for events on EndDrawing(), automatic events polling -// Custom frame control functions -// NOTE: Those functions are intended for advance users that want full control over the frame processing -// By default EndDrawing() does this job: draws everything + SwapScreenBuffer() + manage frame timing + PollInputEvents() -// To avoid that behaviour and control frame processes manually, enable in config.h: SUPPORT_CUSTOM_FRAME_CONTROL - void SwapScreenBuffer(void); // Swap back buffer with front buffer (screen drawing) - void PollInputEvents(void); // Register all input events - void WaitTime(double seconds); // Wait for some time (halt program execution) // Cursor-related functions void ShowCursor(void); // Shows cursor void HideCursor(void); // Hides cursor @@ -845,20 +862,32 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI Vector2 GetWorldToScreen2D(Vector2 position, Camera2D camera); // Get the screen space position for a 2d camera world space position // Timing-related functions void SetTargetFPS(int fps); // Set target FPS (maximum) - int GetFPS(void); // Get current FPS float GetFrameTime(void); // Get time in seconds for last frame drawn (delta time) double GetTime(void); // Get elapsed time in seconds since InitWindow() -// Misc. functions - int GetRandomValue(int min, int max); // Get a random value between min and max (both included) + int GetFPS(void); // Get current FPS +// Custom frame control functions +// NOTE: Those functions are intended for advance users that want full control over the frame processing +// By default EndDrawing() does this job: draws everything + SwapScreenBuffer() + manage frame timing + PollInputEvents() +// To avoid that behaviour and control frame processes manually, enable in config.h: SUPPORT_CUSTOM_FRAME_CONTROL + void SwapScreenBuffer(void); // Swap back buffer with front buffer (screen drawing) + void PollInputEvents(void); // Register all input events + void WaitTime(double seconds); // Wait for some time (halt program execution) +// Random values generation functions void SetRandomSeed(unsigned int seed); // Set the seed for the random number generator + int GetRandomValue(int min, int max); // Get a random value between min and max (both included) + int *LoadRandomSequence(unsigned int count, int min, int max); // Load random values sequence, no values repeated + void UnloadRandomSequence(int *sequence); // Unload random values sequence +// Misc. functions void TakeScreenshot(const char *fileName); // Takes a screenshot of current screen (filename extension defines format) void SetConfigFlags(unsigned int flags); // Setup init configuration flags (view FLAGS) + void OpenURL(const char *url); // Open URL with default system browser (if available) +// NOTE: Following functions implemented in module [utils] +//------------------------------------------------------------------ void TraceLog(int logLevel, const char *text, ...); // Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...) void SetTraceLogLevel(int logLevel); // Set the current threshold (minimum) log level void *MemAlloc(unsigned int size); // Internal memory allocator void *MemRealloc(void *ptr, unsigned int size); // Internal memory reallocator void MemFree(void *ptr); // Internal memory free - void OpenURL(const char *url); // Open URL with default system browser (if available) // Set custom callbacks // WARNING: Callbacks setup is intended for advance users void SetTraceLogCallback(TraceLogCallback callback); // Set custom trace log @@ -867,13 +896,15 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void SetLoadFileTextCallback(LoadFileTextCallback callback); // Set custom file text data loader void SetSaveFileTextCallback(SaveFileTextCallback callback); // Set custom file text data saver // Files management functions - unsigned char *LoadFileData(const char *fileName, unsigned int *bytesRead); // Load file data as byte array (read) + unsigned char *LoadFileData(const char *fileName, int *dataSize); // Load file data as byte array (read) void UnloadFileData(unsigned char *data); // Unload file data allocated by LoadFileData() - bool SaveFileData(const char *fileName, void *data, unsigned int bytesToWrite); // Save data to file from byte array (write), returns true on success - bool ExportDataAsCode(const unsigned char *data, unsigned int size, const char *fileName); // Export data to code (.h), returns true on success + bool SaveFileData(const char *fileName, void *data, int dataSize); // Save data to file from byte array (write), returns true on success + bool ExportDataAsCode(const unsigned char *data, int dataSize, const char *fileName); // Export data to code (.h), returns true on success char *LoadFileText(const char *fileName); // Load text data from file (read), returns a '\0' terminated string void UnloadFileText(char *text); // Unload file text data allocated by LoadFileText() bool SaveFileText(const char *fileName, char *text); // Save text data to file (write), string must be '\0' terminated, returns true on success +//------------------------------------------------------------------ +// File system functions bool FileExists(const char *fileName); // Check if file exists bool DirectoryExists(const char *dirPath); // Check if a directory path exists bool IsFileExtension(const char *fileName, const char *ext); // Check file extension (including point: .png, .wav) @@ -884,7 +915,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI const char *GetDirectoryPath(const char *filePath); // Get full path for a given fileName with path (uses static string) const char *GetPrevDirectoryPath(const char *dirPath); // Get previous directory path for a given path (uses static string) const char *GetWorkingDirectory(void); // Get current working directory (uses static string) - const char *GetApplicationDirectory(void); // Get the directory if the running application (uses static string) + const char *GetApplicationDirectory(void); // Get the directory of the running application (uses static string) bool ChangeDirectory(const char *dir); // Change working directory, return true on success bool IsPathFile(const char *path); // Check if a given path is a file or a directory FilePathList LoadDirectoryFiles(const char *dirPath); // Load directory filepaths @@ -899,17 +930,27 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI unsigned char *DecompressData(const unsigned char *compData, int compDataSize, int *dataSize); // Decompress data (DEFLATE algorithm), memory must be MemFree() char *EncodeDataBase64(const unsigned char *data, int dataSize, int *outputSize); // Encode data to Base64 string, memory must be MemFree() unsigned char *DecodeDataBase64(const unsigned char *data, int *outputSize); // Decode Base64 string data, memory must be MemFree() +// Automation events functionality + AutomationEventList LoadAutomationEventList(const char *fileName); // Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS + void UnloadAutomationEventList(AutomationEventList *list); // Unload automation events list from file + bool ExportAutomationEventList(AutomationEventList list, const char *fileName); // Export automation events list as text file + void SetAutomationEventList(AutomationEventList *list); // Set automation event list to record to + void SetAutomationEventBaseFrame(int frame); // Set automation event internal base frame to start recording + void StartAutomationEventRecording(void); // Start recording automation events (AutomationEventList must be set) + void StopAutomationEventRecording(void); // Stop recording automation events + void PlayAutomationEvent(AutomationEvent event); // Play a recorded automation event //------------------------------------------------------------------------------------ // Input Handling Functions (Module: core) //------------------------------------------------------------------------------------ // Input-related functions: keyboard bool IsKeyPressed(int key); // Check if a key has been pressed once + bool IsKeyPressedRepeat(int key); // Check if a key has been pressed again (Only PLATFORM_DESKTOP) bool IsKeyDown(int key); // Check if a key is being pressed bool IsKeyReleased(int key); // Check if a key has been released once bool IsKeyUp(int key); // Check if a key is NOT being pressed - void SetExitKey(int key); // Set a custom key to exit program (default is ESC) int GetKeyPressed(void); // Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty int GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty + void SetExitKey(int key); // Set a custom key to exit program (default is ESC) // Input-related functions: gamepads bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available const char *GetGamepadName(int gamepad); // Get gamepad internal name id @@ -946,7 +987,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI // Gestures and Touch Handling Functions (Module: rgestures) //------------------------------------------------------------------------------------ void SetGesturesEnabled(unsigned int flags); // Enable a set of gestures using flags - bool IsGestureDetected(int gesture); // Check if a gesture have been detected + bool IsGestureDetected(unsigned int gesture); // Check if a gesture have been detected int GetGestureDetected(void); // Get latest detected gesture float GetGestureHoldDuration(void); // Get gesture hold time in milliseconds Vector2 GetGestureDragVector(void); // Get gesture drag vector @@ -969,18 +1010,17 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void DrawPixel(int posX, int posY, Color color); // Draw a pixel void DrawPixelV(Vector2 position, Color color); // Draw a pixel (Vector version) void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color); // Draw a line - void DrawLineV(Vector2 startPos, Vector2 endPos, Color color); // Draw a line (Vector version) - void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw a line defining thickness - void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw a line using cubic-bezier curves in-out - void DrawLineBezierQuad(Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thick, Color color); // Draw line using quadratic bezier curves with a control point - void DrawLineBezierCubic(Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos, float thick, Color color); // Draw line using cubic bezier curves with 2 control points - void DrawLineStrip(Vector2 *points, int pointCount, Color color); // Draw lines sequence + void DrawLineV(Vector2 startPos, Vector2 endPos, Color color); // Draw a line (using gl lines) + void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw a line (using triangles/quads) + void DrawLineStrip(Vector2 *points, int pointCount, Color color); // Draw lines sequence (using gl lines) + void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw line segment cubic-bezier in-out interpolation void DrawCircle(int centerX, int centerY, float radius, Color color); // Draw a color-filled circle void DrawCircleSector(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); // Draw a piece of a circle void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); // Draw circle sector outline void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2); // Draw a gradient-filled circle void DrawCircleV(Vector2 center, float radius, Color color); // Draw a color-filled circle (Vector version) void DrawCircleLines(int centerX, int centerY, float radius, Color color); // Draw circle outline + void DrawCircleLinesV(Vector2 center, float radius, Color color); // Draw circle outline (Vector version) void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color); // Draw ellipse void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color); // Draw ellipse outline void DrawRing(Vector2 center, float innerRadius, float outerRadius, float startAngle, float endAngle, int segments, Color color); // Draw ring @@ -1003,6 +1043,23 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a regular polygon (Vector version) void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a polygon outline of n sides void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color); // Draw a polygon outline of n sides with extended parameters +// Splines drawing functions + void DrawSplineLinear(Vector2 *points, int pointCount, float thick, Color color); // Draw spline: Linear, minimum 2 points + void DrawSplineBasis(Vector2 *points, int pointCount, float thick, Color color); // Draw spline: B-Spline, minimum 4 points + void DrawSplineCatmullRom(Vector2 *points, int pointCount, float thick, Color color); // Draw spline: Catmull-Rom, minimum 4 points + void DrawSplineBezierQuadratic(Vector2 *points, int pointCount, float thick, Color color); // Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...] + void DrawSplineBezierCubic(Vector2 *points, int pointCount, float thick, Color color); // Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...] + void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color); // Draw spline segment: Linear, 2 points + void DrawSplineSegmentBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color); // Draw spline segment: B-Spline, 4 points + void DrawSplineSegmentCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color); // Draw spline segment: Catmull-Rom, 4 points + void DrawSplineSegmentBezierQuadratic(Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color); // Draw spline segment: Quadratic Bezier, 2 points, 1 control point + void DrawSplineSegmentBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color); // Draw spline segment: Cubic Bezier, 2 points, 2 control points +// Spline segment point evaluation functions, for a given t [0.0f .. 1.0f] + Vector2 GetSplinePointLinear(Vector2 startPos, Vector2 endPos, float t); // Get (evaluate) spline point: Linear + Vector2 GetSplinePointBasis(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); // Get (evaluate) spline point: B-Spline + Vector2 GetSplinePointCatmullRom(Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); // Get (evaluate) spline point: Catmull-Rom + Vector2 GetSplinePointBezierQuad(Vector2 p1, Vector2 c2, Vector2 p3, float t); // Get (evaluate) spline point: Quadratic Bezier + Vector2 GetSplinePointBezierCubic(Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t); // Get (evaluate) spline point: Cubic Bezier // Basic shapes collision detection functions bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); // Check collision between two rectangles bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); // Check collision between two circles @@ -1021,6 +1078,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI // NOTE: These functions do not require GPU access Image LoadImage(const char *fileName); // Load image from file into CPU memory (RAM) Image LoadImageRaw(const char *fileName, int width, int height, int format, int headerSize); // Load image from RAW file data + Image LoadImageSvg(const char *fileNameOrString, int width, int height); // Load image from SVG file data or string with specified size Image LoadImageAnim(const char *fileName, int *frames); // Load image sequence from file (frames appended to image.data) Image LoadImageFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load image from memory buffer, fileType refers to extension: i.e. '.png' Image LoadImageFromTexture(Texture2D texture); // Load image from GPU texture data @@ -1028,12 +1086,13 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI bool IsImageReady(Image image); // Check if an image is ready void UnloadImage(Image image); // Unload image from CPU memory (RAM) bool ExportImage(Image image, const char *fileName); // Export image data to file, returns true on success + unsigned char *ExportImageToMemory(Image image, const char *fileType, int *fileSize); // Export image to memory buffer bool ExportImageAsCode(Image image, const char *fileName); // Export image as code file defining an array of bytes, returns true on success // Image generation functions Image GenImageColor(int width, int height, Color color); // Generate image: plain color - Image GenImageGradientV(int width, int height, Color top, Color bottom); // Generate image: vertical gradient - Image GenImageGradientH(int width, int height, Color left, Color right); // Generate image: horizontal gradient + Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end); // Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient Image GenImageGradientRadial(int width, int height, float density, Color inner, Color outer); // Generate image: radial gradient + Image GenImageGradientSquare(int width, int height, float density, Color inner, Color outer); // Generate image: square gradient Image GenImageChecked(int width, int height, int checksX, int checksY, Color col1, Color col2); // Generate image: checked Image GenImageWhiteNoise(int width, int height, float factor); // Generate image: white noise Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float scale); // Generate image: perlin noise @@ -1059,6 +1118,7 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); // Dither image data to 16bpp or lower (Floyd-Steinberg dithering) void ImageFlipVertical(Image *image); // Flip image vertically void ImageFlipHorizontal(Image *image); // Flip image horizontally + void ImageRotate(Image *image, int degrees); // Rotate image by input angle in degrees (-359 to 359) void ImageRotateCW(Image *image); // Rotate image clockwise 90deg void ImageRotateCCW(Image *image); // Rotate image counter-clockwise 90deg void ImageColorTint(Image *image, Color color); // Modify image color: tint @@ -1136,13 +1196,13 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI // Font loading/unloading functions Font GetFontDefault(void); // Get the default Font Font LoadFont(const char *fileName); // Load font from file into GPU memory (VRAM) - Font LoadFontEx(const char *fileName, int fontSize, int *fontChars, int glyphCount); // Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load the default character set + Font LoadFontEx(const char *fileName, int fontSize, int *codepoints, int codepointCount); // Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set Font LoadFontFromImage(Image image, Color key, int firstChar); // Load font from Image (XNA style) - Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int glyphCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf' + Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount); // Load font from memory buffer, fileType refers to extension: i.e. '.ttf' bool IsFontReady(Font font); // Check if a font is ready - GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int glyphCount, int type); // Load font data for further use - Image GenImageFontAtlas(const GlyphInfo *chars, Rectangle **recs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info - void UnloadFontData(GlyphInfo *chars, int glyphCount); // Unload font chars info data (RAM) + GlyphInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *codepoints, int codepointCount, int type); // Load font data for further use + Image GenImageFontAtlas(const GlyphInfo *glyphs, Rectangle **glyphRecs, int glyphCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info + void UnloadFontData(GlyphInfo *glyphs, int glyphCount); // Unload font chars info data (RAM) void UnloadFont(Font font); // Unload font from GPU memory (VRAM) bool ExportFontAsCode(Font font, const char *fileName); // Export font as code file, returns true on success // Text drawing functions @@ -1151,8 +1211,9 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text using font and additional parameters void DrawTextPro(Font font, const char *text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint); // Draw text using Font and pro parameters (rotation) void DrawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint); // Draw one character (codepoint) - void DrawTextCodepoints(Font font, const int *codepoints, int count, Vector2 position, float fontSize, float spacing, Color tint); // Draw multiple character (codepoint) + void DrawTextCodepoints(Font font, const int *codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint); // Draw multiple character (codepoint) // Text font info functions + void SetTextLineSpacing(int spacing); // Set vertical line spacing when drawing with line-breaks int MeasureText(const char *text, int fontSize); // Measure string width for default font Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing); // Measure string size for Font int GetGlyphIndex(Font font, int codepoint); // Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found @@ -1257,10 +1318,10 @@ typedef bool (*SaveFileTextCallback)(const char *fileName, char *text); // FileI void SetMaterialTexture(Material *material, int mapType, Texture2D texture); // Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...) void SetModelMeshMaterial(Model *model, int meshId, int materialId); // Set material for a mesh // Model animations loading/unloading functions - ModelAnimation *LoadModelAnimations(const char *fileName, unsigned int *animCount); // Load model animations from file + ModelAnimation *LoadModelAnimations(const char *fileName, int *animCount); // Load model animations from file void UpdateModelAnimation(Model model, ModelAnimation anim, int frame); // Update model animation pose void UnloadModelAnimation(ModelAnimation anim); // Unload animation data - void UnloadModelAnimations(ModelAnimation *animations, unsigned int count); // Unload animation array data + void UnloadModelAnimations(ModelAnimation *animations, int animCount); // Unload animation array data bool IsModelAnimationValid(Model model, ModelAnimation anim); // Check model animation skeleton match // Collision detection functions bool CheckCollisionSpheres(Vector3 center1, float radius1, Vector3 center2, float radius2); // Check collision between two spheres @@ -1280,16 +1341,19 @@ typedef void (*AudioCallback)(void *bufferData, unsigned int frames); void CloseAudioDevice(void); // Close the audio device and context bool IsAudioDeviceReady(void); // Check if audio device has been initialized successfully void SetMasterVolume(float volume); // Set master volume (listener) + float GetMasterVolume(void); // Get master volume (listener) // Wave/Sound loading/unloading functions Wave LoadWave(const char *fileName); // Load wave data from file Wave LoadWaveFromMemory(const char *fileType, const unsigned char *fileData, int dataSize); // Load wave from memory buffer, fileType refers to extension: i.e. '.wav' bool IsWaveReady(Wave wave); // Checks if wave data is ready Sound LoadSound(const char *fileName); // Load sound from file Sound LoadSoundFromWave(Wave wave); // Load sound from wave data + Sound LoadSoundAlias(Sound source); // Create a new sound that shares the same sample data as the source sound, does not own the sound data bool IsSoundReady(Sound sound); // Checks if a sound is ready void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data void UnloadWave(Wave wave); // Unload wave data void UnloadSound(Sound sound); // Unload sound + void UnloadSoundAlias(Sound alias); // Unload a sound alias (does not deallocate sample data) bool ExportWave(Wave wave, const char *fileName); // Export wave data to file, returns true on success bool ExportWaveAsCode(Wave wave, const char *fileName); // Export wave sample data to code (.h), returns true on success // Wave/Sound management functions @@ -1339,7 +1403,7 @@ typedef void (*AudioCallback)(void *bufferData, unsigned int frames); void SetAudioStreamPan(AudioStream stream, float pan); // Set pan for audio stream (0.5 is centered) void SetAudioStreamBufferSizeDefault(int size); // Default size for new audio streams void SetAudioStreamCallback(AudioStream stream, AudioCallback callback); // Audio thread callback to request new data - void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor); // Attach audio stream processor to stream + void AttachAudioStreamProcessor(AudioStream stream, AudioCallback processor); // Attach audio stream processor to stream, receives the samples as s void DetachAudioStreamProcessor(AudioStream stream, AudioCallback processor); // Detach audio stream processor from stream - void AttachAudioMixedProcessor(AudioCallback processor); // Attach audio stream processor to the entire audio pipeline + void AttachAudioMixedProcessor(AudioCallback processor); // Attach audio stream processor to the entire audio pipeline, receives the samples as s void DetachAudioMixedProcessor(AudioCallback processor); // Detach audio stream processor from the entire audio pipeline \ No newline at end of file