extra file for rlgl utils added (inkl. first member SetUniformMatrices)
This commit is contained in:
parent
a172928501
commit
12bc8bf8c7
1 changed files with 15 additions and 0 deletions
15
Raylib-cs/types/Rlgl.Utils.cs
Normal file
15
Raylib-cs/types/Rlgl.Utils.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
using System.Numerics;
|
||||||
|
|
||||||
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
public static unsafe partial class Rlgl
|
||||||
|
{
|
||||||
|
/// <summary>Set shader value matrices</summary>
|
||||||
|
public static void SetUniformMatrices(int locIndex, Matrix4x4[] mat)
|
||||||
|
{
|
||||||
|
fixed (Matrix4x4* p = mat)
|
||||||
|
{
|
||||||
|
SetUniformMatrices(locIndex, p, mat.Length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue