mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Fix IsGestureDetected and formatting
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Raylib_cs
|
||||
/// Number of channels (1-mono, 2-stereo)
|
||||
/// </summary>
|
||||
public uint channels;
|
||||
|
||||
|
||||
//TODO: SPAN<byte> ?
|
||||
/// <summary>
|
||||
/// Buffer data pointer
|
||||
|
@@ -356,7 +356,7 @@ namespace Raylib_cs
|
||||
/// </summary>
|
||||
GAMEPAD_BUTTON_RIGHT_THUMB
|
||||
}
|
||||
|
||||
|
||||
/// <summary>Gesture
|
||||
/// NOTE: It could be used as flags to enable only some gestures
|
||||
/// </summary>
|
||||
|
@@ -90,12 +90,12 @@ namespace Raylib_cs
|
||||
/// Number of animation frames
|
||||
/// </summary>
|
||||
public readonly int frameCount;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Bones information (skeleton, BoneInfo *)
|
||||
/// </summary>
|
||||
public readonly BoneInfo* bones;
|
||||
|
||||
|
||||
/// <inheritdoc cref="bones"/>
|
||||
public ReadOnlySpan<BoneInfo> BoneInfo => new(bones, boneCount);
|
||||
|
||||
@@ -106,15 +106,15 @@ namespace Raylib_cs
|
||||
|
||||
/// <inheritdoc cref="framePoses"/>
|
||||
public FramePosesCollection FramePoses => new(framePoses, frameCount, boneCount);
|
||||
|
||||
|
||||
public struct FramePosesCollection
|
||||
{
|
||||
readonly Transform** framePoses;
|
||||
|
||||
|
||||
readonly int frameCount;
|
||||
|
||||
|
||||
readonly int boneCount;
|
||||
|
||||
|
||||
public FramePoses this[int index]
|
||||
{
|
||||
get
|
||||
@@ -122,12 +122,12 @@ namespace Raylib_cs
|
||||
return new(framePoses[index], boneCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
internal FramePosesCollection(Transform** framePoses, int frameCount, int boneCount)
|
||||
{
|
||||
this.framePoses = framePoses;
|
||||
this.frameCount = frameCount;
|
||||
this.boneCount = boneCount;
|
||||
this.boneCount = boneCount;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -145,7 +145,7 @@ namespace Raylib_cs
|
||||
return ref poses[index];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
internal FramePoses(Transform* poses, int count)
|
||||
{
|
||||
this.poses = poses;
|
||||
|
Reference in New Issue
Block a user