From 7577b64fe883d5b2e6f52f45e15b5a3575b8dac5 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sat, 31 Jan 2015 21:39:49 +0200 Subject: float: Move everything under the "rin_" namespace. --- include/rin/float_types.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'include/rin/float_types.h') 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 */ -- cgit v1.2.3