Repository navigation
v6.4.0
·
4 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
- Upgrade to raylib v6.2 (sha: 02566453880e06bec97f5b8160fa6fe1e98397ca,
GitHub link) - Upgrade raygui.h to SHA 2a3c4790c6a887075ee192e44892916ed210c2e6,
GitHub link - Upgrade gamecontrollerdb.txt to latest
BREAKING
AudioStream::updatenow takes an explicitframe_count: i32argument
(update(&mut self, data: &[T], frame_count: i32)) and forwards it to
ffi::UpdateAudioStream, matching Raylib’s C API whereframeCountis the
number of frames (not interleaved sample elements). This fixes incorrect
buffer updates for multi-channel audio. For fully interleaved data,
frame_countis typicallydata.len() / self.channels() as usize. See
#78Image::color_contrastnow takesi32in the-100..=100range instead
off32, matching raylib 6.2'sImageColorContrastsignature changeImage::draw_rectangle_lines(rec, thickness, color)is now
draw_rectangle_lines_ex, matching raylib 6.2's split of
ImageDrawRectangleLines(1-pixel outline) fromImageDrawRectangleLinesEx
(thickness). A new thin
Image::draw_rectangle_lines(pos_x, pos_y, width, height, color)matches the
screen-space APIRaylibDraw::draw_capsuleanddraw_capsule_wiresnow take
(start_pos, end_pos, radius, rings, slices, color), swappingringsand
slicesto match raylib 6.2's redesignedDrawCapsule/DrawCapsuleWires
parameter order (aligned withDrawSphere). The old order compiled silently
but rendered with swapped tessellation
Changed
raylib 6.2 renamed or reshaped several functions the safe layer wraps which
means the sola-raylib Rust API keeps its existing shape while calling the new
FFI symbols:
RaylibDraw::get_spline_point_bezier_quadnow calls
GetSplinePointBezierQuadratic(renamed upstream)Image::drawnow callsImageDrawImageProwith a zero origin and no rotation
identical to the oldImageDrawImage::draw_triangle_exnow callsImageDrawTriangleGradient(renamed
upstream)rgui'sgui_message_boxandgui_text_input_boxstill return the
pressed-button index (0= window close,-1= nothing) even though raygui
5.x moved that index into an out-parameter and returns aGuiResultstatus
insteadset_save_file_data_callback's trampoline matches raylib 6.2's const-correct
SaveFileDataCallback(const void *data)
Added
Safe wrappers for the rest of raylib 6.2's new APIs.
- Screen drawing (
RaylibDraw):draw_triangle_gradient,
draw_triangle_lines_ex,draw_circle_lines_ex,
draw_circle_sector_lines_ex,draw_ellipse_lines_ex,draw_ring_lines_ex - Image drawing (
Image):draw_image,draw_image_ex,draw_image_rec,
draw_line_strip,draw_rectangle_pro,draw_rectangle_gradient_ex,
draw_circle_gradient RaylibHandle::load_render_texture_ex(render texture with an explicit pixel
format, e.g. float targets)RaylibHandle::get_codepoint(pre-existing raylib gap that the
unimplemented-APIs scanner had been hiding)
The raylib 6.2 path helpers (IsFileHidden, IsPathDirectory,
IsPathAbsolute) stay unwrapped like the rest of the file helpers because
they're covered by Rust's std::path/std::fs. ImageDrawTextPro is also
unwrapped because raylib 6.2 declares it in the header but the implementation is
an empty stub, so wrapping it would expose a silent no-op.
Examples
shapes_newnow demos the 6.2 shape additions- New
image_drawexample exercising theImageDraw*family,
load_render_texture_ex, andget_codepoint