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

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:
Matorio 2025-07-18 14:02:01 -05:00
commit 762641e296
11 changed files with 46 additions and 39 deletions

View file

@ -186,7 +186,12 @@ public struct Texture2D
public readonly void Draw(Vector2 position)
{
Raylib.DrawTexture(this, (int)position.X, (int)position.Y, Color.White);
Raylib.DrawTextureV(this, position, Color.White);
}
public readonly void Draw(Vector2 position, Color color)
{
Raylib.DrawTextureV(this, position, color);
}
public readonly void Draw(Vector2 position, Vector2 origin)
@ -205,11 +210,6 @@ public struct Texture2D
Raylib.DrawTexturePro(this, source, target, origin, 0, color);
}
public readonly void Draw(Vector2 position, Color color)
{
Raylib.DrawTexture(this, (int)position.X, (int)position.Y, color);
}
public readonly void Draw(Vector2 position, float rotation, float scale)
{
Raylib.DrawTextureEx(this, position, rotation, scale, Color.White);