Skip to content

Commit

Permalink
Clean includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Sep 30, 2015
1 parent 28cd255 commit 9511121
Show file tree
Hide file tree
Showing 223 changed files with 881 additions and 1,093 deletions.
4 changes: 2 additions & 2 deletions src/Layers/xrRender/Blender_Recorder_StandartBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include "blenders\Blender_Recorder.h"
#include "blenders\Blender.h"

#include "xrEngine/igame_persistent.h"
#include "xrEngine/environment.h"
#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/Environment.h"

#include "dxRenderDeviceRender.h"

Expand Down
8 changes: 4 additions & 4 deletions src/Layers/xrRender/DetailManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
# include "ESceneClassList.h"
# include "Scene.h"
# include "SceneObject.h"
# include "igame_persistent.h"
# include "environment.h"
# include "IGame_Persistent.h"
# include "Environment.h"
#else
# include "xrEngine/igame_persistent.h"
# include "xrEngine/environment.h"
# include "xrEngine/IGame_Persistent.h"
# include "xrEngine/Environment.h"
# include <xmmintrin.h>
#endif

Expand Down
8 changes: 3 additions & 5 deletions src/Layers/xrRender/DetailManager_Decompress.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#include "stdafx.h"
#pragma hdrstop

#include "DetailManager.h"
#include "xrCDB/Intersect.hpp"

#ifdef _EDITOR
# include "scene.h"
# include "sceneobject.h"
# include "../utils/ETools/ETools.h"
#include "scene.h"
#include "sceneobject.h"
#include "utils/ETools/ETools.h"
#endif

//--------------------------------------------------- Decompression
Expand Down
15 changes: 6 additions & 9 deletions src/Layers/xrRender/DetailManager_VS.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
#include "stdafx.h"
#pragma hdrstop

#include "detailmanager.h"

#include "DetailManager.h"
#ifdef _EDITOR
# include "igame_persistent.h"
# include "environment.h"
#include "IGame_Persistent.h"
#include "Environment.h"
#else
# include "xrEngine/igame_persistent.h"
# include "xrEngine/environment.h"
#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/Environment.h"
#endif

#include "../xrRenderDX10/dx10BufferUtils.h"
#include "Layers/xrRenderDX10/dx10BufferUtils.h"

const int quant = 16384;
const int c_hdr = 10;
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/FBasicVisual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# include "xrEngine/render.h"
#endif // #ifndef _EDITOR

#include "fbasicvisual.h"
#include "FBasicVisual.h"
#include "xrCore/FMesh.hpp"

//////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/FHierrarhyVisual.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include "fbasicvisual.h"
#include "FBasicVisual.h"

class FHierrarhyVisual : public dxRender_Visual
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/FLOD.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "stdafx.h"
#include "xrCore/FMesh.hpp"
#include "flod.h"
#include "FLOD.h"

struct _hw
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/FLOD.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "fhierrarhyvisual.h"
#include "FHierrarhyVisual.h"

