Updating calls and docs
Moved the "AudioCallback" delegate into the "AudioMixed.cs" File. Added a "Update" method to AudioStream. Added "LoadAnim" static method to Image. Added a "Update" method to Music. Explicit constructors on the "Mesh.cs" file. Properties and structs marked as read-only on the "Model.cs" file. Updated the "README.md" to mentions Raylib-cs targets net6.0 and net8.0 (and also explicitly added that the "STAThread" attribute comes from the "System" namespace). Changed redundant calls on some "Draw" methods from Texture2D.
This commit is contained in:
parent
b84a0d4f12
commit
762641e296
11 changed files with 46 additions and 39 deletions
|
|
@ -189,7 +189,7 @@ public unsafe struct ModelAnimation
|
|||
public readonly BoneInfo* Bones;
|
||||
|
||||
/// <inheritdoc cref="Bones"/>
|
||||
public ReadOnlySpan<BoneInfo> BoneInfo => new(Bones, BoneCount);
|
||||
public readonly ReadOnlySpan<BoneInfo> BoneInfo => new ReadOnlySpan<BoneInfo>(Bones, BoneCount);
|
||||
|
||||
/// <summary>
|
||||
/// Poses array by frame (Transform **)
|
||||
|
|
@ -204,7 +204,7 @@ public unsafe struct ModelAnimation
|
|||
/// <inheritdoc cref="FramePoses"/>
|
||||
public readonly FramePosesCollection FramePosesColl => new FramePosesCollection(FramePoses, FrameCount, BoneCount);
|
||||
|
||||
public struct FramePosesCollection
|
||||
public readonly struct FramePosesCollection
|
||||
{
|
||||
readonly Transform** _framePoses;
|
||||
|
||||
|
|
@ -250,13 +250,13 @@ public unsafe struct ModelAnimation
|
|||
}
|
||||
}
|
||||
|
||||
public unsafe struct FramePoses
|
||||
public readonly unsafe struct FramePoses
|
||||
{
|
||||
readonly Transform* _poses;
|
||||
|
||||
readonly int _count;
|
||||
|
||||
public ref Transform this[int index] => ref _poses[index];
|
||||
public readonly ref Transform this[int index] => ref _poses[index];
|
||||
|
||||
internal FramePoses(Transform* poses, int count)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue