Skip to content

Commit

Permalink
xrRender: fix includes
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg authored and q4a committed Sep 29, 2018
1 parent 947db1d commit bd553a0
Show file tree
Hide file tree
Showing 30 changed files with 46 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRender/Blender_BmmD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "blender_BmmD.h"
#include "Blender_BmmD.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/Blender_Lm(EbB).cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "blender_Lm(EbB).h"
#include "Blender_Lm(EbB).h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/Blender_Model_EbB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "blender_Model_EbB.h"
#include "Blender_Model_EbB.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Expand Down
6 changes: 4 additions & 2 deletions src/Layers/xrRender/Blender_Recorder_StandartBinding.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#include "stdafx.h"
#pragma hdrstop

#if defined(WINDOWS)
#pragma warning(push)
#pragma warning(disable : 4995)
#include <d3dx9.h>
#pragma warning(pop)
#endif

#include "ResourceManager.h"
#include "blenders\Blender_Recorder.h"
#include "blenders\Blender.h"
#include "blenders/Blender_Recorder.h"
#include "blenders/Blender.h"

#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/Environment.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/Blender_detail_still.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "Blender_Detail_still.h"
#include "Blender_detail_still.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
Expand Down
4 changes: 3 additions & 1 deletion src/Layers/xrRender/D3DUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
#pragma hdrstop

#include "xrEngine/GameFont.h"
#include "d3dutils.h"
#include "D3DUtils.h"
#include "du_box.h"
#include "du_sphere.h"
#include "du_sphere_part.h"
#include "du_cone.h"
#include "du_cylinder.h"
#include "xrCore/_obb.h"

#if defined(WINDOWS)
#pragma warning(push)
#pragma warning(disable : 4995)
#include "d3dx9.h"
#pragma warning(pop)
#endif

CDrawUtilities DUImpl;

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

#include "detailmanager.h"
#include "DetailManager.h"

const u32 vs_size = 3000;

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

CDetail::~CDetail() {}
void CDetail::Unload()
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/Light_DB.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "StdAfx.h"
#include "stdafx.h"
#include "Common/_d3d_extensions.h"
#include "Common/LevelStructure.hpp"
#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/Environment.h"
#include "utils/xrLC_Light/R_light.h"
#include "light_db.h"
#include "Light_DB.h"

CLight_DB::CLight_DB() {}
CLight_DB::~CLight_DB() {}
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/Light_Render_Direct.cpp
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#include "StdAfx.h"
#include "light_render_direct.h"
#include "stdafx.h"
#include "Light_Render_Direct.h"
2 changes: 1 addition & 1 deletion src/Layers/xrRender/Light_Render_Direct_ComputeXFS.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "stdafx.h"
#include "light_render_direct.h"
#include "Light_Render_Direct.h"

