Skip to content

Commit

Permalink
Ensure unique module names on 4.06
Browse files Browse the repository at this point in the history
  • Loading branch information
tjammer committed Dec 18, 2024
1 parent aac0d07 commit 4b84c8f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/raylib/raylib_types.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
open Raylib_c.Types
module Math = Raylib_c.Functions.Math
open Ctypes_reexports
open Ctypes

Expand Down Expand Up @@ -44,7 +43,7 @@ module Vector2 = struct
let set_x vector2 x = setf vector2 Vector2.x x
let set_y vector2 y = setf vector2 Vector2.y y

include Math.Vector2
include Raylib_c.Functions.Math.Vector2
end

module Vector3 = struct
Expand All @@ -67,7 +66,7 @@ module Vector3 = struct
let set_y vector3 y = setf vector3 Vector3.y y
let set_z vector3 z = setf vector3 Vector3.z z

include Math.Vector3
include Raylib_c.Functions.Math.Vector3
end

module Vector4 = struct
Expand All @@ -93,7 +92,7 @@ module Vector4 = struct
let set_z vector4 z = setf vector4 Vector4.z z
let set_w vector4 w = setf vector4 Vector4.w w

include Math.Vector4
include Raylib_c.Functions.Math.Vector4
end

module Matrix = struct
Expand Down Expand Up @@ -155,7 +154,7 @@ module Matrix = struct
let set_m14 matrix m14 = setf matrix Matrix.m14 m14
let set_m15 matrix m15 = setf matrix Matrix.m15 m15

include Math.Matrix
include Raylib_c.Functions.Math.Matrix
end

module Color = struct
Expand Down

0 comments on commit 4b84c8f

Please sign in to comment.