diff options
| author | seanpringle <[email protected]> | 2020-09-27 18:29:05 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-27 10:29:05 +0200 |
| commit | 4bcddc3b15b394b81cf4bd481ce9c600f6c6d5d8 (patch) | |
| tree | c3697b028cb859d8003703de4bbd15d57f17f9d7 /src/raymath.h | |
| parent | e90b4d8915d593ab57cedfe988da8fbbd18b4408 (diff) | |
| download | raylib-4bcddc3b15b394b81cf4bd481ce9c600f6c6d5d8.tar.gz raylib-4bcddc3b15b394b81cf4bd481ce9c600f6c6d5d8.zip | |
[wip] rlDrawMeshInstanced (#1318)
* rlDrawMeshInstanced first attempt
* rlDrawMeshInstanced OpenGL 3.3 and VAO checks
* rlDrawMeshInstanced GetShaderAttribLocation; comments
* example instanced shader
* RLGL_STANDALONE RAYMATH_STANDALONE Vector4
* apply suggested naming changes; add instanced mesh example
* remove orphan variables
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/raymath.h b/src/raymath.h index 3e5e1973..783c4449 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -114,13 +114,16 @@ float z; } Vector3; - // Quaternion type - typedef struct Quaternion { + // Vector4 type + typedef struct Vector4 { float x; float y; float z; float w; - } Quaternion; + } Vector4; + + // Quaternion type + typedef Vector4 Quaternion; // Matrix type (OpenGL style 4x4 - right handed, column major) typedef struct Matrix { |
