From 0318de8b98ca7170ffd9cc7309dd227696c69b58 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 30 Dec 2016 01:26:25 +0100 Subject: [PATCH] Updated manual #584 --- manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual.md b/manual.md index 1c749d93..792efb19 100644 --- a/manual.md +++ b/manual.md @@ -555,7 +555,7 @@ By default GLM only supports basic types as genType for vector, matrix and quate ```cpp #include -typedef glm::tvec4 my_fvec4; +typedef glm::vec<4, float> my_fvec4; ``` GLM 0.9.8 introduced GLM\_FORCE\_UNRESTRICTED\_GENTYPE define to relax this restriction: @@ -566,7 +566,7 @@ GLM 0.9.8 introduced GLM\_FORCE\_UNRESTRICTED\_GENTYPE define to relax this rest #include "half.hpp" // Define “half” class with equivalent behavior than “float” -typedef glm::tvec4 my_hvec4; +typedef glm::vec<4, half> my_hvec4; ``` However, defining GLM\_FORCE\_UNRESTRICTED\_GENTYPE is not compatible with GLM\_FORCE\_SWIZZLE and will generate a compilation error if both are defined at the same time.