summaryrefslogtreecommitdiffstats
path: root/external/include/glm/detail/type_gentype.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/detail/type_gentype.hpp')
-rw-r--r--external/include/glm/detail/type_gentype.hpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/external/include/glm/detail/type_gentype.hpp b/external/include/glm/detail/type_gentype.hpp
index 8fd202e..b45cdf4 100644
--- a/external/include/glm/detail/type_gentype.hpp
+++ b/external/include/glm/detail/type_gentype.hpp
@@ -13,13 +13,13 @@ namespace glm
};
typedef std::size_t sizeType;
-
+
namespace detail
{
template
<
- typename VALTYPE,
- template <typename> class TYPE
+ typename VALTYPE,
+ template<typename> class TYPE
>
struct genType
{
@@ -35,15 +35,15 @@ namespace detail
typedef sizeType size_type;
static bool is_vector();
static bool is_matrix();
-
+
typedef TYPE<VALTYPE> type;
typedef TYPE<VALTYPE> * pointer;
typedef TYPE<VALTYPE> const * const_pointer;
typedef TYPE<VALTYPE> const * const const_pointer_const;
typedef TYPE<VALTYPE> * const pointer_const;
typedef TYPE<VALTYPE> & reference;
- typedef TYPE<VALTYPE> const & const_reference;
- typedef TYPE<VALTYPE> const & param_type;
+ typedef TYPE<VALTYPE> const& const_reference;
+ typedef TYPE<VALTYPE> const& param_type;
//////////////////////////////////////
// Address (Implementation details)
@@ -64,15 +64,15 @@ namespace detail
template
<
- typename VALTYPE,
- template <typename> class TYPE
+ typename VALTYPE,
+ template<typename> class TYPE
>
bool genType<VALTYPE, TYPE>::is_vector()
{
return true;
}
/*
- template <typename valTypeT, unsigned int colT, unsigned int rowT, profile proT = nice>
+ template<typename valTypeT, unsigned int colT, unsigned int rowT, profile proT = nice>
class base
{
public:
@@ -97,46 +97,46 @@ namespace detail
static bool is_matrix();
private:
- // Data
- col_type value[colT];
+ // Data
+ col_type value[colT];
public:
//////////////////////////////////////
// Constructors
base();
- base(class_type const & m);
+ base(class_type const& m);
- explicit base(T const & x);
+ explicit base(T const& x);
explicit base(value_type const * const x);
explicit base(col_type const * const x);
//////////////////////////////////////
// Conversions
- template <typename vU, uint cU, uint rU, profile pU>
- explicit base(base<vU, cU, rU, pU> const & m);
+ template<typename vU, uint cU, uint rU, profile pU>
+ explicit base(base<vU, cU, rU, pU> const& m);
//////////////////////////////////////
// Accesses
col_type& operator[](size_type i);
- col_type const & operator[](size_type i) const;
+ col_type const& operator[](size_type i) const;
//////////////////////////////////////
// Unary updatable operators
- class_type& operator= (class_type const & x);
- class_type& operator+= (T const & x);
- class_type& operator+= (class_type const & x);
- class_type& operator-= (T const & x);
- class_type& operator-= (class_type const & x);
- class_type& operator*= (T const & x);
- class_type& operator*= (class_type const & x);
- class_type& operator/= (T const & x);
- class_type& operator/= (class_type const & x);
+ class_type& operator= (class_type const& x);
+ class_type& operator+= (T const& x);
+ class_type& operator+= (class_type const& x);
+ class_type& operator-= (T const& x);
+ class_type& operator-= (class_type const& x);
+ class_type& operator*= (T const& x);
+ class_type& operator*= (class_type const& x);
+ class_type& operator/= (T const& x);
+ class_type& operator/= (class_type const& x);
class_type& operator++ ();
class_type& operator-- ();
};
*/
-
- //template <typename T>
+
+ //template<typename T>
//struct traits
//{
// static const bool is_signed = false;
@@ -147,29 +147,29 @@ namespace detail
// static const bool is_genIType = false;
// static const bool is_genUType = false;
//};
-
- //template <>
+
+ //template<>
//struct traits<half>
//{
// static const bool is_float = true;
// static const bool is_genType = true;
//};
-
- //template <>
+
+ //template<>
//struct traits<float>
//{
// static const bool is_float = true;
// static const bool is_genType = true;
//};
-
- //template <>
+
+ //template<>
//struct traits<double>
//{
// static const bool is_float = true;
// static const bool is_genType = true;
//};
-
- //template <typename genType>
+
+ //template<typename genType>
//struct desc
//{
// typedef genType type;
@@ -180,15 +180,15 @@ namespace detail
// typedef genType & reference;
// typedef genType const& const_reference;
// typedef genType const& param_type;
-
+
// typedef typename genType::value_type value_type;
// typedef typename genType::size_type size_type;
// static const typename size_type value_size;
//};
-
- //template <typename genType>
+
+ //template<typename genType>
//const typename desc<genType>::size_type desc<genType>::value_size = genType::value_size();
-
+
}//namespace detail
}//namespace glm