浏览代码

Added comment on implementation details

Christophe Riccio 12 年之前
父节点
当前提交
741756f17d
共有 4 个文件被更改,包括 24 次插入0 次删除
  1. 6 0
      glm/core/type_vec1.hpp
  2. 6 0
      glm/core/type_vec2.hpp
  3. 6 0
      glm/core/type_vec3.hpp
  4. 6 0
      glm/core/type_vec4.hpp

+ 6 - 0
glm/core/type_vec1.hpp

@@ -39,12 +39,18 @@ namespace detail
 	template <typename T, precision P>
 	struct tvec1
 	{
+		//////////////////////////////////////
+		// Implementation detail
+
 		enum ctor{_null};
 
 		typedef tvec1<T, P> type;
 		typedef tvec1<bool, P> bool_type;
 		typedef T value_type;
 
+		//////////////////////////////////////
+		// Helper
+
 		GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
 
 		//////////////////////////////////////

+ 6 - 0
glm/core/type_vec2.hpp

@@ -39,12 +39,18 @@ namespace detail
 	template <typename T, precision P>
 	struct tvec2
 	{
+		//////////////////////////////////////
+		// Implementation detail
+
 		enum ctor{_null};
 
 		typedef tvec2<T, P> type;
 		typedef tvec2<bool, P> bool_type;
 		typedef T value_type;
 
+		//////////////////////////////////////
+		// Helper
+
 		GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
 
 		//////////////////////////////////////

+ 6 - 0
glm/core/type_vec3.hpp

@@ -39,12 +39,18 @@ namespace detail
 	template <typename T, precision P>
 	struct tvec3
 	{	
+		//////////////////////////////////////
+		// Implementation detail
+
 		enum ctor{_null};
 
 		typedef tvec3<T, P> type;
 		typedef tvec3<bool, P> bool_type;
 		typedef T value_type;
 
+		//////////////////////////////////////
+		// Helper
+
 		GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
 
 		//////////////////////////////////////

+ 6 - 0
glm/core/type_vec4.hpp

@@ -39,12 +39,18 @@ namespace detail
 	template <typename T, precision P>
 	struct tvec4
 	{
+		//////////////////////////////////////
+		// Implementation detail
+
 		enum ctor{_null};
 
 		typedef tvec4<T, P> type;
 		typedef tvec4<bool, P> bool_type;
 		typedef T value_type;
 
+		//////////////////////////////////////
+		// Helper
+
 		GLM_FUNC_DECL GLM_CONSTEXPR int length() const;
 
 		//////////////////////////////////////