mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 11:24:35 +00:00
Refactor split headers as extension files
This commit is contained in:
parent
768d6eb723
commit
310b8405c9
@ -122,8 +122,6 @@ namespace detail
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
template<length_t I, length_t N, relational_type R>
|
||||
struct reduce_relational
|
||||
{
|
||||
@ -143,8 +141,6 @@ namespace detail
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
|
||||
template<length_t I, length_t N, relational_type R>
|
||||
struct loop_relational
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/matrix_mat4x3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_mat4x3.hpp"
|
||||
#include "../detail/type_mat4x3.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/dvec2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec2.hpp"
|
||||
#include "../detail/type_vec2.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/dvec3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec3.hpp"
|
||||
#include "../detail/type_vec3.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/dvec4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec4.hpp"
|
||||
#include "../detail/type_vec4.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/ivec2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec2.hpp"
|
||||
#include "../detail/type_vec2.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/ivec3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec3.hpp"
|
||||
#include "../detail/type_vec3.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/ivec4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec4.hpp"
|
||||
#include "../detail/type_vec4.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/uvec2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec2.hpp"
|
||||
#include "../detail/type_vec2.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/uvec3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec3.hpp"
|
||||
#include "../detail/type_vec3.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/uvec4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec4.hpp"
|
||||
#include "../detail/type_vec4.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -1,8 +1,8 @@
|
||||
/// @ref core
|
||||
/// @file glm/fvec2.hpp
|
||||
/// @file glm/ext/vector_vec2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec2.hpp"
|
||||
#include "../detail/type_vec2.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/fvec3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec3.hpp"
|
||||
#include "../detail/type_vec3.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,7 +2,7 @@
|
||||
/// @file glm/fvec4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "detail/type_vec4.hpp"
|
||||
#include "../detail/type_vec4.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat2x2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat2x2.hpp"
|
||||
#include "matrix_dmat2x2_precision.hpp"
|
||||
#include "matrix_mat2x2.hpp"
|
||||
#include "matrix_mat2x2_precision.hpp"
|
||||
#include "./ext/matrix_dmat2x2.hpp"
|
||||
#include "./ext/matrix_dmat2x2_precision.hpp"
|
||||
#include "./ext/matrix_mat2x2.hpp"
|
||||
#include "./ext/matrix_mat2x2_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat2x3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat2x3.hpp"
|
||||
#include "matrix_dmat2x3_precision.hpp"
|
||||
#include "matrix_mat2x3.hpp"
|
||||
#include "matrix_mat2x3_precision.hpp"
|
||||
#include "./ext/matrix_dmat2x3.hpp"
|
||||
#include "./ext/matrix_dmat2x3_precision.hpp"
|
||||
#include "./ext/matrix_mat2x3.hpp"
|
||||
#include "./ext/matrix_mat2x3_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat2x4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat2x4.hpp"
|
||||
#include "matrix_dmat2x4_precision.hpp"
|
||||
#include "matrix_mat2x4.hpp"
|
||||
#include "matrix_mat2x4_precision.hpp"
|
||||
#include "./ext/matrix_dmat2x4.hpp"
|
||||
#include "./ext/matrix_dmat2x4_precision.hpp"
|
||||
#include "./ext/matrix_mat2x4.hpp"
|
||||
#include "./ext/matrix_mat2x4_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat3x2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat3x2.hpp"
|
||||
#include "matrix_dmat3x2_precision.hpp"
|
||||
#include "matrix_mat3x2.hpp"
|
||||
#include "matrix_mat3x2_precision.hpp"
|
||||
#include "./ext/matrix_dmat3x2.hpp"
|
||||
#include "./ext/matrix_dmat3x2_precision.hpp"
|
||||
#include "./ext/matrix_mat3x2.hpp"
|
||||
#include "./ext/matrix_mat3x2_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat3x3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat3x3.hpp"
|
||||
#include "matrix_dmat3x3_precision.hpp"
|
||||
#include "matrix_mat3x3.hpp"
|
||||
#include "matrix_mat3x3_precision.hpp"
|
||||
#include "./ext/matrix_dmat3x3.hpp"
|
||||
#include "./ext/matrix_dmat3x3_precision.hpp"
|
||||
#include "./ext/matrix_mat3x3.hpp"
|
||||
#include "./ext/matrix_mat3x3_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat3x4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat3x4.hpp"
|
||||
#include "matrix_dmat3x4_precision.hpp"
|
||||
#include "matrix_mat3x4.hpp"
|
||||
#include "matrix_mat3x4_precision.hpp"
|
||||
#include "./ext/matrix_dmat3x4.hpp"
|
||||
#include "./ext/matrix_dmat3x4_precision.hpp"
|
||||
#include "./ext/matrix_mat3x4.hpp"
|
||||
#include "./ext/matrix_mat3x4_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat4x2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat4x2.hpp"
|
||||
#include "matrix_dmat4x2_precision.hpp"
|
||||
#include "matrix_mat4x2.hpp"
|
||||
#include "matrix_mat4x2_precision.hpp"
|
||||
#include "./ext/matrix_dmat4x2.hpp"
|
||||
#include "./ext/matrix_dmat4x2_precision.hpp"
|
||||
#include "./ext/matrix_mat4x2.hpp"
|
||||
#include "./ext/matrix_mat4x2_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat4x3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat4x3.hpp"
|
||||
#include "matrix_dmat4x3_precision.hpp"
|
||||
#include "matrix_mat4x3.hpp"
|
||||
#include "matrix_mat4x3_precision.hpp"
|
||||
#include "./ext/matrix_dmat4x3.hpp"
|
||||
#include "./ext/matrix_dmat4x3_precision.hpp"
|
||||
#include "./ext/matrix_mat4x3.hpp"
|
||||
#include "./ext/matrix_mat4x3_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
/// @file glm/mat4x4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "matrix_dmat4x4.hpp"
|
||||
#include "matrix_dmat4x4_precision.hpp"
|
||||
#include "matrix_mat4x4.hpp"
|
||||
#include "matrix_mat4x4_precision.hpp"
|
||||
#include "./ext/matrix_dmat4x4.hpp"
|
||||
#include "./ext/matrix_dmat4x4_precision.hpp"
|
||||
#include "./ext/matrix_mat4x4.hpp"
|
||||
#include "./ext/matrix_mat4x4_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -13,9 +13,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "vector_uvec2.hpp"
|
||||
#include "vector_vec2.hpp"
|
||||
#include "vector_vec4.hpp"
|
||||
#include "./ext/vector_uvec2.hpp"
|
||||
#include "./ext/vector_vec2.hpp"
|
||||
#include "./ext/vector_vec4.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
20
glm/vec2.hpp
20
glm/vec2.hpp
@ -2,16 +2,16 @@
|
||||
/// @file glm/vec2.hpp
|
||||
|
||||
#pragma once
|
||||
#include "vector_bvec2.hpp"
|
||||
#include "vector_bvec2_precision.hpp"
|
||||
#include "vector_vec2.hpp"
|
||||
#include "vector_vec2_precision.hpp"
|
||||
#include "vector_dvec2.hpp"
|
||||
#include "vector_dvec2_precision.hpp"
|
||||
#include "vector_ivec2.hpp"
|
||||
#include "vector_ivec2_precision.hpp"
|
||||
#include "vector_uvec2.hpp"
|
||||
#include "vector_uvec2_precision.hpp"
|
||||
#include "./ext/vector_bvec2.hpp"
|
||||
#include "./ext/vector_bvec2_precision.hpp"
|
||||
#include "./ext/vector_vec2.hpp"
|
||||
#include "./ext/vector_vec2_precision.hpp"
|
||||
#include "./ext/vector_dvec2.hpp"
|
||||
#include "./ext/vector_dvec2_precision.hpp"
|
||||
#include "./ext/vector_ivec2.hpp"
|
||||
#include "./ext/vector_ivec2_precision.hpp"
|
||||
#include "./ext/vector_uvec2.hpp"
|
||||
#include "./ext/vector_uvec2_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
20
glm/vec3.hpp
20
glm/vec3.hpp
@ -2,16 +2,16 @@
|
||||
/// @file glm/vec3.hpp
|
||||
|
||||
#pragma once
|
||||
#include "vector_bvec3.hpp"
|
||||
#include "vector_bvec3_precision.hpp"
|
||||
#include "vector_vec3.hpp"
|
||||
#include "vector_vec3_precision.hpp"
|
||||
#include "vector_dvec3.hpp"
|
||||
#include "vector_dvec3_precision.hpp"
|
||||
#include "vector_ivec3.hpp"
|
||||
#include "vector_ivec3_precision.hpp"
|
||||
#include "vector_uvec3.hpp"
|
||||
#include "vector_uvec3_precision.hpp"
|
||||
#include "./ext/vector_bvec3.hpp"
|
||||
#include "./ext/vector_bvec3_precision.hpp"
|
||||
#include "./ext/vector_vec3.hpp"
|
||||
#include "./ext/vector_vec3_precision.hpp"
|
||||
#include "./ext/vector_dvec3.hpp"
|
||||
#include "./ext/vector_dvec3_precision.hpp"
|
||||
#include "./ext/vector_ivec3.hpp"
|
||||
#include "./ext/vector_ivec3_precision.hpp"
|
||||
#include "./ext/vector_uvec3.hpp"
|
||||
#include "./ext/vector_uvec3_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
20
glm/vec4.hpp
20
glm/vec4.hpp
@ -2,16 +2,16 @@
|
||||
/// @file glm/vec4.hpp
|
||||
|
||||
#pragma once
|
||||
#include "vector_bvec4.hpp"
|
||||
#include "vector_bvec4_precision.hpp"
|
||||
#include "vector_vec4.hpp"
|
||||
#include "vector_vec4_precision.hpp"
|
||||
#include "vector_dvec4.hpp"
|
||||
#include "vector_dvec4_precision.hpp"
|
||||
#include "vector_ivec4.hpp"
|
||||
#include "vector_ivec4_precision.hpp"
|
||||
#include "vector_uvec4.hpp"
|
||||
#include "vector_uvec4_precision.hpp"
|
||||
#include "./ext/vector_bvec4.hpp"
|
||||
#include "./ext/vector_bvec4_precision.hpp"
|
||||
#include "./ext/vector_vec4.hpp"
|
||||
#include "./ext/vector_vec4_precision.hpp"
|
||||
#include "./ext/vector_dvec4.hpp"
|
||||
#include "./ext/vector_dvec4_precision.hpp"
|
||||
#include "./ext/vector_ivec4.hpp"
|
||||
#include "./ext/vector_ivec4_precision.hpp"
|
||||
#include "./ext/vector_uvec4.hpp"
|
||||
#include "./ext/vector_uvec4_precision.hpp"
|
||||
|
||||
namespace glm
|
||||
{
|
||||
|
@ -1,12 +1,10 @@
|
||||
#define GLM_FORCE_EXPLICIT_CTOR
|
||||
#include <glm/gtc/constants.hpp>
|
||||
#include <glm/gtc/random.hpp>
|
||||
#include <glm/ext/scalar_relational.hpp>
|
||||
#include <glm/ext/vector_relational.hpp>
|
||||
#include <glm/ext/vec1.hpp>
|
||||
#include <glm/common.hpp>
|
||||
#include <glm/gtc/constants.hpp>
|
||||
#include <glm/gtc/vec1.hpp>
|
||||
#include <glm/gtc/random.hpp>
|
||||
#include <glm/vector_ivec4.hpp>
|
||||
#include <glm/vector_dvec4.hpp>
|
||||
#include <glm/vec4.hpp>
|
||||
#include <glm/vec3.hpp>
|
||||
#include <glm/vec2.hpp>
|
||||
|
@ -3,12 +3,12 @@
|
||||
#include <glm/ext/scalar_relational.hpp>
|
||||
#include <glm/ext/vector_relational.hpp>
|
||||
#include <glm/ext/vector_vec1.hpp>
|
||||
#include <glm/vector_vec2.hpp>
|
||||
#include <glm/vector_vec3.hpp>
|
||||
#include <glm/vector_vec4.hpp>
|
||||
#include <glm/vector_dvec2.hpp>
|
||||
#include <glm/vector_dvec3.hpp>
|
||||
#include <glm/vector_dvec4.hpp>
|
||||
#include <glm/ext/vector_vec2.hpp>
|
||||
#include <glm/ext/vector_vec3.hpp>
|
||||
#include <glm/ext/vector_vec4.hpp>
|
||||
#include <glm/ext/vector_dvec2.hpp>
|
||||
#include <glm/ext/vector_dvec3.hpp>
|
||||
#include <glm/ext/vector_dvec4.hpp>
|
||||
#include <limits>
|
||||
|
||||
namespace length
|
||||
|
@ -1,11 +1,11 @@
|
||||
#include <glm/integer.hpp>
|
||||
#include <glm/vector_relational.hpp>
|
||||
#include <glm/vector_ivec2.hpp>
|
||||
#include <glm/vector_ivec3.hpp>
|
||||
#include <glm/vector_ivec4.hpp>
|
||||
#include <glm/vector_uvec2.hpp>
|
||||
#include <glm/vector_uvec3.hpp>
|
||||
#include <glm/vector_uvec4.hpp>
|
||||
#include <glm/ext/vector_ivec2.hpp>
|
||||
#include <glm/ext/vector_ivec3.hpp>
|
||||
#include <glm/ext/vector_ivec4.hpp>
|
||||
#include <glm/ext/vector_uvec2.hpp>
|
||||
#include <glm/ext/vector_uvec3.hpp>
|
||||
#include <glm/ext/vector_uvec4.hpp>
|
||||
#include <vector>
|
||||
#include <ctime>
|
||||
#include <cstdio>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <glm/ext/matrix_relational.hpp>
|
||||
#include <glm/matrix_mat4x3.hpp>
|
||||
#include <glm/vector_vec4.hpp>
|
||||
#include <glm/ext/matrix_mat4x3.hpp>
|
||||
#include <glm/ext/vector_vec4.hpp>
|
||||
|
||||
int test_equal()
|
||||
{
|
||||
|
@ -3,9 +3,9 @@
|
||||
#include <glm/ext/vector_relational.hpp>
|
||||
#include <glm/ext/vector_dvec1.hpp>
|
||||
#include <glm/ext/vector_dvec1_precision.hpp>
|
||||
#include <glm/vector_dvec2.hpp>
|
||||
#include <glm/vector_dvec3.hpp>
|
||||
#include <glm/vector_dvec4.hpp>
|
||||
#include <glm/ext/vector_dvec2.hpp>
|
||||
#include <glm/ext/vector_dvec3.hpp>
|
||||
#include <glm/ext/vector_dvec4.hpp>
|
||||
|
||||
template <typename genType>
|
||||
static int test_operators()
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include <glm/ext/vector_ivec1.hpp>
|
||||
#include <glm/ext/vector_ivec1_precision.hpp>
|
||||
#include <glm/vector_ivec2.hpp>
|
||||
#include <glm/vector_ivec3.hpp>
|
||||
#include <glm/vector_ivec4.hpp>
|
||||
#include <glm/ext/vector_ivec2.hpp>
|
||||
#include <glm/ext/vector_ivec3.hpp>
|
||||
#include <glm/ext/vector_ivec4.hpp>
|
||||
#include <glm/vector_relational.hpp>
|
||||
|
||||
template <typename genType>
|
||||
|
@ -1,9 +1,9 @@
|
||||
#include <glm/ext/vector_uvec1.hpp>
|
||||
#include <glm/ext/vector_uvec1_precision.hpp>
|
||||
#include <glm/vector_uvec2.hpp>
|
||||
#include <glm/vector_uvec3.hpp>
|
||||
#include <glm/vector_uvec4.hpp>
|
||||
#include <glm/vector_relational.hpp>
|
||||
#include <glm/ext/vector_uvec2.hpp>
|
||||
#include <glm/ext/vector_uvec3.hpp>
|
||||
#include <glm/ext/vector_uvec4.hpp>
|
||||
#include <glm/ext/vector_relational.hpp>
|
||||
|
||||
template <typename genType>
|
||||
static int test_operators()
|
||||
|
@ -2,9 +2,9 @@
|
||||
#include <glm/ext/vector_relational.hpp>
|
||||
#include <glm/ext/vector_vec1.hpp>
|
||||
#include <glm/ext/vector_vec1_precision.hpp>
|
||||
#include <glm/vector_vec2.hpp>
|
||||
#include <glm/vector_vec3.hpp>
|
||||
#include <glm/vector_vec4.hpp>
|
||||
#include <glm/ext/vector_vec2.hpp>
|
||||
#include <glm/ext/vector_vec3.hpp>
|
||||
#include <glm/ext/vector_vec4.hpp>
|
||||
|
||||
template <typename genType>
|
||||
static int test_operators()
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include <glm/gtx/functions.hpp>
|
||||
#include <glm/vector_vec2.hpp>
|
||||
#include <glm/ext/vector_vec2.hpp>
|
||||
#include <vector>
|
||||
|
||||
int test_gauss_1d()
|
||||
|
Loading…
Reference in New Issue
Block a user