mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Merge pull request #3232 from karl-zylinski/raylib-5-binding-errors
Additional fixes for errors in Raylib bindings since Raylib 4 -> 5 upgrade.
This commit is contained in:
Vendored
+4
-5
@@ -318,11 +318,11 @@ GlyphInfo :: struct {
|
|||||||
// Font type, includes texture and charSet array data
|
// Font type, includes texture and charSet array data
|
||||||
Font :: struct {
|
Font :: struct {
|
||||||
baseSize: c.int, // Base size (default chars height)
|
baseSize: c.int, // Base size (default chars height)
|
||||||
charsCount: c.int, // Number of characters
|
glyphCount: c.int, // Number of characters
|
||||||
charsPadding: c.int, // Padding around the chars
|
glyphPadding: c.int, // Padding around the chars
|
||||||
texture: Texture2D, // Characters texture atlas
|
texture: Texture2D, // Characters texture atlas
|
||||||
recs: [^]Rectangle, // Characters rectangles in texture
|
recs: [^]Rectangle, // Characters rectangles in texture
|
||||||
chars: [^]GlyphInfo, // Characters info data
|
glyphs: [^]GlyphInfo, // Characters info data
|
||||||
}
|
}
|
||||||
|
|
||||||
// Camera type, defines a camera position/orientation in 3d space
|
// Camera type, defines a camera position/orientation in 3d space
|
||||||
@@ -425,7 +425,7 @@ ModelAnimation :: struct {
|
|||||||
frameCount: c.int, // Number of animation frames
|
frameCount: c.int, // Number of animation frames
|
||||||
bones: [^]BoneInfo, // Bones information (skeleton)
|
bones: [^]BoneInfo, // Bones information (skeleton)
|
||||||
framePoses: [^][^]Transform, // Poses array by frame
|
framePoses: [^][^]Transform, // Poses array by frame
|
||||||
name: [32]u8, // Animation name
|
name: [32]byte, // Animation name
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ray type (useful for raycast)
|
// Ray type (useful for raycast)
|
||||||
@@ -491,7 +491,6 @@ VrDeviceInfo :: struct {
|
|||||||
vResolution: c.int, // Vertical resolution in pixels
|
vResolution: c.int, // Vertical resolution in pixels
|
||||||
hScreenSize: f32, // Horizontal size in meters
|
hScreenSize: f32, // Horizontal size in meters
|
||||||
vScreenSize: f32, // Vertical size in meters
|
vScreenSize: f32, // Vertical size in meters
|
||||||
vScreenCenter: f32, // Screen center in meters
|
|
||||||
eyeToScreenDistance: f32, // Distance between eye and display in meters
|
eyeToScreenDistance: f32, // Distance between eye and display in meters
|
||||||
lensSeparationDistance: f32, // Lens separation distance in meters
|
lensSeparationDistance: f32, // Lens separation distance in meters
|
||||||
interpupillaryDistance: f32, // IPD (distance between pupils) in meters
|
interpupillaryDistance: f32, // IPD (distance between pupils) in meters
|
||||||
|
|||||||
Reference in New Issue
Block a user