File: gtc_quaternion.cpp

package info (click to toggle)
glm 0.9.3.3%2Bdfsg-0.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 12,064 kB
  • sloc: cpp: 14,510; xml: 1,819; python: 111; makefile: 5
file content (40 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
///////////////////////////////////////////////////////////////////////////////////////////////////
// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2010-09-16
// Updated : 2011-05-25
// Licence : This source is under MIT licence
// File    : test/gtc/quaternion.cpp
///////////////////////////////////////////////////////////////////////////////////////////////////

#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/epsilon.hpp>

int test_quat_precision()
{
	int Error = 0;

	Error += sizeof(glm::lowp_quat) <= sizeof(glm::mediump_quat) ? 0 : 1;
	Error += sizeof(glm::mediump_quat) <= sizeof(glm::highp_quat) ? 0 : 1;
    
    return Error;
}

int test_quat_type()
{
    glm::quat A;
    glm::dquat B;
    
    return 0;
}

int main()
{
	int Error = 0;
    
	Error += test_quat_precision();
    Error += test_quat_type();

	return Error;
}