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

Add GetShaderLocationAttrib function

- Used by the example shaders_rlgl_mesh_instanced.
This commit is contained in:
Rgebee 2020-12-27 15:47:01 +00:00
commit 1e362c5e64

View file

@ -2564,6 +2564,10 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetShaderLocation(Shader shader, string uniformName); public static extern int GetShaderLocation(Shader shader, string uniformName);
// Get shader attribute location
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetShaderLocationAttrib(Shader shader, string attribName);
// Set shader uniform value // Set shader uniform value
// value refers to a const void * // value refers to a const void *
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]