1- * Raylib* _ MAJOR 4 _ MINOR 6 _ PATCH 0 4.6-dev
1+ * Raylib* _ MAJOR 5 _ MINOR 0 _ PATCH 0 5.0
22=======
33raylib is a simple and easy-to-use library to enjoy videogames programming.
44
55https://www.raylib.com/
66
7- Implemented APIs (580 )
7+ Implemented APIs (604 )
88----------------
99
1010| Name | Description |
@@ -65,6 +65,7 @@ Implemented APIs (580)
6565| sub DrawCircle3D(center, radius, rotationAxis, rotationAngle, color) | Draw a circle in 3D world space |
6666| sub DrawCircleGradient(centerX, centerY, radius, color1, color2) | Draw a gradient-filled circle |
6767| sub DrawCircleLines(centerX, centerY, radius, color) | Draw circle outline |
68+ | sub DrawCircleLinesV(center, radius, color) | Draw circle outline (Vector version) |
6869| sub DrawCircleSector(center, radius, startAngle, endAngle, segments, color) | Draw a piece of a circle |
6970| sub DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color) | Draw circle sector outline |
7071| sub DrawCircleV(center, radius, color) | Draw a color-filled circle (Vector version) |
@@ -82,14 +83,10 @@ Implemented APIs (580)
8283| sub DrawGrid(slices, spacing) | Draw a grid (centered at (0, 0, 0)) |
8384| sub DrawLine(startPosX, startPosY, endPosX, endPosY, color) | Draw a line |
8485| sub DrawLine3D(startPos, endPos, color) | Draw a line in 3D world space |
85- | sub DrawLineBezier(startPos, endPos, thick, color) | Draw a line using cubic-bezier curves in-out |
86- | sub DrawLineBezierCubic(startPos, endPos, startControlPos, endControlPos, thick, color) | Draw line using cubic bezier curves with 2 control points |
87- | sub DrawLineBezierQuad(startPos, endPos, controlPos, thick, color) | Draw line using quadratic bezier curves with a control point |
88- | sub DrawLineBSpline(points, pointCount, thick, color) | Draw a B-Spline line, minimum 4 points |
89- | sub DrawLineCatmullRom(points, pointCount, thick, color) | Draw a Catmull Rom spline line, minimum 4 points |
90- | sub DrawLineEx(startPos, endPos, thick, color) | Draw a line defining thickness |
91- | sub DrawLineStrip(points, pointCount, color) | Draw lines sequence |
92- | sub DrawLineV(startPos, endPos, color) | Draw a line (Vector version) |
86+ | sub DrawLineBezier(startPos, endPos, thick, color) | Draw line segment cubic-bezier in-out interpolation |
87+ | sub DrawLineEx(startPos, endPos, thick, color) | Draw a line (using triangles/quads) |
88+ | sub DrawLineStrip(points, pointCount, color) | Draw lines sequence (using gl lines) |
89+ | sub DrawLineV(startPos, endPos, color) | Draw a line (using gl lines) |
9390| sub DrawModel(model, position, scale, tint) | Draw a model (with texture if set) |
9491| sub DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint) | Draw a model with extended parameters |
9592| sub DrawModelWires(model, position, scale, tint) | Draw a model wires (with texture if set) |
@@ -118,6 +115,16 @@ Implemented APIs (580)
118115| sub DrawSphere(centerPos, radius, color) | Draw sphere |
119116| sub DrawSphereEx(centerPos, radius, rings, slices, color) | Draw sphere with extended parameters |
120117| sub DrawSphereWires(centerPos, radius, rings, slices, color) | Draw sphere wires |
118+ | sub DrawSplineBasis(points, pointCount, thick, color) | Draw spline: B-Spline, minimum 4 points |
119+ | sub DrawSplineBezierCubic(points, pointCount, thick, color) | Draw spline: Cubic Bezier, minimum 4 points (2 control points): [ p1, c2, c3, p4, c5, c6...] |
120+ | sub DrawSplineBezierQuadratic(points, pointCount, thick, color) | Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [ p1, c2, p3, c4...] |
121+ | sub DrawSplineCatmullRom(points, pointCount, thick, color) | Draw spline: Catmull-Rom, minimum 4 points |
122+ | sub DrawSplineLinear(points, pointCount, thick, color) | Draw spline: Linear, minimum 2 points |
123+ | sub DrawSplineSegmentBasis(p1, p2, p3, p4, thick, color) | Draw spline segment: B-Spline, 4 points |
124+ | sub DrawSplineSegmentBezierCubic(p1, c2, c3, p4, thick, color) | Draw spline segment: Cubic Bezier, 2 points, 2 control points |
125+ | sub DrawSplineSegmentBezierQuadratic(p1, c2, p3, thick, color) | Draw spline segment: Quadratic Bezier, 2 points, 1 control point |
126+ | sub DrawSplineSegmentCatmullRom(p1, p2, p3, p4, thick, color) | Draw spline segment: Catmull-Rom, 4 points |
127+ | sub DrawSplineSegmentLinear(p1, p2, thick, color) | Draw spline segment: Linear, 2 points |
121128| sub DrawText(text, posX, posY, fontSize, color) | Draw text (using default font) |
122129| sub DrawTextCodepoint(font, codepoint, position, fontSize, tint) | Draw one character (codepoint) |
123130| sub DrawTextCodepoints(font, codepoints, codepointCount, position, fontSize, spacing, tint) | Draw multiple character (codepoint) |
@@ -146,6 +153,7 @@ Implemented APIs (580)
146153| sub EndShaderMode() | End custom shader drawing (use default shader) |
147154| sub EndTextureMode() | Ends drawing to render texture |
148155| sub EndVrStereoMode() | End stereo rendering (requires VR simulator) |
156+ | func ExportAutomationEventList(list, fileName) | Export automation events list as text file |
149157| func ExportDataAsCode(data, dataSize, fileName) | Export data to code (.h), returns true on success |
150158| func ExportFontAsCode(font, fileName) | Export font as code file, returns true on success |
151159| func ExportImage(image, fileName) | Export image data to file, returns true on success |
@@ -214,6 +222,7 @@ Implemented APIs (580)
214222| func GetImageAlphaBorder(image, threshold) | Get image alpha border rectangle |
215223| func GetImageColor(image, x, y) | Get image pixel color at (x, y) position |
216224| func GetKeyPressed() | Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty |
225+ | func GetMasterVolume() | Get master volume (listener) |
217226| func GetModelBoundingBox(model) | Compute model bounding box limits (considers all meshes) |
218227| func GetMonitorCount() | Get number of connected monitors |
219228| func GetMonitorHeight(monitor) | Get specified monitor height (current video mode used by monitor) |
@@ -253,6 +262,11 @@ Implemented APIs (580)
253262| func GetScreenWidth() | Get current screen width |
254263| func GetShaderLocation(shader, uniformName) | Get shader uniform location |
255264| func GetShaderLocationAttrib(shader, attribName) | Get shader attribute location |
265+ | func GetSplinePointBasis(p1, p2, p3, p4, t) | Get (evaluate) spline point: B-Spline |
266+ | func GetSplinePointBezierCubic(p1, c2, c3, p4, t) | Get (evaluate) spline point: Cubic Bezier |
267+ | func GetSplinePointBezierQuad(p1, c2, p3, t) | Get (evaluate) spline point: Quadratic Bezier |
268+ | func GetSplinePointCatmullRom(p1, p2, p3, p4, t) | Get (evaluate) spline point: Catmull-Rom |
269+ | func GetSplinePointLinear(startPos, endPos, t) | Get (evaluate) spline point: Linear |
256270| func GetTime() | Get elapsed time in seconds since InitWindow() |
257271| func GetTouchPointCount() | Get number of touch points |
258272| func GetTouchPointId(index) | Get touch point identifier for given index |
@@ -397,6 +411,7 @@ Implemented APIs (580)
397411| func IsWindowResized() | Check if window has been resized last frame |
398412| func IsWindowState(flag) | Check if one specific window flag is enabled |
399413| func LoadAudioStream(sampleRate, sampleSize, channels) | Load audio stream (to stream raw audio pcm data) |
414+ | func LoadAutomationEventList(fileName) | Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS |
400415| func LoadCodepoints(text, count) | Load all codepoints from a UTF-8 text string, codepoints count returned by parameter |
401416| func LoadDirectoryFiles(dirPath) | Load directory filepaths |
402417| func LoadDirectoryFilesEx(basePath, filter, scanSubdirs) | Load directory filepaths with extension filtering and recursive directory scan |
@@ -421,6 +436,7 @@ Implemented APIs (580)
421436| func LoadModelFromMesh(mesh) | Load model from generated mesh (default material) |
422437| func LoadMusicStream(fileName) | Load music stream from file |
423438| func LoadMusicStreamFromMemory(fileType, data, dataSize) | Load music stream from data |
439+ | func LoadRandomSequence(count, min, max) | Load random values sequence, no values repeated |
424440| func LoadRenderTexture(width, height) | Load texture for rendering (framebuffer) |
425441| func LoadShader(vsFileName, fsFileName) | Load shader from files and bind default locations |
426442| func LoadShaderFromMemory(vsCode, fsCode) | Load shader from code strings and bind default locations |
@@ -451,6 +467,7 @@ Implemented APIs (580)
451467| func Physicsshapetype() | n/a |
452468| func Physicsshatter() | n/a |
453469| sub PlayAudioStream(stream) | Play audio stream |
470+ | sub PlayAutomationEvent(event) | Play a recorded automation event |
454471| sub PlayMusicStream(music) | Start music playing |
455472| sub PlaySound(sound) | Play a sound |
456473| func pollevents() | n/a |
@@ -467,6 +484,8 @@ Implemented APIs (580)
467484| sub SetAudioStreamPan(stream, pan) | Set pan for audio stream (0.5 is centered) |
468485| sub SetAudioStreamPitch(stream, pitch) | Set pitch for audio stream (1.0 is base level) |
469486| sub SetAudioStreamVolume(stream, volume) | Set volume for audio stream (1.0 is max level) |
487+ | sub SetAutomationEventBaseFrame(frame) | Set automation event internal base frame to start recording |
488+ | sub SetAutomationEventList(list) | Set automation event list to record to |
470489| sub SetClipboardText(text) | Set clipboard text content |
471490| sub SetConfigFlags(flags) | Setup init configuration flags (view FLAGS) |
472491| sub SetExitKey(key) | Set a custom key to exit program (default is ESC) |
@@ -530,7 +549,9 @@ Implemented APIs (580)
530549| sub SetWindowState(flags) | Set window configuration state using flags (only PLATFORM_DESKTOP) |
531550| sub SetWindowTitle(title) | Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB) |
532551| sub ShowCursor() | Shows cursor |
552+ | sub StartAutomationEventRecording() | Start recording automation events (AutomationEventList must be set) |
533553| sub StopAudioStream(stream) | Stop audio stream |
554+ | sub StopAutomationEventRecording() | Stop recording automation events |
534555| sub StopMusicStream(music) | Stop music playing |
535556| sub StopSound(sound) | Stop playing a sound |
536557| sub SwapScreenBuffer() | Swap back buffer with front buffer (screen drawing) |
@@ -551,6 +572,7 @@ Implemented APIs (580)
551572| sub ToggleBorderlessWindowed() | Toggle window state: borderless windowed (only PLATFORM_DESKTOP) |
552573| sub ToggleFullscreen() | Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) |
553574| sub UnloadAudioStream(stream) | Unload audio stream and free memory |
575+ | sub UnloadAutomationEventList(list) | Unload automation events list from file |
554576| sub UnloadCodepoints(codepoints) | Unload codepoints data from memory |
555577| sub UnloadDirectoryFiles(files) | Unload filepaths |
556578| sub UnloadDroppedFiles(files) | Unload dropped filepaths |
@@ -565,6 +587,7 @@ Implemented APIs (580)
565587| sub UnloadModelAnimation(anim) | Unload animation data |
566588| sub UnloadModelAnimations(animations, animCount) | Unload animation array data |
567589| sub UnloadMusicStream(music) | Unload music stream |
590+ | sub UnloadRandomSequence(sequence) | Unload random values sequence |
568591| sub UnloadRenderTexture(target) | Unload render texture from GPU memory (VRAM) |
569592| sub UnloadShader(shader) | Unload shader from GPU memory (VRAM) |
570593| sub UnloadSound(sound) | Unload sound |
@@ -574,6 +597,7 @@ Implemented APIs (580)
574597| sub UnloadWave(wave) | Unload wave data |
575598| sub UnloadWaveSamples(samples) | Unload samples data loaded with LoadWaveSamples() |
576599| sub UpdateAudioStream(stream, data, frameCount) | Update audio stream buffers with data |
600+ | func updateautomationeventlist() | n/a |
577601| sub UpdateCamera(camera, mode) | Update camera position for selected mode |
578602| sub UpdateMeshBuffer(mesh, index, data, dataSize, offset) | Update mesh vertex data in GPU for a specific buffer index |
579603| sub UpdateModelAnimation(model, anim, frame) | Update model animation pose |
@@ -588,7 +612,7 @@ Implemented APIs (580)
588612| func WaveCopy(wave) | Copy a wave to a new wave |
589613| sub WaveCrop(wave, initSample, finalSample) | Crop a wave to defined samples range |
590614| sub WaveFormat(wave, sampleRate, sampleSize, channels) | Convert wave data to desired format |
591- | func WindowShouldClose() | Check if KEY_ESCAPE pressed or Close icon pressed |
615+ | func WindowShouldClose() | Check if application should close ( KEY_ESCAPE pressed or windows close icon clicked) |
592616
593617Unimplemented APIs
594618----------------
0 commit comments