Review rlgl bindings
This commit is contained in:
parent
c94b9437ac
commit
3e21233ca0
1 changed files with 7 additions and 3 deletions
|
|
@ -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)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue