diff options
Diffstat (limited to '3rdparty/glm/test/gtx/gtx_io.cpp')
-rw-r--r-- | 3rdparty/glm/test/gtx/gtx_io.cpp | 42 |
1 files changed, 8 insertions, 34 deletions
diff --git a/3rdparty/glm/test/gtx/gtx_io.cpp b/3rdparty/glm/test/gtx/gtx_io.cpp index c9edf9cfe8e..a7ab7a76b62 100644 --- a/3rdparty/glm/test/gtx/gtx_io.cpp +++ b/3rdparty/glm/test/gtx/gtx_io.cpp @@ -1,34 +1,3 @@ -/////////////////////////////////////////////////////////////////////////////////// -/// OpenGL Mathematics (glm.g-truc.net) -/// -/// Copyright (c) 2005 - 2016 G-Truc Creation (www.g-truc.net) -/// Permission is hereby granted, free of charge, to any person obtaining a copy -/// of this software and associated documentation files (the "Software"), to deal -/// in the Software without restriction, including without limitation the rights -/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -/// copies of the Software, and to permit persons to whom the Software is -/// furnished to do so, subject to the following conditions: -/// -/// The above copyright notice and this permission notice shall be included in -/// all copies or substantial portions of the Software. -/// -/// Restrictions: -/// By making use of the Software for military purposes, you choose to make -/// a Bunny unhappy. -/// -/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -/// THE SOFTWARE. -/// -/// @file test/gtx/gtx_io.cpp -/// @date 2013-11-22 / 2016-03-14 -/// @author Jan P Springer (regnirpsj@gmail.com) -/////////////////////////////////////////////////////////////////////////////////// - #include <glm/gtc/type_precision.hpp> #include <glm/gtx/io.hpp> #include <iostream> @@ -45,9 +14,14 @@ namespace if (cerberus) { switch (a) { - case glm::highp: os << "hi"; break; - case glm::mediump: os << "md"; break; - case glm::lowp: os << "lo"; break; + case glm::highp: os << "uhi"; break; + case glm::mediump: os << "umd"; break; + case glm::lowp: os << "ulo"; break; +# if GLM_HAS_ALIGNED_TYPE + case glm::aligned_highp: os << "ahi"; break; + case glm::aligned_mediump: os << "amd"; break; + case glm::aligned_lowp: os << "alo"; break; +# endif } } |