Three kinds of Flan face over the generated set, which stays honest to C because that is what makes it checkable against the header. A slice where C takes a pointer and a count: the eleven vector-array drawing calls, all eleven rather than the three anybody calls, since a subset has its hole where the next caller looks. Each guards the empty slice, which is the part a hand-written call site gets wrong rather than merely writes out -- raylib takes a count of 0 happily, but taking the address of element 0 of an empty slice is out of bounds before raylib is reached. An Option where C signals with a sentinel: get-key-pressed and get-char-pressed, raylib's two input queues, both of which say "empty" with 0. What that buys is in text-input-box.flan, which read the queue in two places -- once to prime the loop, once at the bottom of the body -- and now reads it in one. Both of those use the `name` directive in bindings, so the generated declaration keeps the symbol and gives up the name: nothing about the C signature is hand-written and the generated half keeps its agreement-by-construction with the header. An enum where the header says int: key-up?, key-pressed-repeat?, mouse-button-up?. These are NOT wrappers -- a C enum parameter has an int's ABI, so the hand-written declare-c with the Flan type is the whole fix. They were holes in families whose other halves already took a Key, so (rl/key-down? :space) compiled and (rl/key-up? :space) did not. Not built: with-drawing and with-mode-2d. A macro cannot live in a package -- the expander collects defmacros from the prelude and from the file being compiled, and one in an imported package is refused by name. test/programs/pkg-macro.flan is that refusal. And vendor/raylib/vector.flan, which is raymath written in Flan because raymath is static inline and has no symbol to bind. A file of its own, split on declare-c and not on "idiomatic": there is not one declaration in it, so it is not part of the surface the header check reads, and raylib.flan is 1300 lines already. clamp and lerp are deliberately absent -- the prelude has both, and a second lerp would not even be the same function, since the prelude writes (1-t)a + tb where raymath writes a + t*(b - a). Examples: the identical eight-expression box-around helper in core-3d-picking and models-box-collisions is a half-extent subtracted and added. shapes-following-eyes keeps its measurement and gives up one line to v2-sub, which is the honest size of the gap in a file that is nothing but vector maths.
284 lines
25 KiB
Plaintext
284 lines
25 KiB
Plaintext
;;;; Generated from raylib-5.5.h by `flan generate-c`. Do not edit this file.
|
|
;;;;
|
|
;;;; Every line here was read out of the C header named by `headers`, and
|
|
;;;; the next regeneration overwrites the file — so a correction made here
|
|
;;;; is destroyed without anybody being told. Corrections go in `bindings`
|
|
;;;; beside it, which is read *while* these lines are made: `exclude` drops
|
|
;;;; a function, `name` gives one a Flan name the kebab rule would not.
|
|
;;;; Anything neither directive can express is a hand-written declare-c in
|
|
;;;; the package's own .flan, which wins over this file and is left alone.
|
|
;;;;
|
|
;;;; Regenerating compares the package against the header first and
|
|
;;;; refuses to write when they disagree, so this file and the
|
|
;;;; hand-written declarations beside it agreed with raylib-5.5.h when it was made.
|
|
|
|
(declare-c window-fullscreen? [] bool "IsWindowFullscreen")
|
|
(declare-c window-hidden? [] bool "IsWindowHidden")
|
|
(declare-c window-minimized? [] bool "IsWindowMinimized")
|
|
(declare-c window-maximized? [] bool "IsWindowMaximized")
|
|
(declare-c window-focused? [] bool "IsWindowFocused")
|
|
(declare-c window-resized? [] bool "IsWindowResized")
|
|
(declare-c window-state? [flag u32] bool "IsWindowState")
|
|
(declare-c set-window-state [flags u32] "SetWindowState")
|
|
(declare-c clear-window-state [flags u32] "ClearWindowState")
|
|
(declare-c toggle-fullscreen [] "ToggleFullscreen")
|
|
(declare-c toggle-borderless-windowed [] "ToggleBorderlessWindowed")
|
|
(declare-c maximize-window [] "MaximizeWindow")
|
|
(declare-c minimize-window [] "MinimizeWindow")
|
|
(declare-c restore-window [] "RestoreWindow")
|
|
(declare-c set-window-icon [image Image] "SetWindowIcon")
|
|
(declare-c set-window-icons [images (Ptr Image) count i32] "SetWindowIcons")
|
|
(declare-c set-window-title [title string] "SetWindowTitle")
|
|
(declare-c set-window-position [x i32 y i32] "SetWindowPosition")
|
|
(declare-c set-window-monitor [monitor i32] "SetWindowMonitor")
|
|
(declare-c set-window-min-size [width i32 height i32] "SetWindowMinSize")
|
|
(declare-c set-window-max-size [width i32 height i32] "SetWindowMaxSize")
|
|
(declare-c set-window-size [width i32 height i32] "SetWindowSize")
|
|
(declare-c set-window-opacity [opacity f32] "SetWindowOpacity")
|
|
(declare-c set-window-focused [] "SetWindowFocused")
|
|
(declare-c get-window-handle [] (Ptr u8) "GetWindowHandle")
|
|
(declare-c get-render-width [] i32 "GetRenderWidth")
|
|
(declare-c get-render-height [] i32 "GetRenderHeight")
|
|
(declare-c get-monitor-count [] i32 "GetMonitorCount")
|
|
(declare-c get-current-monitor [] i32 "GetCurrentMonitor")
|
|
(declare-c get-monitor-position [monitor i32] Vector2 "GetMonitorPosition")
|
|
(declare-c get-monitor-width [monitor i32] i32 "GetMonitorWidth")
|
|
(declare-c get-monitor-height [monitor i32] i32 "GetMonitorHeight")
|
|
(declare-c get-monitor-physical-width [monitor i32] i32 "GetMonitorPhysicalWidth")
|
|
(declare-c get-monitor-physical-height [monitor i32] i32 "GetMonitorPhysicalHeight")
|
|
(declare-c get-monitor-refresh-rate [monitor i32] i32 "GetMonitorRefreshRate")
|
|
(declare-c get-window-position [] Vector2 "GetWindowPosition")
|
|
(declare-c get-window-scale-dpi [] Vector2 "GetWindowScaleDPI")
|
|
(declare-c set-clipboard-text [text string] "SetClipboardText")
|
|
(declare-c get-clipboard-image [] Image "GetClipboardImage")
|
|
(declare-c enable-event-waiting [] "EnableEventWaiting")
|
|
(declare-c disable-event-waiting [] "DisableEventWaiting")
|
|
(declare-c enable-cursor [] "EnableCursor")
|
|
(declare-c disable-cursor [] "DisableCursor")
|
|
(declare-c cursor-on-screen? [] bool "IsCursorOnScreen")
|
|
(declare-c end-shader-mode [] "EndShaderMode")
|
|
(declare-c begin-blend-mode [mode i32] "BeginBlendMode")
|
|
(declare-c end-blend-mode [] "EndBlendMode")
|
|
(declare-c end-vr-stereo-mode [] "EndVrStereoMode")
|
|
(declare-c get-screen-to-world-ray-ex [position Vector2 camera Camera3D width i32 height i32] Ray "GetScreenToWorldRayEx")
|
|
(declare-c get-world-to-screen-ex [position Vector3 camera Camera3D width i32 height i32] Vector2 "GetWorldToScreenEx")
|
|
(declare-c swap-screen-buffer [] "SwapScreenBuffer")
|
|
(declare-c poll-input-events [] "PollInputEvents")
|
|
(declare-c wait-time [seconds f64] "WaitTime")
|
|
(declare-c set-random-seed [seed u32] "SetRandomSeed")
|
|
(declare-c get-random-value [min i32 max i32] i32 "GetRandomValue")
|
|
(declare-c load-random-sequence [count u32 min i32 max i32] (Ptr i32) "LoadRandomSequence")
|
|
(declare-c unload-random-sequence [sequence (Ptr i32)] "UnloadRandomSequence")
|
|
(declare-c take-screenshot [file-name string] "TakeScreenshot")
|
|
(declare-c open-url [url string] "OpenURL")
|
|
(declare-c load-file-data [file-name string data-size (Ptr i32)] (Ptr u8) "LoadFileData")
|
|
(declare-c unload-file-data [data (Ptr u8)] "UnloadFileData")
|
|
(declare-c save-file-data [file-name string data (Ptr u8) data-size i32] bool "SaveFileData")
|
|
(declare-c export-data-as-code [data (Ptr u8) data-size i32 file-name string] bool "ExportDataAsCode")
|
|
(declare-c file-exists [file-name string] bool "FileExists")
|
|
(declare-c directory-exists [dir-path string] bool "DirectoryExists")
|
|
(declare-c file-extension? [file-name string ext string] bool "IsFileExtension")
|
|
(declare-c get-file-length [file-name string] i32 "GetFileLength")
|
|
(declare-c make-directory [dir-path string] i32 "MakeDirectory")
|
|
(declare-c change-directory [dir string] bool "ChangeDirectory")
|
|
(declare-c path-file? [path string] bool "IsPathFile")
|
|
(declare-c file-name-valid? [file-name string] bool "IsFileNameValid")
|
|
(declare-c file-dropped? [] bool "IsFileDropped")
|
|
(declare-c compress-data [data (Ptr u8) data-size i32 comp-data-size (Ptr i32)] (Ptr u8) "CompressData")
|
|
(declare-c decompress-data [comp-data (Ptr u8) comp-data-size i32 data-size (Ptr i32)] (Ptr u8) "DecompressData")
|
|
(declare-c decode-data-base-64 [data (Ptr u8) output-size (Ptr i32)] (Ptr u8) "DecodeDataBase64")
|
|
(declare-c compute-crc32 [data (Ptr u8) data-size i32] u32 "ComputeCRC32")
|
|
(declare-c compute-md5 [data (Ptr u8) data-size i32] (Ptr u32) "ComputeMD5")
|
|
(declare-c compute-sha1 [data (Ptr u8) data-size i32] (Ptr u32) "ComputeSHA1")
|
|
(declare-c set-automation-event-base-frame [frame i32] "SetAutomationEventBaseFrame")
|
|
(declare-c start-automation-event-recording [] "StartAutomationEventRecording")
|
|
(declare-c stop-automation-event-recording [] "StopAutomationEventRecording")
|
|
(declare-c get-key-pressed-raw [] i32 "GetKeyPressed")
|
|
(declare-c get-char-pressed-raw [] i32 "GetCharPressed")
|
|
(declare-c set-gamepad-mappings [mappings string] i32 "SetGamepadMappings")
|
|
(declare-c set-gamepad-vibration [gamepad i32 left-motor f32 right-motor f32 duration f32] "SetGamepadVibration")
|
|
(declare-c get-mouse-x [] i32 "GetMouseX")
|
|
(declare-c get-mouse-y [] i32 "GetMouseY")
|
|
(declare-c get-mouse-delta [] Vector2 "GetMouseDelta")
|
|
(declare-c set-mouse-position [x i32 y i32] "SetMousePosition")
|
|
(declare-c set-mouse-offset [offset-x i32 offset-y i32] "SetMouseOffset")
|
|
(declare-c set-mouse-scale [scale-x f32 scale-y f32] "SetMouseScale")
|
|
(declare-c get-mouse-wheel-move-v [] Vector2 "GetMouseWheelMoveV")
|
|
(declare-c update-camera-pro [camera (Ptr Camera3D) movement Vector3 rotation Vector3 zoom f32] "UpdateCameraPro")
|
|
(declare-c draw-line-strip-raw [points (Ptr Vector2) point-count i32 color Color] "DrawLineStrip")
|
|
(declare-c draw-line-bezier [start-pos Vector2 end-pos Vector2 thick f32 color Color] "DrawLineBezier")
|
|
(declare-c draw-circle-sector [center Vector2 radius f32 start-angle f32 end-angle f32 segments i32 color Color] "DrawCircleSector")
|
|
(declare-c draw-circle-sector-lines [center Vector2 radius f32 start-angle f32 end-angle f32 segments i32 color Color] "DrawCircleSectorLines")
|
|
(declare-c draw-circle-gradient [center-x i32 center-y i32 radius f32 inner Color outer Color] "DrawCircleGradient")
|
|
(declare-c draw-rectangle-pro [rec Rectangle origin Vector2 rotation f32 color Color] "DrawRectanglePro")
|
|
(declare-c draw-rectangle-gradient-v [pos-x i32 pos-y i32 width i32 height i32 top Color bottom Color] "DrawRectangleGradientV")
|
|
(declare-c draw-rectangle-gradient-h [pos-x i32 pos-y i32 width i32 height i32 left Color right Color] "DrawRectangleGradientH")
|
|
(declare-c draw-rectangle-gradient-ex [rec Rectangle top-left Color bottom-left Color top-right Color bottom-right Color] "DrawRectangleGradientEx")
|
|
(declare-c draw-triangle-fan-raw [points (Ptr Vector2) point-count i32 color Color] "DrawTriangleFan")
|
|
(declare-c draw-triangle-strip-raw [points (Ptr Vector2) point-count i32 color Color] "DrawTriangleStrip")
|
|
(declare-c draw-poly [center Vector2 sides i32 radius f32 rotation f32 color Color] "DrawPoly")
|
|
(declare-c draw-poly-lines [center Vector2 sides i32 radius f32 rotation f32 color Color] "DrawPolyLines")
|
|
(declare-c draw-poly-lines-ex [center Vector2 sides i32 radius f32 rotation f32 line-thick f32 color Color] "DrawPolyLinesEx")
|
|
(declare-c draw-spline-linear-raw [points (Ptr Vector2) point-count i32 thick f32 color Color] "DrawSplineLinear")
|
|
(declare-c draw-spline-basis-raw [points (Ptr Vector2) point-count i32 thick f32 color Color] "DrawSplineBasis")
|
|
(declare-c draw-spline-catmull-rom-raw [points (Ptr Vector2) point-count i32 thick f32 color Color] "DrawSplineCatmullRom")
|
|
(declare-c draw-spline-bezier-quadratic-raw [points (Ptr Vector2) point-count i32 thick f32 color Color] "DrawSplineBezierQuadratic")
|
|
(declare-c draw-spline-bezier-cubic-raw [points (Ptr Vector2) point-count i32 thick f32 color Color] "DrawSplineBezierCubic")
|
|
(declare-c draw-spline-segment-linear [p-1 Vector2 p-2 Vector2 thick f32 color Color] "DrawSplineSegmentLinear")
|
|
(declare-c draw-spline-segment-basis [p-1 Vector2 p-2 Vector2 p-3 Vector2 p-4 Vector2 thick f32 color Color] "DrawSplineSegmentBasis")
|
|
(declare-c draw-spline-segment-catmull-rom [p-1 Vector2 p-2 Vector2 p-3 Vector2 p-4 Vector2 thick f32 color Color] "DrawSplineSegmentCatmullRom")
|
|
(declare-c draw-spline-segment-bezier-quadratic [p-1 Vector2 c-2 Vector2 p-3 Vector2 thick f32 color Color] "DrawSplineSegmentBezierQuadratic")
|
|
(declare-c draw-spline-segment-bezier-cubic [p-1 Vector2 c-2 Vector2 c-3 Vector2 p-4 Vector2 thick f32 color Color] "DrawSplineSegmentBezierCubic")
|
|
(declare-c get-spline-point-linear [start-pos Vector2 end-pos Vector2 t f32] Vector2 "GetSplinePointLinear")
|
|
(declare-c get-spline-point-basis [p-1 Vector2 p-2 Vector2 p-3 Vector2 p-4 Vector2 t f32] Vector2 "GetSplinePointBasis")
|
|
(declare-c get-spline-point-catmull-rom [p-1 Vector2 p-2 Vector2 p-3 Vector2 p-4 Vector2 t f32] Vector2 "GetSplinePointCatmullRom")
|
|
(declare-c get-spline-point-bezier-quad [p-1 Vector2 c-2 Vector2 p-3 Vector2 t f32] Vector2 "GetSplinePointBezierQuad")
|
|
(declare-c get-spline-point-bezier-cubic [p-1 Vector2 c-2 Vector2 c-3 Vector2 p-4 Vector2 t f32] Vector2 "GetSplinePointBezierCubic")
|
|
(declare-c load-image-raw [file-name string width i32 height i32 format i32 header-size i32] Image "LoadImageRaw")
|
|
(declare-c load-image-anim [file-name string frames (Ptr i32)] Image "LoadImageAnim")
|
|
(declare-c load-image-anim-from-memory [file-type string file-data (Ptr u8) data-size i32 frames (Ptr i32)] Image "LoadImageAnimFromMemory")
|
|
(declare-c load-image-from-texture [texture Texture2D] Image "LoadImageFromTexture")
|
|
(declare-c load-image-from-screen [] Image "LoadImageFromScreen")
|
|
(declare-c export-image-to-memory [image Image file-type string file-size (Ptr i32)] (Ptr u8) "ExportImageToMemory")
|
|
(declare-c export-image-as-code [image Image file-name string] bool "ExportImageAsCode")
|
|
(declare-c gen-image-gradient-linear [width i32 height i32 direction i32 start Color end Color] Image "GenImageGradientLinear")
|
|
(declare-c gen-image-gradient-radial [width i32 height i32 density f32 inner Color outer Color] Image "GenImageGradientRadial")
|
|
(declare-c gen-image-gradient-square [width i32 height i32 density f32 inner Color outer Color] Image "GenImageGradientSquare")
|
|
(declare-c gen-image-checked [width i32 height i32 checks-x i32 checks-y i32 col-1 Color col-2 Color] Image "GenImageChecked")
|
|
(declare-c gen-image-white-noise [width i32 height i32 factor f32] Image "GenImageWhiteNoise")
|
|
(declare-c gen-image-perlin-noise [width i32 height i32 offset-x i32 offset-y i32 scale f32] Image "GenImagePerlinNoise")
|
|
(declare-c gen-image-cellular [width i32 height i32 tile-size i32] Image "GenImageCellular")
|
|
(declare-c gen-image-text [width i32 height i32 text string] Image "GenImageText")
|
|
(declare-c image-copy [image Image] Image "ImageCopy")
|
|
(declare-c image-from-channel [image Image selected-channel i32] Image "ImageFromChannel")
|
|
(declare-c image-text [text string font-size i32 color Color] Image "ImageText")
|
|
(declare-c image-text-ex [font Font text string font-size f32 spacing f32 tint Color] Image "ImageTextEx")
|
|
(declare-c image-format [image (Ptr Image) new-format i32] "ImageFormat")
|
|
(declare-c image-to-pot [image (Ptr Image) fill Color] "ImageToPOT")
|
|
(declare-c image-alpha-crop [image (Ptr Image) threshold f32] "ImageAlphaCrop")
|
|
(declare-c image-alpha-clear [image (Ptr Image) color Color threshold f32] "ImageAlphaClear")
|
|
(declare-c image-alpha-mask [image (Ptr Image) alpha-mask Image] "ImageAlphaMask")
|
|
(declare-c image-alpha-premultiply [image (Ptr Image)] "ImageAlphaPremultiply")
|
|
(declare-c image-blur-gaussian [image (Ptr Image) blur-size i32] "ImageBlurGaussian")
|
|
(declare-c image-kernel-convolution [image (Ptr Image) kernel (Ptr f32) kernel-size i32] "ImageKernelConvolution")
|
|
(declare-c image-resize-canvas [image (Ptr Image) new-width i32 new-height i32 offset-x i32 offset-y i32 fill Color] "ImageResizeCanvas")
|
|
(declare-c image-mipmaps [image (Ptr Image)] "ImageMipmaps")
|
|
(declare-c image-dither [image (Ptr Image) r-bpp i32 g-bpp i32 b-bpp i32 a-bpp i32] "ImageDither")
|
|
(declare-c image-rotate [image (Ptr Image) degrees i32] "ImageRotate")
|
|
(declare-c image-rotate-cw [image (Ptr Image)] "ImageRotateCW")
|
|
(declare-c image-rotate-ccw [image (Ptr Image)] "ImageRotateCCW")
|
|
(declare-c image-color-tint [image (Ptr Image) color Color] "ImageColorTint")
|
|
(declare-c image-color-invert [image (Ptr Image)] "ImageColorInvert")
|
|
(declare-c image-color-grayscale [image (Ptr Image)] "ImageColorGrayscale")
|
|
(declare-c image-color-contrast [image (Ptr Image) contrast f32] "ImageColorContrast")
|
|
(declare-c image-color-brightness [image (Ptr Image) brightness i32] "ImageColorBrightness")
|
|
(declare-c image-color-replace [image (Ptr Image) color Color replace Color] "ImageColorReplace")
|
|
(declare-c load-image-colors [image Image] (Ptr Color) "LoadImageColors")
|
|
(declare-c load-image-palette [image Image max-palette-size i32 color-count (Ptr i32)] (Ptr Color) "LoadImagePalette")
|
|
(declare-c unload-image-colors [colors (Ptr Color)] "UnloadImageColors")
|
|
(declare-c unload-image-palette [colors (Ptr Color)] "UnloadImagePalette")
|
|
(declare-c get-image-alpha-border [image Image threshold f32] Rectangle "GetImageAlphaBorder")
|
|
(declare-c image-clear-background [dst (Ptr Image) color Color] "ImageClearBackground")
|
|
(declare-c image-draw-pixel-v [dst (Ptr Image) position Vector2 color Color] "ImageDrawPixelV")
|
|
(declare-c image-draw-line [dst (Ptr Image) start-pos-x i32 start-pos-y i32 end-pos-x i32 end-pos-y i32 color Color] "ImageDrawLine")
|
|
(declare-c image-draw-line-v [dst (Ptr Image) start Vector2 end Vector2 color Color] "ImageDrawLineV")
|
|
(declare-c image-draw-line-ex [dst (Ptr Image) start Vector2 end Vector2 thick i32 color Color] "ImageDrawLineEx")
|
|
(declare-c image-draw-circle [dst (Ptr Image) center-x i32 center-y i32 radius i32 color Color] "ImageDrawCircle")
|
|
(declare-c image-draw-circle-v [dst (Ptr Image) center Vector2 radius i32 color Color] "ImageDrawCircleV")
|
|
(declare-c image-draw-circle-lines [dst (Ptr Image) center-x i32 center-y i32 radius i32 color Color] "ImageDrawCircleLines")
|
|
(declare-c image-draw-circle-lines-v [dst (Ptr Image) center Vector2 radius i32 color Color] "ImageDrawCircleLinesV")
|
|
(declare-c image-draw-rectangle [dst (Ptr Image) pos-x i32 pos-y i32 width i32 height i32 color Color] "ImageDrawRectangle")
|
|
(declare-c image-draw-rectangle-v [dst (Ptr Image) position Vector2 size Vector2 color Color] "ImageDrawRectangleV")
|
|
(declare-c image-draw-rectangle-rec [dst (Ptr Image) rec Rectangle color Color] "ImageDrawRectangleRec")
|
|
(declare-c image-draw-rectangle-lines [dst (Ptr Image) rec Rectangle thick i32 color Color] "ImageDrawRectangleLines")
|
|
(declare-c image-draw-triangle [dst (Ptr Image) v-1 Vector2 v-2 Vector2 v-3 Vector2 color Color] "ImageDrawTriangle")
|
|
(declare-c image-draw-triangle-ex [dst (Ptr Image) v-1 Vector2 v-2 Vector2 v-3 Vector2 c-1 Color c-2 Color c-3 Color] "ImageDrawTriangleEx")
|
|
(declare-c image-draw-triangle-lines [dst (Ptr Image) v-1 Vector2 v-2 Vector2 v-3 Vector2 color Color] "ImageDrawTriangleLines")
|
|
(declare-c image-draw-triangle-fan-raw [dst (Ptr Image) points (Ptr Vector2) point-count i32 color Color] "ImageDrawTriangleFan")
|
|
(declare-c image-draw-triangle-strip-raw [dst (Ptr Image) points (Ptr Vector2) point-count i32 color Color] "ImageDrawTriangleStrip")
|
|
(declare-c image-draw [dst (Ptr Image) src Image src-rec Rectangle dst-rec Rectangle tint Color] "ImageDraw")
|
|
(declare-c image-draw-text [dst (Ptr Image) text string pos-x i32 pos-y i32 font-size i32 color Color] "ImageDrawText")
|
|
(declare-c image-draw-text-ex [dst (Ptr Image) font Font text string position Vector2 font-size f32 spacing f32 tint Color] "ImageDrawTextEx")
|
|
(declare-c load-texture-cubemap [image Image layout i32] Texture2D "LoadTextureCubemap")
|
|
(declare-c update-texture [texture Texture2D pixels (Ptr u8)] "UpdateTexture")
|
|
(declare-c update-texture-rec [texture Texture2D rec Rectangle pixels (Ptr u8)] "UpdateTextureRec")
|
|
(declare-c gen-texture-mipmaps [texture (Ptr Texture2D)] "GenTextureMipmaps")
|
|
(declare-c set-texture-wrap [texture Texture2D wrap i32] "SetTextureWrap")
|
|
(declare-c color-is-equal [col-1 Color col-2 Color] bool "ColorIsEqual")
|
|
(declare-c color-to-int [color Color] i32 "ColorToInt")
|
|
(declare-c color-to-hsv [color Color] Vector3 "ColorToHSV")
|
|
(declare-c color-from-hsv [hue f32 saturation f32 value f32] Color "ColorFromHSV")
|
|
(declare-c color-tint [color Color tint Color] Color "ColorTint")
|
|
(declare-c color-brightness [color Color factor f32] Color "ColorBrightness")
|
|
(declare-c color-contrast [color Color contrast f32] Color "ColorContrast")
|
|
(declare-c color-alpha [color Color alpha f32] Color "ColorAlpha")
|
|
(declare-c color-alpha-blend [dst Color src Color tint Color] Color "ColorAlphaBlend")
|
|
(declare-c color-lerp [color-1 Color color-2 Color factor f32] Color "ColorLerp")
|
|
(declare-c get-pixel-color [src-ptr (Ptr u8) format i32] Color "GetPixelColor")
|
|
(declare-c set-pixel-color [dst-ptr (Ptr u8) color Color format i32] "SetPixelColor")
|
|
(declare-c get-pixel-data-size [width i32 height i32 format i32] i32 "GetPixelDataSize")
|
|
(declare-c load-font-from-image [image Image key Color first-char i32] Font "LoadFontFromImage")
|
|
(declare-c load-font-from-memory [file-type string file-data (Ptr u8) data-size i32 font-size i32 codepoints (Ptr i32) codepoint-count i32] Font "LoadFontFromMemory")
|
|
(declare-c load-font-data [file-data (Ptr u8) data-size i32 font-size i32 codepoints (Ptr i32) codepoint-count i32 type i32] (Ptr GlyphInfo) "LoadFontData")
|
|
(declare-c gen-image-font-atlas [glyphs (Ptr GlyphInfo) glyph-recs (Ptr (Ptr Rectangle)) glyph-count i32 font-size i32 padding i32 pack-method i32] Image "GenImageFontAtlas")
|
|
(declare-c unload-font-data [glyphs (Ptr GlyphInfo) glyph-count i32] "UnloadFontData")
|
|
(declare-c export-font-as-code [font Font file-name string] bool "ExportFontAsCode")
|
|
(declare-c draw-text-pro [font Font text string position Vector2 origin Vector2 rotation f32 font-size f32 spacing f32 tint Color] "DrawTextPro")
|
|
(declare-c draw-text-codepoints [font Font codepoints (Ptr i32) codepoint-count i32 position Vector2 font-size f32 spacing f32 tint Color] "DrawTextCodepoints")
|
|
(declare-c set-text-line-spacing [spacing i32] "SetTextLineSpacing")
|
|
(declare-c load-codepoints [text string count (Ptr i32)] (Ptr i32) "LoadCodepoints")
|
|
(declare-c unload-codepoints [codepoints (Ptr i32)] "UnloadCodepoints")
|
|
(declare-c get-codepoint-count [text string] i32 "GetCodepointCount")
|
|
(declare-c get-codepoint [text string codepoint-size (Ptr i32)] i32 "GetCodepoint")
|
|
(declare-c get-codepoint-next [text string codepoint-size (Ptr i32)] i32 "GetCodepointNext")
|
|
(declare-c get-codepoint-previous [text string codepoint-size (Ptr i32)] i32 "GetCodepointPrevious")
|
|
(declare-c text-is-equal [text-1 string text-2 string] bool "TextIsEqual")
|
|
(declare-c text-length [text string] u32 "TextLength")
|
|
(declare-c text-split [text string delimiter i8 count (Ptr i32)] (Ptr (Ptr i8)) "TextSplit")
|
|
(declare-c text-find-index [text string find string] i32 "TextFindIndex")
|
|
(declare-c text-to-integer [text string] i32 "TextToInteger")
|
|
(declare-c text-to-float [text string] f32 "TextToFloat")
|
|
(declare-c draw-line-3d [start-pos Vector3 end-pos Vector3 color Color] "DrawLine3D")
|
|
(declare-c draw-point-3d [position Vector3 color Color] "DrawPoint3D")
|
|
(declare-c draw-circle-3d [center Vector3 radius f32 rotation-axis Vector3 rotation-angle f32 color Color] "DrawCircle3D")
|
|
(declare-c draw-triangle-3d [v-1 Vector3 v-2 Vector3 v-3 Vector3 color Color] "DrawTriangle3D")
|
|
(declare-c draw-triangle-strip-3d-raw [points (Ptr Vector3) point-count i32 color Color] "DrawTriangleStrip3D")
|
|
(declare-c draw-cube-wires-v [position Vector3 size Vector3 color Color] "DrawCubeWiresV")
|
|
(declare-c draw-sphere-ex [center-pos Vector3 radius f32 rings i32 slices i32 color Color] "DrawSphereEx")
|
|
(declare-c draw-cylinder [position Vector3 radius-top f32 radius-bottom f32 height f32 slices i32 color Color] "DrawCylinder")
|
|
(declare-c draw-cylinder-ex [start-pos Vector3 end-pos Vector3 start-radius f32 end-radius f32 sides i32 color Color] "DrawCylinderEx")
|
|
(declare-c draw-cylinder-wires [position Vector3 radius-top f32 radius-bottom f32 height f32 slices i32 color Color] "DrawCylinderWires")
|
|
(declare-c draw-cylinder-wires-ex [start-pos Vector3 end-pos Vector3 start-radius f32 end-radius f32 sides i32 color Color] "DrawCylinderWiresEx")
|
|
(declare-c draw-capsule [start-pos Vector3 end-pos Vector3 radius f32 slices i32 rings i32 color Color] "DrawCapsule")
|
|
(declare-c draw-capsule-wires [start-pos Vector3 end-pos Vector3 radius f32 slices i32 rings i32 color Color] "DrawCapsuleWires")
|
|
(declare-c draw-plane [center-pos Vector3 size Vector2 color Color] "DrawPlane")
|
|
(declare-c draw-bounding-box [box BoundingBox color Color] "DrawBoundingBox")
|
|
(declare-c draw-billboard [camera Camera3D texture Texture2D position Vector3 scale f32 tint Color] "DrawBillboard")
|
|
(declare-c draw-billboard-rec [camera Camera3D texture Texture2D source Rectangle position Vector3 size Vector2 tint Color] "DrawBillboardRec")
|
|
(declare-c draw-billboard-pro [camera Camera3D texture Texture2D source Rectangle position Vector3 up Vector3 size Vector2 origin Vector2 rotation f32 tint Color] "DrawBillboardPro")
|
|
(declare-c check-collision-spheres [center-1 Vector3 radius-1 f32 center-2 Vector3 radius-2 f32] bool "CheckCollisionSpheres")
|
|
(declare-c check-collision-boxes [box-1 BoundingBox box-2 BoundingBox] bool "CheckCollisionBoxes")
|
|
(declare-c check-collision-box-sphere [box BoundingBox center Vector3 radius f32] bool "CheckCollisionBoxSphere")
|
|
(declare-c get-ray-collision-sphere [ray Ray center Vector3 radius f32] RayCollision "GetRayCollisionSphere")
|
|
(declare-c get-ray-collision-box [ray Ray box BoundingBox] RayCollision "GetRayCollisionBox")
|
|
(declare-c get-ray-collision-triangle [ray Ray p-1 Vector3 p-2 Vector3 p-3 Vector3] RayCollision "GetRayCollisionTriangle")
|
|
(declare-c get-ray-collision-quad [ray Ray p-1 Vector3 p-2 Vector3 p-3 Vector3 p-4 Vector3] RayCollision "GetRayCollisionQuad")
|
|
(declare-c load-wave-from-memory [file-type string file-data (Ptr u8) data-size i32] Wave "LoadWaveFromMemory")
|
|
(declare-c update-sound [sound Sound data (Ptr u8) sample-count i32] "UpdateSound")
|
|
(declare-c export-wave-as-code [wave Wave file-name string] bool "ExportWaveAsCode")
|
|
(declare-c load-music-stream-from-memory [file-type string data (Ptr u8) data-size i32] Music "LoadMusicStreamFromMemory")
|
|
(declare-c load-audio-stream [sample-rate u32 sample-size u32 channels u32] AudioStream "LoadAudioStream")
|
|
(declare-c audio-stream-valid? [stream AudioStream] bool "IsAudioStreamValid")
|
|
(declare-c unload-audio-stream [stream AudioStream] "UnloadAudioStream")
|
|
(declare-c update-audio-stream [stream AudioStream data (Ptr u8) frame-count i32] "UpdateAudioStream")
|
|
(declare-c audio-stream-processed? [stream AudioStream] bool "IsAudioStreamProcessed")
|
|
(declare-c play-audio-stream [stream AudioStream] "PlayAudioStream")
|
|
(declare-c pause-audio-stream [stream AudioStream] "PauseAudioStream")
|
|
(declare-c resume-audio-stream [stream AudioStream] "ResumeAudioStream")
|
|
(declare-c audio-stream-playing? [stream AudioStream] bool "IsAudioStreamPlaying")
|
|
(declare-c stop-audio-stream [stream AudioStream] "StopAudioStream")
|
|
(declare-c set-audio-stream-volume [stream AudioStream volume f32] "SetAudioStreamVolume")
|
|
(declare-c set-audio-stream-pitch [stream AudioStream pitch f32] "SetAudioStreamPitch")
|
|
(declare-c set-audio-stream-pan [stream AudioStream pan f32] "SetAudioStreamPan")
|
|
(declare-c set-audio-stream-buffer-size-default [size i32] "SetAudioStreamBufferSizeDefault")
|