summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <[email protected]>2019-01-09 17:01:59 +0100
committerGitHub <[email protected]>2019-01-09 17:01:59 +0100
commit35bcbd1b603f77d9686e24f04a72d9300a7b338d (patch)
treee459baa3c2e966c5717821625632865216d34d4e /src/raylib.h
parentdf54e73b21bbdbf27bbf8c7ee9841a8a7af11375 (diff)
parent0c5bee4c9addc20b8b3c443820764854c63f76d7 (diff)
downloadraylib-35bcbd1b603f77d9686e24f04a72d9300a7b338d.tar.gz
raylib-35bcbd1b603f77d9686e24f04a72d9300a7b338d.zip
Merge pull request #718 from MarcoLizza/shaders-uniforms-array
Shaders uniforms array
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 6d4b08d0..275a3b63 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1231,6 +1231,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)