diff options
| author | Marco Lizza <[email protected]> | 2019-01-09 16:18:00 +0100 |
|---|---|---|
| committer | Marco Lizza <[email protected]> | 2019-01-09 16:18:00 +0100 |
| commit | 73597332b6fb1fb934c703c32f287bde1f5b3292 (patch) | |
| tree | c71de686b53f9e64a6d797229b10401f929f4199 /src/raylib.h | |
| parent | adf0c6486480d601f7e20272ac43abe19233997d (diff) | |
| download | raylib-73597332b6fb1fb934c703c32f287bde1f5b3292.tar.gz raylib-73597332b6fb1fb934c703c32f287bde1f5b3292.zip | |
Adding uniform array support for shaders.
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 430e66db..6c47ae37 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1213,6 +1213,8 @@ RLAPI Texture2D GetTextureDefault(void); // Get RLAPI int GetShaderLocation(Shader shader, const char *uniformName); // Get shader uniform location RLAPI void SetShaderValue(Shader shader, int uniformLoc, const float *value, int size); // Set shader uniform value (float) RLAPI void SetShaderValuei(Shader shader, int uniformLoc, const int *value, int size); // Set shader uniform value (int) +RLAPI void SetShaderValueArray(Shader shader, int uniformLoc, const float *value, int size, int count); // Set shader uniform value (array of float/vec2/vec3/vec4) +RLAPI void SetShaderValueArrayi(Shader shader, int uniformLoc, const int *value, int size, int count); // Set shader uniform value (array of int/ivec2/ivec3/ivec4) RLAPI void SetShaderValueMatrix(Shader shader, int uniformLoc, Matrix mat); // Set shader uniform value (matrix 4x4) RLAPI void SetMatrixProjection(Matrix proj); // Set a custom projection matrix (replaces internal projection matrix) RLAPI void SetMatrixModelview(Matrix view); // Set a custom modelview matrix (replaces internal modelview matrix) |
