More consistent coding style

This commit is contained in:
Christophe Riccio 2017-08-15 21:59:47 +02:00
parent a805fb9d68
commit d1afe662be
6 changed files with 19 additions and 21 deletions

View File

@ -10,21 +10,21 @@ namespace glm
/// Qualify GLM types in term of alignment (packed, aligned) and precision in term of ULPs (lowp, mediump, highp) /// Qualify GLM types in term of alignment (packed, aligned) and precision in term of ULPs (lowp, mediump, highp)
enum qualifier enum qualifier
{ {
packed_highp, packed_highp, ///< Typed data is tightly packed in memory and operations are executed with high precision in term of ULPs
packed_mediump, packed_mediump, ///< Typed data is tightly packed in memory and operations are executed with medium precision in term of ULPs for higher performance
packed_lowp, packed_lowp, ///< Typed data is tightly packed in memory and operations are executed with low precision in term of ULPs to maximize performance
# if GLM_HAS_ALIGNED_TYPE # if GLM_HAS_ALIGNED_TYPE
aligned_highp, aligned_highp, ///< Typed data is aligned in memory allowing SIMD optimizations and operations are executed with high precision in term of ULPs
aligned_mediump, aligned_mediump, ///< Typed data is aligned in memory allowing SIMD optimizations and operations are executed with high precision in term of ULPs for higher performance
aligned_lowp, aligned_lowp, // ///< Typed data is aligned in memory allowing SIMD optimizations and operations are executed with high precision in term of ULPs to maximize performance
aligned = aligned_highp, aligned = aligned_highp, ///< By default aligned qualifier is also high precision
# endif # endif
highp = packed_highp, highp = packed_highp, ///< By default highp qualifier is also packed
mediump = packed_mediump, mediump = packed_mediump, ///< By default mediump qualifier is also packed
lowp = packed_lowp, lowp = packed_lowp, ///< By default lowp qualifier is also packed
packed = packed_highp, packed = packed_highp, ///< By default packed qualifier is also high precision
# if GLM_HAS_ALIGNED_TYPE && defined(GLM_FORCE_ALIGNED) # if GLM_HAS_ALIGNED_TYPE && defined(GLM_FORCE_ALIGNED)
defaultp = aligned_highp defaultp = aligned_highp

View File

@ -25,7 +25,7 @@
namespace glm namespace glm
{ {
/// @addtogroup gtx_extented_min_max /// @addtogroup gtx_extended_min_max
/// @{ /// @{
/// Return the minimum component-wise values of 3 inputs /// Return the minimum component-wise values of 3 inputs

View File

@ -29,13 +29,11 @@ namespace glm
/// @addtogroup gtx_normal /// @addtogroup gtx_normal
/// @{ /// @{
//! Computes triangle normal from triangle points. /// Computes triangle normal from triangle points.
//! From GLM_GTX_normal extension. ///
/// @see gtx_normal
template<typename T, qualifier P> template<typename T, qualifier P>
GLM_FUNC_DECL vec<3, T, P> triangleNormal( GLM_FUNC_DECL vec<3, T, P> triangleNormal(vec<3, T, P> const & p1, vec<3, T, P> const & p2, vec<3, T, P> const & p3);
vec<3, T, P> const & p1,
vec<3, T, P> const & p2,
vec<3, T, P> const & p3);
/// @} /// @}
}//namespace glm }//namespace glm