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
|
|
@ -8,7 +8,7 @@ namespace Raylib_cs;
|
|||
/// NOTE: Useful to create custom audio streams not bound to a specific file
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public partial struct AudioStream
|
||||
public struct AudioStream
|
||||
{
|
||||
//TODO: convert
|
||||
/// <summary>
|
||||
|
|
@ -60,6 +60,11 @@ public partial struct AudioStream
|
|||
Raylib.ResumeAudioStream(this);
|
||||
}
|
||||
|
||||
public unsafe void Update(void* data, int frameCount)
|
||||
{
|
||||
Raylib.UpdateAudioStream(this, data, frameCount);
|
||||
}
|
||||
|
||||
public readonly void Stop()
|
||||
{
|
||||
Raylib.StopAudioStream(this);
|
||||
|
|
|
|||
Loading…
Reference in a new issue