aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2015-12-21 16:42:13 +0100
committervictorfisac <victorfisac@gmail.com>2015-12-21 16:42:13 +0100
commit4db2da91850fcc55ec08df253e533e236eb91451 (patch)
tree83042caf6816073f29e69c0b6d46de88fb3c3c19 /src/rlgl.h
parent1b39b2e2612dfd7613e3bfb6948e8d27472ab8c1 (diff)
downloadraylib-4db2da91850fcc55ec08df253e533e236eb91451.tar.gz
raylib-4db2da91850fcc55ec08df253e533e236eb91451.zip
Added new matrix location points and extra functions
- New model and view transformation matrix added, useful for shaders. Modelview matrix not deleted to keep opengl 1.1 pipeline compatibility. - New extra function added DrawModelWiresEx() to set a rotation and scale transformations to a wire model drawing. - Other writing and little audio.c bug fixed.
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 0960fa83..a7df043e 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -160,7 +160,9 @@ typedef enum { OPENGL_11 = 1, OPENGL_33, OPENGL_ES_20 } GlVersion;
// Uniforms
int projectionLoc; // Projection matrix uniform location point (vertex shader)
- int modelviewLoc; // ModeView matrix uniform location point (vertex shader)
+ int modelviewLoc; // ModelView matrix uniform location point (vertex shader)
+ int modelLoc; // Model transformation matrix uniform location point (vertex shader)
+ int viewLoc; // View transformation matrix uniform location point (vertex shader)
int tintColorLoc; // Color uniform location point (fragment shader)
int mapDiffuseLoc; // Diffuse map texture uniform location point (fragment shader)