class FLOD : public FHierrarhyVisual
{
Expand Down
10 changes: 2 additions & 8 deletions src/Layers/xrRender/FSkinned.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// SkeletonX.cpp: implementation of the CSkeletonX class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#pragma hdrstop

Expand All @@ -10,12 +6,10 @@
#pragma warning(default:4995)

#include "xrCore/FMesh.hpp"
#include "../../xrCPU_Pipe/xrCPU_Pipe.h"
#include "xrCPU_Pipe/xrCPU_Pipe.h"
#include "FSkinned.h"
#include "SkeletonX.h"

#include "../xrRenderDX10/dx10BufferUtils.h"

#include "Layers/xrRenderDX10/dx10BufferUtils.h"
#include "xrEngine/EnnumerateVertices.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Expand Down
9 changes: 4 additions & 5 deletions src/Layers/xrRender/FTreeVisual.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#include "stdafx.h"
#pragma hdrstop

#include "xrEngine/igame_persistent.h"
#include "xrEngine/igame_level.h"
#include "xrEngine/environment.h"
#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/IGame_Level.h"
#include "xrEngine/Environment.h"
#include "xrCore/FMesh.hpp"

#include "ftreevisual.h"
#include "FTreeVisual.h"

shared_str m_xform ;
shared_str m_xform_v ;
Expand Down
9 changes: 2 additions & 7 deletions src/Layers/xrRender/FVisual.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// FVisual.cpp: implementation of the FVisual class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#pragma hdrstop

Expand All @@ -10,9 +6,8 @@
#pragma warning(default:4995)

#include "xrCore/FMesh.hpp"
#include "fvisual.h"

#include "../xrRenderDX10/dx10BufferUtils.h"
#include "FVisual.h"
#include "Layers/xrRenderDX10/dx10BufferUtils.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/FVisual.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#pragma once

#ifdef _EDITOR
# include "fbasicvisual.h"
# include "FBasicVisual.h"
#else
# include "fbasicvisual.h"
# include "FBasicVisual.h"
#endif

class Fvisual : public dxRender_Visual, public IRender_Mesh
Expand Down
1 change: 0 additions & 1 deletion src/Layers/xrRender/HOM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "HOM.h"
#include "occRasterizer.h"
#include "xrEngine/GameFont.h"

#include "dxRenderDeviceRender.h"

float psOSSR = .001f;
Expand Down
8 changes: 4 additions & 4 deletions src/Layers/xrRender/LightTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#include "xrEngine/xr_object.h"

#ifdef _EDITOR
# include "igame_persistent.h"
# include "environment.h"
# include "IGame_Persistent.h"
# include "Environment.h"
#else
# include "xrEngine/igame_persistent.h"
# include "xrEngine/environment.h"
# include "xrEngine/IGame_Persistent.h"
# include "xrEngine/Environment.h"
#endif

//////////////////////////////////////////////////////////////////////
Expand Down
6 changes: 3 additions & 3 deletions src/Layers/xrRender/Light_DB.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "StdAfx.h"
#include "xrEngine/_d3d_extensions.h"
#include "xrEngine/xrLevel.h"
#include "xrEngine/igame_persistent.h"
#include "xrEngine/environment.h"
#include "../../utils/xrLC_Light/R_light.h"
#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/Environment.h"
#include "utils/xrLC_Light/R_light.h"
#include "light_db.h"

CLight_DB::CLight_DB()
Expand Down
22 changes: 11 additions & 11 deletions src/Layers/xrRender/ModelPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
#ifndef _EDITOR
#include "xrEngine/IGame_Persistent.h"
#include "xrCore/FMesh.hpp"
#include "fhierrarhyvisual.h"
#include "FHierrarhyVisual.h"
#include "SkeletonAnimated.h"
#include "fvisual.h"
#include "fprogressive.h"
#include "fskinned.h"
#include "flod.h"
#include "ftreevisual.h"
#include "FVisual.h"
#include "FProgressive.h"
#include "FSkinned.h"
#include "FLOD.h"
#include "FTreeVisual.h"
#include "ParticleGroup.h"
#include "ParticleEffect.h"
#else
#include "fmesh.h"
#include "fvisual.h"
#include "fprogressive.h"
#include "FMesh.h"
#include "FVisual.h"
#include "FProgressive.h"
#include "ParticleEffect.h"
#include "ParticleGroup.h"
#include "fskinned.h"
#include "fhierrarhyvisual.h"
#include "FSkinned.h"
#include "FHierrarhyVisual.h"
#include "SkeletonAnimated.h"
#include "IGame_Persistent.h"
#endif
Expand Down
9 changes: 2 additions & 7 deletions src/Layers/xrRender/PSLibrary.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
//----------------------------------------------------
// file: PSLibrary.cpp
//----------------------------------------------------
#include "stdafx.h"
#pragma hdrstop

#include "PSLibrary.h"
#include "ParticleEffect.h"
#include "ParticleGroup.h"

#ifdef _EDITOR
# include "ParticleEffectActions.h"
#include "../ECore/Editor/ui_main.h"
#include "ParticleEffectActions.h"
#include "editors/ECore/Editor/ui_main.h"
#endif

#define _game_data_ "$game_data$"
Expand Down
4 changes: 1 addition & 3 deletions src/Layers/xrRender/ParticleEffect.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#include "stdafx.h"
#pragma hdrstop

#include "ParticleEffect.h"

#ifndef _EDITOR
#include <xmmintrin.h>
#include "../../xrCPU_Pipe/ttapi.h"
#include "xrCPU_Pipe/ttapi.h"
#pragma comment(lib,"xrCPU_Pipe.lib")
#endif

Expand Down
12 changes: 4 additions & 8 deletions src/Layers/xrRender/ParticleEffect.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
//---------------------------------------------------------------------------
#ifndef ParticleEffectH
#define ParticleEffectH
//---------------------------------------------------------------------------

#include "ParticleEffectDef.h"

#ifdef _EDITOR
# include "Layers/xrRender/FBasicVisual.h"
# include "Layers/xrRender/dxParticleCustom.h"
#include "Layers/xrRender/FBasicVisual.h"
#include "Layers/xrRender/dxParticleCustom.h"
#else // _EDITOR
# include "../xrRender/FBasicVisual.h"
# include "../xrRender/dxParticleCustom.h"
#include "Layers/xrRender/FBasicVisual.h"
#include "Layers/xrRender/dxParticleCustom.h"
#endif // _EDITOR

namespace PS
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/ParticleGroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#ifndef ParticleGroupH
#define ParticleGroupH

#include "../xrRender/dxParticleCustom.h"
#include "Layers/xrRender/dxParticleCustom.h"

namespace PS
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/R_Backend.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "../xrRenderDX10/dx10BufferUtils.h"
#include "Layers/xrRenderDX10/dx10BufferUtils.h"

CBackend RCache;

Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/R_Backend_Runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include "xrCDB/frustum.h"

#if defined(USE_DX10) || defined(USE_DX11)
#include "../xrRenderDX10/StateManager/dx10StateManager.h"
#include "../xrRenderDX10/StateManager/dx10ShaderResourceStateCache.h"
#include "Layers/xrRenderDX10/StateManager/dx10StateManager.h"
#include "Layers/xrRenderDX10/StateManager/dx10ShaderResourceStateCache.h"
#endif USE_DX10

void CBackend::OnFrameEnd ()
Expand Down
6 changes: 3 additions & 3 deletions src/Layers/xrRender/R_Backend_Runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#include "sh_rt.h"

#if defined(USE_DX10) || defined(USE_DX11)
#include "../xrRenderDX10/dx10R_Backend_Runtime.h"
#include "../xrRenderDX10/StateManager/dx10State.h"
#include "Layers/xrRenderDX10/dx10R_Backend_Runtime.h"
#include "Layers/xrRenderDX10/StateManager/dx10State.h"
#else // USE_DX10
#include "../xrRenderDX9/dx9R_Backend_Runtime.h"
#include "Layers/xrRenderDX9/dx9R_Backend_Runtime.h"
#endif // USE_DX10

IC void R_xforms::set_c_w (R_constant* C) { c_w = C; RCache.set_c(C,m_w); };
Expand Down
4 changes: 1 addition & 3 deletions src/Layers/xrRender/R_DStreams.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#include "stdafx.h"
#pragma hdrstop

#include "ResourceManager.h"
#include "R_DStreams.h"

#include "../xrRender/dxRenderDeviceRender.h"
#include "Layers/xrRender/dxRenderDeviceRender.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
Expand Down
3 changes: 1 addition & 2 deletions src/Layers/xrRender/SH_Atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
#pragma once
#include "xrCore/xr_resource.h"
#include "tss_def.h"

#if defined(USE_DX10) || defined(USE_DX11)
#include "../xrRenderDX10/StateManager/dx10State.h"
#include "Layers/xrRenderDX10/StateManager/dx10State.h"
#endif // USE_DX10

#pragma pack(push,4)
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/SkeletonCustom.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#ifndef SkeletonCustomH
#define SkeletonCustomH

#include "fhierrarhyvisual.h"
#include "FHierrarhyVisual.h"
#include "xrCore/Animation/Bone.hpp"
#include "Include/xrRender/Kinematics.h"

Expand Down
7 changes: 3 additions & 4 deletions src/Layers/xrRender/SkeletonX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@
#pragma warning(default:4995)

#ifndef _EDITOR
#include "xrEngine/Render.h"
#include "xrEngine/Render.h"
#else
#include "Include/xrAPI/xrAPI.h"
#include "Include/xrAPI/xrAPI.h"
#endif

#include "SkeletonX.h"
#include "SkeletonCustom.h"
#include "xrCore/FMesh.hpp"
#include "../../xrCPU_Pipe/xrCPU_Pipe.h"
#include "xrCPU_Pipe/xrCPU_Pipe.h"

shared_str s_bones_array_const;

Expand Down
1 change: 0 additions & 1 deletion src/Layers/xrRender/WallmarksEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include "stdafx.h"
#include "WallmarksEngine.h"

#include "xrEngine/xr_object.h"
#include "xrEngine/x_ray.h"
#include "xrEngine/GameFont.h"
Expand Down
Loading

0 comments on commit 9511121

Please sign in to comment.