Skip to content

Commit

Permalink
Merge pull request #4461 from nickk-dv/master
Browse files Browse the repository at this point in the history
Fix random sequence bindings in vendor raylib
  • Loading branch information
laytan authored Nov 6, 2024
2 parents f02d621 + c2dd15b commit fd442b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vendor/raylib/raylib.odin
Original file line number Diff line number Diff line change
Expand Up @@ -1012,10 +1012,10 @@ foreign lib {

// Random value generation functions

SetRandomSeed :: proc(seed: c.uint) --- // Set the seed for the random number generator
GetRandomValue :: proc(min, max: c.int) -> c.int --- // Get a random value between min and max (both included)
LoadRandomSequence :: proc(count: c.uint, min, max: c.int) --- // Load random values sequence, no values repeated
UnloadRandomSequence :: proc(sequence: ^c.int) --- // Unload random values sequence
SetRandomSeed :: proc(seed: c.uint) --- // Set the seed for the random number generator
GetRandomValue :: proc(min, max: c.int) -> c.int --- // Get a random value between min and max (both included)
LoadRandomSequence :: proc(count: c.uint, min, max: c.int) -> [^]c.int --- // Load random values sequence, no values repeated
UnloadRandomSequence :: proc(sequence: [^]c.int) --- // Unload random values sequence

// Misc. functions
TakeScreenshot :: proc(fileName: cstring) --- // Takes a screenshot of current screen (filename extension defines format)
Expand Down Expand Up @@ -1517,7 +1517,7 @@ foreign lib {
// Mesh generation functions

GenMeshPoly :: proc(sides: c.int, radius: f32) -> Mesh --- // Generate polygonal mesh
GenMeshPlane :: proc(width, lengthL: f32, resX, resZ: c.int) -> Mesh --- // Generate plane mesh (with subdivisions)
GenMeshPlane :: proc(width, length: f32, resX, resZ: c.int) -> Mesh --- // Generate plane mesh (with subdivisions)
GenMeshCube :: proc(width, height, length: f32) -> Mesh --- // Generate cuboid mesh
GenMeshSphere :: proc(radius: f32, rings, slices: c.int) -> Mesh --- // Generate sphere mesh (standard sphere)
GenMeshHemiSphere :: proc(radius: f32, rings, slices: c.int) -> Mesh --- // Generate half-sphere mesh (no bottom cap)
Expand Down

0 comments on commit fd442b8

Please sign in to comment.