From aeba3c6fe7099d9fd8dd63ddaa77bcbc1e9bb5e2 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 11 Jan 2014 21:12:53 +0100 Subject: [PATCH] Quiet most GLM_FORCE_RADIANS messages --- glm/detail/dummy.cpp | 1 + glm/detail/type_mat.hpp | 5 +- glm/detail/type_mat2x2.inl | 14 +- glm/detail/type_mat3x3.inl | 23 +- glm/gtc/noise.hpp | 1 + glm/gtc/ulp.hpp | 2 + glm/gtc/ulp.inl | 1 + test/core/core_func_common.cpp | 1 + test/core/core_func_exponential.cpp | 1 + test/core/core_func_geometric.cpp | 1 + test/core/core_func_integer.cpp | 1 + test/core/core_func_matrix.cpp | 1 + test/core/core_func_noise.cpp | 2 + test/core/core_func_packing.cpp | 1 + test/core/core_func_swizzle.cpp | 1 + test/core/core_func_trigonometric.cpp | 1 + test/core/core_func_vector_relational.cpp | 1 + test/core/core_type_cast.cpp | 1 + test/core/core_type_float.cpp | 24 +- test/core/core_type_int.cpp | 1 + test/core/core_type_length.cpp | 1 + test/core/core_type_mat2x2.cpp | 1 + test/core/core_type_mat2x3.cpp | 1 + test/core/core_type_mat2x4.cpp | 1 + test/core/core_type_mat3x2.cpp | 1 + test/core/core_type_mat3x3.cpp | 1 + test/core/core_type_mat3x4.cpp | 1 + test/core/core_type_mat4x2.cpp | 1 + test/core/core_type_mat4x3.cpp | 1 + test/core/core_type_mat4x4.cpp | 1 + test/core/core_type_vec1.cpp | 2 +- test/core/core_type_vec2.cpp | 1 + test/core/core_type_vec3.cpp | 1 + test/core/core_type_vec4.cpp | 1 + test/gtc/gtc_constants.cpp | 2 +- test/gtc/gtc_epsilon.cpp | 1 + test/gtc/gtc_matrix_access.cpp | 11 +- test/gtc/gtc_matrix_integer.cpp | 2 +- test/gtc/gtc_matrix_inverse.cpp | 2 +- test/gtc/gtc_matrix_transform.cpp | 1 - test/gtc/gtc_noise.cpp | 2 +- test/gtc/gtc_packing.cpp | 2 +- test/gtc/gtc_quaternion.cpp | 45 +-- test/gtc/gtc_random.cpp | 2 +- test/gtc/gtc_reciprocal.cpp | 6 +- test/gtc/gtc_type_precision.cpp | 2 +- test/gtc/gtc_type_ptr.cpp | 442 +++++++++++----------- test/gtc/gtc_ulp.cpp | 2 +- test/gtx/gtx_associated_min_max.cpp | 4 +- test/gtx/gtx_bit.cpp | 4 +- test/gtx/gtx_closest_point.cpp | 4 +- test/gtx/gtx_color_space.cpp | 4 +- test/gtx/gtx_color_space_YCoCg.cpp | 4 +- test/gtx/gtx_compatibility.cpp | 2 +- test/gtx/gtx_component_wise.cpp | 4 +- test/gtx/gtx_dual_quaternion.cpp | 1 + test/gtx/gtx_euler_angle.cpp | 10 +- test/gtx/gtx_extend.cpp | 2 +- test/gtx/gtx_extented_min_max.cpp | 4 +- test/gtx/gtx_fast_exponential.cpp | 2 +- test/gtx/gtx_fast_square_root.cpp | 2 +- test/gtx/gtx_fast_trigonometry.cpp | 2 +- test/gtx/gtx_gradient_paint.cpp | 2 +- test/gtx/gtx_handed_coordinate_space.cpp | 2 +- test/gtx/gtx_inertia.cpp | 2 +- test/gtx/gtx_integer.cpp | 2 +- test/gtx/gtx_intersect.cpp | 2 +- test/gtx/gtx_io.cpp | 2 +- test/gtx/gtx_log_base.cpp | 2 +- test/gtx/gtx_matrix_cross_product.cpp | 2 +- test/gtx/gtx_matrix_interpolation.cpp | 4 +- test/gtx/gtx_matrix_major_storage.cpp | 2 +- test/gtx/gtx_matrix_operation.cpp | 2 +- test/gtx/gtx_matrix_query.cpp | 2 +- test/gtx/gtx_multiple.cpp | 2 +- test/gtx/gtx_norm.cpp | 2 +- test/gtx/gtx_normal.cpp | 2 +- test/gtx/gtx_normalize_dot.cpp | 2 +- test/gtx/gtx_number_precision.cpp | 2 +- test/gtx/gtx_optimum_pow.cpp | 1 + test/gtx/gtx_orthonormalize.cpp | 1 + test/gtx/gtx_perpendicular.cpp | 1 + test/gtx/gtx_polar_coordinates.cpp | 1 + test/gtx/gtx_projection.cpp | 1 + test/gtx/gtx_quaternion.cpp | 11 +- test/gtx/gtx_rotate_normalized_axis.cpp | 3 +- test/gtx/gtx_rotate_vector.cpp | 92 ++--- test/gtx/gtx_scalar_relational.cpp | 1 + test/gtx/gtx_simd_mat4.cpp | 1 + test/gtx/gtx_simd_vec4.cpp | 3 +- test/gtx/gtx_spline.cpp | 1 + test/gtx/gtx_string_cast.cpp | 1 + test/gtx/gtx_vector_angle.cpp | 21 +- test/gtx/gtx_vector_query.cpp | 1 + 94 files changed, 435 insertions(+), 411 deletions(-) diff --git a/glm/detail/dummy.cpp b/glm/detail/dummy.cpp index 8cdc27dd..a95afcd3 100644 --- a/glm/detail/dummy.cpp +++ b/glm/detail/dummy.cpp @@ -29,6 +29,7 @@ /// dummy.cpp exist only a wordaround for CMake file. /////////////////////////////////////////////////////////////////////////////////// +#define GLM_FORCE_RADIANS #define GLM_MESSAGES #include "../glm.hpp" #include diff --git a/glm/detail/type_mat.hpp b/glm/detail/type_mat.hpp index 25095382..a46c4068 100644 --- a/glm/detail/type_mat.hpp +++ b/glm/detail/type_mat.hpp @@ -43,7 +43,10 @@ namespace detail template struct tmat4x2; template struct tmat4x3; template struct tmat4x4; - + + template + struct mat_trait{}; + template