aboutsummaryrefslogtreecommitdiffstats
path: root/include/rin/float_types.h
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2015-01-31 21:39:49 +0200
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2015-03-03 23:36:31 +0200
commit7577b64fe883d5b2e6f52f45e15b5a3575b8dac5 (patch)
tree8bec1f5e729b6e2d075244624b649ebd02536a43 /include/rin/float_types.h
parent8b26e3ef33e3871762ebd62acbff85b2c3abd9fc (diff)
downloadlibrin-7577b64fe883d5b2e6f52f45e15b5a3575b8dac5.tar.gz
librin-7577b64fe883d5b2e6f52f45e15b5a3575b8dac5.tar.bz2
librin-7577b64fe883d5b2e6f52f45e15b5a3575b8dac5.zip
float: Move everything under the "rin_" namespace.
Diffstat (limited to 'include/rin/float_types.h')
-rw-r--r--include/rin/float_types.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/include/rin/float_types.h b/include/rin/float_types.h
index 2d99b2f..4510178 100644
--- a/include/rin/float_types.h
+++ b/include/rin/float_types.h
@@ -21,14 +21,13 @@
#ifndef LIBRIN_FLOAT_TYPES_INCLUDED
#define LIBRIN_FLOAT_TYPES_INCLUDED
-/* These vec[num] types mostly mimic the analogous types found in OpenGL
- * Might get renamed to rin_vec[num] in case namespace clashes
+/* These rin_vec[num] types mostly mimic the analogous types found in OpenGL
* with other existing libraries get noticed.
*
- * vecd[num] use double instead of float, but are otherwise identical to vec[num].
+ * rin_vecd[num] use double instead of float, but are otherwise identical to rin_vec[num].
*/
-struct vec2 {
+struct rin_vec2 {
union {
struct {
float x;
@@ -45,7 +44,7 @@ struct vec2 {
};
};
-struct vec3 {
+struct rin_vec3 {
union {
struct {
float x;
@@ -65,7 +64,7 @@ struct vec3 {
};
};
-struct vec4 {
+struct rin_vec4 {
union {
struct {
float x;
@@ -88,7 +87,7 @@ struct vec4 {
};
};
-struct vec2d {
+struct rin_vec2d {
union {
struct {
double x;
@@ -105,7 +104,7 @@ struct vec2d {
};
};
-struct vec3d {
+struct rin_vec3d {
union {
struct {
double x;
@@ -125,7 +124,7 @@ struct vec3d {
};
};
-struct vec4d {
+struct rin_vec4d {
union {
struct {
double x;
@@ -150,8 +149,8 @@ struct vec4d {
/* A simple 3D vertex with position and normal data. */
struct vertex {
- struct vec3 position;
- struct vec3 normal;
+ struct rin_vec3 position;
+ struct rin_vec3 normal;
};
#endif /* LIBRIN_FLOAT_TYPES_INCLUDED */