void CLight_Compute_XFORM_and_VIS::compute_xf_spot(light* L)
{
Expand Down
4 changes: 4 additions & 0 deletions src/Layers/xrRender/ParticleEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include "xrCore/Threading/ThreadPool.hpp"
#endif

#if defined(LINUX)
#include <math.h>
#endif

using namespace PAPI;
using namespace PS;

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

#include "r_backend_hemi.h"
#include "R_Backend_hemi.h"

R_hemi::R_hemi() { unmap(); }
void R_hemi::unmap()
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/R_Backend_tree.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "r_backend_tree.h"
#include "R_Backend_tree.h"

R_tree::R_tree() { unmap(); }
void R_tree::unmap()
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/R_Backend_xform.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "r_backend_xform.h"
#include "R_Backend_xform.h"

void R_xforms::set_W(const Fmatrix& m)
{
Expand Down
6 changes: 4 additions & 2 deletions src/Layers/xrRender/ResourceManager_Resources.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "stdafx.h"


#if defined(WINDOWS)
#pragma warning(push)
#pragma warning(disable : 4995)
#include <d3dx9.h>
Expand All @@ -9,11 +10,12 @@
#include "xrEngine/Render.h"
#endif
#pragma warning(pop)
#endif

#include "ResourceManager.h"
#include "tss.h"
#include "blenders/blender.h"
#include "blenders/blender_recorder.h"
#include "blenders/Blender.h"
#include "blenders/Blender_Recorder.h"
#include "ShaderResourceTraits.h"

void fix_texture_name(LPSTR fn);
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/ResourceManager_Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "xrEngine/Render.h"
#include "ResourceManager.h"
#include "tss.h"
#include "blenders/blender.h"
#include "blenders/blender_recorder.h"
#include "blenders/Blender.h"
#include "blenders/Blender_Recorder.h"
#include "xrScriptEngine/script_engine.hpp"
#include "luabind/return_reference_to_policy.hpp"

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

#include "sh_atomic.h"
#include "SH_Atomic.h"
#include "ResourceManager.h"

// Atomic
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRender/SkeletonAnimated.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#ifndef SkeletonAnimatedH
#define SkeletonAnimatedH

#include "skeletoncustom.h"
#include "animation.h"
#include "SkeletonCustom.h"
#include "Animation.h"
#include "xrCore/Animation/SkeletonMotions.hpp"

#include "Include/xrRender/KinematicsAnimated.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxLensFlareRender.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#include "dxLensFlareRender.h"
#include "xrEngine/xr_efflensflare.h"
#include "xrEngine/iGame_persistent.h"
#include "xrEngine/IGame_Persistent.h"
#define MAX_Flares 24

#define FAR_DIST g_pGamePersistent->Environment().CurrentEnv->far_plane
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/dxRainRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dxRainRender::dxRainRender()

dxRainRender::~dxRainRender() { ::RImplementation.model_Delete(DM_Drop); }
void dxRainRender::Copy(IRainRender& _in) { *this = *(dxRainRender*)&_in; }
#include "xrEngine/iGame_persistent.h"
#include "xrEngine/IGame_Persistent.h"

void dxRainRender::Render(CEffect_Rain& owner)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/light_gi.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "StdAfx.h"
#include "stdafx.h"
#include "Layers/xrRender/light.h"

IC bool pred_LI(const light_indirect& A, const light_indirect& B) { return A.E > B.E; }
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/light_smapvis.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "StdAfx.h"
#include "stdafx.h"
#include "Layers/xrRender/light.h"
#include "Layers/xrRender/FBasicVisual.h"

Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/light_vis.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "StdAfx.h"
#include "stdafx.h"
#include "Layers/xrRender/light.h"
#include "xrCDB/Intersect.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/r__dsgraph_build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "xrEngine/IRenderable.h"

#include "FLOD.h"
#include "particlegroup.h"
#include "ParticleGroup.h"
#include "FTreeVisual.h"
#include "xrEngine/GameFont.h"
#include "xrEngine/PerformanceAlert.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/r__sector_traversal.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#include "xrEngine/IGame_Persistent.h"
#include "xrEngine/Environment.h"
#include "fvf.h"
#include "FVF.h"

CPortalTraverser PortalTraverser;

Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/xrStripify.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "stdafx.h"
#include "xrstripify.h"
#include "xrStripify.h"

#include "NvTriStrip.h"
#include "VertexCache.h"
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_GL/blender_deffer_aref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#pragma hdrstop

#include "Layers/xrRender/uber_deffer.h"
#include "Blender_deffer_aref.h"
#include "blender_deffer_aref.h"

CBlender_deffer_aref::CBlender_deffer_aref(bool _lmapped) : lmapped(_lmapped)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_GL/blender_light_mask.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "stdafx.h"
#pragma hdrstop

#include "Blender_light_mask.h"
#include "blender_light_mask.h"

CBlender_accum_direct_mask::CBlender_accum_direct_mask() { description.CLS = 0; }
CBlender_accum_direct_mask::~CBlender_accum_direct_mask() { }
Expand Down
4 changes: 2 additions & 2 deletions src/Layers/xrRenderPC_GL/glResourceManager_Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "xrEngine/Render.h"
#include "Layers/xrRender/ResourceManager.h"
#include "Layers/xrRender/tss.h"
#include "Layers/xrRender/blenders/blender.h"
#include "Layers/xrRender/blenders/blender_recorder.h"
#include "Layers/xrRender/blenders/Blender.h"
#include "Layers/xrRender/blenders/Blender_Recorder.h"
// adopt_compiler don't have = operator And it can't have = operator
#include "xrScriptEngine/script_engine.hpp"
#include "luabind/return_reference_to_policy.hpp"
Expand Down

0 comments on commit bd553a0

Please sign in to comment.