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

Review rlgl bindings

This commit is contained in:
Rgebee 2022-09-09 18:06:32 +01:00
commit 3e21233ca0

View file

@ -466,6 +466,10 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void rlUpdateVertexBuffer(uint bufferId, void* data, int dataSize, int offset); public static extern void rlUpdateVertexBuffer(uint bufferId, void* data, int dataSize, int offset);
/// <summary>Update vertex buffer elements with new data</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void rlUpdateVertexBufferElements(uint id, void* data, int dataSize, int offset);
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void rlUnloadVertexArray(uint vaoId); public static extern void rlUnloadVertexArray(uint vaoId);
@ -596,9 +600,9 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void rlSetUniformSampler(int locIndex, uint textureId); public static extern void rlSetUniformSampler(int locIndex, uint textureId);
/// <summary>Set shader currently active</summary> /// <summary>Set shader currently active (id and locations)</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void rlSetShader(Shader shader); public static extern void rlSetShader(uint id, int* locs);
// Compute shader management // Compute shader management
@ -621,7 +625,7 @@ namespace Raylib_cs
/// <summary>Update SSBO buffer data</summary> /// <summary>Update SSBO buffer data</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void rlUpdateShaderBufferElements(Shader shader); public static extern void rlUpdateShaderBufferElements(uint id, void* data, ulong dataSize, ulong offset);
/// <summary>Get SSBO buffer size</summary> /// <summary>Get SSBO buffer size</summary>
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]