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 9511121 commit 758d22b
Show file tree
Hide file tree
Showing 52 changed files with 69 additions and 74 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRender/D3DUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#ifndef D3DUtilsH
#define D3DUtilsH
#include "..\..\Include\xrRender\DrawUtils.h"
#include "Include/xrRender/DrawUtils.h"
//----------------------------------------------------

#ifdef _EDITOR
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/R_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "r_backend_tree.h"

#ifdef USE_DX11
# include "..\xrRenderPC_R4\r_backend_lod.h"
#include "Layers/xrRenderPC_R4/r_backend_lod.h"
#endif

#include "fvf.h"
Expand Down
5 changes: 2 additions & 3 deletions src/Layers/xrRender/blenders/Blender_Recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#include "stdafx.h"
#pragma hdrstop

#include "..\ResourceManager.h"
#include "Layers/xrRender/ResourceManager.h"
#include "Blender_Recorder.h"
#include "Blender.h"

#include "..\dxRenderDeviceRender.h"
#include "Layers/xrRender/dxRenderDeviceRender.h"

static int ParseName(LPCSTR N)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/blenders/Blender_Recorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define AFX_BLENDER_RECORDER_H__1F549674_8674_4EB2_95E6_E6BC19218A6C__INCLUDED_
#pragma once

#include "..\tss.h"
#include "Layers/xrRender/tss.h"

#pragma pack(push,4)

Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxApplicationRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxApplicationRender_included
#pragma once

#include "..\..\Include\xrRender\ApplicationRender.h"
#include "Include/xrRender/ApplicationRender.h"

class dxApplicationRender : public IApplicationRender
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxConsoleRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxConsoleRender_included
#pragma once

#include "..\..\Include\xrRender\ConsoleRender.h"
#include "Include/xrRender/ConsoleRender.h"

