Fixed include file for perspective function in manual

This commit is contained in:
Aiden Knight 2023-06-10 17:20:46 +01:00
parent 5c46b9c070
commit 2f014270b6

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)
{