diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-01-20 11:35:29 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-01-20 11:35:29 +0100 |
commit | 15d43272290901fd7ddd8a67c5e2197adc8c15b7 (patch) | |
tree | d3f0b55d9aa4666a7ba10d20e0ce53d1e3040793 /include/llmr/util | |
parent | 5aa22b9c3248a235efb36a062d10e8a59fb434f9 (diff) | |
download | qtlocation-mapboxgl-15d43272290901fd7ddd8a67c5e2197adc8c15b7.tar.gz |
rename + move to c++
Diffstat (limited to 'include/llmr/util')
-rw-r--r-- | include/llmr/util/mat4.hpp (renamed from include/llmr/util/mat4.h) | 26 | ||||
-rw-r--r-- | include/llmr/util/vec.hpp (renamed from include/llmr/util/vec2.hpp) | 0 |
2 files changed, 12 insertions, 14 deletions
diff --git a/include/llmr/util/mat4.h b/include/llmr/util/mat4.hpp index 484b4b0823..05c1b7b161 100644 --- a/include/llmr/util/mat4.h +++ b/include/llmr/util/mat4.hpp @@ -20,23 +20,21 @@ // // 3. This notice may not be removed or altered from any source distribution. -#ifndef llmr_util_mat4_ -#define llmr_util_mat4_ +#ifndef LLMR_UTIL_MAT4 +#define LLMR_UTIL_MAT4 -#ifdef __cplusplus -extern "C" { -#endif +namespace llmr { +namespace mat4 { -void mat4_identity(float out[16]); -void mat4_ortho(float out[16], float left, float right, float bottom, float top, float near, float far); -void mat4_copy(float out[16], float a[16]); -void mat4_translate(float out[16], float a[16], float x, float y, float z); -void mat4_rotate_z(float out[16], float a[16], float rad); -void mat4_scale(float out[16], float a[16], float x, float y, float z); -void mat4_multiply(float out[16], float a[16], float b[16]); +void identity(float out[16]); +void ortho(float out[16], float left, float right, float bottom, float top, float near, float far); +void copy(float out[16], float a[16]); +void translate(float out[16], float a[16], float x, float y, float z); +void rotate_z(float out[16], float a[16], float rad); +void scale(float out[16], float a[16], float x, float y, float z); +void multiply(float out[16], float a[16], float b[16]); -#ifdef __cplusplus } -#endif +} #endif diff --git a/include/llmr/util/vec2.hpp b/include/llmr/util/vec.hpp index 782573d7fd..782573d7fd 100644 --- a/include/llmr/util/vec2.hpp +++ b/include/llmr/util/vec.hpp |