| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

type_float.hpp
Go to the documentation of this file.
1
4 #pragma once
5
6 #include "setup.hpp"
7
8 namespace glm{
9 namespace detail
10 {
11 typedef float float32;
12 typedef double float64;
13 }//namespace detail
14
15 typedef float lowp_float_t;
16 typedef float mediump_float_t;
17 typedef double highp_float_t;
18
21
27 typedef lowp_float_t lowp_float;
28
34 typedef mediump_float_t mediump_float;
35
41 typedef highp_float_t highp_float;
42
43 #if(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
44 typedef mediump_float float_t;
45 #elif(defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
46 typedef highp_float float_t;
47 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && defined(GLM_PRECISION_MEDIUMP_FLOAT) && !defined(GLM_PRECISION_LOWP_FLOAT))
48 typedef mediump_float float_t;
49 #elif(!defined(GLM_PRECISION_HIGHP_FLOAT) && !defined(GLM_PRECISION_MEDIUMP_FLOAT) && defined(GLM_PRECISION_LOWP_FLOAT))
50 typedef lowp_float float_t;
51 #else
52 # error "GLM error: multiple default precision requested for floating-point types"
53 #endif
54
55 typedef float float32;
56 typedef double float64;
57
59 // check type sizes
60 #ifndef GLM_STATIC_ASSERT_NULL
61 GLM_STATIC_ASSERT(sizeof(glm::float32) == 4, "float32 size isn't 4 bytes on this platform");
62 GLM_STATIC_ASSERT(sizeof(glm::float64) == 8, "float64 size isn't 8 bytes on this platform");
63 #endif//GLM_STATIC_ASSERT_NULL
64
66
67 }//namespace glm
glm::float32
float float32
Default 32 bit single-qualifier floating-point scalar.
Definition: type_float.hpp:55
glm::mediump_float
mediump_float_t mediump_float
Medium qualifier floating-point numbers.
Definition: type_float.hpp:34
glm
Definition: common.hpp:20
glm::lowp_float
lowp_float_t lowp_float
Low qualifier floating-point numbers.
Definition: type_float.hpp:27
glm::highp_float
highp_float_t highp_float
High qualifier floating-point numbers.
Definition: type_float.hpp:41
glm::float64
double float64
Default 64 bit double-qualifier floating-point scalar.
Definition: type_float.hpp:56
setup.hpp
Core features