summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-07-21 15:25:35 +0200
committerraysan5 <[email protected]>2017-07-21 15:25:35 +0200
commit38d9fcb08ef81cd5a3ab93df825eac7714d03e45 (patch)
treeadbeb5af253a6b7fcddec539c5d2e0efd677687c /src/raylib.h
parent980d9d4cd4ab941afc53bf8a83ea2a18d28ee4e2 (diff)
downloadraylib-38d9fcb08ef81cd5a3ab93df825eac7714d03e45.tar.gz
raylib-38d9fcb08ef81cd5a3ab93df825eac7714d03e45.zip
Moved some functions to raymath
Exposed some raymath useful functions to raylib API
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index cc5b0bb6..ec5e61fd 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -742,8 +742,13 @@ RLAPI int GetHexValue(Color color); // Returns hex
RLAPI Color GetColor(int hexValue); // Returns a Color struct from hexadecimal value
RLAPI Color Fade(Color color, float alpha); // Color fade-in or fade-out, alpha goes from 0.0f to 1.0f
RLAPI float *ColorToFloat(Color color); // Converts Color to float array and normalizes
-RLAPI float *VectorToFloat(Vector3 vec); // Converts Vector3 to float array
-RLAPI float *MatrixToFloat(Matrix mat); // Converts Matrix to float array
+
+// Math useful functions (available from raymath.h)
+RLAPI float *VectorToFloat(Vector3 vec); // Returns Vector3 as float array
+RLAPI float *MatrixToFloat(Matrix mat); // Returns Matrix as float array
+RLAPI Vector3 VectorZero(void); // Vector with components value 0.0f
+RLAPI Vector3 VectorOne(void); // Vector with components value 1.0f
+RLAPI Matrix MatrixIdentity(void); // Returns identity matrix
// Misc. functions
RLAPI void ShowLogo(void); // Activate raylib logo at startup (can be done with flags)