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

@ -107,8 +107,7 @@ public unsafe struct Shader
public void SetValue<T>(int locationIndex, T value, ShaderUniformDataType uniformDataType) where T : unmanaged
{
void* val = &value;
Raylib.SetShaderValue(this, locationIndex, val, uniformDataType);
Raylib.SetShaderValue(this, locationIndex, &value, uniformDataType);
}
public void SetValues<T>(int locationIndex, T[] values, ShaderUniformDataType uniformDataType) where T : unmanaged