Browse Source

Added missing structure on standalone mode #3160

Ray 2 years ago
parent
commit
bc40012ca3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/rcamera.h

+ 8 - 0
src/rcamera.h

@@ -76,6 +76,14 @@
         float z;                // Vector z component
     } Vector3;
 
+    // Matrix, 4x4 components, column major, OpenGL style, right-handed
+    typedef struct Matrix {
+        float m0, m4, m8, m12;  // Matrix first row (4 components)
+        float m1, m5, m9, m13;  // Matrix second row (4 components)
+        float m2, m6, m10, m14; // Matrix third row (4 components)
+        float m3, m7, m11, m15; // Matrix fourth row (4 components)
+    } Matrix;
+
     // Camera type, defines a camera position/orientation in 3d space
     typedef struct Camera3D {
         Vector3 position;       // Camera position