mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Merge pull request #1152 from aiden-knight/manual-fix
Fixed include file for perspective function in manual #1152
This commit is contained in:
commit
aab59fbd7a
@ -239,7 +239,8 @@ The following is a code sample using separated core headers and an extension:
|
|||||||
#include <glm/trigonometric.hpp> //radians
|
#include <glm/trigonometric.hpp> //radians
|
||||||
|
|
||||||
// Include GLM extension
|
// 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)
|
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 matrix extensions:
|
||||||
#include <glm/ext/matrix_float4x4.hpp> // mat4
|
#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)
|
glm::mat4 transform(glm::vec2 const& Orientation, glm::vec3 const& Translate, glm::vec3 const& Up)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user