mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 08:54:35 +00:00
Fixed include file for perspective function in manual
This commit is contained in:
parent
5c46b9c070
commit
2f014270b6
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user