Merge pull request #1152 from aiden-knight/manual-fix

Fixed include file for perspective function in manual #1152
This commit is contained in:
Christophe 2023-08-18 14:50:34 +02:00 committed by GitHub
commit aab59fbd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,8 @@ The following is a code sample using separated core headers and an extension:
#include <glm/trigonometric.hpp> //radians
// Include GLM extension
#include <glm/ext/matrix_transform.hpp> // perspective, translate, rotate
#include <glm/ext/matrix_transform.hpp> // translate, rotate
#include <glm/ext/matrix_clip_space.hpp> // perspective
glm::mat4 transform(glm::vec2 const& Orientation, glm::vec3 const& Translate, glm::vec3 const& Up)
{
@ -264,7 +265,8 @@ Using GLM through split headers to minimize the project build time:
// Include GLM matrix extensions:
#include <glm/ext/matrix_float4x4.hpp> // mat4
#include <glm/ext/matrix_transform.hpp> // perspective, translate, rotate
#include <glm/ext/matrix_transform.hpp> // translate, rotate
#include <glm/ext/matrix_clip_space.hpp> // perspective
glm::mat4 transform(glm::vec2 const& Orientation, glm::vec3 const& Translate, glm::vec3 const& Up)
{