class dxConsoleRender : public IConsoleRender
{
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/dxEnvironmentRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
#define dxEnvironmentRender_included
#pragma once

#include "..\..\Include\xrRender\EnvironmentRender.h"
#include "Include/xrRender/EnvironmentRender.h"
#include "blenders/Blender.h"

#include "blenders\blender.h"
class CBlender_skybox : public IBlender
{
public:
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxFontRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxFontRender_included
#pragma once

#include "..\..\Include\xrRender\FontRender.h"
#include "Include/xrRender/FontRender.h"

class dxFontRender : public IFontRender
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxLensFlareRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxLensFlareRender_included
#pragma once

#include "..\..\Include\xrRender\LensFlareRender.h"
#include "Include/xrRender/LensFlareRender.h"

class dxFlareRender : public IFlareRender
{
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/dxObjectSpaceRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#pragma once

#ifdef DEBUG
#include "Include/xrRender/ObjectSpaceRender.h"
#include "xrEngine/xr_collide_form.h"

#include "..\..\Include\xrRender\ObjectSpaceRender.h"
#include "..\..\xrengine\xr_collide_form.h"
class dxObjectSpaceRender : public IObjectSpaceRender
{
public:
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxRainRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxRainRender_included
#pragma once

#include "..\..\Include\xrRender\RainRender.h"
#include "Include/xrRender/RainRender.h"

class dxRainRender : public IRainRender
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxRenderDeviceRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#ifndef _EDITOR

#include "..\..\Include\xrRender\RenderDeviceRender.h"
#include "Include/xrRender/RenderDeviceRender.h"
#include "xr_effgamma.h"

class CResourceManager;
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxRenderFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxRenderFactory_included
#pragma once

#include "..\..\Include\xrRender\RenderFactory.h"
#include "Include/xrRender/RenderFactory.h"

#define RENDER_FACTORY_DECLARE(Class) \
virtual I##Class* Create##Class(); \
Expand Down
3 changes: 1 addition & 2 deletions src/Layers/xrRender/dxStatGraphRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
#define dxStatGraphRender_included
#pragma once

#include "..\..\Include\xrRender\StatGraphRender.h"

#include "Include/xrRender/StatGraphRender.h"
#include "xrEngine/StatGraph.h"

class dxStatGraphRender : public IStatGraphRender
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxStatsRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxStatsRender_included
#pragma once

#include "..\..\Include\xrRender\StatsRender.h"
#include "Include/xrRender/StatsRender.h"

class dxStatsRender : public IStatsRender
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxThunderboltDescRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxThunderboltDescRender_included
#pragma once

#include "..\..\Include\xrRender\ThunderboltDescRender.h"
#include "Include/xrRender/ThunderboltDescRender.h"

class IRender_DetailModel;

Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxThunderboltRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxThunderboltRender_included
#pragma once

#include "..\..\Include\xrRender\ThunderboltRender.h"
#include "Include/xrRender/ThunderboltRender.h"

class dxThunderboltRender : public IThunderboltRender
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxUIRender.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxUIRender_included
#pragma once

#include "..\..\Include\xrRender\UIRender.h"
#include "Include/xrRender/UIRender.h"

class dxUIRender : public IUIRender
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxUISequenceVideoItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxUISequenceVideoItem_included
#pragma once

#include "..\..\Include\xrRender\UISequenceVideoItem.h"
#include "Include/xrRender/UISequenceVideoItem.h"

class dxUISequenceVideoItem : public IUISequenceVideoItem
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxUIShader.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxUIShader_included
#pragma once

#include "..\..\Include\xrRender\UIShader.h"
#include "Include/xrRender/UIShader.h"

class dxUIShader : public IUIShader
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxWallMarkArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define dxWallMarkArray_included
#pragma once

#include "..\..\Include\xrRender\WallMarkArray.h"
#include "Include/xrRender/WallMarkArray.h"

class dxWallMarkArray : public IWallMarkArray
{
Expand Down
4 changes: 1 addition & 3 deletions src/Layers/xrRender/xrD3DDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
#pragma once

#if defined(USE_DX11) || defined(USE_DX10)

# include "..\xrRenderDX10\DXCommonTypes.h"

#include "Layers/xrRenderDX10/DXCommonTypes.h"
#else // USE_DX10

typedef IDirect3DVertexShader9 ID3DVertexShader;
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R4/CSCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "stdafx.h"
#include "CSCompiler.h"
#include "ComputeShader.h"
#include "..\xrRender\dxRenderDeviceRender.h"
#include "Layers/xrRender/dxRenderDeviceRender.h"

CSCompiler::CSCompiler(ComputeShader& target):
m_Target(target), m_cs(0)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Export/BoneDef.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "stdafx.h"
#include "..\..\Shared\BoneDef.h"
#include "plugins/Shared/BoneDef.h"
#include "Exporter.h"
#include "MeshExpUtility.h"

Expand Down
8 changes: 3 additions & 5 deletions src/plugins/Max/Export/EditMeshExportMAX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
//#include "..\..\Shared\EditMesh.h"
//#include "..\..\Shared\EditObject.h"

#include "..\..\..\editors\ECore\Editor\EditMesh.h"
#include "..\..\..\editors\ECore\Editor\EditObject.h"

#include "editors/ECore/Editor/EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "MeshExpUtility.h"

#include "Exporter.h"
#include "..\..\Shared\GameMaterial.h"
#include "plugins/Shared/GameMaterial.h"
//----------------------------------------------------
void CEditableMesh::FlipFaces(){
VERIFY(m_Faces);
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/Max/Export/EditObjectExportLWO.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "stdafx.h"
#pragma hdrstop

#include "..\..\..\editors\ECore\Editor\EditObject.h"
#include "..\..\..\editors\ECore\Editor\EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "editors/ECore/Editor/EditMesh.h"
#include "FS2.h"

int FindLPCSTR(LPCSTRVec& vec, LPCSTR key){
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/Max/Export/EditObjectExportMAX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#include "stdafx.h"
#pragma hdrstop

#include "..\..\..\editors\ECore\Editor\EditObject.h"
#include "..\..\..\editors\ECore\Editor\EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "editors/ECore/Editor/EditMesh.h"
#include "xrCore/Animation/Bone.hpp"
#include "Exporter.h"
#include "..\..\Shared\GameMaterial.h"
#include "plugins/Shared/GameMaterial.h"

//----------------------------------------------------------------------------
// Material parsing
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/Max/Export/Exporter.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include "..\..\Shared\helper.h"
#include "..\..\Shared\bonedef.h"
#include "..\..\Shared\face.h"
#include "plugins/Shared/Helper.h"
#include "plugins/Shared/bonedef.h"
#include "plugins/Shared/Face.h"

DEFINE_VECTOR(INode*,INodeVec,INodeIt);

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/Max/Export/ExporterMotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

#include "Exporter.h"
#include "MeshExpUtility.h"
#include "..\..\..\editors\ECore\Editor\EditObject.h"
#include "..\..\..\editors\ECore\Editor\EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "editors/ECore/Editor/EditMesh.h"
#include "xrCore/Animation/Bone.hpp"
#include "xrCore/Animation/Motion.hpp"
#include "xrCore/Animation/Envelope.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Export/ExporterSkin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#pragma hdrstop

#include "exporter.h"
#include "..\..\..\editors\ECore\Editor\EditObject.h"
#include "editors/ECore/Editor/EditObject.h"
#include "MeshExpUtility.h"
//----------------------------------------------------------------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/Max/Export/MeshExpUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#pragma hdrstop

#include "MeshExpUtility.h"
#include "..\..\xrCore/FileSystem.h"
#include "xrCore/FileSystem.h"
#include "MeshExpUtility.rh"
#include "..\..\..\editors\ECore\Editor\EditObject.h"
#include "..\..\..\editors\ECore\Editor\EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "editors/ECore/Editor/EditMesh.h"
//-------------------------------------------------------------------
// Dialog Handler for Utility

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Export/Stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ DEFINE_VECTOR(AnsiString,AStringVec,AStringIt);
//#include "clsid.h"
//#include "Engine.h"
//#include "Properties.h"
#include "..\..\Shared\ELog.h"
#include "plugins/Shared/ELog.h"

#define THROW R_ASSERT(0)

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Material/DllEntry.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "..\..\Shared\GameMaterial.h"
#include "plugins/Shared/GameMaterial.h"

extern ClassDesc2* GetXRayMtlDesc ();
extern TCHAR* GetString (int id);
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Max/Material/Stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ DEFINE_VECTOR(AnsiString,AStringVec,AStringIt);
//#include "clsid.h"
//#include "Engine.h"
//#include "Properties.h"
#include "..\..\Shared\ELog.h"
#include "plugins/Shared/ELog.h"

#define THROW R_ASSERT(0)

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/Maya/Export/MayaExport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#pragma hdrstop

#include "maTranslator.h"
#include "..\..\..\editors\Ecore\editor\EditObject.h"
#include "..\..\..\editors\Ecore\editor\EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "editors/ECore/Editor/EditMesh.h"
#include "smoth_flags.h"
//-----------------------------------------------------------------------------------------
BOOL CEditableObject::ParseMAMaterial(CSurface* dest, SXRShaderData& d)
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/Maya/Export/SmdMaya.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "stdafx.h"

#include "SmdMaya.h"
#include "..\..\..\editors\Ecore\editor\EditObject.h"
#include "..\..\..\editors\Ecore\editor\EditMesh.h"
#include "editors/ECore/Editor/EditObject.h"
#include "editors/ECore/Editor/EditMesh.h"
#include "xrCore/Animation/Motion.hpp"
#include "xrCore/Animation/Envelope.hpp"
#include "smoth_flags.h"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Maya/Export/SmdMaya.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef SmdMayaH
#define SmdMayaH

#include "..\..\..\editors\Ecore\editor\EditMesh.H"
#include "editors/ECore/Editor/EditMesh.H"
#include "ExportDefines.H"
#include "SmdBone.h"
#include "SmdTriangle.h"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Maya/Export/SmdTriangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define TRIANGLE_H

#include "SmdBone.h"
#include "..\..\..\editors\Ecore\editor\EditMesh.h"
#include "editors/ECore/Editor/EditMesh.h"

class SmdVertex
{
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/Maya/Export/Stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ typedef TMsgDlgBtn TMsgDlgButtons[mbHelp];

#pragma warning(push)
#pragma warning(disable:4995)
# include "..\..\Shared\ELog.h"
#include "plugins/Shared/ELog.h"
#pragma warning(pop)

#include "xrCore/Animation/Bone.hpp"
Expand Down
Loading

0 comments on commit 758d22b

Please sign in to comment.