Watch
2
0
Fork
You've already forked raylib-cs
0

Fix IsGestureDetected and formatting

This commit is contained in:
Rgebee 2021-12-11 12:15:51 +00:00
commit dc5335038a
6 changed files with 24 additions and 25 deletions

View file

@ -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

View file

@ -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>

View file

@ -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;