Skip to content

Commit 28f695d

Browse files
tamlin-mikeXottab-DUTY
authored andcommitted
Lots of header files compile-time distanglement.
1 parent c810d6d commit 28f695d

File tree

92 files changed

+439
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+439
-145
lines changed

src/Include/xrRender/DebugRender.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
#ifndef DebugRender_included
2-
#define DebugRender_included
31
#pragma once
42

53
#ifdef DEBUG
64

5+
#include "xrCore/_types.h"
76
#include "DebugShader.h"
87

8+
// fwd. decl.
9+
template <class T> struct _vector3;
10+
using Fvector = _vector3<float>;
11+
template <class T> struct _matrix;
12+
using Fmatrix = _matrix<float>;
13+
914
class IDebugRender
1015
{
1116
public:
@@ -47,5 +52,3 @@ class IDebugRender
4752
};
4853

4954
#endif // DEBUG
50-
51-
#endif // DebugRender_included

src/Include/xrRender/DebugShader.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
#ifndef DebugShader_included
2-
#define DebugShader_included
31
#pragma once
42

53
#include "FactoryPtr.h"
64
#include "UIShader.h"
75

8-
typedef FactoryPtr<IUIShader> debug_shader;
9-
10-
#endif // DebugShader_included
6+
using debug_shader = FactoryPtr<IUIShader>;

src/Include/xrRender/UIRender.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
#ifndef UIRender_included
22
#define UIRender_included
33
#pragma once
4+
#include "xrCore/_types.h"
45

6+
// fwd. decl.
57
class IUIShader;
8+
template <class T> struct _rect;
9+
using Irect = _rect<int>;
10+
template <class T> struct _vector2;
11+
using Fvector2 = _vector2<float>;
12+
template <class T> struct _matrix;
13+
using Fmatrix = _matrix<float>;
614

715
class IUIRender
816
{

src/xrAICore/Components/operator_condition.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
////////////////////////////////////////////////////////////////////////////
88

99
#pragma once
10+
#include "xrCore/_types.h"
11+
#include "xrCommon/inlining_macros.h"
1012

1113
template <typename _condition_type, typename _value_type>
1214
class COperatorConditionAbstract

src/xrAICore/Navigation/PathManagers/path_manager_params_straight_line.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
////////////////////////////////////////////////////////////////////////////
88

99
#pragma once
10+
#include "xrCore/_vector3d.h"
1011

1112
template <typename _dist_type, typename _index_type, typename _iteration_type>
1213
struct SStraightLineParams : public SBaseParameters<_dist_type, _index_type, _iteration_type>

src/xrAICore/Navigation/data_storage_binary_heap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
////////////////////////////////////////////////////////////////////////////
88

99
#pragma once
10+
#include "xrCore/_types.h"
1011

1112
struct CDataStorageBinaryHeap
1213
{

src/xrAICore/Navigation/vertex_path.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
////////////////////////////////////////////////////////////////////////////
88

99
#pragma once
10+
#include "xrCore/_types.h"
11+
#include "xrCommon/xr_vector.h"
1012

1113
template <bool EuclidianHeuristics = true>
1214
struct CVertexPath

src/xrCDB/xrCDB.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#include "xrCore/Threading/Lock.hpp" // XXX: Remove from header. Put in .cpp.
44
#include "Common/Noncopyable.hpp"
55
#include "xrCore/math_constants.h"
6+
#include "xrCore/_vector3d.h"
7+
#include "xrCommon/xr_vector.h"
68

79
// forward declarations
810
class CFrustum;

src/xrCDB/xr_collide_defs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#pragma once
22

3+
#include <algorithm>
4+
35
#include "xrCDB.h"
6+
#include "xrCore/_vector3d.h"
7+
#include "xrCore/_matrix.h"
48

59
class IGameObject;
610
namespace collide

src/xrCore/FixedVector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22
#include "xrCore/_types.h"
3+
#include "xrCore/xrDebug_macros.h"
4+
#include "xrCore/xrMemory.h"
35

46
// deprecated, use xr_array instead
57
template <class T, std::size_t dim>

0 commit comments

Comments
 (0)